Safety control method and device based on user identity vertical tracking
By generating a unique identifier for the user's identity and monitoring the behavioral boundaries with a finite state automata, the problem of difficulty in discovering network attack behavior in the prior art is solved, and vertical tracking of user identity and timely alarms for abnormal behavior are realized.
Patent Information
- Application Number
- CN202410957323.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-12
AI Technical Summary
The existing network security defense system is difficult to effectively discover abnormal behaviors in business processes through log information, especially the continuous tracking and overriding use of user identity operations.
By generating a unique identifier for the user's original identity information, using a limited state automatic mechanism to establish behavioral boundaries for user permissions, continuously monitor user behavior, judge overright acts and issue alarms.
It realizes vertical tracking of user identities, timely discovers and alarms abnormal behaviors, and improves the timeliness and accuracy of detection of network intrusion behaviors.
Smart Images

Figure CN118944918A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a security control method, a security control device, a computer-readable storage medium and a computer program product based on vertical tracking of user identities. Background Art
[0002] Most of the current network security defense systems rely on the integrated analysis of log information output by scattered security devices. This log information is not formed based on the business process and workflow of the business system, but is discrete and fragmented. It is difficult to reflect abnormal behaviors in the business process from these log information; and the business system's own logs often only focus on function calls, but lack continuous and in-depth tracking of user identity operations, and it is also difficult to detect abnormal behaviors such as impersonating user identities or using user identities beyond their authority. Therefore, it is powerless against attacks that have already invaded the system.
[0003] Therefore, how to start from the user's unique identity, track the vertical chain from logging into the system to using the various function calls in the system, and effectively discover the abnormal behavior of illegal intruders in the business process based on the calling relationship of functions and interfaces within the authority scope corresponding to the same user identity is a technical problem that technical personnel in this field need to solve. Summary of the invention
[0004] The main purpose of this application is to provide a security control method, a security control device, a computer-readable storage medium and a computer program product based on vertical tracking of user identities, so as to at least solve the problem in the prior art that network attack behaviors that have invaded the information system cannot be effectively discovered.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a security control method based on vertical tracking of user identity is provided, including: processing the original identity information of the current user to generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes a user account name, an email address and a mobile phone number; determining the access rights of the current user according to the unique identity identifier, and one unique identity identifier corresponds to one or more access rights; generating a corresponding finite state machine model using a finite state automaton according to the access rights, and one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights; comparing the user behavior of the current user with the finite state machine model, and when the comparison between the user behavior and the finite state machine model is inconsistent, determining that the user behavior of the current user is abnormal behavior, and issuing an alarm message, the alarm message includes information of the current user's behavior vertical tracking chain, and the behavior vertical tracking chain is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0006] Optionally, the original identity information of the current user is processed to generate a unique identity identifier, including: obtaining the original identity information of the current user; encoding the original identity information using a plurality of different hash algorithms to obtain hash values corresponding to each of the hash algorithms; and concatenating all the hash values to obtain the unique identity identifier.
[0007] Optionally, a corresponding finite state machine model is generated using a finite state automaton according to the access rights, which at least includes: obtaining all calling functions within the access rights, the calling functions being functions that can be called by the current user under the access rights; determining the columns of the finite state machine matrix with the calling functions as nodes according to the finite state automaton, and determining the rows of the finite state machine matrix with calling relationships as edges, the calling relationships being the relationships between two calling functions; generating a finite state machine matrix based on all the columns and all the rows, and determining the finite state machine matrix as the finite state machine model.
[0008] Optionally, comparing the user behavior of the current user with the finite state machine model at least includes: obtaining the current calling function in the user behavior; comparing the source function in the current calling function with the rows of the finite state machine matrix to obtain a first comparison result, the first comparison result including a successful comparison and a failed comparison; comparing the calling relationship corresponding to the current calling function with the columns of the finite state machine matrix to obtain a second comparison result, the second comparison result including a successful comparison and a failed comparison; comparing the target function in the current calling function with the elements of the finite state machine matrix to obtain a third comparison result, the third comparison result including a successful comparison and a failed comparison; when the first comparison result, the second comparison result and the third comparison result are all successful comparisons, determining that the user behavior of the current user is the normal behavior; when any one of the first comparison result, the second comparison result and the third comparison result is a failed comparison, determining that the user behavior of the current user is the abnormal behavior.
[0009] Optionally, generating a corresponding finite state machine model using a finite state automaton according to the access rights also includes: obtaining all the calling functions within the access rights; generating a finite state graph according to the finite state automaton with the calling functions as nodes and the calling relationships as edges; and determining the finite state graph as the finite state machine model.
[0010] Optionally, based on comparing the user behavior of the current user with the finite state machine model, it also includes: obtaining a current calling relationship in the user behavior; in a case where the current calling relationship exists in the finite state graph, determining that the user behavior of the current user is the normal behavior; in a case where the current calling relationship does not exist in the finite state graph, determining that the user behavior of the current user is the abnormal behavior.
[0011] Optionally, before comparing the user behavior of the current user with the finite state machine matrix, the method further includes: obtaining all user behaviors of the current user and corresponding calling times, the user behavior being the behavior of calling function functions and interfaces after the current user logs into the system, and the calling time being the time when the user behavior occurs; generating a vertical tracking chain of the behavior corresponding to the current user based on the user behavior and the calling time.
[0012] According to another aspect of the present application, a security control device based on vertical tracking of user identity is provided, the device comprising: a first generating unit, used to process the original identity information of the current user, and generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes a user account name, an email address and a mobile phone number; a determining unit, used to determine the access rights of the current user according to the unique identity identifier, and one unique identity identifier corresponds to one or more access rights; a second generating unit, used to generate a corresponding finite state machine matrix using a finite state automaton according to the access rights, one access right corresponds to one finite state machine matrix, and the finite state machine model is used to represent the normal behavior of the current user under the access rights; a determining unit, used to compare the user behavior of the current user with the finite state machine matrix, and when the comparison between the user behavior and the finite state machine model is inconsistent, determine that the user behavior of the current user is abnormal behavior, and issue an alarm message, the alarm message including information of the current user's behavior vertical tracking chain, and the behavior vertical tracking chain is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0014] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the methods described above is implemented.
[0015] Applying the technical solution of the present application, in a security control method based on vertical tracking of user identities, first, the original identity information of the current user is processed to generate a unique identity identifier of the current user, the current user is the user currently logged into the system, and the original identity information at least includes the user account name, email address and mobile phone number; then, the access rights of the current user are determined based on the unique identity identifier, and one unique identity identifier corresponds to one or more access rights; then, a corresponding finite state machine model is generated based on the access rights using a finite state automaton, one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights; finally, the user behavior of the current user is compared with the finite state machine model. When the comparison between the user behavior and the finite state machine model is inconsistent, the user behavior of the current user is determined to be an abnormal behavior, and an alarm message is issued. The alarm message includes information on the vertical tracking chain of the behavior of the current user, and the vertical tracking chain of the behavior is a full-process tracking chain formed based on the behavior of the current user accessing the business after logging into the system. This application generates a unique and irreversible user identity by processing the original user identity information; starting from the user login authentication, all activities in the entire business process of accessing services and data with this user identity after login are tracked according to the user identity unique identifier, and a vertical tracking chain of user behavior is constructed; the behavior boundary of user authority is established through the method of finite state automaton; user behavior actions are continuously monitored, and when there is a behavior boundary that crosses the authority, it can be judged as abnormal behavior and an alarm is issued for disposal. This application solves the problem that the existing technology cannot effectively detect network attack behaviors that have invaded the information system. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing a security control method based on vertical tracking of user identity provided in an embodiment of the present application is shown;
[0017] Figure 2 A schematic flow chart of a security control method based on vertical tracking of user identity provided according to an embodiment of the present application is shown;
[0018] Figure 3 A schematic diagram of a method for generating a unique identifier of a user identity provided in accordance with an embodiment of the present application is shown;
[0019] Figure 4 A finite state diagram provided according to an embodiment of the present application is shown;
[0020] Figure 5A structural block diagram of a security control device based on vertical tracking of user identity provided according to an embodiment of the present application is shown.
[0021] The above drawings include the following reference numerals:
[0022] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0023] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] As introduced in the background technology, network security defense systems in the prior art mostly rely on the integrated analysis of log information output by decentralized security devices. Such log information is not formed based on the business processes and workflows of the business system, but is discrete and fragmented. It is difficult to reflect abnormal behaviors in the business processes from these log information. In order to solve the problem that the prior art cannot effectively discover network attack behaviors that have invaded the information system, the embodiments of the present application provide a security control method, a security control device, a computer-readable storage medium and a computer program product based on vertical tracking of user identity.
[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0028] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a security control method based on vertical tracking of user identity according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] In this embodiment, a security control method based on vertical tracking of user identity is provided, which runs on a mobile terminal, a computer terminal or a similar computing device. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] Figure 2 : is a flow chart of a security control method based on vertical tracking of user identity according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0032] Step S201, processing the original identity information of the current user to generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes the user account name, email address and mobile phone number.
[0033] Specifically, determine the specific content of the original identity information that can uniquely identify the user's identity, including account name, email address, mobile phone number and other information, process the user's original identity information, and generate a unique and irreversible user identity.
[0034] Step S202: determining the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights.
[0035] Specifically, since each different user identity can call different functions and permissions, the user identity unique identification ID belongs to one or more access permissions.
[0036] Step S203: Generate a corresponding finite state machine model using a finite state automaton according to the access rights. One access right corresponds to one finite state machine model. The finite state machine model is used to represent the normal behavior of the current user under the access rights.
[0037] Specifically, each access permission corresponds to a finite state machine model, and multiple combinations of access permissions correspond to multiple finite state machine models.
[0038] Step S204, based on the user behavior of the above-mentioned current user, the user behavior is compared with the above-mentioned finite state machine model. When the comparison between the above-mentioned user behavior and the above-mentioned finite state machine model is inconsistent, the above-mentioned user behavior of the above-mentioned current user is determined to be abnormal behavior, and an alarm message is issued. The above-mentioned alarm message includes the information of the vertical tracking chain of the above-mentioned current user's behavior. The above-mentioned vertical tracking chain of behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0039] Specifically, the use of the finite state machine model can clearly and accurately depict the user's permission boundary fence, that is, the combination of functions that a user can call. Once there is an action that jumps out of the function call combination, it is considered to be crossing the boundary or exceeding the authority. Continuously monitor user behavior and actions, and when it crosses the permission fence boundary, it can be judged as abnormal behavior and an alarm can be issued for disposal, which effectively improves the timeliness and accuracy of discovering network intrusion behavior. The alarm information must include the user's unique identity ID, source function or interface, call permission and call relationship, target function or interface, and the vertical tracking chain information of the user behavior formed by the call time, in order to fully reflect the on-site situation of abnormal behavior.
[0040] In this embodiment, first, the original identity information of the current user is processed to generate an identity unique identifier of the current user, where the current user is the user currently logging into the system, and the original identity information includes at least the user account name, email address and mobile phone number; then, the access rights of the current user are determined based on the identity unique identifier, and one identity unique identifier corresponds to one or more access rights; then, a corresponding finite state machine model is generated using a finite state automaton based on the access rights, and one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights; finally, the user behavior of the current user is compared with the finite state machine model. When the comparison between the user behavior and the finite state machine model is inconsistent, the user behavior of the current user is determined to be an abnormal behavior, and an alarm message is issued. The alarm message includes information on the vertical tracking chain of the current user's behavior, and the vertical tracking chain of behavior is a full-process tracking chain formed based on the behavior of the current user accessing the business after logging into the system. This application generates a unique and irreversible user identity by processing the original user identity information; starting from the user login authentication, all activities in the entire business process of accessing services and data with this user identity after login are tracked according to the user identity unique identifier, and a vertical tracking chain of user behavior is constructed; the behavior boundary of user authority is established through the method of finite state automaton; user behavior actions are continuously monitored, and when there is a behavior boundary that crosses the authority, it can be judged as abnormal behavior and an alarm is issued for disposal. This application solves the problem that the existing technology cannot effectively detect network attack behaviors that have invaded the information system.
[0041] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the security control method based on vertical tracking of user identity of the present application will be described in detail below in combination with specific embodiments.
[0042] In order to improve the security of security control, in an optional implementation manner, the above step S201 includes:
[0043] Step S2011, obtaining the original identity information of the current user;
[0044] Step S2012, encoding the original identity information using a plurality of different hash algorithms to obtain hash values corresponding to the hash algorithms;
[0045] Step S2013, concatenate all the above hash values to obtain the above unique identity identifier.
[0046] In the above embodiment, the specific content of the account information that can uniquely identify the user's identity should be set accordingly according to the actual situation by a person skilled in the art. It usually includes information that can uniquely identify the identity, such as the account name, email address, and mobile phone number. Generally, one or more of these information is used. For multiple information, it is necessary to use a specified order to determine the uniqueness, and it is also necessary to design alternative data when a certain information is missing. Name the account name n1, the email address n2, and the mobile phone number n3, and name the function that generates the user identity information based on the account name, email address, and mobile phone number f, then the user identity information x = f (n1, n2, n3). Further, the user identity information x is combined with hash value encoding. A single hash value has the risk of collision. For example, both MD5 and SHA1 hash algorithms have achieved hash collision, but it is difficult for forged data to simultaneously meet multiple hashes to achieve collision. The difficulty and cost of collision are extremely high. Therefore, the combined hash encoding has the properties of uniqueness, difficulty in collision, and irreversibility. The combined hash value can be obtained by concatenating multiple hash strings in a certain order. Taking MD5, SHA1, and SHA256 as examples, the generation process of the unique identity identifier is as follows: Figure 3 As shown, md5(x), sha1(x), and sha256(x) functions represent the MD5, SHA1, and SHA256 hash strings of x respectively, and concat(x1, x2, x3...) represents the string concatenation function. The user identity unique identification ID string is: ID = concat(md5(x), sha1(x), sha256(x)).
[0047] In order to intuitively and accurately describe the user authority boundary, in an optional implementation, the above step S203 includes:
[0048] Step S2031, obtaining all calling functions within the access rights, where the calling functions are functions that the current user can call under the access rights;
[0049] Step S2032, according to the finite state machine, the columns of the finite state machine matrix are determined with the calling functions as nodes, and the rows of the finite state machine matrix are determined with the calling relationships as edges, wherein the calling relationship is the relationship between the two calling functions;
[0050] Step S2033: Generate a finite state machine matrix according to all the above columns and all the above rows, and determine the above finite state machine matrix as the above finite state machine model.
[0051] In the above embodiment, a finite state machine model is constructed using a finite state machine (FSM), and the above finite state machine model can be presented in the form of a matrix or a state diagram. Functions or interfaces are used as nodes to form the columns of the matrix, and call relationships are used as edges to form the rows of the matrix, forming a state machine model of functions and calls. Since the functions and permissions that can be called by each different user identity are different, each user will have a corresponding state machine model. FSM is an important computing model. FSM has a limited number of states, each state can migrate to zero or more states, and the input determines the migration direction of the execution state.
[0052] In order to improve the timeliness of anomaly detection, in an optional implementation manner, the above step S204 at least includes:
[0053] Step S2041, obtaining the current calling function in the above user behavior;
[0054] Step S2042, comparing the source function in the currently called function with the row of the finite state machine matrix to obtain a first comparison result, wherein the first comparison result includes a comparison success and a comparison failure;
[0055] Step S2043, comparing the calling relationship corresponding to the currently called function with the columns of the finite state machine matrix to obtain a second comparison result, wherein the second comparison result includes a comparison success and a comparison failure;
[0056] Step S2044, comparing the target function in the currently called function with the elements of the finite state machine matrix to obtain a third comparison result, wherein the third comparison result includes a comparison success and a comparison failure;
[0057] Step S2045, when the first comparison result, the second comparison result and the third comparison result are all successful, determining that the user behavior of the current user is the normal behavior;
[0058] Step S2046: When any one of the first comparison result, the second comparison result and the third comparison result is a comparison failure, determining that the user behavior of the current user is the abnormal behavior.
[0059] In the above embodiment, the source function or interface in the user behavior is compared with the columns of the finite state machine matrix one by one, the call permissions and call relationships are compared with the rows of the finite state machine matrix one by one, and then the target function or interface is compared with the corresponding data in the finite state machine matrix one by one. If any of the rows, columns and data do not match, it is an abnormal behavior. An alarm is issued for abnormal behavior, and the administrator can decide whether to further block the user's access.
[0060] In order to intuitively and accurately describe the user authority boundary, in an optional implementation manner, the above step S203 further includes:
[0061] Step S2034, obtaining all the above-mentioned calling functions within the above-mentioned access rights;
[0062] Step S2035, generating a finite state graph according to the finite state automaton with the calling functions as nodes and the calling relationships as edges;
[0063] Step S2036: determine the finite state diagram as the finite state machine model.
[0064] In the above embodiment, if Figure 4 As shown in the figure, the finite state automaton can also be represented as a directed graph. In the vertical tracking chain of user behavior, the functions that users can call are limited. The functions and interfaces that users can call are used as nodes of the finite state machine model, and the finite state machine model is established with the call relationship as the edge. A call relationship graph that can contain all functions based on user identity and permissions can be constructed. The call relationship between functions is named call, the user's permission function is named s, and the user permission refers to the data permission of this call, which generally includes read, write or both, generally named r, w, rw, and paramsn is the parameter required for calling the function, which is generally the input parameter of the called function or interface. The call relationship is call(s(ID),paramsn), which means that the user uses the parameter paramsn to jump from one function to another under the constraint of the user permission s(ID). For example, after logging into the system, the dashboard page is generally called, and the dashboard page will display the data of the last three months. Then paramsn is the time range of the last three months. The finite state machine model can clearly and accurately depict the user's permission boundary fence, that is, the combination of functions that a user can call.
[0065] In order to improve the timeliness of anomaly detection, in an optional implementation manner, the above step S204 further includes:
[0066] Step S2047, obtaining the current call relationship in the above user behavior;
[0067] Step S2048, when the current calling relationship exists in the finite state diagram, determining that the user behavior of the current user is the normal behavior;
[0068] Step S2049: when the current calling relationship does not exist in the finite state diagram, determining that the user behavior of the current user is the abnormal behavior.
[0069] In the above embodiment, since the finite state graph has covered the combination of all functional relationships that a user can call, when there is a call relationship that does not exist in the finite state graph, the above user behavior of the above current user is determined to be the above abnormal behavior, that is, it can be judged as crossing the boundary or exceeding the authority, and crossing the boundary or exceeding the authority is exactly the attack method often used by network intruders. The cross-border or over-authority attack behavior adopted by network intruders mainly refers to the attacker taking advantage of the security loopholes of the system or application program, bypassing the authority control mechanism, illegally accessing or operating data resources that should not be controlled by it or performing specific functions. This type of attack usually involves misconfiguration of system authority management, logical defects or direct use of unauthorized access interfaces, etc., which is more harmful, so an alarm can be issued for this behavior. Since the finite state machine model has a certain finite directed graph, once there is a call relationship that does not exist in the finite state automaton, an alarm can be issued immediately, which has strong timeliness and accuracy.
[0070] In order to detect abnormal behaviors in time and ensure the safety of the system, in an optional implementation manner, before the above step S204, the method further includes:
[0071] Step S301, obtaining all user behaviors of the current user and the corresponding calling time, wherein the user behavior is the behavior of calling function functions and interfaces after the current user logs into the system, and the calling time is the time when the user behavior occurs;
[0072] Step S302: generating a vertical tracking chain of the behavior corresponding to the current user according to the user behavior and the calling time.
[0073] In the above embodiment, after obtaining the user identity unique identifier ID, the Hook and AOP technologies are used to record the behavior of calling function functions and interfaces after the user logs into the system, and a vertical tracking chain of user behavior based on the user identity unique identifier ID is constructed according to the timeline. Both Hook and AOP technologies can record business behaviors and parameters on the cross-section of the business process. Through the user identity unique identifier ID in the parameters, a vertical tracking chain T of user behaviors after different users log into the system can be established according to the user identity, for example: T = [login(ID), fun1(ID), fun2(ID), ..., funn(ID)], where login(ID) represents the user currently logged into the system, and fun1(ID), fun2(ID), ..., funn(ID) all represent the behavior of the user calling function functions and interfaces.
[0074] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0075] The embodiment of the present application also provides a security control device based on vertical tracking of user identity. It should be noted that the security control device based on vertical tracking of user identity in the embodiment of the present application can be used to execute the security control method for vertical tracking based on user identity provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0076] The following is an introduction to the security control device based on vertical tracking of user identity provided in an embodiment of the present application.
[0077] Figure 5 It is a structural block diagram of a security control device based on vertical tracking of user identity according to an embodiment of the present application.
[0078] like Figure 5 As shown, the device comprises:
[0079] The first generating unit 10 is used to process the original identity information of the current user to generate a unique identity identifier of the current user. The current user is the user who currently logs into the system. The original identity information at least includes the user account name, email address and mobile phone number.
[0080] Specifically, determine the specific content of the original identity information that can uniquely identify the user's identity, including account name, email address, mobile phone number and other information, process the user's original identity information, and generate a unique and irreversible user identity.
[0081] The determination unit 20 is used to determine the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights.
[0082] Specifically, since each different user identity can call different functions and permissions, the user identity unique identification ID belongs to one or more access permissions.
[0083] The second generating unit 30 is used to generate a corresponding finite state machine model using a finite state automaton according to the access rights. One access right corresponds to one finite state machine model. The finite state machine model is used to represent the normal behavior of the current user under the access rights.
[0084] Specifically, each access permission corresponds to a finite state machine model, and multiple combinations of access permissions correspond to multiple finite state machine models.
[0085] The determination unit 40 is used to compare the user behavior of the current user with the finite state machine model. When the comparison between the user behavior and the finite state machine model is inconsistent, it is determined that the user behavior of the current user is abnormal and an alarm message is issued. The alarm message includes information on the vertical tracking chain of the current user's behavior. The vertical tracking chain of behavior is a full-process tracking chain formed based on the behavior of the current user accessing the service after logging into the system.
[0086] Specifically, the use of the finite state machine model can clearly and accurately depict the user's permission boundary fence, that is, the combination of functions that a user can call. Once there is an action that jumps out of the function call combination, it is considered to be crossing the boundary or exceeding the authority. Continuously monitor user behavior and actions, and when it crosses the permission fence boundary, it can be judged as abnormal behavior and an alarm can be issued for disposal, which effectively improves the timeliness and accuracy of discovering network intrusion behavior. The alarm information must include the user's unique identity ID, source function or interface, call permission and call relationship, target function or interface, and the vertical tracking chain information of the user behavior formed by the call time, in order to fully reflect the on-site situation of abnormal behavior.
[0087] In this embodiment, the first generating unit is used to process the original identity information of the current user to generate the unique identity identifier of the current user. The current user is the user who currently logs into the system, and the original identity information at least includes the user account name, email address and mobile phone number; the determining unit is used to determine the access rights of the current user according to the unique identity identifier, and one unique identity identifier corresponds to one or more access rights; the second generating unit is used to generate a corresponding finite state machine matrix using a finite state automaton according to the access rights, and one access right corresponds to one finite state machine matrix. The finite state machine model is used to represent the normal behavior of the current user under the access rights; the judging unit is used to compare the user behavior of the current user with the finite state machine matrix. When the comparison between the user behavior and the finite state machine model is inconsistent, the user behavior of the current user is judged to be abnormal behavior, and an alarm message is issued. The alarm message includes information on the vertical tracking chain of the behavior of the current user. The vertical tracking chain of the behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system. This application generates a unique and irreversible user identity by processing the original user identity information; starting from the user login authentication, all activities in the entire business process of accessing services and data with this user identity after login are tracked according to the user identity unique identifier, and a vertical tracking chain of user behavior is constructed; the behavior boundary of user authority is established through the method of finite state automaton; user behavior actions are continuously monitored, and when there is a behavior boundary that crosses the authority, it can be judged as abnormal behavior and an alarm is issued for disposal. This application solves the problem that the existing technology cannot effectively detect network attack behaviors that have invaded the information system.
[0088] In order to improve the security of security control, in an optional implementation manner, the first generating unit includes:
[0089] A first acquisition module is used to acquire the original identity information of the current user;
[0090] An encoding module, which encodes the original identity information using a plurality of different hash algorithms to obtain hash values corresponding to the hash algorithms;
[0091] The splicing module splices all the above hash values to obtain the above unique identity identifier.
[0092] In the above embodiment, the specific content of the account information that can uniquely identify the user's identity should be set accordingly according to the actual situation by a person skilled in the art. It usually includes information that can uniquely identify the identity, such as the account name, email address, and mobile phone number. Generally, one or more of these information is used. For multiple information, it is necessary to use a specified order to determine the uniqueness, and it is also necessary to design alternative data when a certain information is missing. Name the account name n1, the email address n2, and the mobile phone number n3, and name the function that generates the user identity information based on the account name, email address, and mobile phone number f, then the user identity information x = f (n1, n2, n3). Further, the user identity information x is combined with hash value encoding. A single hash value has the risk of collision. For example, both MD5 and SHA1 hash algorithms have achieved hash collision, but it is difficult for forged data to simultaneously meet multiple hashes to achieve collision. The difficulty and cost of collision are extremely high. Therefore, the combined hash encoding has the properties of uniqueness, difficulty in collision, and irreversibility. The combined hash value can be obtained by concatenating multiple hash strings in a certain order. Taking MD5, SHA1, and SHA256 as examples, the generation process of the unique identity identifier is as follows: Figure 3 As shown, md5(x), sha1(x), and sha256(x) functions represent the MD5, SHA1, and SHA256 hash strings of x respectively, and concat(x1, x2, x3...) represents the string concatenation function. The user identity unique identification ID string is: ID = concat(md5(x), sha1(x), sha256(x)).
[0093] In order to intuitively and accurately describe the user authority boundary, in an optional implementation manner, the second generating unit includes:
[0094] A second acquisition module acquires all calling functions within the access rights, where the calling functions are functions that can be called by the current user under the access rights;
[0095] A first determination module determines the columns of the finite state machine matrix using the calling functions as nodes according to the finite state machine, and determines the rows of the finite state machine matrix using the calling relationships as edges, wherein the calling relationships are the relationships between the two calling functions;
[0096] The second determining module generates a finite state machine matrix according to all the above columns and all the above rows, and determines the above finite state machine matrix as the above finite state machine model.
[0097] In the above embodiment, a finite state machine model is constructed using a finite state machine (FSM), and the above finite state machine model can be presented in the form of a matrix or a state diagram. Functions or interfaces are used as nodes to form the columns of the matrix, and call relationships are used as edges to form the rows of the matrix, forming a state machine model of functions and calls. Since the functions and permissions that can be called by each different user identity are different, each user will have a corresponding state machine model. FSM is an important computing model. FSM has a limited number of states, each state can migrate to zero or more states, and the input determines the migration direction of the execution state.
[0098] In order to improve the timeliness of anomaly detection, in an optional implementation manner, the above-mentioned determination unit at least includes:
[0099] The third acquisition module acquires the current calling function in the above user behavior;
[0100] A first comparison module compares the source function in the currently called function with the row of the finite state machine matrix to obtain a first comparison result, wherein the first comparison result includes a comparison success and a comparison failure;
[0101] A second comparison module compares the calling relationship corresponding to the current calling function with the columns of the finite state machine matrix to obtain a second comparison result, wherein the second comparison result includes a comparison success and a comparison failure;
[0102] A third comparison module compares the target function in the currently called function with the elements of the finite state machine matrix to obtain a third comparison result, wherein the third comparison result includes a comparison success and a comparison failure;
[0103] A first determination module, determining that the user behavior of the current user is the normal behavior when the first comparison result, the second comparison result, and the third comparison result are all successful comparisons;
[0104] The second determination module determines that the user behavior of the current user is the abnormal behavior when any one of the first comparison result, the second comparison result and the third comparison result is a comparison failure.
[0105] In the above embodiment, the source function or interface in the user behavior is compared with the columns of the finite state machine matrix one by one, the call permissions and call relationships are compared with the rows of the finite state machine matrix one by one, and then the target function or interface is compared with the corresponding data in the finite state machine matrix one by one. If any of the rows, columns and data do not match, it is an abnormal behavior. An alarm is issued for abnormal behavior, and the administrator can decide whether to further block the user's access.
[0106] In order to intuitively and accurately describe the user authority boundary, in an optional implementation manner, the second generating unit further includes:
[0107] The fourth acquisition module acquires all the above-mentioned calling functions within the above-mentioned access rights;
[0108] A generating module, generating a finite state graph according to the finite state automaton with the calling functions as nodes and the calling relationships as edges;
[0109] The third determining module determines the finite state diagram as the finite state machine model.
[0110] In the above embodiment, if Figure 4 As shown in the figure, the finite state automaton can also be represented as a directed graph. In the vertical tracking chain of user behavior, the functions that users can call are limited. The functions and interfaces that users can call are used as nodes of the finite state machine model, and the finite state machine model is established with the call relationship as the edge. A call relationship graph that can contain all functions based on user identity and permissions can be constructed. The call relationship between functions is named call, the user's permission function is named s, and the user permission refers to the data permission of this call, which generally includes read, write or both, generally named r, w, rw, and paramsn is the parameter required for calling the function, which is generally the input parameter of the called function or interface. The call relationship is call(s(ID),paramsn), which means that the user uses the parameter paramsn to jump from one function to another under the constraint of the user permission s(ID). For example, after logging into the system, the dashboard page is generally called, and the dashboard page will display the data of the last three months. Then paramsn is the time range of the last three months. The finite state machine model can clearly and accurately depict the user's permission boundary fence, that is, the combination of functions that a user can call.
[0111] In order to improve the timeliness of anomaly detection, in an optional implementation manner, the determination unit further includes:
[0112] A fifth acquisition module, acquiring the current call relationship in the above user behavior;
[0113] A third determination module determines, when the current call relationship exists in the finite state graph, that the user behavior of the current user is the normal behavior;
[0114] The fourth determination module determines that the user behavior of the current user is the abnormal behavior when the current calling relationship does not exist in the finite state diagram.
[0115] In the above embodiment, since the finite state graph has covered the combination of all functional relationships that a user can call, when there is a call relationship that does not exist in the finite state graph, the above user behavior of the above current user is determined to be the above abnormal behavior, that is, it can be judged as crossing the boundary or exceeding the authority, and crossing the boundary or exceeding the authority is exactly the attack method often used by network intruders. The cross-border or over-authority attack behavior adopted by network intruders mainly refers to the attacker taking advantage of the security loopholes of the system or application program, bypassing the authority control mechanism, illegally accessing or operating data resources that should not be controlled by it or performing specific functions. This type of attack usually involves misconfiguration of system authority management, logical defects or direct use of unauthorized access interfaces, etc., which is more harmful, so an alarm can be issued for this behavior. Since the finite state machine model has a certain finite directed graph, once there is a call relationship that does not exist in the finite state automaton, an alarm can be issued immediately, which has strong timeliness and accuracy.
[0116] In order to detect abnormal behavior in time and ensure the safety of the system, in an optional implementation manner, the device also includes:
[0117] An acquisition unit, used for acquiring all user behaviors of the current user and corresponding call times before comparing the user behaviors of the current user with the finite state machine matrix, wherein the user behaviors are behaviors of calling function functions and interfaces after the current user logs into the system, and the call time is the time when the user behaviors occur;
[0118] The third generating unit is used to generate the vertical tracking chain of the behavior corresponding to the current user according to the user behavior and the calling time.
[0119] In the above embodiment, after obtaining the user identity unique identifier ID, the Hook and AOP technologies are used to record the behavior of calling function functions and interfaces after the user logs into the system, and a vertical tracking chain of user behavior based on the user identity unique identifier ID is constructed according to the timeline. Both Hook and AOP technologies can record business behaviors and parameters on the cross-section of the business process. Through the user identity unique identifier ID in the parameters, a vertical tracking chain T of user behaviors after different users log into the system can be established according to the user identity, for example: T = [login(ID), fun1(ID), fun2(ID), ..., funn(ID)], where login(ID) represents the user currently logged into the system, and fun1(ID), fun2(ID), ..., funn(ID) all represent the behavior of the user calling function functions and interfaces.
[0120] The above-mentioned security control device based on vertical tracking of user identity includes a processor and a memory. The above-mentioned first generation unit, determination unit, and second generation unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
[0121] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem that the network attack behavior that has invaded the information system cannot be effectively discovered in the prior art by adjusting the kernel parameters.
[0122] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0123] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the security control method based on vertical tracking of user identity.
[0124] Specifically, the security control methods based on vertical tracking of user identities include:
[0125] Step S201, processing the original identity information of the current user to generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes the user account name, email address and mobile phone number;
[0126] Step S202, determining the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights;
[0127] Step S203, generating a corresponding finite state machine model using a finite state automaton according to the access rights, one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights;
[0128] Step S204, based on the user behavior of the above-mentioned current user, the user behavior is compared with the above-mentioned finite state machine model. When the comparison between the above-mentioned user behavior and the above-mentioned finite state machine model is inconsistent, the above-mentioned user behavior of the above-mentioned current user is determined to be abnormal behavior, and an alarm message is issued. The above-mentioned alarm message includes the information of the vertical tracking chain of the above-mentioned current user's behavior. The above-mentioned vertical tracking chain of behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0129] An embodiment of the present invention provides a processor, which is used to run a program, wherein the security control method based on vertical tracking of user identity is executed when the program is running.
[0130] Specifically, the security control methods based on vertical tracking of user identities include:
[0131] Step S201, processing the original identity information of the current user to generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes the user account name, email address and mobile phone number;
[0132] Step S202, determining the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights;
[0133] Step S203, generating a corresponding finite state machine model using a finite state automaton according to the access rights, one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights;
[0134] Step S204, based on the user behavior of the above-mentioned current user, the user behavior is compared with the above-mentioned finite state machine model. When the comparison between the above-mentioned user behavior and the above-mentioned finite state machine model is inconsistent, the above-mentioned user behavior of the above-mentioned current user is determined to be abnormal behavior, and an alarm message is issued. The above-mentioned alarm message includes the information of the vertical tracking chain of the above-mentioned current user's behavior. The above-mentioned vertical tracking chain of behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0135] An embodiment of the present invention provides a safety control system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented:
[0136] Step S201, processing the original identity information of the current user to generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes the user account name, email address and mobile phone number;
[0137] Step S202, determining the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights;
[0138] Step S203, generating a corresponding finite state machine model using a finite state automaton according to the access rights, one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights;
[0139] Step S204, based on the user behavior of the above-mentioned current user, the user behavior is compared with the above-mentioned finite state machine model. When the comparison between the above-mentioned user behavior and the above-mentioned finite state machine model is inconsistent, the above-mentioned user behavior of the above-mentioned current user is determined to be abnormal behavior, and an alarm message is issued. The above-mentioned alarm message includes the information of the vertical tracking chain of the above-mentioned current user's behavior. The above-mentioned vertical tracking chain of behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0140] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0141] Step S201, processing the original identity information of the current user to generate a unique identity identifier of the current user, the current user is the user currently logging into the system, and the original identity information at least includes the user account name, email address and mobile phone number;
[0142] Step S202, determining the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights;
[0143] Step S203, generating a corresponding finite state machine model using a finite state automaton according to the access rights, one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights;
[0144] Step S204, based on the user behavior of the above-mentioned current user, the user behavior is compared with the above-mentioned finite state machine model. When the comparison between the above-mentioned user behavior and the above-mentioned finite state machine model is inconsistent, the above-mentioned user behavior of the above-mentioned current user is determined to be abnormal behavior, and an alarm message is issued. The above-mentioned alarm message includes the information of the vertical tracking chain of the above-mentioned current user's behavior. The above-mentioned vertical tracking chain of behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system.
[0145] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0150] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0151] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0152] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0153] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0154] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0155] 1) The security control method based on vertical tracking of user identity of the present application, first, processes the original identity information of the current user to generate the unique identity identifier of the current user, the current user is the user currently logged in to the system, and the original identity information at least includes the user account name, email address and mobile phone number; then, the access rights of the current user are determined according to the unique identity identifier, and one unique identity identifier corresponds to one or more access rights; then, a corresponding finite state machine model is generated according to the access rights using a finite state automaton, one access right corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access rights; finally, the user behavior of the current user is compared with the finite state machine model. When the comparison between the user behavior and the finite state machine model is inconsistent, the user behavior of the current user is determined to be abnormal behavior, and an alarm message is issued. The alarm message includes information on the vertical tracking chain of the behavior of the current user, and the vertical tracking chain of the behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging in to the system. This application generates a unique and irreversible user identity by processing the original user identity information; starting from the user login authentication, all activities in the entire business process of accessing services and data with this user identity after login are tracked according to the user identity unique identifier, and a vertical tracking chain of user behavior is constructed; the behavior boundary of user authority is established through the method of finite state automaton; user behavior actions are continuously monitored, and when there is a behavior boundary that crosses the authority, it can be judged as abnormal behavior and an alarm is issued for disposal. This application solves the problem that the existing technology cannot effectively detect network attack behaviors that have invaded the information system.
[0156] 2) The security control device based on vertical tracking of user identity of the present application comprises a first generating unit, which is used to process the original identity information of the current user and generate a unique identity identifier of the current user. The current user is the user currently logged into the system, and the original identity information includes at least the user account name, email address and mobile phone number; a determining unit, which is used to determine the access rights of the current user according to the unique identity identifier, and one unique identity identifier corresponds to one or more access rights; a second generating unit, which is used to generate a corresponding finite state machine matrix according to the access rights using a finite state automaton, and one access right corresponds to one finite state machine matrix. The finite state machine model is used to represent the normal behavior of the current user under the access rights; a determining unit, which is used to compare the user behavior of the current user with the finite state machine matrix. If the comparison between the user behavior and the finite state machine model is inconsistent, the user behavior of the current user is determined to be abnormal behavior, and an alarm message is issued. The alarm message includes information on the vertical tracking chain of the behavior of the current user. The vertical tracking chain of the behavior is a full-process tracking chain formed according to the behavior of the current user accessing the business after logging into the system. This application generates a unique and irreversible user identity by processing the original user identity information; starting from the user login authentication, all activities in the entire business process of accessing services and data with this user identity after login are tracked according to the user identity unique identifier, and a vertical tracking chain of user behavior is constructed; the behavior boundary of user authority is established through the method of finite state automaton; user behavior actions are continuously monitored, and when there is a behavior boundary that crosses the authority, it can be judged as abnormal behavior and an alarm is issued for disposal. This application solves the problem that the existing technology cannot effectively detect network attack behaviors that have invaded the information system.
[0157] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A security control method based on vertical tracking of user identity, characterized in that: include: Processing the original identity information of the current user to generate a unique identity identifier of the current user, wherein the current user is the user currently logging into the system, and the original identity information includes at least the user account name, email address, and mobile phone number; Determine the access rights of the current user according to the unique identity identifier, where one unique identity identifier corresponds to one or more access rights; Generate a corresponding finite state machine model using a finite state automaton according to the access permission, one access permission corresponds to one finite state machine model, and the finite state machine model is used to represent the normal behavior of the current user under the access permission; A comparison is performed between the user behavior of the current user and the finite state machine model. When the comparison between the user behavior and the finite state machine model is inconsistent, the user behavior of the current user is determined to be abnormal behavior, and an alarm message is issued. The alarm message includes information on the current user's behavior vertical tracking chain. The behavior vertical tracking chain is a full-process tracking chain formed based on the current user's behavior of accessing the service after logging into the system.
2. The method according to claim 1, characterized in that Process the original identity information of the current user to generate a unique identity identifier, including: Obtaining the original identity information of the current user; Encoding the original identity information using a plurality of different hash algorithms to obtain hash values corresponding to the hash algorithms; All the hash values are concatenated to obtain the unique identity identifier.
3. The method according to claim 1, characterized in that Generating a corresponding finite state machine model using a finite state automaton according to the access rights at least includes: Obtaining all calling functions within the access permission, where the calling functions are functions that the current user can call under the access permission; According to the finite state machine, the columns of the finite state machine matrix are determined with the calling functions as nodes, and the rows of the finite state machine matrix are determined with the calling relationships as edges, wherein the calling relationships are the relationships between the two calling functions; A finite state machine matrix is generated according to all the columns and all the rows, and the finite state machine matrix is determined as the finite state machine model.
4. The method according to claim 3, characterized in that Comparing the user behavior of the current user with the finite state machine model at least includes: Obtaining the current calling function in the user behavior; Compare the source function in the currently called function with the row of the finite state machine matrix to obtain a first comparison result, wherein the first comparison result includes a comparison success and a comparison failure; Compare the call relationship corresponding to the currently called function with the columns of the finite state machine matrix to obtain a second comparison result, where the second comparison result includes a comparison success and a comparison failure; Compare the target function in the currently called function with the elements of the finite state machine matrix to obtain a third comparison result, wherein the third comparison result includes a comparison success and a comparison failure; When the first comparison result, the second comparison result, and the third comparison result are all the comparisons successful, determining that the user behavior of the current user is the normal behavior; When any one of the first comparison result, the second comparison result, and the third comparison result is the comparison failure, it is determined that the user behavior of the current user is the abnormal behavior.
5. The method according to claim 3, characterized in that: Generating a corresponding finite state machine model using a finite state automaton according to the access rights also includes: Obtain all the calling functions within the access permission; Generate a finite state graph according to the finite state automaton with the calling functions as nodes and the calling relationships as edges; The finite state graph is determined as the finite state machine model.
6. The method according to claim 5, characterized in that According to the comparison between the user behavior of the current user and the finite state machine model, the method further includes: Obtaining the current call relationship in the user behavior; In a case where the current call relationship exists in the finite state graph, determining that the user behavior of the current user is the normal behavior; When the current calling relationship does not exist in the finite state graph, it is determined that the user behavior of the current user is the abnormal behavior.
7. The method according to any one of claims 1 to 6, characterized in that: Before comparing the user behavior of the current user with the finite state machine matrix, the method further includes: Obtain all user behaviors of the current user and the corresponding calling time, wherein the user behavior is the behavior of calling function functions and interfaces after the current user logs into the system, and the calling time is the time when the user behavior occurs; The behavior vertical tracking chain corresponding to the current user is generated according to the user behavior and the calling time.
8. A security control device based on vertical tracking of user identity, characterized in that: The device comprises: A first generating unit is used to process the original identity information of the current user to generate a unique identity identifier of the current user, wherein the current user is a user currently logging into the system, and the original identity information includes at least a user account name, an email address, and a mobile phone number; A determination unit, configured to determine the access rights of the current user according to the unique identity identifier, wherein one unique identity identifier corresponds to one or more access rights; A second generating unit, configured to generate a corresponding finite state machine matrix using a finite state automaton according to the access permission, wherein one access permission corresponds to one finite state machine matrix, and the finite state machine model is used to represent a normal behavior of the current user under the access permission; A determination unit is used to compare the user behavior of the current user with the finite state machine matrix. If the comparison between the user behavior and the finite state machine model is inconsistent, the determination unit determines that the user behavior of the current user is abnormal behavior and issues an alarm message. The alarm message includes information on the current user's behavior vertical tracking chain. The behavior vertical tracking chain is a full-process tracking chain formed based on the current user's behavior of accessing services after logging into the system.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
