A smart payment port encryption method and system
Through multi-modal biometric data fusion and adaptive encryption technology, combined with port traffic monitoring and data transmission error detection, the problem of conflicting security and efficiency in smart payment port encryption methods is solved, achieving higher payment data security and System stability.
Patent Information
- Application Number
- CN202410260659.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-07
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-07
AI Technical Summary
Existing smart payment port encryption methods lack real-time monitoring and anomaly detection mechanisms, are vulnerable to man-in-the-middle attacks and data tampering risks, and have conflicts in efficiency and security when processing different types of data. It is difficult to adapt to diverse payment data types, resulting in payment security Lower sex.
Use multi-modal biometric data fusion to generate standard data, perform port traffic monitoring and abnormal risk prediction, adaptively encrypt payment data, ensure data security through encrypted channels and data transmission error detection, and dynamically adjust security policies based on attack intensity assessment.
It improves the accuracy of user identity verification and the security of the payment system, reduces security risks, ensures the integrity and privacy of payment data, enhances the stability and reliability of the system, dynamically adapts to different attack threats, and provides payment system Flexible and effective security protection.
Smart Images

Figure CN118138312B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data encryption, and in particular to an intelligent payment port encryption method and system. Background Art
[0002] In the early days, the encryption of smart payment ports mainly used symmetric encryption algorithms, such as DES (Data Encryption Standard) and 3DES (Triple DES). These algorithms are simple and efficient, but due to the limitations of key management and security, they gradually exposed the risk of being vulnerable to man-in-the-middle attacks and password cracking. With the emergence of public key encryption technologies, such as RSA and DSA, the encryption of smart payment ports has entered a new stage. Public key encryption allows the sender and receiver of information to use different keys, which solves the problem of key distribution and management in symmetric encryption, and the security of smart payment ports has been greatly improved. With the development of the Internet, the Secure Sockets Layer (SSL) and its successor, Transport Layer Security (TLS), have become the mainstream of smart payment port encryption. SSL / TLS ensures the security of information during network transmission through mechanisms such as identity authentication, data integrity and encrypted transmission. Smart payment ports have been widely used in online payment, mobile payment and other fields. However, the current traditional intelligent payment port encryption method lacks real-time monitoring and anomaly detection mechanisms for port traffic, and is vulnerable to risks such as man-in-the-middle attacks and data tampering. At the same time, there is often a contradiction between efficiency and security when processing different types of data, and it is difficult to adapt to a variety of payment data types, resulting in lower payment security. Summary of the invention
[0003] Based on this, it is necessary to provide a smart payment port encryption method and system to solve at least one of the above technical problems.
[0004] To achieve the above object, a smart payment port encryption method is provided, the method comprising the following steps:
[0005] Step S1: obtaining user payment data; performing multimodal feature data fusion on the user payment data to generate multimodal biometric data; performing data preprocessing on the multimodal biometric data to generate standard multimodal biometric data;
[0006] Step S2: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; perform abnormal traffic risk prediction on the payment information port traffic monitoring data to generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with a preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; perform adaptive port data encryption on the suspicious payment transmission data to generate adaptive port encrypted data;
[0007] Step S3: Encrypt the sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data; construct an encryption channel for the payment sensitive information encrypted data to generate a port transmission encrypted channel; perform data transmission error detection on the port transmission encrypted channel to generate payment transmission port error check data;
[0008] Step S4: Evaluate the attack intensity of the payment transmission port error check data to obtain the attack intensity coefficient; match the payment transmission port error check data with the port security policy according to the attack intensity coefficient to generate smart payment port security policy matching data; monitor the smart payment port security policy matching data to generate a smart payment port encryption monitoring report.
[0009] The present invention can provide more comprehensive user feature information through multimodal fusion, thereby enhancing the accuracy and robustness of the biometric system. The use of multiple biometric features for fusion makes it more difficult for attackers to forge or impersonate identities, thereby improving the security of the payment system. Biometric technology can provide a more convenient payment method, reduce the steps of user inputting passwords, and thus improve the user experience. Timely monitoring and prediction of abnormal traffic can reduce the security risks faced by the payment system and protect user data and financial security. Real-time monitoring and prediction capabilities help to take timely measures to prevent potential security threats from damaging the system. Data encryption can effectively protect the privacy and sensitive information of users, enhance user trust and data security. By encrypting sensitive information of adaptive port encrypted data, the security of sensitive information (such as bank account number, password, etc.) in the payment data during transmission is ensured, and the risk of hackers or malicious users intercepting the transmission data and obtaining sensitive information is prevented. The construction of an encrypted channel further enhances the security of payment data transmission. The encrypted channel ensures that the data is not eavesdropped or tampered with during transmission. Only authorized parties can decrypt the data, ensuring end-to-end encrypted transmission. Data transmission error detection of the port transmission encryption channel helps to timely discover and correct errors that occur during the data transmission process, including but not limited to data loss, damage, etc., to ensure the integrity and accuracy of the payment data. Adjust the security strategy according to the real-time attack threat level, improve the intelligent security defense capability of the system, and dynamically adapt to different attack threats to provide more flexible and effective security protection for the system. Through real-time monitoring and report generation, the system can respond to potential threats and issue alarms in a timely manner to improve the security of the system. Through monitoring reports, the system can be continuously optimized and improved to continuously improve the security of the payment transmission port. Therefore, the present invention introduces error checking and attack intensity assessment at the data transmission level, and dynamically adjusts the security strategy according to the attack intensity, monitors and manages the payment port in real time, and improves the security and reliability of payment.
[0010] In this specification, a smart payment port encryption system is provided, which is used to execute the above-mentioned smart payment port encryption method. The smart payment port encryption system includes:
[0011] The data fusion module is used to obtain user payment data; perform multimodal feature data fusion on the user payment data to generate multimodal biometric data; perform data preprocessing on the multimodal biometric data to generate standard multimodal biometric data;
[0012] The attack identification module is used to upload the multimodal biometric data to the API for port traffic monitoring and generate payment information port traffic monitoring data; perform abnormal traffic risk prediction on the payment information port traffic monitoring data and generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with the preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; perform adaptive port data encryption on the suspicious payment transmission data to generate adaptive port encrypted data;
[0013] The channel encryption module is used to encrypt sensitive information of the adaptive port encryption data to generate payment sensitive information encrypted data; to construct an encryption channel for the payment sensitive information encrypted data to generate a port transmission encryption channel; to perform data transmission error detection on the port transmission encryption channel to generate payment transmission port error check data;
[0014] The intelligent monitoring module is used to evaluate the attack intensity of the payment transmission port error check data to obtain the attack intensity coefficient; match the port security policy of the payment transmission port error check data according to the attack intensity coefficient to generate intelligent payment port security policy matching data; monitor the intelligent payment port security policy matching data to generate an intelligent payment port encryption monitoring report.
[0015] The beneficial effect of the present invention is that by generating multimodal biometric data, different biometric features are combined to improve the accuracy of user identity authentication. By monitoring port traffic and predicting abnormal traffic risks, abnormal operations and potential attack behaviors can be discovered in time to ensure the security of payment information. Adaptive encryption is performed according to abnormal traffic risk prediction data to ensure the security and integrity of payment data during transmission. By building an encrypted channel and performing data transmission error detection, it is ensured that the data transmission process is not affected by interference or errors. Verification data and attack intensity evaluation improve the system's ability to identify and respond to errors and attacks, and enhance the stability and reliability of the system. Intelligent security strategy matching is performed according to the attack intensity coefficient, and the intelligent payment port is monitored in real time to timely discover and respond to security threats, thereby improving the intelligence and security of the system. Encrypting payment sensitive information avoids the risk of sensitive data being stolen or leaked during transmission. By matching verification data and intelligent security strategies, the possibility of errors and attacks during payment data transmission is reduced. Through multi-level data processing, encryption, monitoring and evaluation, the overall security and reliability of the payment system are improved, the risk of payment risks and data leakage is reduced, and timely detection and response to abnormal behaviors are achieved, providing a strong guarantee for the stable operation of the intelligent payment system. Therefore, the present invention improves the security and reliability of payment by introducing error checking and attack intensity assessment at the data transmission level, dynamically adjusting the security policy according to the attack intensity, and performing real-time monitoring and management of the payment port. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the steps of a smart payment port encryption method;
[0017] Figure 2 for Figure 1 Detailed implementation steps of step S2 in the flowchart;
[0018] Figure 3 for Figure 2 Detailed implementation steps of step S24;
[0019] Figure 4 for Figure 3 Detailed implementation steps of step S244 are shown in the flowchart;
[0020] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are 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 technicians in this field without creative work are within the scope of protection of the present invention.
[0022] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0023] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0024] To achieve this, please refer to Figures 1 to 4 , a smart payment port encryption method, the method comprising the following steps:
[0025] Step S1: obtaining user payment data; performing multimodal feature data fusion on the user payment data to generate multimodal biometric data; performing data preprocessing on the multimodal biometric data to generate standard multimodal biometric data;
[0026] Step S2: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; perform abnormal traffic risk prediction on the payment information port traffic monitoring data to generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with a preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; perform adaptive port data encryption on the suspicious payment transmission data to generate adaptive port encrypted data;
[0027] Step S3: Encrypt the sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data; construct an encryption channel for the payment sensitive information encrypted data to generate a port transmission encrypted channel; perform data transmission error detection on the port transmission encrypted channel to generate payment transmission port error check data;
[0028] Step S4: Evaluate the attack intensity of the payment transmission port error check data to obtain the attack intensity coefficient; match the payment transmission port error check data with the port security policy according to the attack intensity coefficient to generate smart payment port security policy matching data; monitor the smart payment port security policy matching data to generate a smart payment port encryption monitoring report.
[0029] The present invention can provide more comprehensive user feature information through multimodal fusion, thereby enhancing the accuracy and robustness of the biometric system. The use of multiple biometric features for fusion makes it more difficult for attackers to forge or impersonate identities, thereby improving the security of the payment system. Biometric technology can provide a more convenient payment method, reduce the steps of user inputting passwords, and thus improve the user experience. Timely monitoring and prediction of abnormal traffic can reduce the security risks faced by the payment system and protect user data and financial security. Real-time monitoring and prediction capabilities help to take timely measures to prevent potential security threats from damaging the system. Data encryption can effectively protect the privacy and sensitive information of users, enhance user trust and data security. By encrypting sensitive information of adaptive port encrypted data, the security of sensitive information (such as bank account number, password, etc.) in the payment data during transmission is ensured, and the risk of hackers or malicious users intercepting the transmission data and obtaining sensitive information is prevented. The construction of an encrypted channel further enhances the security of payment data transmission. The encrypted channel ensures that the data is not eavesdropped or tampered with during transmission. Only authorized parties can decrypt the data, ensuring end-to-end encrypted transmission. Data transmission error detection of the port transmission encryption channel helps to timely discover and correct errors that occur during the data transmission process, including but not limited to data loss, damage, etc., to ensure the integrity and accuracy of the payment data. Adjust the security strategy according to the real-time attack threat level, improve the intelligent security defense capability of the system, and dynamically adapt to different attack threats to provide more flexible and effective security protection for the system. Through real-time monitoring and report generation, the system can respond to potential threats and issue alarms in a timely manner to improve the security of the system. Through monitoring reports, the system can be continuously optimized and improved to continuously improve the security of the payment transmission port. Therefore, the present invention introduces error checking and attack intensity assessment at the data transmission level, and dynamically adjusts the security strategy according to the attack intensity, monitors and manages the payment port in real time, and improves the security and reliability of payment.
[0030] In the embodiment of the present invention, reference Figure 1The above is a schematic diagram of the steps of a smart payment port encryption method of the present invention. In this example, the smart payment port encryption method includes the following steps:
[0031] Step S1: obtaining user payment data; performing multimodal feature data fusion on the user payment data to generate multimodal biometric data; performing data preprocessing on the multimodal biometric data to generate standard multimodal biometric data;
[0032] In an embodiment of the present invention, a data collection module is set in a payment platform or transaction system to collect and record the user's payment behavior, including various transaction information conducted by the user on the payment platform, such as purchase history, payment amount, transaction time, etc. The feature data from different modalities (such as images, sounds, texts, etc.) are combined to form more comprehensive and representative user feature data, including extracting features from data of various modalities using a feature extraction algorithm, and then fusing these features. The fusion method can be a simple splicing, weighted average or a more complex model fusion method. The fused multimodal biometric data is preprocessed to ensure the quality and consistency of the data and provide better input for subsequent biometric algorithms. The preprocessing steps include operations such as data cleaning, normalization, noise reduction, feature selection, etc., using common data processing tools and techniques, such as NumPy, Pandas and Scikit-learn libraries in Python. The preprocessed data is converted into a standard format for the subsequent use of biometric models.
[0033] Step S2: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; perform abnormal traffic risk prediction on the payment information port traffic monitoring data to generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with a preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; perform adaptive port data encryption on the suspicious payment transmission data to generate adaptive port encrypted data;
[0034] In an embodiment of the present invention, an API port is set up to receive an upload request for multimodal biometric data, including using technologies such as RESTful API or GraphQL to design and implement API endpoints. Logic is set in the API to monitor port traffic and pass the received data to the next processing step. Port traffic data is analyzed and predicted using machine learning or deep learning models to identify abnormal traffic patterns, including using supervised learning or unsupervised learning algorithms, such as support vector machines (SVM), neural networks, etc., to train and model historical port traffic data to predict future traffic behavior. A preset abnormal traffic threshold is determined to determine whether the port traffic is abnormal, including setting a threshold detection logic to compare the size relationship between real-time abnormal traffic prediction data and a preset threshold. When the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, the corresponding user payment data is marked as suspicious payment transmission data, including saving the marking information to a database or log file for subsequent processing and tracking. Suspicious payment transmission data is encrypted using an encryption algorithm to protect the security of the data, including using a symmetric encryption algorithm (such as AES) or an asymmetric encryption algorithm (such as RSA) to encrypt the data.
[0035] Step S3: Encrypt the sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data; construct an encryption channel for the payment sensitive information encrypted data to generate a port transmission encrypted channel; perform data transmission error detection on the port transmission encrypted channel to generate payment transmission port error check data;
[0036] In an embodiment of the present invention, data blocks of appropriate size are generated by packetizing encrypted data of payment sensitive information. Error detection information, such as a checksum, CRC checksum, etc., is added to each data block. The data that has been packetized and added with error detection information is transmitted through an established port transmission encryption channel. At the data receiving end, error detection is performed on the received data block. If the checksum or CRC checksum, etc., does not match the value of the sending end, it indicates that an error has occurred during the data transmission process. If an error is detected, the error information is recorded and payment transmission port error check data is generated. The check data will be used for subsequent attack intensity assessment and port security policy matching.
[0037] Step S4: Evaluate the attack intensity of the payment transmission port error check data to obtain the attack intensity coefficient; match the payment transmission port error check data with the port security policy according to the attack intensity coefficient to generate smart payment port security policy matching data; monitor the smart payment port security policy matching data to generate a smart payment port encryption monitoring report.
[0038] In the embodiment of the present invention, the attack behavior is detected by analyzing the error check data of the payment transmission port by using security algorithms and technologies. Intrusion detection systems (IDS), network traffic analysis tools, etc. can be used for real-time monitoring and analysis. According to the detected attack behavior, the attack intensity coefficient is calculated, and the coefficient can represent the severity of the attack. A series of port security policies are designed, and the policies can provide different protections according to different attack intensity levels. The attack intensity coefficient is mapped to the corresponding security policy to ensure that appropriate defense measures can be taken for attacks of different degrees. The policy includes blocking connections, increasing authentication requirements, limiting data transmission rates, etc. The port security policy matching information is combined with the payment transmission port error check data to generate intelligent payment port security policy matching data, and the data may include information such as attack intensity, matching security policy, and timestamp. A monitoring system is established to monitor the changes in the intelligent payment port security policy matching data in real time. When a new matching event occurs, the corresponding security response measures are triggered, including alarm, log recording, automatic adjustment of security policy, etc. The monitored intelligent payment port security policy matching data is organized into a report. The report should include information such as the attack intensity trend, the security policy adopted, the time of the event, and the impact. The report helps to evaluate and improve the overall security of the system.
[0039] Preferably, step S1 comprises the following steps:
[0040] Step S11: Obtain user payment data using API;
[0041] Step S12: Verify the number of incorrect payment attempts using the payment password on the user's payment data to generate the number of times the user's payment password is entered; compare the number of times the user's payment password is entered with a preset standard input number threshold, and when the number of times the user's payment password is entered is less than the preset standard input number threshold, use the payment device to perform fingerprint recognition on the user to obtain the user's payment fingerprint data;
[0042] Step S13: When the number of times the user inputs the payment password is greater than the preset standard input number threshold, the payment device is used to perform facial recognition on the user to obtain the user payment facial recognition data; the user payment data, the user payment fingerprint data or the user payment facial recognition data are subjected to feature data fusion to generate multimodal biometric recognition data;
[0043] Step S14: preprocess the multimodal biometric data to generate standard multimodal biometric data, wherein the data preprocessing includes data denoising, data missing value filling and data standardization.
[0044] The present invention obtains user payment data through an API, ensures the legitimacy of the source of the payment data, and helps prevent illegal access and fraud. Verifying the number of incorrect payment passwords can effectively prevent brute force attacks. When the number of incorrect payment passwords exceeds the threshold, the system introduces biometric technology to improve the accuracy and security of authentication. The system introduces biometric technology when the number of incorrect payment passwords exceeds the threshold, and selects fingerprint recognition or facial recognition according to the conditions. The multimodal biometric method improves the accuracy of the system's confirmation of user identity. By fusing the payment data, fingerprint data or facial recognition data into feature data to form multimodal biometric data, it helps to improve the robustness and anti-attack ability of the biometric system. Data preprocessing, including denoising, missing value filling and standardization, helps to improve the quality and accuracy of multimodal biometric data.
[0045] In the embodiment of the present invention, the user's payment data is obtained from the payment system or other related systems by developing or using appropriate APIs, which involves integration with third-party payment providers or systems. Develop or use a payment system to verify the number of incorrect user payment passwords and determine whether biometric verification is required. Integrate fingerprint recognition and facial recognition devices into the payment system to perform biometric verification when necessary. Develop algorithms or use existing technologies to fuse user payment data, fingerprint data, and facial recognition data to generate multimodal biometric data, which involves the application of data fusion technology and pattern recognition algorithms. Develop or use data preprocessing algorithms to process the generated multimodal biometric data, including steps such as denoising, missing value filling, and data standardization to ensure data quality and consistency. Integrate the various steps of implementation into the payment system and conduct comprehensive testing to ensure the stability, security, and performance of the system. Conduct user interface design and user experience testing to ensure that users can smoothly perform biometric verification during the payment process. Ensure that data security and privacy protection are taken into account during implementation and comply with relevant laws, regulations, and industry standards. Implement appropriate security control measures, such as encrypted data transmission and storage, to prevent data leakage and unauthorized access.
[0046] Preferably, step S2 comprises the following steps:
[0047] Step S21: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; divide the payment information port traffic monitoring data into data sets to obtain a model training set and a model test set;
[0048] Step S22: Perform model training on the model training set using a convolutional neural network algorithm to generate an abnormal traffic risk training model; perform model testing on the abnormal traffic risk training model according to the model test set to generate an abnormal traffic risk prediction model;
[0049] Step S23: import the payment information port traffic monitoring data into the abnormal traffic risk prediction model to perform abnormal traffic risk prediction and generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with the preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is greater than the preset abnormal traffic threshold, cancel the corresponding user payment data; when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data;
[0050] Step S24: Perform intelligent attack perception on suspicious payment transmission data to generate intelligent attack perception classification data; perform adaptive port data encryption based on the intelligent attack perception classification data to generate adaptive port encryption data.
[0051] The present invention can improve the security of the payment system by using multimodal biometric data as a payment verification factor, because an attacker needs to successfully simulate multiple biometric features, such as fingerprint and facial recognition, to commit fraud. By using a convolutional neural network for model training and testing, the system can learn the normal pattern of payment information port traffic. The generated abnormal traffic risk prediction model helps to timely detect and block abnormal traffic and improve the fraud detection capability of the system. When the abnormal traffic risk prediction data exceeds the threshold, the system can immediately cancel the relevant payment operation to prevent fraudulent transactions. For situations that are below the threshold but still have a certain risk, marking the payment data as suspicious helps further monitoring and investigation. By performing intelligent attack perception on suspicious payment transmission data, the system can identify potential attack patterns and behaviors, which helps to improve the system's adaptability to new attacks and enable it to detect and respond to evolving threats. Adaptive port data encryption based on intelligent attack perception classification data can increase the anti-attack capability of the payment system. The system can flexibly adjust the encryption strategy according to the detected threat level to ensure the confidentiality and integrity of the payment data.
[0052] As an example of the present invention, refer to Figure 2 As shown, in this example, step S2 includes:
[0053] Step S21: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; divide the payment information port traffic monitoring data into data sets to obtain a model training set and a model test set;
[0054] In an embodiment of the present invention, by implementing a secure API interface, multimodal biometric data, including fingerprint, facial recognition, voiceprint and other information, can be received. Ensure the security of the API, for example, use the HTTPS protocol for data transmission to prevent data from being stolen or tampered with. Implement a port traffic monitoring mechanism in the API to track the traffic of uploaded multimodal biometric data. The monitoring data may include information such as upload rate and request frequency, which helps to detect abnormal traffic and signs of attack. Associate the monitored port traffic data with the payment information to generate payment information port traffic monitoring data, which may include information such as the timestamp of the multimodal biometric data, user identification, and the size of the uploaded data to form complete monitoring data. Divide the generated payment information port traffic monitoring data into a model training set and a model test set. Generally, random division or time division can be adopted. Ensure that the data distribution of the training set and the test set is representative to ensure the generalization performance of the model. Label the divided data set, and annotate normal payment behavior and potential abnormal behavior, so that the normal behavior pattern can be learned when training the model, and abnormal behavior can be detected when testing. Prepare the training set and test set of the model according to the division and labeling of the data set. To ensure that the input format of the data meets the requirements of the model, preprocessing and feature engineering are required.
[0055] Step S22: Perform model training on the model training set using a convolutional neural network algorithm to generate an abnormal traffic risk training model; perform model testing on the abnormal traffic risk training model according to the model test set to generate an abnormal traffic risk prediction model;
[0056] In an embodiment of the present invention, the abnormal traffic data and the normal traffic data are divided into a training set and a test set according to a certain ratio. Data preprocessing includes standardization, normalization or other necessary data conversion. Define network structures such as convolutional layers, pooling layers, and fully connected layers. Add an appropriate number of layers to prevent overfitting, such as using a dropout layer. Select an appropriate activation function, such as ReLU. Determine a suitable loss function, and usually binary cross entropy can be selected for a binary classification problem. Use the training set to train the constructed CNN model. Select an appropriate optimization algorithm, such as Adam or SGD, and set an appropriate learning rate. Monitor performance indicators during training, such as accuracy, loss, etc. Iterate training until the model converges. Use the test set to evaluate the performance of the model. Evaluate the prediction performance of the model for abnormal traffic through indicators such as confusion matrix, accuracy, recall rate, F1 score, etc. Adjust the model parameters according to the test results, such as adjusting the network structure, hyperparameters, or regularization parameters to improve the model performance. Once the model performs well on the test set, it can be identified as an abnormal traffic risk prediction model. The model can be saved for future use in a real environment.
[0057] Step S23: import the payment information port traffic monitoring data into the abnormal traffic risk prediction model to perform abnormal traffic risk prediction and generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with the preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is greater than the preset abnormal traffic threshold, cancel the corresponding user payment data; when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data;
[0058] In an embodiment of the present invention, data is obtained from the payment information port traffic monitoring system, and the data format is ensured to match the model input requirements. The data is preprocessed, including missing value processing, data format conversion, normalization or standardization, etc., to facilitate the input of the model. The abnormal traffic risk prediction model trained in step S22 is used to predict the payment information port traffic monitoring data to generate abnormal traffic risk prediction data. The prediction result is usually a probability value, indicating the degree of abnormal risk corresponding to the payment data. The abnormal traffic risk prediction data is compared with the preset abnormal traffic threshold. If the abnormal traffic risk prediction data is greater than the preset abnormal traffic threshold, it is considered that the payment data has an abnormal risk and needs to be further processed. If the abnormal traffic risk prediction data is less than or equal to the preset abnormal traffic threshold, it is considered that the payment data has a low risk and does not need to cancel the payment immediately, but needs further review or marking. For payment data with a higher abnormal risk, you can choose to cancel the payment or conduct further risk analysis on it. An alarm can be triggered and relevant personnel can be notified to handle it to prevent fraud or security threats. For payment data with a low risk but still in doubt, it can be marked as suspicious payment transmission data for subsequent further investigation or monitoring.
[0059] Step S24: Perform intelligent attack perception on suspicious payment transmission data to generate intelligent attack perception classification data; perform adaptive port data encryption based on the intelligent attack perception classification data to generate adaptive port encryption data.
[0060] In an embodiment of the present invention, by using a machine learning or deep learning model to analyze suspicious payment transmission data and identify intelligent attack behaviors, the model can be trained based on the characteristics of historical attack data and transmission data. According to the output results of the intelligent attack perception model, the suspicious payment transmission data is classified and marked as different attack types or risk levels. According to the intelligent attack perception classification data, the transmission data is adaptively encrypted. Different encryption algorithms and parameters can be used for data encryption according to different attack types or risk levels. The encrypted data is used to generate adaptive port encryption data to ensure the security of payment information during transmission.
[0061] Preferably, step S24 includes the following steps:
[0062] Step S241: performing payment data packet feature analysis on the suspicious payment transmission data to generate suspicious payment transmission data packet feature data; performing payment frequency analysis on the suspicious payment transmission data packet feature data to generate suspicious payment frequency data;
[0063] Step S242: performing attack type identification on the suspicious payment frequency data and the suspicious payment transmission data packet feature data through an attack type identification formula to generate attack type identification data, wherein the attack type identification includes Dos attack type identification, SQL injection type identification and malware type identification;
[0064] Step S243: performing traffic pattern recognition on the attack type recognition data according to a clustering algorithm to generate attack type traffic pattern classification data, wherein the attack type traffic pattern classification data includes traffic attack pattern data, injection attack pattern data, and malicious scanning attack pattern data;
[0065] Step S244: construct an autonomous encryption mechanism for the flow attack mode data, injection attack mode and malicious scanning attack mode data to generate an adaptive port encryption mechanism; perform adaptive port data encryption on the attack type identification data based on the adaptive port encryption mechanism to generate adaptive port encryption data.
[0066] The present invention can identify abnormal behaviors and patterns by performing feature analysis and payment frequency analysis on suspicious payment transmission data, provide a data basis for subsequent attack type identification, and help to quickly discover potential payment security risks. By using the attack type identification formula to analyze the payment frequency data and data packet feature data, various attack types, such as Dos attacks, SQL injections, and malware attacks, can be accurately identified, which helps to respond in time and take corresponding defense measures. By using a clustering algorithm to perform traffic pattern recognition on the attack type identification data, similar attack behaviors can be classified into the same category, so as to better understand the attack patterns and trends, help to formulate targeted defense strategies, and improve the ability to identify new attacks. Constructing an autonomous encryption mechanism, adaptive port encryption of data according to the identified attack type and traffic pattern can ensure data security during transmission and reduce the risk of sensitive information being leaked.
[0067] As an example of the present invention, refer to Figure 3 As shown, in this example, step S24 includes:
[0068] Step S241: performing payment data packet feature analysis on the suspicious payment transmission data to generate suspicious payment transmission data packet feature data; performing payment frequency analysis on the suspicious payment transmission data packet feature data to generate suspicious payment frequency data;
[0069] In an embodiment of the present invention, by collecting suspicious payment transmission data packets, it can be achieved through a network monitoring system or a log recording system. For each data packet, a series of features need to be extracted, including source address, destination address, transmission protocol, transmission data size, transmission delay, etc. The features can describe the basic properties and behavior of the data packet. The extracted feature data is statistically analyzed to identify feature patterns that are different from normal payment transmission data, such as abnormal data size, abnormal transmission delay, etc. Statistical analysis, machine learning or deep learning technology can be used for feature analysis. The payment transmission data packets are sorted according to time series to analyze the payment frequency. The number of payment transmission data packets in each time period is counted to obtain payment frequency data. The payment frequency data is analyzed to identify abnormal payment frequency patterns, such as a sudden increase or decrease in the number of payment requests. Time series analysis, statistical analysis or anomaly detection algorithms can be used for frequency analysis.
[0070] Step S242: performing attack type identification on the suspicious payment frequency data and the suspicious payment transmission data packet feature data through an attack type identification formula to generate attack type identification data, wherein the attack type identification includes Dos attack type identification, SQL injection type identification and malware type identification;
[0071] In the embodiment of the present invention, features related to DoS attacks are selected, such as request frequency, number of connections, packet size, etc. Based on the benchmark of normal behavior, a threshold is set to determine whether a DoS attack has occurred. The threshold can be set based on historical data, statistical analysis, or the output of a machine learning model. If the feature data exceeds the set threshold, it is identified as a DoS attack type. Features related to SQL injection attacks are selected, such as data input by a user, the structure of a database query statement, etc. Regular expressions, pattern matching, or machine learning methods are used to detect whether there is an abnormal SQL injection pattern in the feature data. If an abnormal SQL injection pattern is detected, it is identified as an SQL injection attack type. Features related to malware transmission are selected, such as file type, transmission protocol, transmission path, etc. A machine learning classification algorithm, such as a support vector machine (SVM), a decision tree, or a deep learning model, is used to classify malware types based on feature data. According to the output of the classification model, the feature data is identified as the corresponding malware type. A comprehensive attack type identification formula is designed. Combined with the identification results of the above three attack types, logical rules, weighted weighting, or other mathematical models can be used for comprehensive judgment. If there are parameters in the formula, the parameters are adjusted through experiments and verification to achieve better performance.
[0072] Step S243: performing traffic pattern recognition on the attack type recognition data according to a clustering algorithm to generate attack type traffic pattern classification data, wherein the attack type traffic pattern classification data includes traffic attack pattern data, injection attack pattern data, and malicious scanning attack pattern data;
[0073] In the embodiment of the present invention, the attack type identification data generated by step S242 is used as input. Features related to the traffic pattern are extracted from the attack type identification data, such as traffic size, traffic frequency, source IP address, target IP address, source port, target port, etc. A clustering algorithm suitable for traffic pattern identification is selected, such as K-means clustering, hierarchical clustering, density clustering, etc. The computational complexity of the algorithm, the robustness to outliers, and the adaptability to data distribution are considered. The extracted features are standardized to ensure that the numerical ranges between different features are the same to avoid excessive influence of certain features on the clustering results. The features of each sample are combined into a feature vector as the input of the clustering algorithm. The feature vector is clustered using the selected clustering algorithm to divide the attack type identification data set into multiple categories. The parameters of the clustering algorithm are set according to the specific situation, such as the number of cluster centers, the distance measurement method, etc. The clustering results are analyzed, the characteristics of each cluster cluster are checked, and the types of traffic patterns contained therein are understood. According to the clustering results, the attack type traffic patterns are classified, such as flow attack patterns, injection attack patterns, malicious scanning attack patterns, etc. The clustering results are evaluated using internal evaluation indicators (such as silhouette coefficient, DB index, etc.) to assess the closeness and separation of the clusters. If labeled data is available, external evaluation indicators (such as Rand index, mutual information, etc.) can be used to assess the consistency of the clustering results with the true labels.
[0074] Step S244: construct an autonomous encryption mechanism for the flow attack mode data, injection attack mode and malicious scanning attack mode data to generate an adaptive port encryption mechanism; perform adaptive port data encryption on the attack type identification data based on the adaptive port encryption mechanism to generate adaptive port encryption data.
[0075] In the embodiment of the present invention, an encryption algorithm suitable for security requirements is selected, such as a symmetric encryption algorithm (AES, DES), an asymmetric encryption algorithm (RSA, ECC) or a hybrid encryption algorithm. A secure key management scheme is designed, including operations such as key generation, distribution, update and destruction. A key management service (KMS) may be considered to improve the security of the key. According to security and performance requirements, the parameters of the encryption algorithm, such as key length, initial vector (IV), etc., are set. An adaptive port selection strategy is formulated to enable the port information in the encryption process to change adaptively, which may include a port change strategy based on time, attack type or other dynamic factors. A dynamic port mapping mechanism is implemented to ensure that the port used during encryption can be adjusted according to the set strategy. Port change rules are formulated to ensure security while ensuring the correct decryption of encrypted data. It may be considered to embed the port change rules into the key management to ensure the synchronous change of the port and the key. The attack type identification data is divided according to the set grouping rules. According to the adaptive port encryption mechanism, a corresponding dynamic port is selected for each data group. The data is encrypted using the constructed autonomous encryption mechanism to ensure the confidentiality of the data. The port information used during encryption is recorded so that the port is correctly matched during decryption. Organize the encrypted data into adaptive port encrypted data, including the encrypted data block and the corresponding port information. Add integrity protection mechanism, such as using message authentication code (MAC) to ensure that the encrypted data has not been tampered with during transmission.
[0076] Preferably, the attack type identification formula in step S242 is as follows:
[0077]
[0078] In the formula, R(D f , D p ) represents the attack type identification data, D f Represented as suspicious payment frequency data, D p It is represented by the characteristic data of suspicious payment transmission packets, N is the number of attack types, and α i It is represented as the harm weight of the i-th suspicious payment frequency data under DoS attack assessment, β i It is represented as the harm weight of the i-th suspicious payment frequency data under SQL injection assessment, γ i It is represented as the harm weight of the i-th suspicious payment frequency data under malware assessment, D(D f ) is the weight ratio coefficient used to evaluate the DoS attack type in the suspicious payment frequency data, S(D p ) is the weight coefficient used to evaluate the SQL injection type in the characteristic data of suspicious payment transmission data packets, E(D p) is expressed as the weight ratio coefficient used to evaluate the malware type in the suspicious payment transmission data packet feature data.
[0079] The present invention analyzes and integrates an attack type identification formula. The principle of the formula is to calculate the evaluation results under different attack types and perform weighted summation to obtain the attack type identification data R(D f , D p ). For each attack type, the formula uses the corresponding evaluation function for evaluation, which are "DoS attack evaluation", "SQL injection evaluation" and "malware evaluation". Each evaluation function evaluates the corresponding attack type based on the different characteristics of suspicious payment frequency data and suspicious payment transmission data packet feature data, as well as the corresponding weight parameters. α in the formula i , β i and γ i is a weight parameter used to adjust the hazard weights of different attack types. By adjusting the weight parameter, the accuracy of the identification result can be adjusted according to the importance of the attack type. The judgment weight ratio coefficient in the evaluation function is used to adjust the importance of different features in the evaluation. By adjusting the ratio coefficient, the accuracy of attack type identification can be adjusted according to the importance of different features. By comprehensively considering the evaluation results of different features and different attack types, the formula can comprehensively identify the attack types of suspicious payment data, which helps to timely identify and respond to different types of network attacks and improve the security of the payment system. When using the conventional attack type identification formula in the field, the attack type identification data can be obtained. By applying the attack type identification formula provided by the present invention, the attack type identification data can be calculated more accurately. By adjusting the value of the parameter, the importance of different features and different attack types can be flexibly adjusted according to actual needs, thereby producing beneficial effects. The flexibility makes the formula suitable for different attack type identification scenarios and can improve the recognition accuracy and the security of the system.
[0080] Preferably, step S244 includes the following steps:
[0081] Step S2441: Analyze the dynamic changes of data packets of suspicious payment transmission data based on the flow attack mode data to generate payment timestamp data and payment sequence data; perform data obfuscation on the payment timestamp data and payment sequence data to generate payment obfuscation data; perform port signature encryption on the payment obfuscation data using digital signature technology to generate a flow attack encryption mechanism;
[0082] Step S2442: Encrypt the suspicious payment transmission data as a whole based on the injection attack mode to obtain the encrypted data of the whole data packet, wherein the encrypted data of the whole data packet includes data content encrypted data and meta-encrypted data; perform data integrity protection on the data content encrypted data and meta-encrypted data by using a hash algorithm to generate payment integrity data; construct and transmit an encrypted tunnel according to the payment integrity data, thereby generating an injection attack encryption mechanism;
[0083] Step S2443: confirming the port address of the suspicious payment transmission data based on the malicious scanning attack mode data to generate payment port address data; using the port hiding technology to hide the port number of the payment port address data to generate port hiding data; implanting false data into the port hiding data to generate payment disguised data; using the payment disguised data to perform intrusion detection on the suspicious payment transmission data to generate intrusion detection degree data;
[0084] Step S2444: IDS encrypt the suspicious payment transmission data according to the intrusion detection degree data, thereby generating a malicious scanning attack encryption mechanism; merge the flow attack encryption mechanism, the injection attack encryption mechanism and the malicious scanning attack encryption mechanism to generate an adaptive port encryption mechanism;
[0085] Step S2445: Adaptively encrypt the attack type identification data based on the adaptive port encryption mechanism, thereby generating adaptive port encrypted data.
[0086] The present invention enhances the security of suspicious payment transmission data through the analysis of multiple attack mode data and the construction of encryption mechanism. For different types of threats such as flow attack, injection attack and malicious scanning attack, corresponding encryption measures are taken to effectively prevent security issues such as data leakage, tampering and hijacking. Using technologies such as data obfuscation, overall encryption and port hiding, the payment transmission data is confidentially processed, making it difficult for attackers to obtain sensitive information. Obfuscation, encryption and hiding ensure the confidentiality of data during transmission, and only the legitimate recipient can decrypt and identify the data content. The data content and metadata are protected by the hash algorithm to effectively prevent tampering and damage during transmission. The generation and verification of payment integrity data ensures the integrity of the data and the reliability of the payment transmission data. Using payment disguised data for intrusion detection, IDS encryption is performed on suspicious payment transmission data according to the intrusion detection degree data, which effectively prevents intrusion behaviors such as malicious scanning attacks. Countermeasures can timely discover and respond to security threats, ensuring the stable operation of the system. Various attack encryption mechanisms are merged to form an adaptive port encryption mechanism, which not only improves the encryption efficiency, but also dynamically adjusts the port and encryption method according to actual conditions to adapt to different network environments and security requirements.
[0087] As an example of the present invention, refer to Figure 4 As shown, in this example, step S244 includes:
[0088] Step S2441: Analyze the dynamic changes of data packets of suspicious payment transmission data based on the flow attack mode data to generate payment timestamp data and payment sequence data; perform data obfuscation on the payment timestamp data and payment sequence data to generate payment obfuscation data; perform port signature encryption on the payment obfuscation data using digital signature technology to generate a flow attack encryption mechanism;
[0089] In the embodiment of the present invention, suspicious payment transmission data is collected and dynamically analyzed, including identifying the structure, protocol, field and other information of the data packet. Traffic attack pattern data is used for analysis to identify attack patterns and characteristics, such as frequency, source, destination and the like. Payment timestamp data and payment sequence data are generated to record the arrival time and sequence information of each data packet. The generated payment timestamp data and payment sequence data are obfuscated to increase the complexity and unpredictability of the data, making it difficult for attackers to identify the true meaning of the data. Obfuscation can use various algorithms, such as disorder, permutation, encryption, etc., to ensure that the obfuscated data is difficult to be easily parsed. The obfuscated payment data is signed using digital signature technology to ensure the integrity and authenticity of the data. Port signature encryption can be to specify a specific port for signature verification to ensure that the data can only be decrypted and identified by the authorized party. Digital signature technology can use public key encryption algorithms, such as RSA, to ensure the verifiability and non-tamperability of the signature. Combining obfuscation and digital signature technology to form a traffic attack encryption mechanism, the mechanism can include combining the obfuscated data with the digital signature, and encrypting according to a specific port to ensure the security and integrity of the data during transmission.
[0090] Step S2442: Encrypt the suspicious payment transmission data as a whole based on the injection attack mode to obtain the encrypted data of the whole data packet, wherein the encrypted data of the whole data packet includes data content encrypted data and meta-encrypted data; perform data integrity protection on the data content encrypted data and meta-encrypted data by using a hash algorithm to generate payment integrity data; construct and transmit an encrypted tunnel according to the payment integrity data, thereby generating an injection attack encryption mechanism;
[0091] In the embodiment of the present invention, by adopting the injection attack mode for suspicious payment transmission data, the data packet is encrypted as a whole, which means that the entire data packet is encrypted, rather than just part of the data therein. The data packet generated by the overall encryption includes two parts: data content encrypted data and meta-encrypted data. The data content encrypted data is to encrypt the actual content in the data packet, and the meta-encrypted data is the meta-information required for encryption, such as encryption algorithm, key, etc. The data integrity protection is performed on the data content encrypted data and the meta-encrypted data using a hash algorithm, which means that the encrypted data is hashed to generate a corresponding hash value. The hash algorithm can be a secure hash algorithm such as SHA-256, which ensures that the generated hash value has high irreversibility and uniqueness. The hash values of the data content encrypted data and the meta-encrypted data are combined to form payment integrity data, which is used as a verification mark of data integrity to ensure that the payment data has not been tampered with during transmission. According to the payment integrity data, an encrypted tunnel is constructed for data transmission. The encrypted tunnel can adopt various secure transmission protocols and technologies, such as TLS / SSL, to ensure the confidentiality and integrity of data during transmission. Encrypted tunnels can be established through virtual private networks (VPN), encrypted transport layers (TLS), IPSec, etc. to provide secure communication channels. The overall encryption, data integrity protection and encrypted tunnel construction are combined to form an injection attack encryption mechanism, which ensures the security, integrity and confidentiality of payment data during transmission and effectively responds to the threats brought by injection attack modes.
[0092] Step S2443: confirming the port address of the suspicious payment transmission data based on the malicious scanning attack mode data to generate payment port address data; using the port hiding technology to hide the port number of the payment port address data to generate port hiding data; implanting false data into the port hiding data to generate payment disguised data; using the payment disguised data to perform intrusion detection on the suspicious payment transmission data to generate intrusion detection degree data;
[0093] In the embodiment of the present invention, suspicious payment transmission data is analyzed by using malicious scanning attack mode data to confirm the payment port address, including detecting the port number, target address and other information in the transmission data. The port hiding technology is used to hide the port number of the payment port address data, including using proxy, port mapping, random port selection and other technologies, so that the payment port is not easy to be detected in network transmission. Port hiding data is generated, which contains the hidden payment port address information. The processing can increase the confidentiality of the system to the port information and reduce the probability of being attacked by malicious scanning. False data is implanted into the port hiding data to generate payment disguise data, aiming to introduce some false information, increase the difficulty of parsing and analysis by attackers, and thus improve the security of the system. Payment disguise data is used to perform intrusion detection on suspicious payment transmission data, including monitoring abnormal access patterns, analyzing requests that deviate from normal behavior, etc., to identify potential intrusion behaviors. According to the results of the intrusion detection, intrusion detection degree data is generated, which can be a score, a sign or other form of indicators, used to evaluate whether the suspicious payment transmission data is threatened by intrusion.
[0094] Step S2444: IDS encrypt the suspicious payment transmission data according to the intrusion detection degree data, thereby generating a malicious scanning attack encryption mechanism; merge the flow attack encryption mechanism, the injection attack encryption mechanism and the malicious scanning attack encryption mechanism to generate an adaptive port encryption mechanism;
[0095] In an embodiment of the present invention, an encryption algorithm or mechanism is designed according to the intrusion detection degree data to encrypt suspicious payment transmission data, including selecting appropriate encryption algorithms, key management and authentication mechanisms, in order to protect the confidentiality of data and prevent unauthorized access and parsing. A flow attack encryption mechanism is designed to defend against flow attacks, including real-time monitoring of the flow of transmission data, identifying and encrypting potential attack traffic, and preventing attackers from attacking through large amounts of traffic. An injection attack encryption mechanism is formulated to defend against injection attacks, involving verification, filtering and encryption of input data to prevent attackers from attacking the system by injecting malicious code or data. The malicious scanning attack encryption mechanism, flow attack encryption mechanism and injection attack encryption mechanism generated above are merged to form an adaptive port encryption mechanism. The mechanism should be able to adjust the encryption level and method according to the real-time intrusion detection degree data to adapt to different threat scenarios and attack types.
[0096] Step S2445: Adaptively encrypt the attack type identification data based on the adaptive port encryption mechanism, thereby generating adaptive port encrypted data.
[0097] In an embodiment of the present invention, by collecting and obtaining attack type identification data, including data from an intrusion detection system, a log file, a network monitoring system, etc., various types of attacks faced by the current system are analyzed and identified. The adaptive port encryption mechanism is modified so that it can be adjusted according to the attack type identification data, including dynamic adjustment of encryption algorithms, key management, and encryption strength to adapt to the specific attack threats faced by the current system. A mapping relationship between attack types and corresponding port encryption policies is established. According to the attack type identification data, it is determined which port encryption policy should be used for each attack type. For example, different types of attacks require different levels of encryption strength or encryption algorithms. A dynamic port encryption adjustment mechanism is implemented so that the system can monitor the attack type identification data in real time and dynamically adjust the corresponding port encryption policy according to these data, which can be achieved by implementing an automated algorithm or a policy engine. When the system is running, the attack type identification data is encrypted according to the dynamically adjusted port encryption policy. It is ensured that the generated adaptive port encryption data can effectively protect sensitive information without affecting normal system performance.
[0098] Preferably, step S3 comprises the following steps:
[0099] Step S31: Generate a symmetric encryption key for the adaptive port encrypted data through a symmetric encryption algorithm to obtain a symmetric encryption key for payment information; distribute the symmetric encryption key for payment information to two-way payment users to generate a payment encryption public key pair and a payment encryption private key pair, wherein the payment encryption public key pair includes a sending end payment encryption public key and a receiving end payment encryption public key, and the payment encryption private key pair includes a sending end payment encryption private key and a receiving end payment encryption private key;
[0100] Step S32: performing public key exchange based on the sender payment encryption public key and the receiver payment encryption public key to generate the sender payment encryption exchange public key and the receiver payment encryption exchange public key; using the sender payment encryption exchange public key and the receiver payment encryption exchange public key to encrypt sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data;
[0101] Step S33: using the sending end payment encryption private key and the receiving end payment encryption private key to perform data matching and decryption on the payment sensitive information encrypted data, and generate a sensitive information key negotiation mechanism;
[0102] Step S34: digitally sign and verify the adaptive port encrypted data according to the sensitive information key negotiation mechanism to generate payment sensitive information digital signature data; construct an encryption channel for the payment sensitive information digital signature data based on the handshake protocol to generate a port transmission encryption channel;
[0103] Step S35: Use the error verification code to perform data transmission error detection on the port transmission encryption channel to generate payment transmission port error verification data.
[0104] The present invention encrypts payment information by using a symmetric encryption algorithm to ensure the security of payment information during transmission and storage. At the same time, through public key exchange and sensitive information encryption, the security of data is further improved, and only users with corresponding private keys can decrypt and access this information. After generating the symmetric encryption key of payment information, a two-way payment user distribution method, i.e., a payment encryption public key pair and a payment encryption private key pair, can be used to better manage and distribute the key, thereby reducing the risk of the key being cracked. The payment sensitive information encryption data and the sensitive information key negotiation mechanism are used to protect the confidentiality and integrity of the payment information, which means that even during the data transmission process, the payment information can be ensured not to be tampered with or leaked. The identity authentication and tamper-proofness of the payment sensitive information are ensured through digital signature verification and encryption channel construction. The recipient can verify the source and integrity of the information to ensure the reliability of the transaction. The port transmission encryption channel is used to perform data transmission error detection, thereby increasing the reliability of data transmission and avoiding errors and losses during the transmission process.
[0105] In an embodiment of the present invention, by using a symmetric encryption algorithm, such as AES or DES, a symmetric encryption key is generated for the adaptive port encrypted data. The key can be randomly generated or derived based on a certain protocol. The obtained key is used for the subsequent symmetric encryption process. The generated payment information symmetric encryption key is distributed to bidirectional payment users to generate a payment encryption public key pair and a payment encryption private key pair. Public key exchange is performed based on the payment encryption public key of the sending end and the payment encryption public key of the receiving end to generate the payment encryption exchange public key of the sending end and the payment encryption exchange public key of the receiving end. The payment encryption exchange public key of the sending end and the payment encryption exchange public key of the receiving end are used to encrypt sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data. The payment encryption private key of the sending end and the payment encryption private key of the receiving end are used to perform data matching and decryption on the payment sensitive information encrypted data to generate a sensitive information key negotiation mechanism. According to the sensitive information key negotiation mechanism, the adaptive port encrypted data is digitally signed and verified to generate payment sensitive information digital signature data. Based on the handshake protocol, an encrypted channel is constructed for the payment sensitive information digital signature data to generate a port transmission encrypted channel. The error verification code is used to perform data transmission error detection on the port transmission encryption channel to generate payment transmission port error verification data.
[0106] Preferably, step S4 comprises the following steps:
[0107] Step S41: using the attack strength analysis formula to evaluate the attack strength of the payment transmission port error check data to obtain the attack strength coefficient; setting a firewall for the payment transmission port error check data according to the attack strength coefficient to generate a port firewall;
[0108] Step S42: constructing a security policy library through a port firewall to generate a security policy database; performing port security policy matching on the payment transmission port error check data according to the security policy database to generate intelligent payment port security policy matching data;
[0109] Step S43: Monitor the smart payment port security policy matching data to generate smart payment port security monitoring data; visualize the smart payment port security monitoring data based on a visualization method to generate a smart payment port encrypted monitoring report.
[0110] By using the attack intensity analysis formula, the system can evaluate the attack intensity of the payment transmission port error check data, obtain the attack intensity coefficient, and help the system understand the current attack threat level. According to the attack intensity coefficient, the system can automatically adjust the firewall settings to strengthen the protection of data with high attack intensity and improve the overall security. Through the port firewall, the system can build a security policy library to form a security policy database, which is helpful to organize and store various security policies and provide a comprehensive security policy system. According to the security policy database, the system can perform intelligent security policy matching on the payment transmission port error check data, thereby customizing the port security policy adapted to the current environment and strengthening the prevention of different types of attacks. Real-time monitoring of the intelligent payment port security policy matching data helps the system to detect potential security threats in a timely manner. By processing the monitoring data through a visualization method, the system can generate an intuitive and comprehensive intelligent payment port encryption monitoring report, which helps the security administrator to quickly understand the security status of the system and take timely measures to deal with the threat, thereby improving the overall security and response capabilities.
[0111] In an embodiment of the present invention, by determining a formula for evaluating the attack intensity, the formula can give an attack intensity coefficient according to different indicators (such as attack frequency, attack type, etc.). Then, the payment transmission port error check data is collected and input into the attack intensity analysis formula for evaluation to obtain the attack intensity coefficient. According to the obtained attack intensity coefficient, an algorithm or rule is designed to automatically set the firewall to adapt to the current attack intensity, including adjusting the firewall rules, updating the access control list (ACL), etc. The generated port firewall should be able to effectively filter out malicious traffic and allow legitimate traffic to pass. Using the generated port firewall, start to build a security policy library, involving identifying and recording different types of attack patterns, establishing trust lists, etc. The security policy library should contain a series of policies for various attacks. Using the security policy database, the payment transmission port error check data is matched to determine the port security policy applicable to a specific situation, involving the use of a rule engine or a machine learning algorithm to make decisions based on the current context and historical data. Real-time monitoring of the intelligent payment port security policy matching data can be achieved by deploying monitoring tools, audit logs, etc. in the system. The monitoring system should be able to detect potential security threats in a timely manner and trigger alarms. Use visualization tools or technologies to process and display monitoring data and generate visualization reports of smart payment port security monitoring data, including drawing charts and making dashboards, so that security administrators can intuitively understand the security status of the system and take necessary measures in a timely manner.
[0112] Preferably, the attack intensity analysis formula in step S41 is as follows:
[0113]
[0114] In the formula, Q represents the attack intensity coefficient, n represents the number of packets, and b j It is represented as the attack intensity of the jth data packet, c j It is represented as the transmission port error check data of the jth data packet, d j It is represented as the check factor of the jth data packet, δ is represented as the attack frequency coefficient, ∈ is represented as the attack impact area coefficient, ζ is represented as the number of attacks, η is represented as the attack propagation coefficient, and T is represented as the upper limit of the attack evaluation time.
[0115] The present invention analyzes and integrates an attack intensity analysis formula. The principle of the formula is to calculate the attack intensity coefficient Q by comprehensively analyzing the data packets within a period of time, which is used to evaluate the intensity of the attack. The integral in the formula represents the cumulative sum of the attack intensity in the entire time period. The numerator is the weighted sum of the attack intensity of each data packet, and the denominator is to adjust the weighted sum so that the data packets with higher check factors and smaller transmission port error check data contribute more to the overall attack intensity. The parameter n in the formula represents the number of data packets, which affects the calculation of the overall attack intensity. A larger number of data packets can provide more comprehensive attack information, making the attack intensity assessment more accurate. The attack intensity parameter b of each data packet is j Indicates the attack strength of a single data packet, its weight and contribution to the overall attack strength are accumulated. The difference in attack strength of different data packets will be taken into account in the calculation, which will affect the evaluation of the overall attack strength. Parameter c j Indicates the transmission port error check data of each data packet. The size and quality of the transmission port error check data will affect the calculation of the attack strength. Larger transmission port error check data means a more severe attack, thereby increasing the overall attack strength. Parameter d j Represents the check factor of each data packet. The size of the check factor affects the weight of the data packet in the calculation. A larger check factor can increase the importance of the data packet and contribute more to the overall attack intensity. The parameter δ is used to adjust the influence of the denominator. Increasing δ will cause the denominator to become larger, thereby reducing the overall attack intensity. The adjustment of δ can make the contribution of the attack frequency to the overall attack intensity more obvious. The parameter ∈ is also used to adjust the influence of the denominator. Increasing ∈ will increase the term in the denominator, thereby increasing the overall attack intensity. The adjustment of ∈ can make the contribution of the attack impact area to the overall attack intensity more obvious. The parameters ζ and η are used to adjust the influence of the square term in the numerator. Increasing ζ and η will increase the influence of the square term and further increase the overall attack intensity. Adjusting ζ and η can make the number and propagation of attacks contribute more significantly to the overall attack intensity. When using the conventional attack intensity analysis formula in the art, the attack intensity coefficient can be obtained. By applying the attack intensity analysis formula provided by the present invention, the attack intensity coefficient can be calculated more accurately. By adjusting the value of the parameter, the importance of different features and different attack types can be flexibly adjusted according to actual needs, thereby producing a beneficial effect. The flexibility makes the formula suitable for different attack type identification scenarios and can improve the identification accuracy and system security. By setting these parameters reasonably, the formula can comprehensively consider factors such as the number of data packets, attack intensity, transmission port error check data, check factor, attack frequency, impact area, number of attacks and attack propagation, so as to comprehensively evaluate the attack intensity, help identify and analyze the severity of the attack, and provide guidance and decision-making basis for taking corresponding defense measures.
[0116] In this specification, a smart payment port encryption system is provided, which is used to execute the above-mentioned smart payment port encryption method. The smart payment port encryption system includes:
[0117] The data fusion module is used to obtain user payment data; perform multimodal feature data fusion on the user payment data to generate multimodal biometric data; perform data preprocessing on the multimodal biometric data to generate standard multimodal biometric data;
[0118] The attack identification module is used to upload the multimodal biometric data to the API for port traffic monitoring and generate payment information port traffic monitoring data; perform abnormal traffic risk prediction on the payment information port traffic monitoring data and generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with the preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; perform adaptive port data encryption on the suspicious payment transmission data to generate adaptive port encrypted data;
[0119] The channel encryption module is used to encrypt sensitive information of the adaptive port encryption data to generate payment sensitive information encrypted data; to construct an encryption channel for the payment sensitive information encrypted data to generate a port transmission encryption channel; to perform data transmission error detection on the port transmission encryption channel to generate payment transmission port error check data;
[0120] The intelligent monitoring module is used to evaluate the attack intensity of the payment transmission port error check data to obtain the attack intensity coefficient; match the port security policy of the payment transmission port error check data according to the attack intensity coefficient to generate intelligent payment port security policy matching data; monitor the intelligent payment port security policy matching data to generate an intelligent payment port encryption monitoring report.
[0121] The beneficial effect of the present invention is that by generating multimodal biometric data, different biometric features are combined to improve the accuracy of user identity authentication. By monitoring port traffic and predicting abnormal traffic risks, abnormal operations and potential attack behaviors can be discovered in time to ensure the security of payment information. Adaptive encryption is performed according to abnormal traffic risk prediction data to ensure the security and integrity of payment data during transmission. By building an encrypted channel and performing data transmission error detection, it is ensured that the data transmission process is not affected by interference or errors. Verification data and attack intensity evaluation improve the system's ability to identify and respond to errors and attacks, and enhance the stability and reliability of the system. Intelligent security strategy matching is performed according to the attack intensity coefficient, and the intelligent payment port is monitored in real time to timely discover and respond to security threats, thereby improving the intelligence and security of the system. Encrypting payment sensitive information avoids the risk of sensitive data being stolen or leaked during transmission. By matching verification data and intelligent security strategies, the possibility of errors and attacks during payment data transmission is reduced. Through multi-level data processing, encryption, monitoring and evaluation, the overall security and reliability of the payment system are improved, the risk of payment risks and data leakage is reduced, and timely detection and response to abnormal behaviors are achieved, providing a strong guarantee for the stable operation of the intelligent payment system. Therefore, the present invention improves the security and reliability of payment by introducing error checking and attack intensity assessment at the data transmission level, dynamically adjusting the security policy according to the attack intensity, and performing real-time monitoring and management of the payment port.
[0122] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0123] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A smart payment port encryption method, It is characterized in that The following steps are involved: Step S1: obtaining user payment data; fusing multimodal feature data of the user payment data to generate multimodal biometric data; Performing data preprocessing on multimodal biometric data to generate standard multimodal biometric data; Step S2: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; Perform abnormal traffic risk prediction on payment information port traffic monitoring data to generate abnormal traffic risk prediction data; The abnormal traffic risk prediction data is compared with the preset abnormal traffic threshold. When the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, the corresponding user payment data is marked as suspicious payment transmission data; the suspicious payment transmission data is adaptively encrypted at the port, thereby generating adaptive port encrypted data; Step S3: Encrypt the sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data; Construct an encrypted channel for encrypted data of payment sensitive information and generate an encrypted channel for port transmission; Perform data transmission error detection on the port transmission encryption channel and generate payment transmission port error verification data; Step S4: performing attack intensity assessment on the payment transmission port error check data to obtain an attack intensity coefficient; performing port security policy matching on the payment transmission port error check data according to the attack intensity coefficient to generate intelligent payment port security policy matching data; Monitor the smart payment port security policy matching data and generate a smart payment port encrypted monitoring report; Step S4 includes the following steps: Step S41: using the attack strength analysis formula to evaluate the attack strength of the payment transmission port error check data to obtain the attack strength coefficient; setting a firewall for the payment transmission port error check data according to the attack strength coefficient to generate a port firewall; Step S42: constructing a security policy library through a port firewall to generate a security policy database; performing port security policy matching on the payment transmission port error check data according to the security policy database to generate intelligent payment port security policy matching data; Step S43: Monitor the smart payment port security policy matching data to generate smart payment port security monitoring data; visualize the smart payment port security monitoring data based on a visualization method to generate a smart payment port encryption monitoring report; the attack intensity analysis formula in step S41 is as follows: ; In the formula, Expressed as the attack strength coefficient, Expressed as the number of packets, Expressed as The attack strength of packets, Expressed as The transmission port error check data of each data packet, Expressed as The check factor of the data packet, Expressed as the attack frequency coefficient, Expressed as the attack impact area coefficient, Expressed as the number of attacks, Expressed as the propagation coefficient of the attack, Represents the upper time limit for attack evaluation.
2. The smart payment port encryption method according to claim 1, It is characterized in that Step S1 includes the following steps: Step S11: Obtain user payment data using API; Step S12: Verify the number of incorrect payment attempts using the payment password on the user's payment data to generate the number of times the user's payment password is entered; compare the number of times the user's payment password is entered with a preset standard input number threshold, and when the number of times the user's payment password is entered is less than the preset standard input number threshold, use the payment device to perform fingerprint recognition on the user to obtain the user's payment fingerprint data; Step S13: When the number of times the user inputs the payment password is greater than the preset standard input number threshold, the payment device is used to perform facial recognition on the user to obtain the user payment facial recognition data; the user payment data, the user payment fingerprint data or the user payment facial recognition data are subjected to feature data fusion to generate multimodal biometric recognition data; Step S14: preprocess the multimodal biometric data to generate standard multimodal biometric data, wherein the data preprocessing includes data denoising, data missing value filling and data standardization.
3. The smart payment port encryption method according to claim 2, It is characterized in that Step S2 includes the following steps: Step S21: Upload the multimodal biometric data to the API for port traffic monitoring to generate payment information port traffic monitoring data; divide the payment information port traffic monitoring data into data sets to obtain a model training set and a model test set; Step S22: Perform model training on the model training set using a convolutional neural network algorithm to generate an abnormal traffic risk training model; perform model testing on the abnormal traffic risk training model according to the model test set to generate an abnormal traffic risk prediction model; Step S23: import the payment information port traffic monitoring data into the abnormal traffic risk prediction model to perform abnormal traffic risk prediction and generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with the preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is greater than the preset abnormal traffic threshold, cancel the corresponding user payment data; when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; Step S24: Perform intelligent attack perception on suspicious payment transmission data to generate intelligent attack perception classification data; perform adaptive port data encryption based on the intelligent attack perception classification data to generate adaptive port encryption data.
4. The smart payment port encryption method according to claim 3, It is characterized in that Step S24 includes the following steps: Step S241: performing payment data packet feature analysis on the suspicious payment transmission data to generate suspicious payment transmission data packet feature data; performing payment frequency analysis on the suspicious payment transmission data packet feature data to generate suspicious payment frequency data; Step S242: performing attack type identification on the suspicious payment frequency data and the suspicious payment transmission data packet feature data through an attack type identification formula to generate attack type identification data, wherein the attack type identification includes Dos attack type identification, SQL injection type identification and malware type identification; Step S243: performing traffic pattern recognition on the attack type recognition data according to a clustering algorithm to generate attack type traffic pattern classification data, wherein the attack type traffic pattern classification data includes traffic attack pattern data, injection attack pattern data, and malicious scanning attack pattern data; Step S244: construct an autonomous encryption mechanism for the flow attack mode data, injection attack mode and malicious scanning attack mode data to generate an adaptive port encryption mechanism; perform adaptive port data encryption on the attack type identification data based on the adaptive port encryption mechanism to generate adaptive port encryption data.
5. The smart payment port encryption method according to claim 4, It is characterized in that The attack type identification formula in step S242 is as follows: ; In the formula, Represents attack type identification data, Represented as suspicious payment frequency data, Indicates characteristic data of suspicious payment transmission data packets. Expressed as the number of attack types, Expressed as The weight of the suspicious payment frequency data being evaluated by DoS attack, Expressed as The suspicious payment frequency data is subject to the harm weight of SQL injection assessment. Expressed as The suspicious payment frequency data is subject to the harm weight of malware assessment. It is expressed as the weight ratio coefficient used to evaluate the DoS attack type in the suspicious payment frequency data. It is expressed as the weight ratio coefficient used to evaluate the SQL injection type in the characteristic data of suspicious payment transmission data packets. It is expressed as the weight ratio coefficient used to evaluate the malware type in the suspicious payment transmission data packet feature data.
6. The smart payment port encryption method according to claim 4, It is characterized in that Step S244 includes the following steps: Step S2441: Analyze the dynamic changes of data packets of suspicious payment transmission data based on the flow attack mode data to generate payment timestamp data and payment sequence data; perform data obfuscation on the payment timestamp data and payment sequence data to generate payment obfuscation data; perform port signature encryption on the payment obfuscation data using digital signature technology to generate a flow attack encryption mechanism; Step S2442: Encrypt the suspicious payment transmission data as a whole based on the injection attack mode to obtain the encrypted data of the whole data packet, wherein the encrypted data of the whole data packet includes data content encrypted data and meta-encrypted data; perform data integrity protection on the data content encrypted data and meta-encrypted data by using a hash algorithm to generate payment integrity data; construct and transmit an encrypted tunnel according to the payment integrity data, thereby generating an injection attack encryption mechanism; Step S2443: confirming the port address of the suspicious payment transmission data based on the malicious scanning attack mode data to generate payment port address data; using the port hiding technology to hide the port number of the payment port address data to generate port hiding data; implanting false data into the port hiding data to generate payment disguised data; using the payment disguised data to perform intrusion detection on the suspicious payment transmission data to generate intrusion detection degree data; Step S2444: IDS encrypt the suspicious payment transmission data according to the intrusion detection degree data, thereby generating a malicious scanning attack encryption mechanism; merge the flow attack encryption mechanism, the injection attack encryption mechanism and the malicious scanning attack encryption mechanism to generate an adaptive port encryption mechanism; Step S2445: Adaptively encrypt the attack type identification data based on the adaptive port encryption mechanism, thereby generating adaptive port encrypted data.
7. The smart payment port encryption method according to claim 1, It is characterized in that Step S3 includes the following steps: Step S31: Generate a symmetric encryption key for the adaptive port encrypted data through a symmetric encryption algorithm to obtain a symmetric encryption key for payment information; distribute the symmetric encryption key for payment information to two-way payment users to generate a payment encryption public key pair and a payment encryption private key pair, wherein the payment encryption public key pair includes a sending end payment encryption public key and a receiving end payment encryption public key, and the payment encryption private key pair includes a sending end payment encryption private key and a receiving end payment encryption private key; Step S32: performing public key exchange based on the sender payment encryption public key and the receiver payment encryption public key to generate the sender payment encryption exchange public key and the receiver payment encryption exchange public key; using the sender payment encryption exchange public key and the receiver payment encryption exchange public key to encrypt sensitive information of the adaptive port encrypted data to generate payment sensitive information encrypted data; Step S33: using the sending end payment encryption private key and the receiving end payment encryption private key to perform data matching and decryption on the payment sensitive information encrypted data, and generate a sensitive information key negotiation mechanism; Step S34: digitally sign and verify the adaptive port encrypted data according to the sensitive information key negotiation mechanism to generate payment sensitive information digital signature data; construct an encryption channel for the payment sensitive information digital signature data based on the handshake protocol to generate a port transmission encryption channel; Step S35: Use the error verification code to perform data transmission error detection on the port transmission encryption channel to generate payment transmission port error verification data.
8. An intelligent payment port encryption system, It is characterized in that Used to execute the smart payment port encryption method as claimed in claim 1, the smart payment port encryption system comprises: The data fusion module is used to obtain user payment data; perform multimodal feature data fusion on the user payment data to generate multimodal biometric data; perform data preprocessing on the multimodal biometric data to generate standard multimodal biometric data; The attack identification module is used to upload the multimodal biometric data to the API for port traffic monitoring and generate payment information port traffic monitoring data; perform abnormal traffic risk prediction on the payment information port traffic monitoring data and generate abnormal traffic risk prediction data; compare the abnormal traffic risk prediction data with the preset abnormal traffic threshold, and when the abnormal traffic risk prediction data is less than the preset abnormal traffic threshold, mark the corresponding user payment data as suspicious payment transmission data; perform adaptive port data encryption on the suspicious payment transmission data to generate adaptive port encrypted data; The channel encryption module is used to encrypt sensitive information of the adaptive port encryption data to generate payment sensitive information encrypted data; to construct an encryption channel for the payment sensitive information encrypted data to generate a port transmission encryption channel; to perform data transmission error detection on the port transmission encryption channel to generate payment transmission port error check data; The intelligent monitoring module is used to evaluate the attack intensity of the payment transmission port error check data to obtain the attack intensity coefficient; match the port security policy of the payment transmission port error check data according to the attack intensity coefficient to generate intelligent payment port security policy matching data; monitor the intelligent payment port security policy matching data to generate an intelligent payment port encryption monitoring report.
