Security access system based on block chain
Through a blockchain-based secure access system, the access behavior of users on a private network is collected, analyzed and detected, and the baseline model and distributed storage are built, which solves the problem of low detection accuracy of traditional monitoring methods and achieves efficient user access behavior. Security monitoring and abnormal detection.
Patent Information
- Application Number
- CN202410926774.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-01
AI Technical Summary
Traditional business data access security monitoring lacks continuous monitoring of user access behavior and does not consider the relationship between user access behavior, resulting in low detection accuracy and easy to lead to serious security issues such as data leakage and identity spoof attacks.
Design a secure access system based on blockchain, collect, analyze, detect and display statistical management of user access behavior data on private networks, and use LSTM network to build a baseline model of user access behavior, combining Kafka cluster and blockchain distributed Storage, real-time monitoring and abnormal detection of user access behavior.
It improves the accuracy and security of data acquisition by users, ensures that even if the node goes down, it does not lead to data loss. The system analysis and processing results are more accurate and efficient, and effectively prevent data leakage and identity spoofing attacks.
Smart Images

Figure CN118890139A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of secure access technology, and in particular to a secure access system based on blockchain. Background Art
[0002] With the rapid development of network technology, banks, operators and other industries have successively built their own private networks. Private networks (abbreviated as private networks) are defined as networks built in certain industries that can meet special work needs. They can simplify the difficulty of daily business management in the industry and improve management efficiency. However, while private networks are widely promoted and used, security incidents for industry private networks are emerging in an endless stream, such as unauthorized access, intentional data leakage, identity fraud attacks, etc., which make industry private networks face unprecedented security challenges. However, traditional business data access security monitoring lacks continuous monitoring of user access behavior, and only detects the time range and frequency of user behavior. It does not take into account the environment when the user accesses, and ignores the relationship between user access behaviors, resulting in low detection accuracy, which is easy to cause serious security problems such as data leakage and identity fraud attacks. Therefore, it is necessary to design a blockchain-based security access system with high security and intelligent control. Summary of the invention
[0003] The purpose of the present invention is to provide a blockchain-based secure access system to solve the problems raised in the above-mentioned background technology.
[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: a secure access method based on blockchain, comprising: Collecting data and information about user access behavior on the private network; Analyze and control the collected user access data information; Analyze and detect user access behavior data information; Display and statistically manage user access behavior data.
[0005] According to the above technical solution, the collection of user access behavior data information of the private network includes: When users access the private network, user access behavior log data information is collected from the API gateway and the private network's internal business system.
[0006] According to the above technical solution, the analysis and control processing of the collected user access data information includes: After completing the data collection of user access behavior, it is further analyzed and controlled through the Kafka cluster; After completing the collection and processing of user access behavior data information, it will be stored in a distributed manner on the blockchain.
[0007] According to the above technical solution, the analysis and detection of user access behavior data information includes: The LSTM network is used to process the user access behavior data and build a user access behavior baseline model, which includes an input layer, a hidden layer, and an output layer. The user's access date is used as the index, and the interroga function is called to query the ID of the access user according to the set period and obtain all access behavior data, and then the behavior prediction is performed based on the baseline model; After receiving the prediction result of abnormal user access behavior, security analysts will conduct a security analysis on the user's access behavior. If further analysis determines that there is a security issue, the user's access will be terminated immediately. Otherwise, it will be marked and the corresponding real-time monitoring will continue.
[0008] According to the above technical solution, the display statistics management of user access behavior data includes: Collect statistics on the user access behavior data that is determined as abnormal or marked by the baseline model and display it on the web page in the form of a data table for security analysts to review and check; The number of times the same user is judged or marked by the model within a specified time is counted. When the statistical number exceeds the set threshold, the user is judged as a sensitive user and security analysts conduct real-time management and detection on the user.
[0009] According to the above technical solution, a blockchain-based secure access system includes: Data management module, used to collect and process user access behavior data information of the private network; Analysis and processing module, used to analyze and detect user access behavior data information; The statistical display module is used to display and manage user access behavior data.
[0010] According to the above technical solution, the data management module includes: Data collection module, used to collect user access behavior data information; A processing control module is used to process and control user access behavior data; The data storage module is used for storage and management of data information.
[0011] According to the above technical solution, the analysis and processing module includes: Model building module, used to build a baseline model of user access behavior; Analysis and detection module, used to analyze and detect user access behavior; The determination processing module is used to determine the user's access behavior.
[0012] According to the above technical solution, the statistical display module includes: Display management module, used for data information display management; The statistical recording module is used to record the number of determination marks.
[0013] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention, by providing a data management module, an analysis and processing module and a statistical display module, can realize the collection of distributed multi-source heterogeneous log data, ensure that the collected user access data is more accurate and comprehensive, and is conducive to security access analysis and processing. At the same time, it is ensured that even if a node crashes, data information will not be lost, making the system analysis and processing results more accurate and efficient, and effectively ensuring the security of data information. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 is a flowchart of a secure access method based on blockchain provided in Embodiment 1 of the present invention; Figure 2 This is a module structure diagram of the blockchain-based secure access system provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0016] Embodiment 1: Figure 1 This is a flowchart of a secure access method based on blockchain provided in Embodiment 1 of the present invention. This embodiment can be applied to a secure access system. The method can be executed by a secure access system based on blockchain provided in an embodiment of the present invention. The system is composed of multiple software and hardware modules, such as Figure 1 As shown, the method specifically comprises the following steps: S101, collecting user access behavior data information of the private network; Exemplarily, in an embodiment of the present invention, during the process of a user accessing a private network, user access behavior log data information is collected from the API gateway and the private network's internal business system; since the Web access logs, terminal logs, authentication logs, etc. of the API gateway and the private network's internal system record various access behavior data occurring in the industry private network, they can accurately reflect the user's behavioral characteristics in the industry private network. Therefore, through this step, the root directory where the logs are stored on the API gateway and the industry private network's internal system server is monitored in real time. When a new log is generated under the root directory, the new log is automatically identified by using Flume technology, and transmitted to the user access behavior data collection space for collection and storage. At the same time, since the log data of the user's access behavior may be stored on different servers, the processing adopts a cluster mode to deploy Flume, which can realize the collection of distributed multi-source heterogeneous log data, ensure that the collected user access data is more accurate and comprehensive, and facilitate subsequent security access analysis and processing.
[0017] S102, analyzing and controlling the collected user access data information; Exemplarily, in an embodiment of the present invention, after completing the data information collection of user access behavior, it is further analyzed and controlled by the Kafka cluster; since data loss may occur due to untimely processing during the processing of user access behavior data information (including data cleaning, data classification and feature extraction, etc.), which has a serious impact on the accuracy of the system analysis and processing results, a Kafka cluster is introduced through this step, and the cluster is set to three nodes, namely a Leader and two Followers. A Topic is defined in the Kafka cluster, and 3 partitions and 3 copy spaces are set for the Topic, so that the copies are stored on different Brokers respectively, ensuring that each partition will have a Leader copy and two Follower copies. When a Broker fails to run, the partition on the Broker where the Leader is located will become unavailable. At this time, Kafka is controlled to automatically remove the Leader, and then a new Leader is selected from other copies. Through this processing, it is ensured that even if a node crashes, data information will not be lost, making the system analysis and processing results more accurate and efficient.
[0018] After completing the collection and processing of user access behavior data information, it will be distributedly stored in the blockchain; through this processing, any blockchain node can record data information independently. Unless all nodes are destroyed, the data information will not be lost, effectively ensuring the security of the data information.
[0019] S103, analyzing and detecting user access behavior data information; Exemplarily, in an embodiment of the present invention, an LSTM network is used to process user access behavior data to construct a user access behavior baseline model, which includes an input layer, a hidden layer and an output layer; in this step, the input layer is composed of the user's behavior vector, and the access behavior input by the user is mainly mapped into a behavior vector by one-hot encoding, and the vector is input into the memory unit of the LSTM according to a preset sequence length; the hidden layer is composed of multiple LSTM memory units, and its main function is to perform multiple analysis and recognition on the input features to improve the accuracy of behavior prediction; the output layer is composed of the LSTM's predicted access behavior vector of the user, and its main function is to convert the original output of the LSTM into a probability distribution, and then select the one with the highest probability as the predicted behavior at the next moment. Through this processing, the user behavior occurring at the next moment can be predicted, and the predicted behavior can be used to detect abnormal user access behavior.
[0020] The date of user access is used as the index, and the interroga function is called. The ID of the accessing user is queried according to the set period and all access behavior data is obtained, and then behavior prediction is performed according to the baseline model. In this step, after obtaining the access behavior data of all users who have completed data processing, the access behavior data is one-hot encoded, and divided into multiple behavior sequences according to the sequence length. The user behavior sequence is input into the user's access behavior baseline model for behavior prediction. After analyzing the probability difference, the probability difference is compared with the detection threshold. If the probability difference is greater than the detection threshold, the user's access behavior is determined to be abnormal behavior. Otherwise, it is determined to be normal behavior.
[0021] After receiving the prediction result of abnormal user access behavior, security analysts will conduct a security analysis on the user's access behavior. If further analysis determines that there is a security issue, the user's access will be terminated immediately. Otherwise, it will be marked and the corresponding real-time monitoring will continue.
[0022] S104, displaying and statistically managing user access behavior data; Exemplarily, in an embodiment of the present invention, the user access behavior data determined as abnormal access or marked by the baseline model is counted and displayed on a web page in the form of a data table, and presented for security analysts to review and check; The number of times the same user is judged or marked by the model within a specified time is counted. When the statistical number exceeds the set threshold, the user is judged as a sensitive user and security analysts conduct real-time management and detection on the user.
[0023] Embodiment 2: Embodiment 2 of the present invention provides a secure access system based on blockchain. Figure 2The schematic diagram of the module structure of the blockchain-based secure access system provided in the second embodiment is as follows: Figure 2 As shown, the system includes: Data management module, used to collect and process user access behavior data information of the private network; Analysis and processing module, used to analyze and detect user access behavior data information; The statistical display module is used to display and manage user access behavior data.
[0024] In some embodiments of the present invention, the data management module includes: Data collection module, used to collect user access behavior data information; A processing control module is used to process and control user access behavior data; The data storage module is used for storage and management of data information.
[0025] In some embodiments of the present invention, the analysis and processing module includes: Model building module, used to build a baseline model of user access behavior; Analysis and detection module, used to analyze and detect user access behavior; The determination processing module is used to determine the user's access behavior.
[0026] In some embodiments of the present invention, the statistical display module includes: Display management module, used for data information display management; The statistical recording module is used to record the number of determination marks.
[0027] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0028] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A secure access method based on blockchain, Features: include: Collecting data and information about user access behavior on the private network; Analyze and control the collected user access data information; Analyze and detect user access behavior data information; Display and statistically manage user access behavior data.
2. The blockchain-based secure access method according to claim 1, Features: The collecting of user access behavior data information of the private network includes: When users access the private network, user access behavior log data information is collected from the API gateway and the private network's internal business system.
3. The blockchain-based secure access method according to claim 1, Features: The analyzing and controlling process of the collected user access data information includes: After completing the data collection of user access behavior, it is further analyzed and controlled through the Kafka cluster; After completing the collection and processing of user access behavior data information, it will be stored in a distributed manner on the blockchain.
4. The blockchain-based secure access method according to claim 1, Features: The analysis and detection of user access behavior data information includes: The LSTM network is used to process the user access behavior data and build a user access behavior baseline model, which includes an input layer, a hidden layer, and an output layer. The user's access date is used as the index, and the interroga function is called to query the ID of the access user according to the set period and obtain all access behavior data, and then the behavior prediction is performed based on the baseline model; After receiving the prediction result of abnormal user access behavior, security analysts will conduct a security analysis on the user's access behavior. If further analysis determines that there is a security issue, the user's access will be terminated immediately. Otherwise, it will be marked and the corresponding real-time monitoring will continue.
5. The blockchain-based secure access method according to claim 1, Features: The display statistics management of user access behavior data includes: Collect statistics on the user access behavior data that is determined as abnormal or marked by the baseline model and display it on the web page in the form of a data table for security analysts to review and check; The number of times the same user is judged or marked by the model within a specified time is counted. When the statistical number exceeds the set threshold, the user is judged as a sensitive user and security analysts conduct real-time management and detection on the user.
6. A secure access system based on blockchain, Features: include: Data management module, used to collect and process user access behavior data information of the private network; Analysis and processing module, used to analyze and detect user access behavior data information; The statistical display module is used to display and manage user access behavior data.
7. The blockchain-based secure access system according to claim 6, Features: The data management module comprises: Data collection module, used to collect user access behavior data information; A processing control module is used to process and control user access behavior data; The data storage module is used for storage and management of data information.
8. The blockchain-based secure access system according to claim 6, Features: The analysis and processing module comprises: Model building module, used to build a baseline model of user access behavior; Analysis and detection module, used to analyze and detect user access behavior; The determination processing module is used to determine the user's access behavior.
9. The blockchain-based secure access system according to claim 6, Features: The statistical display module includes: Display management module, used for data information display management; The statistical recording module is used to record the number of determination marks.
Citation Information
Patent Citations
Crawler identification method and system based on user access behavior analysis
CN113505041A
Information processing method and system based on artificial intelligence analysis
CN115906160A
