Instant message processing method and system based on multi-factor authentication

Through multi-factor authentication and key management, a secure transmission channel for the instant messaging system is constructed, which solves the security and stability issues in message transmission between multi-end users, implements personalized encryption strategies and real-time anomaly detection, and improves user experience. and system reliability.

CN118713892AInactive Publication Date: 2024-09-27TAISHAN UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410852093.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing instant messaging systems have security and stability problems in message transmission between multiple users. Especially during the switching process between different channels and contact objects, it is difficult to ensure the safe transmission of messages and the protection of user privacy.

Method used

Adopt multi-factor authentication instant message processing method, build an end-to-end secure transmission channel through user identity verification, feature set generation, encryption algorithm recommendation and key management, and monitor the transmission situation in real time and detect abnormal factors to ensure communication security and stability .

Benefits of technology

It improves the security and stability of the instant messaging system, reduces the risk of unauthorized access, implements personalized encryption strategies, reduces the risk of key leakage, and promptly detects and responds to abnormal factors, improving user experience and system reliability. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713892A
    Figure CN118713892A
Patent Text Reader

Abstract

The invention discloses a multi-factor authentication instant message processing method and system, and belongs to the technical field of instant messaging. The method comprises the following steps: acquiring user identity data of each end of an instant messaging system through a user authentication module, and generating corresponding identity characteristics of each user according to the acquired user information; analyzing a message transmission type between any two current ports through a communication type judgment module, and outputting a mark information set of each port; analyzing a message encryption algorithm in the instant messaging system through a key management module, and generating a message encryption algorithm recommendation strategy for each port of the current instant messaging system; instant messages of all ends of the instant messaging system are processed through an instant message processing module; monitoring the instant message transmission condition in the communication system through an instant communication monitoring module, and judging whether the current instant communication system is abnormal or not; the security and stability of end-to-end instant messaging are ensured, and the data security of the user is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of instant messaging, and in particular to a multi-factor authenticated instant message processing method and system. Background Art

[0002] Instant messaging is a terminal-oriented service that allows terminal users to send and receive messages instantly over the Internet. With the development of society and the popularization of mobile communication devices, people are using instant messaging more and more. Existing instant messaging software basically relies on central servers for information transmission and storage. In addition, the existing instant message processing method usually uses encryption algorithms to encrypt the message content before transmission. For communication users, they may need to maintain message exchanges with multiple users at the same time. In actual instant messaging exchanges, it may involve switching between different channels and different contact objects.

[0003] Therefore, in order to solve the above-mentioned problems or part of the problems, the present invention provides a multi-factor authenticated instant message processing method and system for instant message processing between multi-end users, designs the message processing strategy in the instant communication system, ensures the security and stability of end-to-end instant communication, and protects the user's privacy data security. Summary of the invention

[0004] The purpose of the present invention is to provide an instant message processing method and system with multi-factor authentication to solve the problems raised in the above background technology.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a multi-factor authentication instant message processing method, the method comprising the following steps:

[0006] Step S100: Login verification is performed on the user identity of each end of the instant messaging system. When the user identity successfully passes the login verification, the user characteristics of each end of the communication system are obtained through multi-factor authentication to generate a corresponding user characteristic set of each end of the communication system;

[0007] Step S200: judging the message transmission type of the current communication according to the user feature set of each end of the instant messaging system, analyzing the message encryption algorithm in the instant messaging system according to the instant messaging type, and obtaining a message encryption algorithm recommendation strategy in the instant messaging system;

[0008] Step S300: Construct an end-to-end secure transmission channel according to the recommended strategy of the message encryption algorithm in the instant messaging system, and design the key distribution mechanism of the instant messaging system; ensure the security of the key during the transmission process, while taking into account the regular update of the key, and construct a security strategy for message transmission in the instant messaging system.

[0009] Step S400: Process the instant messages of users at each end of the communication system according to the key distribution mechanism of the instant communication system designed in step S300, monitor the transmission of the instant communication system, and analyze and determine whether there are abnormal factors in the current communication system. If there are abnormal factors, issue an early warning prompt.

[0010] The specific implementation process of step S100 includes:

[0011] Step S101: When a user logs into the instant messaging system, the user identity of each end of the instant messaging system is verified, and the login verification includes verifying the account number and login password input by the user; the user's account number and login password are sent to the server through the communication protocol, and after the server receives the account number and login password, it searches whether the account exists. If the account exists, the server compares the login password corresponding to the account stored in the database with the received login password. If the two login passwords match, the user's identity authentication is successful, otherwise, the verification fails; the server feeds back the verification result to the client, and the client decides whether to allow the user to log in based on the verification result.

[0012] Step S102: When the user identity successfully passes the login verification, the server of the instant messaging system will assign a session identifier to the user and obtain the user characteristics of each end of the communication system through multi-factor authentication. The user proves his identity by carrying the session identifier during the communication process; when the instant messaging system obtains permission to collect user data, it collects characteristic information of the currently logged-in user, such as device information, geographic location, login time, audio data, etc.; this information can enable the system to further confirm the user's identity data and communication status, so that the system can use this information to process the instant messages sent and received by the user accordingly, while ensuring the security of instant messaging, improving the user's instant messaging experience.

[0013] Step S103: Integrate the acquired user feature information through the instant messaging system to generate the corresponding user feature set of each end of the instant messaging system. When integrating the acquired user feature information, extracting the required features includes data cleaning, noise removal, feature selection and feature conversion, etc. Based on the extracted features, a feature set is established for each user. The user feature set generated for the i-th user is denoted as UF i ={F1, F2, ..., F n}, where F1, F2, ..., F n Represent the 1st, 2nd, ..., nth user features respectively. This feature set can be used for subsequent user behavior analysis and security monitoring;

[0014] Multi-factor authentication is a security mechanism that requires users to provide their account and password in addition to other factors during the user identity verification process. Since attackers need to obtain multiple factors at the same time to successfully impersonate a user, the multi-factor authentication method can effectively improve the security of the system.

[0015] In step S200, judging the message delivery type of the current communication according to the user feature set of each terminal of the instant messaging system includes:

[0016] S201: Collect the user feature sets of each end of the instant messaging system, and form a feature matrix based on the user feature sets of each end of the instant messaging system, which is recorded as R ij , where j represents the user number, and i≠j, the row number of the feature matrix corresponds to the user's code number, and the column number of the feature matrix corresponds to the code number of the user's feature. Then the user feature set UF i Mapped to the i-th row of the feature matrix; the number of rows and columns of the matrix depends on the dimension of each user feature set;

[0017] S202: Obtain the historical interaction data between any two users, where the historical interaction data may be message sending time, message content, message type, etc.; process the historical interaction data of the two users in communication, extract the historical interaction features between the two users through standardization, and incorporate the historical interaction features between the two users into the corresponding feature matrix, denoted as R ij ', in order to understand the relationship between users, communication purpose, communication frequency and other information; the combined feature matrix R ij 'Input the message transmission type judgment model to judge the message transmission type of the current communication;

[0018] The message transmission type judgment model is a multi-classification task model based on a machine learning model, and a neural network or a support vector machine can be selected to construct the model, including the following steps:

[0019] S202-1: Extract historical data from the instant messaging system, collect actual interaction data of users when using the instant messaging system, such as sent and received messages, interaction timestamps, etc., clean the collected actual interaction data, remove noise and outliers in the data, and ensure the quality and integrity of the data so that the model can learn effective features;

[0020] S202-2: define the message transmission types of instant messaging, which are divided into primary communication, secondary communication, and tertiary communication, label the cleaned data with the corresponding message transmission types, and generate a training set for the model;

[0021] S202-3: Use the training set to train the message transmission type judgment model, adjust the model parameters to minimize the loss function; monitor the training process to avoid overfitting; deploy the trained model to the instant messaging system to achieve real-time judgment of the message transmission type.

[0022] S203: monitor the user behaviors of each end of the instant messaging system in real time, process the relevant monitored data through steps S201 and S202, and input them into the message transmission type judgment model, and mark and update the message transmission type of the current users of each end according to the output results of the message transmission type judgment model;

[0023] The step S200 analyzes the message encryption algorithm in the instant messaging system, and obtains the recommended strategy for the message encryption algorithm in the instant messaging system, including the following steps:

[0024] S211: Acquire the session identifier of each user in the instant messaging system, collect the message transmission type tag linked to each user session identifier; acquire the operation data of each message encryption algorithm in the instant messaging system, including algorithm performance, algorithm security level and algorithm compatibility range;

[0025] Normalize or standardize the operation data of the message encryption algorithm in the instant messaging system to facilitate comparison in the evaluation model;

[0026] S212: S212: Construct an encryption algorithm evaluation model, input the operation data of each message encryption algorithm quantified in S211 into the encryption algorithm evaluation model, and calculate the recommended coefficient of the message encryption algorithm in the instant messaging system according to the following formula in combination with the instant messaging type of the users at both ends:

[0027]

[0028] Where Tq represents the recommendation coefficient of the qth message encryption algorithm in the message transmission type of the current client, is the weight of the e-th message passing type, e∈[1,E], S eq is the message encryption algorithm M q The application score on the e-th messaging type, q∈[1,Q], where Q represents the total number of message encryption algorithms in the instant messaging system;

[0029] P is a Q×β decision matrix, x qz is the element corresponding to the qth row and zth column in the decision matrix, which represents the value of the qth message encryption algorithm on the zth decision criterion. z represents the maximum value of the zth decision criterion in the decision matrix P, NIS zrepresents the minimum value of the zth decision criterion in the decision matrix P; z∈[1,β], β represents the number of decision criteria; the decision criteria are the quantified operating data of each message encryption algorithm, including algorithm performance, algorithm security level and algorithm compatibility range;

[0030] Through the above method, the performance, security, compatibility and other aspects of different encryption algorithms can be evaluated according to the characteristics of the message transmission type; the flexibility and scalability of the system are improved, and it can adapt to different scales and application requirements.

[0031] S213: According to the calculated recommendation coefficients for each message encryption algorithm in the instant messaging system, the recommendation coefficients are arranged in descending order, and the message encryption algorithm with the highest recommendation coefficient is selected to generate a recommendation strategy, and an implementation guide is provided, including algorithm configuration, key management, performance tuning, etc.; the generated encryption algorithm recommendation strategy corresponding to each message transmission type is archived, including the recommended message encryption algorithm and the implementation guide;

[0032] The most suitable message encryption algorithm is recommended for different message transmission types according to the real-time message transmission type of the two ends of the instant messaging system.

[0033] The specific implementation process of step S300 includes:

[0034] Step S301: According to the message encryption algorithm recommendation strategy in step S200, an encryption algorithm between each end is selected, and a key selection between the two parties is determined through a key exchange protocol between the clients. The key is used to encrypt the communication content between the two parties, and end-to-end encryption is achieved between the clients;

[0035] Step S302: Design of the key distribution mechanism, specifically including:

[0036] S302-1: Generate corresponding public and private keys according to the user's session identifier and key selection, for encryption and decryption of communication messages; encrypt and store the keys to prevent unauthorized access, store the private key in the user's device, and the public key can be made public;

[0037] S302-2: Use TLS or SSL to transmit the key, and exchange the key between the communicating parties through the key exchange protocol;

[0038] S302-3: When the algorithm recommended by the user's encryption algorithm recommendation strategy changes, the user's session key is updated; when the user's key usage times or the amount of interaction data reaches the preset threshold Ω in the database, the key is updated to ensure the security and timeliness of the key; when the key is updated, the previous key stops the encryption and decryption operations of the instant message, and the key of the communication object is synchronously updated through the configuration file or key management protocol.

[0039] The specific implementation process of step S400 includes:

[0040] Step S401: Processing instant messages of users at each end of the instant messaging system, including message encryption and message decryption; encrypting the instant messages sent by users to ensure that the message content is not accessed by unauthorized persons during transmission. When users receive instant messages, they use the same key to decrypt the encrypted messages, and the decrypted messages can be viewed and processed by users.

[0041] Step S402: Monitor the transmission status of the instant messaging system in real time, collect the instant message transmission related elements of each communication line in the instant messaging system, including message content, sending time, receiving time, key usage information, key update frequency, encryption and decryption status; calculate the transmission stability D of any element in any communication line according to the following formula v , D v ∈D={D1,D2,...,D7};D1,D2,...,D7 correspond to message content, sending time, receiving time, key usage information, key update frequency, and stability of encryption and decryption status respectively;

[0042]

[0043] Among them, D v ∈D, v=1, 2,...,7; g v represents the average value of the vth IM transmission related element in the communication line used by the user in the monitoring sample, μ represents the expected average value under the null hypothesis, J represents the number of samples monitored in real time; m represents the number of communication lines currently occupied in the IM system, h represents the number of samples monitored in real time, and θ represents the quantized value of the vth instant message transmission related element in the θth communication line, It represents the average value of the quantized value of the vth instant message transmission related element in all communication lines; δ represents the correction factor, which is preset in the database by relevant personnel;

[0044] When the calculated transmission stability of the communication line D v Beyond the preset stability range [d v1 , d v2 ], it is determined that the vth factor of the current communication line is abnormal. When an abnormal factor is detected, the early warning mechanism is triggered to send an alarm to the client; where d v1 Indicates the lower limit of transmission stability, d v2 Indicates the upper limit of transmission stability;

[0045] By monitoring the communication lines in the system, it is possible to ensure that the communication lines meet the needs of instant communication, detect signs before problems occur, and ensure the stability and reliability of the communication lines.

[0046] At the same time, it can help understand user needs and behaviors, predict future user usage needs based on the usage of communication lines, optimize resource allocation, and ensure that communication lines can handle the expected load to provide a better user experience.

[0047] Step S403: Use the key distribution mechanism to update the selection of session keys, formulate response measures, and record the logs of the anomaly detection and early warning process to facilitate subsequent auditing and analysis.

[0048] Monitoring the end-to-end transmission security of instant messaging systems can reduce the risk of user data leakage, avoid malicious incidents such as communication content being monitored, deleted or tampered with, and attacked, and improve the security of instant messaging.

[0049] A multi-factor authentication instant message processing system, the system comprising: a user authentication module, a communication type judgment module, a key management module, an instant message processing module and an instant communication monitoring module;

[0050] The user authentication module is used to obtain the user identity data of each terminal of the instant messaging system, and generate the corresponding identity characteristics of each user according to the obtained user information;

[0051] The communication type determination module is used to analyze the message transmission type between any two ports according to the user feature set of each end user of the instant messaging system, and output a tag information set for each port according to the analysis result;

[0052] The key management module is used to analyze the message encryption algorithm in the server of the instant messaging system according to the tag information set of each port, and generate a recommended strategy for the message encryption algorithm of each port of the current instant messaging system;

[0053] The instant message processing module is used to process the instant messages of each end of the instant messaging system according to the communication type judgment module and the key management module, and the processing of the instant messages includes encryption and decryption of the instant messages;

[0054] The instant messaging monitoring module is used to monitor the instant messaging transmission between the terminals of the communication system, and determine whether there are abnormal factors in the current instant messaging system based on the monitoring data. If there are abnormal factors, an early warning prompt is issued;

[0055] The output end of the user authentication module is connected to the input end of the communication type judgment module, the output end of the communication type judgment module is connected to the input end of the key management module, and the output end of the key management module is connected to the input end of the instant message processing module and the instant communication monitoring module.

[0056] The user authentication module includes a login verification unit, a multi-element authentication unit and a user feature set generation unit;

[0057] The login verification unit is used to verify the identity of users at each end of the instant messaging system, and completes the login verification by comparing the account and password submitted by the user through the server;

[0058] The multi-element authentication unit is used to collect relevant data of users who have successfully passed the login verification, and complete the determination of the user's identity by verifying multiple factors;

[0059] The user feature set generation unit is used to integrate the user-related data collected by the multi-element authentication unit to generate a corresponding user feature set for each end of the instant messaging system. The user feature set is denoted as UF i ={F1, F2, ..., F n}, where UF i represents the user feature set generated by any user at any end of the instant messaging system, i represents the user identifier in the instant messaging system, which is used to distinguish different user feature sets, F1, F2, ..., F n Represent the 1st, 2nd, ..., nth user features respectively.

[0060] The communication type determination module includes a user feature set processing unit and a communication type determination unit;

[0061] The user feature set processing unit is used to process the acquired user feature set, and for the two users at both ends of the communication, the historical interaction data between the two users is processed and incorporated into their user feature sets for integration to generate a feature matrix R ab ';

[0062] The communication type identification unit is used to convert the feature matrix R of the users at both ends of the communication ab 'Input the message transmission type judgment model and judge the current communication type according to the model output result;

[0063] The key management module includes an encryption algorithm analysis unit, a key generation unit and a key update unit;

[0064] The encryption algorithm analysis unit is used to analyze the message encryption algorithm in the instant messaging system according to the user's current communication type, and generate a recommendation strategy for each end user by evaluating the recommendation coefficients of different message encryption algorithms in the current usage scenario;

[0065] The key generation unit is used to call the message encryption algorithm in the instant messaging system to generate a key according to the recommendation strategy of each end user, and distribute it to each client;

[0066] The key update unit is used to update the key of each client according to the user's session identifier and the change of the encryption algorithm recommendation strategy and the number of times the client's key is used or the amount of interactive data. When the key is updated, the previous key stops the encryption and decryption operations of the instant message, and the key of the communication object is synchronously updated through the configuration file or the key management protocol.

[0067] The instant message processing module includes a data acquisition unit, a data encryption unit and a data decryption unit; it can effectively process and protect communication data, ensuring the security of the system and user privacy;

[0068] The data collection unit is used to collect instant message data from the message queue, database and real-time communication protocol in the instant messaging system;

[0069] The data encryption unit is used to encrypt the collected instant message data according to the encryption algorithm selected by the users at both ends of the communication; the encryption process involves the use of an encryption key generated by a key distribution mechanism;

[0070] The data decryption unit is used to decrypt the encrypted instant message data received by the client according to the encryption algorithm selected by the users at both ends of the communication, and the decryption process involves using the same key to decrypt the data. The decrypted data will be stored in the local system.

[0071] The instant messaging monitoring module includes a data monitoring unit, a monitoring data analysis unit and an abnormal warning unit;

[0072] The data monitoring unit is used to monitor the data transmission between each end of the instant messaging system and obtain the user-related data and transmission-related data of each end;

[0073] The monitoring data analysis unit is used to analyze the data acquired by the data monitoring unit, and determine whether there are abnormal factors in the current communication line by calculating the transmission stability of the user's communication line;

[0074] The abnormal warning unit is used to issue a warning for abnormal factors in the instant messaging system according to the detection results of the monitoring data analysis unit, and record the abnormal detection and warning process to facilitate subsequent system optimization and upgrading.

[0075] Compared with the prior art, the beneficial effects achieved by the present invention are:

[0076] Through multi-factor authentication and key management, the security of the communication system is improved and the risk of unauthorized access is reduced; through multi-factor authentication and personalized encryption strategies, the user's sense of security is improved and the user experience is enhanced;

[0077] According to the user feature set and communication type, the appropriate encryption algorithm is recommended to implement personalized encryption strategy and improve encryption efficiency and security. The designed key distribution mechanism ensures the security of the key and realizes the regular update of the key, reducing the risk of key leakage.

[0078] By monitoring the transmission status of the communication system in real time, abnormal factors can be discovered and responded to in a timely manner, thus improving the stability and reliability of the system. When abnormal factors are detected, early warning prompts can be automatically issued to help administrators or users take timely measures to reduce potential losses.

[0079] For instant message processing between multi-end users, the present invention provides an instant message processing method and system with multi-factor authentication, designs the message processing strategy in the instant communication system, ensures the security and stability of end-to-end instant communication, takes into account the flexibility and scalability of the system, and can adapt to instant communication systems of different scales and needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0081] Figure 1 It is a schematic diagram of the module structure of an instant message processing system with multi-factor authentication of the present invention;

[0082] Figure 2 It is a schematic diagram of the steps of a multi-factor authentication instant message processing method of the present invention. DETAILED DESCRIPTION

[0083] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0084] See also Figure 1 - Figure 2 , the present invention provides a technical solution:

[0085] In the first embodiment: a multi-factor authentication instant message processing system is provided, the system comprising: a user authentication module, a communication type determination module, a key management module, an instant message processing module and an instant communication monitoring module;

[0086] The user authentication module is used to obtain the user identity data of each terminal of the instant messaging system and generate the corresponding identity characteristics of each user according to the obtained user information; it includes a login verification unit, a multi-element authentication unit and a user characteristic set generation unit;

[0087] Among them, the login verification unit is used to verify the user identity of each end of the instant messaging system, and the login verification is completed by comparing the account and password submitted by the user through the server; the multi-element authentication unit is used to collect relevant data of users who have successfully passed the login verification, and complete the judgment of the user identity by verifying multiple factors; the user feature set generation unit is used to integrate the user-related data collected by the multi-element authentication unit to generate the corresponding user feature set of each end of the instant messaging system, and the user feature set is recorded as UF i ={F1, F2, ..., F n}, where UF i represents the user feature set generated by any user at any end of the instant messaging system, i represents the user identifier in the instant messaging system, which is used to distinguish different user feature sets, F1, F2, ..., F n Represent the 1st, 2nd, ..., nth user features respectively.

[0088] The communication type determination module is used to analyze the message transmission type between any two ports according to the user feature set of each end user of the instant messaging system, and output the tag information set for each port according to the analysis result; it includes a user feature set processing unit and a communication type determination unit;

[0089] The user feature set processing unit is used to process the acquired user feature set. For the two users at both ends of the communication, the historical interaction data between the two users is processed and incorporated into their user feature sets for integration to generate a feature matrix R ab '; The communication type identification unit is used to identify the feature matrix R of the users at both ends of the communication ab 'Input the message transmission type judgment model and judge the current communication type according to the model output result;

[0090] The key management module is used to analyze the message encryption algorithm in the server of the instant messaging system according to the tag information set of each port, and generate a recommended strategy for the message encryption algorithm of each port of the current instant messaging system; it includes an encryption algorithm analysis unit, a key generation unit and a key update unit;

[0091] Among them, the encryption algorithm analysis unit is used to analyze the message encryption algorithm in the instant messaging system according to the user's current communication type, and generate a recommended strategy for each end user by evaluating the recommendation coefficients of different message encryption algorithms in the current usage scenario; the key generation unit is used to call the message encryption algorithm in the instant messaging system to generate a key according to the recommended strategy of each end user, and distribute it to each client; the key update unit is used to update the key of each client according to the user's session identifier and the change of the encryption algorithm recommended strategy and the number of times the client uses the key or the amount of interactive data. When the key is updated, the previous key stops the encryption and decryption operations of the instant message, and the key of the communication object is synchronously updated through the configuration file or the key management protocol.

[0092] The instant message processing module is used to process the instant messages of each end of the instant messaging system according to the communication type judgment module and the key management module, wherein the processing of the instant messages includes encryption and decryption of the instant messages; it includes a data collection unit, a data encryption unit and a data decryption unit; it can effectively process and protect the communication data, and ensure the security of the system and the privacy of users;

[0093] The data collection unit is used to collect instant message data from the message queue, database and real-time communication protocol in the instant messaging system; the data encryption unit is used to encrypt the collected instant message data according to the encryption algorithm selected by the users at both ends of the communication; the encryption process involves the use of encryption keys generated by the key distribution mechanism; the data decryption unit is used to decrypt the encrypted instant message data received by the client according to the encryption algorithm selected by the users at both ends of the communication, and the decryption process involves decrypting the data using the same key. The decrypted data will be stored in the local system.

[0094] The instant messaging monitoring module is used to monitor the instant messaging transmission between the terminals of the communication system, and determine whether there are abnormal factors in the current instant messaging system based on the monitoring data. If there are abnormal factors, an early warning prompt is issued; it includes a data monitoring unit, a monitoring data analysis unit and an abnormal warning unit;

[0095] Among them, the data monitoring unit is used to monitor the data transmission between the various ends of the instant messaging system, and obtain user-related data and transmission-related data of each end; the monitoring data analysis unit is used to analyze the data obtained by the data monitoring unit, and determine whether there are abnormal factors in the current communication line by calculating the transmission stability of the user's communication line; the abnormal alarm unit is used to issue an alarm for abnormal factors in the instant messaging system based on the detection results of the monitoring data analysis unit, and record the abnormal detection and warning process to facilitate subsequent system optimization and upgrades.

[0096] In an instant messaging system based on an end-to-end secure encryption algorithm, the system functions are modularly designed, and optionally, the secure storage of local data on the terminal is guaranteed to ensure that the user's data and keys are securely stored on the local device.

[0097] In the second embodiment, a multi-factor authentication instant message processing method is provided, the method comprising the following steps:

[0098] Step S100: Login verification is performed on the user identity of each end of the instant messaging system. When the user identity successfully passes the login verification, the user characteristics of each end of the communication system are obtained through multi-factor authentication to generate a corresponding user characteristic set of each end of the communication system;

[0099] Step S101: When a user logs into the instant messaging system, the user identity of each end of the instant messaging system is verified, and the login verification includes verifying the account number and login password input by the user; the user's account number and login password are sent to the server through the communication protocol, and after the server receives the account number and login password, it searches whether the account exists. If the account exists, the server compares the login password corresponding to the account stored in the database with the received login password. If the two login passwords match, the user's identity authentication is successful, otherwise, the verification fails; the server feeds back the verification result to the client, and the client decides whether to allow the user to log in based on the verification result.

[0100] The login verification may be the user's account identity authentication for logging into the system through a user name and password, or the user's login verification through the device currently used, so as to ensure the user's identity is legitimate;

[0101] Step S102: When the user identity successfully passes the login verification, the server of the instant messaging system will assign a session identifier to the user and obtain the user characteristics of each end of the communication system through multi-factor authentication. The user proves his identity by carrying the session identifier during the communication process; when the instant messaging system obtains permission to collect user data, it collects characteristic information of the currently logged-in user, such as device information, geographic location, login time, audio data, etc.; this information can enable the system to further confirm the user's identity data and communication status, so that the system can use this information to process the instant messages sent and received by the user accordingly, while ensuring the security of instant messaging, improving the user's instant messaging experience.

[0102] Step S103: Integrate the acquired user feature information through the instant messaging system to generate the corresponding user feature set of each end of the instant messaging system. When integrating the acquired user feature information, extracting the required features includes data cleaning, noise removal, feature selection and feature conversion, etc. Based on the extracted features, a feature set is established for each user. The user feature set generated for the i-th user is denoted as UF i ={F1, F2, ..., F n}, where F1, F2, ..., F n Represent the 1st, 2nd, ..., nth user features respectively. This feature set can be used for subsequent user behavior analysis and security monitoring;

[0103] Optionally, the user feature set may be a vector, a matrix or a more complex data structure, which contains various feature information of the user.

[0104] Optionally, the multiple factors in the above-mentioned user identity verification through multiple factors may be: device fingerprint, communication network, log data, hardware token such as USB security key and other factors;

[0105] Optionally, the required factors for user identity authentication can be customized according to the actual usage scenario, and the user identity can be verified through multi-factor comparison, which expands the scope of use of the system and meets the usage of multiple scenarios. At the same time, it improves the accuracy of user identity authentication in different usage scenarios and ensures the data security of users' instant communications.

[0106] Step S200: judging the message transmission type of the current communication according to the user feature set of each end of the instant messaging system, analyzing the message encryption algorithm in the instant messaging system according to the instant messaging type, and obtaining a message encryption algorithm recommendation strategy in the instant messaging system;

[0107] S201: Collect the user feature sets of each end of the instant messaging system, and form a feature matrix based on the user feature sets of each end of the instant messaging system, which is recorded as R ij , where j represents the user number, and i≠j, the row number of the feature matrix corresponds to the user's code number, and the column number of the feature matrix corresponds to the code number of the user's feature. Then the user feature set UF i Mapped to the i-th row of the feature matrix;

[0108] S202: Obtain the historical interaction data between any two users. The historical interaction data may be the message sending time, message content, message type, etc. For example, the communication content may be text, pictures, videos, files, audio or other multimedia types. The historical interaction data of the two users in communication are processed, and the historical interaction features between the two users are extracted through standardization. The historical interaction features between the two users are incorporated into the corresponding feature matrix, which is recorded as R ij ', in order to understand the relationship between users, communication purpose, communication frequency and other information; the combined feature matrix R ij 'Input the message transmission type judgment model to judge the message transmission type of the current communication;

[0109] Among them, the message transmission type judgment model is a multi-classification task model based on a machine learning model. A neural network is selected to construct the model, which specifically includes the following steps:

[0110] S202-1: Extract historical data from the instant messaging system, collect actual interaction data of users when using the instant messaging system, such as sent and received messages, interaction timestamps, etc., clean the collected actual interaction data, remove noise and outliers in the data, and ensure the quality and integrity of the data so that the model can learn effective features;

[0111] S202-2: Define the number of layers of the model, the number of neurons in each layer, and the activation function, and select cross entropy loss and gradient descent as the loss function and optimization algorithm;

[0112] Define the message transmission types of instant messaging, which are divided into primary communication, secondary communication, and tertiary communication. Label the corresponding message transmission types on the cleaned data to generate a training set for the model.

[0113] Exemplarily, the model input layer has 5 neurons, the hidden layer contains 100 neurons, uses the ReLU activation function, and the output layer has 3 neurons, each neuron corresponds to a level of message passing type.

[0114] For example, level 1 communication refers to the most basic form of instant communication, including text messages and voice messages, which are mainly used for general communication; level 2 communication refers to a more complex form of instant communication, which may include the transmission of pictures, videos and other multimedia types of messages; level 3 communication refers to the highest level of instant communication, which may include file sharing, real-time voice or video calls, screen sharing and location sharing, etc., which involve user privacy and important data;

[0115] S202-3: Use the training set to train the message passing type judgment model, adjust the model parameters to minimize the loss function; monitor the training process, such as accuracy, loss function value, and performance on the validation set, to avoid overfitting;

[0116] Optionally, it also includes S202-4: using the test set to evaluate the generalization ability of the model to ensure that the model can accurately identify unseen communication types; deploying the trained model to the instant messaging system to achieve real-time discrimination of message transmission types. And continuously optimizing the model and feature extraction method as user interaction data accumulates and system requirements change.

[0117] S203: monitor the user behaviors of each end of the instant messaging system in real time, process the relevant monitored data through steps S201 and S202, and input them into the message transmission type judgment model, and mark and update the message transmission type of the current users of each end according to the output results of the message transmission type judgment model;

[0118] In step S200, analyzing the message encryption algorithm in the instant messaging system and obtaining the message encryption algorithm recommendation strategy in the instant messaging system includes the following steps:

[0119] S211: Acquire the session identifiers of each user in the instant messaging system, and collect the message transmission type tags linked to the session identifiers of each user; it should be understood that each message transmission type has differences in transmission speed requirements, data volume, security requirements, resource usage, etc.; obtain the operation data of each message encryption algorithm in the instant messaging system, including algorithm performance, algorithm security level and algorithm compatibility range;

[0120] Optionally, the message encryption algorithm in the instant messaging system includes symmetric encryption algorithms such as AES, 3DES, asymmetric encryption algorithms such as RSA, ECC, hash functions such as SHA-256, digital signature algorithms such as ECDSA, etc.

[0121] Normalize or standardize the operational data of the message encryption algorithm in the instant messaging system to facilitate comparison in the evaluation model; this may include processing the algorithm's execution speed, resource consumption, key length, etc.

[0122] Optionally, the algorithm's performance data can be normalized using the min-max method to scale the algorithm's encryption and decryption speeds to the range of [0,1]; the algorithm's CPU and memory usage can be quantified to unit variance using Z-Score normalization.

[0123] Optionally, for the algorithm's security level, use expert evaluation or standardized scoring methods to convert the security level of each algorithm into a specific value; for the algorithm's compatibility range, use a range normalization method to convert the compatibility range of each algorithm into a value similar to the security level.

[0124] S212: Construct an encryption algorithm evaluation model to evaluate the message encryption algorithm in the instant messaging system. Input the operation data of each message encryption algorithm quantified in S211 into the encryption algorithm evaluation model. Combined with the instant messaging type of users at both ends, calculate the recommended coefficient of each message encryption algorithm in the instant messaging system according to the following formula:

[0125]

[0126]

[0127] Where Tq represents the recommendation coefficient of the qth message encryption algorithm in the message transmission type of the current client, is the weight of the e-th message passing type, e∈[1,E], S eq is the message encryption algorithm M q The application score on the e-th messaging type, q∈[1,Q], where Q represents the total number of message encryption algorithms in the instant messaging system;

[0128] P is a Q×β decision matrix, x qz is the element corresponding to the qth row and zth column in the decision matrix, which represents the value of the qth message encryption algorithm on the zth decision criterion. z represents the maximum value of the zth decision criterion in the decision matrix P, NIS z represents the minimum value of the zth decision criterion in the decision matrix P; z∈[1,β], β represents the number of decision criteria; the decision criteria are the quantified operating data of each message encryption algorithm; including algorithm performance, algorithm security level and algorithm compatibility range; illustratively:

[0129]

[0130] Through the above methods, it is possible to evaluate the performance, security, compatibility and other aspects of different encryption algorithms according to the characteristics of the message transmission type;

[0131] Optionally, the decision criteria in the above model can be encryption and decryption speed after quantification processing, resource consumption, cracking difficulty, algorithm complexity, and interoperability with the user's current system and communication protocol;

[0132] S213: According to the calculated recommendation coefficients for each message encryption algorithm in the instant messaging system, the recommendation coefficients are arranged in descending order, and the message encryption algorithm with the highest recommendation coefficient is selected to generate a recommendation strategy, and an implementation guide is provided, including algorithm configuration, key management, performance tuning, etc.; the generated encryption algorithm recommendation strategy corresponding to each message transmission type is archived, including the recommended message encryption algorithm and the implementation guide; the recommended encryption algorithm is verified in the actual communication system, and its performance in actual application is evaluated;

[0133] Recommend the most suitable message encryption algorithm for different message transmission types according to the real-time message transmission type of the two ends of the instant messaging system. Compare the message transmission protocol and system implementation architecture of the current mainstream instant messaging system with the security encryption algorithms of traditional instant messaging encryption such as DES, RC4 and RSA, and analyze the advantages and disadvantages of various encryption algorithms in actual use in combination with the end-to-end security protocol SCIMP. For example, the RSA algorithm requires a lot of calculations, and its main advantage is that it is relatively fast, but to obtain higher encryption strength, a very long key is required.

[0134] Optionally, develop a maintenance and update plan, including regular evaluation of the performance and security of recommended encryption algorithms. The plan should include the frequency and update method of regular updates of recommended strategies, adjust recommended strategies based on verification results, and optimize the selection of encryption algorithms.

[0135] Step S300: Construct an end-to-end secure transmission channel according to the recommended strategy of the message encryption algorithm in the instant messaging system, and design the key distribution mechanism of the instant messaging system; ensure the security of the key during the transmission process, while taking into account the regular update of the key, and construct a security strategy for message transmission in the instant messaging system.

[0136] Step S301: According to the message encryption algorithm recommendation strategy in step S200, an encryption algorithm between each end is selected, and a key selection between the two parties is determined through a key exchange protocol between the clients. The key is used to encrypt the communication content between the two parties, and end-to-end encryption is achieved between the clients;

[0137] Step S302: Design of the key distribution mechanism, specifically including:

[0138] S302-1: Generate corresponding public and private keys according to the user's session identifier and key selection, for encryption and decryption of communication messages; encrypt and store the keys to prevent unauthorized access, store the private key in the user's device, and the public key can be made public;

[0139] Exemplarily, a secure random number generator is used to generate keys, ensuring that the length and complexity of the keys meet security standards, a hardware security module HSM or a trusted execution environment TEE is used to store the keys, ensuring that the keys are stored in a protected file system, or an encrypted database is used to store the keys.

[0140] S302-2: Use TLS or SSL to transmit the key, and exchange the key between the communicating parties through Diffie-Hellman;

[0141] S302-3: When the algorithm recommended by the user's encryption algorithm recommendation strategy changes, the user's session key is updated; when the user's key usage times or the amount of interaction data reaches the preset threshold Ω in the database, the key is updated to ensure the security and timeliness of the key; when the key is updated, the previous key stops the encryption and decryption operations of the instant message, and the key of the communication object is synchronously updated through the configuration file or key management protocol.

[0142] Step S400: Processing the instant messages of users at each end of the communication system according to the key distribution mechanism of the instant communication system designed in step S300, monitoring the transmission of the instant communication system, and analyzing and judging whether there are abnormal factors in the current communication system. If there are abnormal factors, issuing an early warning prompt;

[0143] Step S401: Processing instant messages of users at each end of the instant messaging system, including message encryption and message decryption; encrypting the instant messages sent by users to ensure that the message content is not accessed by unauthorized persons during transmission. When users receive instant messages, the encrypted messages are decrypted using the same key. The decrypted messages can be viewed and processed by users. When users create communications, a user key pair is generated through the key distribution mechanism in step S302, and secure storage of the keys is ensured to achieve end-to-end encryption.

[0144] Step S402: Monitor the transmission status of the instant messaging system in real time, collect the instant message transmission related elements of each communication line in the instant messaging system, including message content, sending time, receiving time, key usage information, key update frequency, encryption and decryption status; calculate the transmission stability D of any element in any communication line according to the following formula v , D v ∈D={D1,D2,...,D7};D1,D2,...,D7 correspond to message content, sending time, receiving time, key usage information, key update frequency, and stability of encryption and decryption status respectively;

[0145]

[0146] Among them, D v ∈D, v=1, 2,...,7; g v represents the average value of the vth IM transmission related element in the communication line used by the user in the monitoring sample, μ represents the expected average value under the null hypothesis, J represents the number of samples monitored in real time; m represents the number of communication lines currently occupied in the IM system, h represents the number of samples monitored in real time, and θ represents the quantized value of the vth instant message transmission related element in the θth communication line, It represents the average value of the quantized value of the vth instant message transmission related element in all communication lines; δ represents the correction factor, which is preset in the database by relevant personnel;

[0147] When the calculated transmission stability of the communication line D v Beyond the preset stability range [d v1 , d v2 ], it is determined that the vth factor of the current communication line is abnormal. When an abnormal factor is detected, the early warning mechanism is triggered to send an alarm to the client; where d v1 Indicates the lower limit of transmission stability, d v2 Indicates the upper limit of transmission stability; can be sent to administrators or users via email, SMS, instant messaging or other communication methods;

[0148] Step S403: Use the key distribution mechanism to update the selection of session keys and formulate response measures, including stopping abnormal communication, notifying relevant parties, and restoring communication; record the log of abnormal detection and early warning process for subsequent audit and analysis.

[0149] Monitoring the end-to-end transmission security of instant messaging systems can reduce the risk of user data leakage, avoid malicious incidents such as communication content being monitored, deleted or tampered with, or attacked, and improve the security of instant messaging;

[0150] Exemplarily, the channel of the instant messaging message to be sent is checked to determine whether it matches the interface of the other end of the instant messaging system. If it matches, the sending operation is started and the transmission route is opened. Otherwise, it is not sent and the instant messaging user is warned. At the same time, the network delay of the instant messaging data in transmission is monitored to ensure that both parties of the communication can receive each other's messages in time.

[0151] Monitor the integrity of monitoring data during transmission, verify whether there is loss or damage, and ensure the integrity of data;

[0152] Monitor the encryption status of monitoring data during transmission to ensure data security and confidentiality;

[0153] Monitor the real-time behavior of users at all ends of the instant messaging system to ensure that the communication between users complies with regulations and does not violate laws and regulations. Optionally, analyze the user's identity based on the monitored user's actual behavior to verify whether the identity of the user currently conducting instant messaging is credible;

[0154] Optionally, monitor whether there are security vulnerabilities in the instant messaging system, and promptly discover and repair them to prevent data leakage or attacks;

[0155] Optionally, the transmission speed of the monitoring data in the instant messaging system is monitored to ensure the real-time and smoothness of the instant messages; at the same time, the traffic conditions during the data transmission process are monitored to ensure the stability and performance of the instant messaging system.

[0156] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0157] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A multi-factor authentication instant message processing method, characterized in that: The method comprises the following steps: Step S100: Login verification is performed on the user identity of each end of the instant messaging system. When the user identity successfully passes the login verification, the user characteristics of each end of the communication system are obtained through multi-factor authentication to generate a corresponding user characteristic set of each end of the communication system; Step S200: judging the message transmission type of the current communication according to the user feature set of each end of the instant messaging system, analyzing the message encryption algorithm in the instant messaging system according to the instant messaging type, and obtaining a message encryption algorithm recommendation strategy in the instant messaging system; Step S300: construct an end-to-end secure transmission channel according to the message encryption algorithm recommendation strategy in the instant messaging system, and design a key distribution mechanism for the instant messaging system; Step S400: Process the instant messages of users at each end of the communication system according to the key distribution mechanism of the instant communication system designed in step S300, monitor the transmission of the instant communication system, and analyze and determine whether there are abnormal factors in the current communication system. If there are abnormal factors, issue an early warning prompt.

2. The method for processing instant messages with multi-factor authentication according to claim 1, characterized in that: The specific implementation process of step S100 includes: Step S101: When a user logs into the instant messaging system, the user identity of each end of the instant messaging system is verified, and the login verification includes verifying the account number and login password input by the user; Step S102: When the user identity successfully passes the login verification, the server of the instant messaging system will assign a session identifier to the user and obtain the user characteristics of each end of the communication system through multi-factor authentication. When the instant messaging system obtains permission to collect user data, it collects the characteristic information of the currently logged-in user; Step S103: Integrate the acquired user feature information through the instant messaging system to generate corresponding user feature sets for each end of the instant messaging system, and record the user feature set generated corresponding to the i-th user as UF i ={F1, F2, ..., F n }, where F1, F2, ..., F n Represent the 1st, 2nd, ..., nth user features respectively.

3. The method for processing instant messages with multi-factor authentication according to claim 2, characterized in that: In step S200, judging the message delivery type of the current communication according to the user feature set of each terminal of the instant messaging system includes: S201: Collect user feature sets at each end of the instant messaging system, and combine the user feature sets at both ends of the communication into a feature matrix based on the user feature sets at each end of the instant messaging system, denoted as R ij , where j represents the user number, and i≠j, the row number of the feature matrix corresponds to the user's code number, and the column number of the feature matrix corresponds to the code number of the user's feature. Then the user feature set UF i Mapped to the i-th row of the feature matrix; S202: Obtain the historical interaction data between any two users, process the historical interaction data of the two users in communication, extract the historical interaction features between the two users through standardization, and incorporate the historical interaction features between the two users into the corresponding feature matrix, recorded as R ij ', the merged feature matrix R ij 'Input the message transmission type judgment model to judge the message transmission type of the current communication; S203: monitor the user behaviors of each end of the instant messaging system in real time, process the relevant monitored data through steps S201 and S202, and input them into the message transmission type judgment model, and mark and update the message transmission type of the current users of each end according to the output results of the message transmission type judgment model; The step S200 analyzes the message encryption algorithm in the instant messaging system, and obtains the recommended strategy for the message encryption algorithm in the instant messaging system, including the following steps: S211: Acquire the session identifiers of each user in the instant messaging system, collect the message transmission type tags linked to the session identifiers of each user; acquire the operation data of each message encryption algorithm in the instant messaging system; normalize or standardize the operation data of the message encryption algorithm in the instant messaging system; S212: Construct an encryption algorithm evaluation model, input the operation data of each message encryption algorithm quantified in S211 into the encryption algorithm evaluation model, and calculate the recommended coefficient of the message encryption algorithm in the instant messaging system according to the following formula in combination with the instant messaging type of the users at both ends: Where Tq represents the recommendation coefficient of the qth message encryption algorithm in the message transmission type of the current client, is the weight of the e-th message passing type, e∈[1,E], S eq is the message encryption algorithm M q The application score on the e-th messaging type, q∈[1,Q], where Q represents the total number of message encryption algorithms in the instant messaging system; P is a Q×β decision matrix, x qz is the element corresponding to the qth row and zth column in the decision matrix, which represents the value of the qth message encryption algorithm on the zth decision criterion. z represents the maximum value of the zth decision criterion in the decision matrix P, NIS z represents the minimum value of the zth decision criterion in the decision matrix P; z∈[1,β], β represents the number of decision criteria; the decision criteria are the quantized running data of each message encryption algorithm; S213: According to the calculated recommendation coefficients for each message encryption algorithm in the instant messaging system, the recommendation coefficients are arranged in descending order, the message encryption algorithm with the highest recommendation coefficient is selected to generate a recommendation strategy, and an implementation guide is provided; the generated encryption algorithm recommendation strategy corresponding to each message transmission type is archived.

4. The method for processing instant messages with multi-factor authentication according to claim 3, characterized in that: The specific implementation process of step S300 includes: Step S301: According to the message encryption algorithm recommendation strategy in step S200, an encryption algorithm between each end is selected, and the key selection of both parties is determined through a key exchange protocol between the clients; Step S302: Design of the key distribution mechanism, specifically including: S302-1: Generate corresponding public key and private key according to the user's session identifier and key selection, encrypt and store the key, and store the private key in the user's device; S302-2: Use TLS or SSL to transmit the key, and exchange the key between the communicating parties through the key exchange protocol; S302-3: When the algorithm recommended by the user's encryption algorithm recommendation strategy changes, the user's session key is updated; when the user's key usage times or the amount of interaction data reaches the preset threshold Ω in the database, the key is updated; when the key is updated, the previous key stops the encryption and decryption operations of the instant message, and the key of the communication object is synchronously updated through the configuration file or key management protocol.

5. The method for processing instant messages with multi-factor authentication according to claim 1, characterized in that: The specific implementation process of step S400 includes: Step S401: Processing instant messages of users at each end of the instant messaging system, including message encryption and message decryption; encrypting the instant message sent by the user, and when the user receives the instant message, using the same key to decrypt the encrypted message; Step S402: Monitor the transmission status of the instant messaging system in real time, collect the instant message transmission related elements of each communication line in the instant messaging system, including message content, sending time, receiving time, key usage information, key update frequency, encryption and decryption status; calculate the transmission stability D of any element in any communication line according to the following formula v , D v ∈D={D1,D2,...,D7};D1,D2,...,D7 correspond to message content, sending time, receiving time, key usage information, key update frequency, and stability of encryption and decryption status respectively; Among them, D v ∈D, v=1, 2,...,7; g v represents the average value of the vth IM transmission related element in the communication line used by the user in the monitoring sample, μ represents the expected average value under the null hypothesis, J represents the number of samples monitored in real time; m represents the number of communication lines currently occupied in the IM system, h represents the number of samples monitored in real time, and θ represents the quantized value of the vth instant message transmission related element in the θth communication line, It represents the average value of the quantized value of the vth instant message transmission related element in all communication lines; δ represents the correction factor, which is preset in the database by relevant personnel; When the calculated transmission stability of the communication line D v Beyond the preset stability range [d v1 , d v2 ], it is determined that the vth factor of the current communication line is abnormal. When an abnormal factor is detected, the early warning mechanism is triggered and an alarm is sent to the client; where d v1 Indicates the lower limit of transmission stability, d v2 Indicates the upper limit of transmission stability; Step S403: Use the key distribution mechanism to update the selection of the session key, formulate response measures, and record the log of the anomaly detection and early warning process.

6. A multi-factor authentication instant message processing system, characterized in that: The system includes: a user authentication module, a communication type determination module, a key management module, an instant message processing module and an instant communication monitoring module; The user authentication module is used to obtain the user identity data of each terminal of the instant messaging system, and generate the corresponding identity characteristics of each user according to the obtained user information; The communication type determination module is used to analyze the message transmission type between any two ports according to the user feature set of each end user of the instant messaging system, and output a tag information set for each port according to the analysis result; The key management module is used to analyze the message encryption algorithm in the server of the instant messaging system according to the tag information set of each port, and generate a recommended strategy for the message encryption algorithm of each port of the current instant messaging system; The instant message processing module is used to process the instant messages of each end of the instant messaging system according to the communication type judgment module and the key management module; The instant messaging monitoring module is used to monitor the instant messaging transmission between the terminals of the communication system, and determine whether there are abnormal factors in the current instant messaging system based on the monitoring data. If there are abnormal factors, an early warning prompt is issued; The output end of the user authentication module is connected to the input end of the communication type judgment module, the output end of the communication type judgment module is connected to the input end of the key management module, and the output end of the key management module is connected to the input end of the instant message processing module and the instant communication monitoring module.

7. The instant message processing system with multi-factor authentication according to claim 6, characterized in that: The user authentication module includes a login verification unit, a multi-element authentication unit and a user feature set generation unit; The login verification unit is used to verify the identity of users at each end of the instant messaging system, and completes the login verification by comparing the account and password submitted by the user through the server; The multi-element authentication unit is used to collect relevant data of users who have successfully passed the login verification, and complete the determination of the user's identity by verifying multiple factors; The user feature set generation unit is used to integrate the user-related data collected by the multi-element authentication unit to generate a corresponding user feature set for each end of the instant messaging system. The user feature set is denoted as UF i ={F1, F2, ..., F n }, where UF i represents the user feature set generated by any user at any end of the instant messaging system, i represents the user identifier in the instant messaging system, F1, F2, ..., F n Represent the 1st, 2nd, ..., nth user features respectively.

8. The instant message processing system with multi-factor authentication according to claim 6, characterized in that: The communication type determination module includes a user feature set processing unit and a communication type determination unit; The user feature set processing unit is used to process the acquired user feature set, and for the two users at both ends of the communication, the historical interaction data between the two users is processed and incorporated into their user feature sets for integration to generate a feature matrix R ab '; The communication type identification unit is used to convert the feature matrix R of the users at both ends of the communication ab 'Input the message transmission type judgment model and judge the current communication type according to the model output result; The key management module includes an encryption algorithm analysis unit, a key generation unit and a key update unit; The encryption algorithm analysis unit is used to analyze the message encryption algorithm in the instant messaging system according to the user's current communication type, and generate a recommendation strategy for each end user by evaluating the recommendation coefficients of different message encryption algorithms in the current usage scenario; The key generation unit is used to call the message encryption algorithm in the instant messaging system to generate a key according to the recommendation strategy of each end user, and distribute it to each client; The key update unit is used to update the key of each client according to the user's session identifier and the change of the encryption algorithm recommendation strategy and the number of times the client's key is used or the amount of interactive data. When the key is updated, the previous key stops the encryption and decryption operations of the instant message, and the key of the communication object is synchronously updated through the configuration file or the key management protocol.

9. The instant message processing system with multi-factor authentication according to claim 6, characterized in that: The instant message processing module includes a data acquisition unit, a data encryption unit and a data decryption unit; The data collection unit is used to collect instant message data from the message queue, database and real-time communication protocol in the instant messaging system; The data encryption unit is used to encrypt the collected instant message data according to the encryption algorithm selected by the users at both ends of the communication; The data decryption unit is used to decrypt the encrypted instant message data received by the client according to the encryption algorithm selected by the users at both ends of the communication, and the decrypted data will be stored in the local system.

10. The instant message processing system with multi-factor authentication according to claim 6, characterized in that: The instant messaging monitoring module includes a data monitoring unit, a monitoring data analysis unit and an abnormal warning unit; The data monitoring unit is used to monitor the data transmission between each end of the instant messaging system and obtain the user-related data and transmission-related data of each end; The monitoring data analysis unit is used to analyze the data acquired by the data monitoring unit, and determine whether there are abnormal factors in the current communication line by calculating the transmission stability of the user's communication line; The abnormal warning unit is used to issue a warning for abnormal factors in the instant messaging system according to the detection results of the monitoring data analysis unit, and record the abnormal detection and warning process.

Citation Information

Cited By

  • Chat secure communication method and system based on dynamic key

    CN119299091A

  • Network submission method and system based on UKEY, and storage medium

    CN119945745A

  • A network reporting method, system and storage medium based on UKEY

    CN119945745B