A software behavior anomaly detection method based on development task flow analysis
By constructing a correlation analysis between the boundary of permitted behavior of a task and the execution environment, and generating out-of-task operation markers and performing hierarchical handling, the problem of difficulty in dynamically analyzing temporary authorized behavior in existing technologies is solved, and abnormal behavior identification and control in software development tasks is realized.
Patent Information
- Application Number
- CN202611157398.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-11-20
AI Technical Summary
Existing software permission management methods are difficult to continuously analyze the actual usage behavior of temporary authorizations in conjunction with the dynamic execution process of development tasks, resulting in the inability to accurately determine whether the current operation meets the task execution requirements when the task flow changes or the execution environment switches.
By constructing authorization boundaries based on task status awareness, analyzing the correlation between operation sequences and execution environments, identifying matching tasks, and implementing a tiered handling mechanism based on permission deviation levels and resource sensitivity levels, the system constructs the boundaries of permitted behaviors for the current task, generates out-of-task operation markers, and handles permissions accordingly.
It improves the accuracy of abnormal behavior identification in the software development process, and realizes dynamic matching of temporary authorization behavior with task flow and hierarchical control of abnormal operations.
Smart Images

Figure CN123138104A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of software behavior technology, and more specifically, to a method for detecting software behavior anomalies based on development task flow analysis. Background Technology
[0002] In order to support continuous operations such as code building, testing and verification, environment deployment and resource access during the execution of software development tasks, a temporary authorization mechanism is usually used to provide phased access permissions for development tasks, so that software operations can complete the corresponding data access and function calls according to the task flow.
[0003] The existing technology has the following shortcomings: Currently, existing software permission management methods typically rely on static constraints based on the authorization subject, resource scope, and operation type. This makes it difficult to continuously analyze the actual usage behavior of temporary authorizations in conjunction with the dynamic execution process of development tasks. Consequently, when task flows change, execution environments switch, or authorization scopes are not adjusted in a timely manner, it becomes impossible to accurately determine whether the current operation meets the task execution requirements. Therefore, this paper proposes a software behavior anomaly detection method based on development task flow analysis.
[0004] The information disclosed in the background section is only intended to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0005] To overcome the aforementioned deficiencies in the prior art, embodiments of the present invention provide a software behavior anomaly detection method based on development task flow analysis. This method addresses the problems mentioned in the background art by employing task state-aware authorization boundary construction, operation sequence and execution environment correlation analysis, task behavior matching and identification, and a hierarchical handling mechanism based on permission deviation level and resource sensitivity level.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a software behavior anomaly detection method based on development task flow analysis, comprising the following steps: Step S1: Read the current task node status, access the temporary authorization scope, and construct the boundary of allowed behavior for the current task by combining the current task node status and the temporary authorization scope; Step S2: Extract the software operation sequence from the operation audit record, read the execution environment binding information, and calculate the environment-related operation characteristics by combining the software operation sequence; Step S3: By comparing the allowed behavior boundaries of the current task and the associated operation features of the environment, the software operation execution task attribution is compared and an off-task operation mark is generated. The off-task operation mark is associated with the corresponding temporary authorization to evaluate the residual deviation level of the permission. Step S4: Read the sensitivity level of the accessed resource, generate a graded handling instruction based on the permission residual deviation level and the sensitivity level of the accessed resource, and perform permission handling on the marked temporary authorization based on the graded handling instruction.
[0007] In a preferred embodiment, in step S1, the state change events are arranged in ascending order of their occurrence time, the revocation state events are removed, and the valid state code whose occurrence time is closest to and no later than the time of receiving the anomaly detection request is parsed as the current task node state. Extract the authorization record identifier, operation type, execution environment identifier, resource identifier, and authorization subject identifier from each authorization record. Group the extracted content according to the authorization record identifier to obtain the temporary authorization scope. For each authorization record within the temporary authorization scope, access the task status-operation type mapping table, combine the operation type, execution environment identifier, and resource identifier in the included authorization record into a permitted behavior unit, and retain the authorization record identifier of the permitted behavior unit; summarize all permitted behavior units to form the permitted behavior boundary of the current task.
[0008] In a preferred embodiment, in step S1, when there is no valid authorization record matching the current task node state, the allowed behavior boundary of the current task is constructed as an empty set; When the same authorization record contains multiple resource identifiers, a separate allowed behavior unit is constructed for each resource identifier.
[0009] In a preferred embodiment, in step S2, the operation audit service removes invalid records that lack operation type or resource identifier, arranges the remaining records in order of occurrence time from earliest to latest, and eliminates parallel order by arranging adjacent records in ascending order of operation record identifier if the occurrence time is the same, thus obtaining the software operation sequence. When each session is established, the environment access management service writes the execution environment identifier corresponding to the session identifier based on the access address, deployment domain identifier, and environment registry. Using the session identifier of each operation audit record in the software operation sequence as an index, it reads the execution environment identifier from the session access record database to obtain the execution environment binding information.
[0010] In a preferred embodiment, in step S2, the operation audit records in the software operation sequence are traversed sequentially, and the operation type, resource identifier, execution environment identifier and occurrence order are written into the operation unit. If the execution environment identifier of the current operation unit is the same as that of the previous operation unit, and the two operation units occur in a consecutive order, the two operation units will be grouped into the same operation segment. If the execution environment identifiers are different, the order of occurrence is not continuous, or the current operation unit is the first operation unit, a new operation segment is created. The operation segments are sorted according to the order in which the first operation unit occurs to obtain the environmental associated operation features; When the session identifier fails to match the execution environment identifier in the session access record database, an environment unbound identifier is written for the corresponding operation unit and an operation fragment is formed separately.
[0011] In a preferred embodiment, in step S3, each operation unit in the environment-related operation features is read sequentially, and the operation type, execution environment identifier, and resource identifier of the operation unit are matched with the allowed behavior units in the current task's allowed behavior boundary field by field. When there are three allowed behavior units with the same three fields, the operation unit is determined to belong to the current task, and no operation flag outside the task is generated. Otherwise, record the operation record identifier, operation subject identifier, operation type, execution environment identifier, resource identifier, and occurrence time of the operation unit, and generate an out-of-task operation marker; Count the number of identical fields in operation type, execution environment identifier, and resource identifier between candidate authorization records and off-task operation markers, and associate the authorization record identifier of the candidate authorization record with the largest number of identical fields with the off-task operation marker.
[0012] In a preferred embodiment, in step S3, if there are multiple candidate authorization records with the largest number of identical fields, the authorization record identifier closest to the time of authorization taking effect is selected; if no candidate authorization record is found, the identifier of the unassociated authorization record is written into the task-out operation marker. When there is only one distinct field, the residual permission deviation level will be evaluated as low. When there are two distinct fields, the residual permission deviation level will be assessed as medium. When there are three distinct fields, the residual permission deviation level will be evaluated as high. For out-of-task operations that are not bound to an environment identifier, the residual permission deviation level will be directly assessed as high. If the current task allows an empty set of behavior boundaries, generate an out-of-task operation tag for each operation unit and evaluate it as high-level.
[0013] In a preferred embodiment, in step S4, the accessed resource sensitivity level is the data hierarchical label maintained by the resource directory service for the resource identifier; The resource catalog service uses the resource identifier in the off-task operation mark as an index to read the corresponding resource's classification field in the data asset classification library; When the grading field is low, medium or high, the sensitivity level of the accessed resource is directly written; when there is no grading field corresponding to the resource identifier in the data asset grading library, the sensitivity level of the accessed resource is written as high. Map the low, medium, and high levels of residual permissions to deviation level numbers one, two, and three, respectively. Map the low, medium, and high levels of sensitivity of the accessed resources to resource level numbers one, two, and three, respectively.
[0014] In a preferred embodiment, in step S4, the disposal matrix is used to query the instruction type corresponding to the two level number combinations: When the deviation level number is one and the resource level number is one, a prompt instruction is generated; When the deviation level number is one and the resource level number is two or three, a restriction instruction is generated. When the deviation level number is two and the resource level number is one, a restriction instruction is generated. When the deviation level number is two and the resource level number is two or three, a blocking command is generated. When the deviation level number is three, a blocking command is generated; When the hierarchical handling instruction is a prompt instruction, the permission management service sends an out-of-task operation prompt to the terminal corresponding to the authorized subject identifier and keeps the temporary authorization valid; When the hierarchical handling instruction is a restriction instruction, the access management service suspends the access capability corresponding to the resource identifier marked by the off-task operation in the associated authorization record.
[0015] The technical effects and advantages of this invention are as follows: This invention constructs the boundary of allowed behaviors for the current task by reading the current task node status and accessing the temporary authorization scope, extracts operation audit records to form a software operation sequence, and calculates environment-related operation features by combining execution environment binding information. Based on the current task's allowed behavior boundary and environment-related operation features, it performs task attribution comparison to generate an out-of-task operation marker, associates temporary authorization with the residual deviation level of permissions, and generates graded handling instructions and executes permission handling based on the sensitivity level of the accessed resources. This improves the accuracy of abnormal behavior identification in the software development task process, realizes dynamic matching of temporary authorization behavior with task flow, and graded control of abnormal operations. Attached Figure Description
[0016] Figure 1 This is an overall architecture diagram of a software behavior anomaly detection method based on development task flow analysis according to the present invention.
[0017] Figure 2 This is a schematic diagram illustrating the steps of a software behavior anomaly detection method based on development task flow analysis according to the present invention. Detailed Implementation
[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] This invention constructs the boundary of allowed behavior for the current task by reading the current task node status and accessing the temporary authorization scope, extracts operation audit records, forms a software operation sequence, and calculates environment-related operation characteristics by combining execution environment binding information. Based on the boundary of allowed behavior for the current task and the environment-related operation characteristics, it performs task attribution comparison, generates an out-of-task operation marker, associates the temporary authorization assessment permission residual deviation level, and combines the sensitivity level of the accessed resource to generate graded handling instructions and execute permission handling, thereby improving the accuracy of abnormal behavior identification in the software development task process.
[0020] Example 1 Please see Figures 1 to 2 A software behavior anomaly detection method based on development task flow analysis is described below: Step S1: Read the current task node status, access the temporary authorization scope, and construct the boundary of allowed behavior for the current task by combining the current task node status and the temporary authorization scope; Step S2: Extract the software operation sequence from the operation audit record, read the execution environment binding information, and calculate the environment-related operation characteristics by combining the software operation sequence; Step S3: By comparing the allowed behavior boundaries of the current task and the associated operation features of the environment, the software operation execution task attribution is compared and an off-task operation mark is generated. The off-task operation mark is associated with the corresponding temporary authorization to evaluate the residual deviation level of the permission. Step S4: Read the sensitivity level of the accessed resource, generate a graded handling instruction based on the permission residual deviation level and the sensitivity level of the accessed resource, and perform permission handling on the marked temporary authorization based on the graded handling instruction.
[0021] The specific implementation is as follows: In step S1, the current task node status is read and the temporary authorization scope is accessed. The current task node status is the valid status of the current development task in the process of requirement processing, code development, test verification, release execution or task switching, and is used to limit the types of software operations that can be executed at the current moment.
[0022] Set a task analysis time window. The start time of the task analysis time window is the time when the most recent creation, assignment, start, submission, completion or switching event of the current development task occurs, and the end time is the time when the anomaly detection request is received.
[0023] The development task management service uses the time of receiving the anomaly detection request as the cutoff time. Within the task analysis time window, it reads the status change events in the task status event library that have the same identifier as the current development task, extracts the task node identifier, status code, and occurrence time of each status change event, sorts the status change events in ascending order of occurrence time, removes the cancellation status events, and parses the valid status code with the closest occurrence time and no later than the time of receiving the anomaly detection request into the current task node status.
[0024] The temporary authorization scope is the scope of operation permission granted by the permission management service to the operation subject during the current development task execution, which has a task binding relationship and a validity period, and is used to provide the authorization basis for interfaces, execution environment and resource objects.
[0025] The access control service uses the current development task identifier and the operation subject identifier as search criteria to read authorization records from the temporary authorization record library that are valid and whose expiration time is later than the time the anomaly detection request is received. From each authorization record, the authorization record identifier, operation type, execution environment identifier, resource identifier, and authorization subject identifier are extracted. The extracted content is then grouped according to the authorization record identifier to obtain the scope of temporary authorization.
[0026] The allowed behavior boundary of the current task refers to the combination of operation type, execution environment identifier, and resource identifier that matches the current task node state, and is used to define the acceptable software behavior of the current development task.
[0027] The task status-operation type mapping table is a configuration table pre-stored in the development task management service. Each row in the table corresponds to a status code and the allowed operation types for that status code.
[0028] For each authorization record within the temporary authorization scope, access the task status-operation type mapping table to determine whether the operation type of the authorization record is included in the set of allowed operation types corresponding to the current task node status; combine the operation type, execution environment identifier, and resource identifier in the included authorization record into a allowed behavior unit, and retain the authorization record identifier of the allowed behavior unit; summarize all allowed behavior units to form the allowed behavior boundary of the current task.
[0029] When there is no valid authorization record matching the current task node state, the allowed behavior boundary of the current task is constructed as an empty set; When the same authorization record contains multiple resource identifiers, a separate allowed behavior unit is constructed for each resource identifier.
[0030] All resource identifiers in the permitted behavior units are single-atom resource identifiers, consistent with the resource identifier granularity in the operation audit log. The current task's permitted behavior boundary is passed to step S3 for task attribution comparison with the actual software operation.
[0031] In step S2, the software operation sequence is extracted from the operation audit record, and the execution environment binding information is read. A software operation sequence is a set of software operation records related to the current development task, arranged by the time of occurrence, used to reflect the actual software behavior that occurs.
[0032] Within the task analysis time window, the operation audit service retrieves operation audit records from the database by current development task identifier, operation subject identifier, or task tracking identifier. Each operation audit record includes at least an operation record identifier, operation type, resource identifier, session identifier, operation subject identifier, and occurrence time, where the resource identifier is a single resource object identifier. The operation audit service removes invalid records lacking operation type or resource identifier, arranges the remaining records in ascending order of occurrence time, and eliminates parallel sequences by sorting adjacent records with the same occurrence time in ascending order of operation record identifier, thus obtaining the software operation sequence.
[0033] Execution environment binding information is the correspondence between the session identifier and the execution environment identifier in the session access record, used to confirm whether the software operation occurs in the development environment, testing environment, or production environment.
[0034] When each session is established, the environment access management service writes the execution environment identifier corresponding to the session identifier based on the access address, deployment domain identifier, and environment registry. In step S2, the execution environment identifier is read from the session access record database using the session identifier of each operation audit record in the software operation sequence as an index to obtain the execution environment binding information.
[0035] Environment-associated operation features are a set of operation fragments formed by associating each software operation in a software operation sequence with an execution environment identifier, used to characterize the correspondence between operation behavior and execution environment.
[0036] Iterate through the operation audit records in the software operation sequence and write the operation type, resource identifier, execution environment identifier, and occurrence order into the operation unit: If the execution environment identifier of the current operation unit is the same as that of the previous operation unit, and the two operation units occur in a consecutive order, the two operation units will be grouped into the same operation segment. If the execution environment identifier is different, the order of occurrence is not continuous, or the current operation unit is the first operation unit, a new operation segment is created.
[0037] The operation segments are sorted according to the order in which the first operation unit occurs, thus obtaining the environmental associated operation features.
[0038] When the session identifier fails to match the execution environment identifier in the session access record database, an environment unbound identifier is written for the corresponding operation unit and an operation fragment is formed separately.
[0039] In step S3, the software operation execution task attribution is compared based on the current task's allowed behavior boundary and environmental associated operation characteristics, and an out-of-task operation marker is generated; The out-of-task operation marker is an identifier generated when the operation unit in the environment-related operation feature does not belong to the boundary of the current task's allowed behavior. It is used to locate software operations that occur after a task switch but still use temporary authorization.
[0040] Each operation unit in the environment-related operation characteristics is read sequentially, and the operation type, execution environment identifier, and resource identifier of the operation unit are matched field by field with the allowed behavior units in the current task's allowed behavior boundary: When there are three allowed behavior units with the same three fields, the operation unit is determined to belong to the current task, and no operation flag outside the task is generated. Otherwise, record the operation record identifier, operation subject identifier, operation type, execution environment identifier, resource identifier, and occurrence time of the operation unit, and generate an off-task operation marker.
[0041] For each off-task operation marker, using the operation subject identifier and the occurrence time as indexes, candidate authorization records with the same authorization subject identifier, authorization effective time no later than the occurrence time, and authorization expiration time no earlier than the occurrence time are filtered from the authorization records corresponding to the temporary authorization scope; Count the number of identical fields in operation type, execution environment identifier, and resource identifier between candidate authorization records and off-task operation markers, and associate the authorization record identifier of the candidate authorization record with the largest number of identical fields with the off-task operation marker.
[0042] If there are multiple candidate authorization records with the largest number of identical fields, select the authorization record whose authorization effective time is closest to the time of occurrence; if no candidate authorization record is found, write the unassociated authorization record identifier in the task-out operation marker.
[0043] The permission residual deviation level is the degree of deviation of the out-of-task operation marker from the nearest permitted action unit, used to determine the strength of permission action. For out-of-task operation markers with associated authorization records, the number of fields that differ between the operation type, execution environment identifier, and resource identifier and the nearest permitted action unit is counted. When there is only one distinct field, the residual permission deviation level will be evaluated as low. When there are two distinct fields, the residual permission deviation level will be assessed as medium. When there are three distinct fields, the permission residual deviation level is evaluated as high.
[0044] For out-of-task operations that are not bound to an environment identifier, the residual permission deviation level will be directly assessed as high. If the current task allows an empty set of behavior boundaries, generate an out-of-task operation tag for each operation unit and evaluate it as high-level.
[0045] In step S4, the sensitivity level of the accessed resource is read, and a graded handling instruction is generated using the permission residual deviation level and the sensitivity level of the accessed resource. Based on the graded handling instruction, the temporary authorization marked is processed. The sensitivity level of the accessed resource is a data classification label maintained by the resource catalog service for the resource identifier, which is used to reflect the priority of handling when unauthorized access to the accessed resource occurs.
[0046] The resource catalog service uses the resource identifier in the off-task operation mark as an index to read the corresponding resource's classification field in the data asset classification library; When the grading field is low, medium, or high, the sensitivity level of the accessed resource is directly written. When the grading field corresponding to the resource identifier does not exist in the data asset grading database, the sensitivity level of the accessed resource is written as high.
[0047] A tiered handling instruction is a prompt, restriction, or blocking instruction determined by a combination of the permission residual deviation level and the sensitivity level of the accessed resource. It is used to drive the permission management service to perform permission handling on the associated temporary authorization.
[0048] Map the low, medium, and high levels of permission residual deviation to deviation level numbers one, two, and three respectively; map the low, medium, and high levels of accessed resource sensitivity to resource level numbers one, two, and three respectively; use the disposal matrix to query the instruction type corresponding to the combination of the two level numbers: When the deviation level number is one and the resource level number is one, a prompt instruction is generated; When the deviation level number is one and the resource level number is two or three, a restriction instruction is generated. When the deviation level number is two and the resource level number is one, a restriction instruction is generated. When the deviation level number is two and the resource level number is two or three, a blocking command is generated. When the deviation level number is three, a blocking command is generated.
[0049] The instruction type, out-of-task operation flag, and associated authorization record identifier are encapsulated into a hierarchical handling instruction and sent to the permission management service.
[0050] When the hierarchical handling instruction is a prompt instruction, the permission management service sends an out-of-task operation prompt to the terminal corresponding to the authorized subject identifier and keeps the temporary authorization valid; When the hierarchical handling instruction is a restriction instruction, the access management service suspends the access capability corresponding to the resource identifier in the associated authorization record that is marked with the out-of-task operation mark; When the hierarchical handling instruction is a blocking instruction, the access control service will change the authorization status of the associated authorization record to invalid and refuse subsequent access requests initiated by the same authorization record.
[0051] For out-of-task operation markers that are not associated with authorization records, the permission management service only outputs prompt instructions and retains the out-of-task operation markers for subsequent auditing and querying.
[0052] Finally, it should be noted that in this paper, relational terms such as first and second are used only 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.
[0053] Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0054] In this document, the singular forms “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that terms such as “comprising / including” or “having” specify the presence of the stated features, integrals, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, integrals, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.
[0055] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0056] The above description of the disclosed embodiments will enable those skilled in the art to make or use various modifications to these embodiments. It will be readily apparent to those skilled in the art that the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for detecting software behavior anomalies based on development task flow analysis, characterized in that, Includes the following steps: Step S1: Read the current task node status, access the temporary authorization scope, and construct the boundary of allowed behavior for the current task by combining the current task node status and the temporary authorization scope; Step S2: Extract the software operation sequence from the operation audit record, read the execution environment binding information, and calculate the environment-related operation characteristics by combining the software operation sequence; Step S3: By comparing the allowed behavior boundaries of the current task and the associated operation features of the environment, the software operation execution task attribution is compared and an off-task operation mark is generated. The off-task operation mark is associated with the corresponding temporary authorization to evaluate the residual deviation level of the permission. Step S4: Read the sensitivity level of the accessed resource, generate a graded handling instruction based on the permission residual deviation level and the sensitivity level of the accessed resource, and perform permission handling on the marked temporary authorization based on the graded handling instruction.
2. The software behavior anomaly detection method based on development task flow analysis according to claim 1, characterized in that: In step S1, state change events are arranged in ascending order of occurrence time, canceled state events are removed, and the valid state code with the closest occurrence time and no later than the time of receiving the anomaly detection request is parsed as the current task node state. Extract the authorization record identifier, operation type, execution environment identifier, resource identifier, and authorization subject identifier from each authorization record. Group the extracted content according to the authorization record identifier to obtain the temporary authorization scope. For each authorization record within the temporary authorization scope, access the task status-operation type mapping table, combine the operation type, execution environment identifier, and resource identifier in the included authorization record into a permitted behavior unit, and retain the authorization record identifier of the permitted behavior unit; Summarize all allowed behavior units to form the boundary of allowed behavior for the current task.
3. The software behavior anomaly detection method based on development task flow analysis according to claim 2, characterized in that: In step S1, when there is no valid authorization record matching the current task node state, the allowed behavior boundary of the current task is constructed as an empty set; When the same authorization record contains multiple resource identifiers, a separate allowed behavior unit is constructed for each resource identifier.
4. The software behavior anomaly detection method based on development task flow analysis according to claim 3, characterized in that: In step S2, the operation audit service removes invalid records that lack operation type or resource identifier, arranges the remaining records in order of occurrence time from earliest to latest, and eliminates parallel order by arranging adjacent records with the same occurrence time in ascending order of operation record identifier, thus obtaining the software operation sequence; When each session is established, the environment access management service writes the execution environment identifier corresponding to the session identifier based on the access address, deployment domain identifier, and environment registry. Using the session identifier of each operation audit record in the software operation sequence as an index, it reads the execution environment identifier from the session access record database to obtain the execution environment binding information.
5. The software behavior anomaly detection method based on development task flow analysis according to claim 4, characterized in that: In step S2, the operation audit records in the software operation sequence are traversed sequentially, and the operation type, resource identifier, execution environment identifier and occurrence order are written into the operation unit. If the execution environment identifier of the current operation unit is the same as that of the previous operation unit, and the two operation units occur in a consecutive order, the two operation units will be grouped into the same operation segment. If the execution environment identifiers are different, the order of occurrence is not continuous, or the current operation unit is the first operation unit, a new operation segment is created; The operation segments are sorted according to the order in which the first operation unit occurs to obtain the environmental associated operation characteristics; When the session identifier fails to match the execution environment identifier in the session access record database, an environment unbound identifier is written for the corresponding operation unit and an operation fragment is formed separately.
6. The software behavior anomaly detection method based on development task flow analysis according to claim 1, characterized in that: In step S3, each operation unit in the environment-related operation features is read sequentially, and the operation type, execution environment identifier, and resource identifier of the operation unit are matched field by field with the allowed behavior units in the current task's allowed behavior boundary. When there are three allowed behavior units with the same three fields, the operation unit is determined to belong to the current task, and no operation flag outside the task is generated. Otherwise, record the operation record identifier, operation subject identifier, operation type, execution environment identifier, resource identifier, and occurrence time of the operation unit, and generate an out-of-task operation marker; Count the number of identical fields in operation type, execution environment identifier, and resource identifier between candidate authorization records and off-task operation markers, and associate the authorization record identifier of the candidate authorization record with the largest number of identical fields with the off-task operation marker.
7. The software behavior anomaly detection method based on development task flow analysis according to claim 6, characterized in that: In step S3, if there are multiple candidate authorization records with the largest number of identical fields, select the authorization record whose authorization effective time is closest to the occurrence time; if no candidate authorization record is found, write the unassociated authorization record identifier in the task-out operation marker. When there is only one distinct field, the residual permission deviation level will be evaluated as low. When there are two distinct fields, the residual permission deviation level will be assessed as medium. When there are three distinct fields, the residual permission deviation level will be evaluated as high. For out-of-task operations that are not bound to an environment identifier, the residual permission deviation level will be directly assessed as high. If the current task allows an empty set of behavior boundaries, generate an out-of-task operation tag for each operation unit and evaluate it as high-level.
8. The software behavior anomaly detection method based on development task flow analysis according to claim 7, characterized in that: In step S4, the sensitivity level of the accessed resource is the data hierarchical label maintained by the resource directory service for the resource identifier; The resource catalog service uses the resource identifier in the off-task operation mark as an index to read the corresponding resource's classification field in the data asset classification library; When the grading field is low, medium or high, the sensitivity level of the accessed resource is directly written; when there is no grading field corresponding to the resource identifier in the data asset grading library, the sensitivity level of the accessed resource is written as high. Map the low, medium, and high levels of residual permissions to deviation level numbers one, two, and three, respectively. Map the low, medium, and high levels of sensitivity of the accessed resources to resource level numbers one, two, and three, respectively.
9. A software behavior anomaly detection method based on development task flow analysis according to claim 8, characterized in that: In step S4, the disposal matrix is used to query the instruction type corresponding to the two level number combinations: When the deviation level number is one and the resource level number is one, a prompt instruction is generated; When the deviation level number is one and the resource level number is two or three, a restriction instruction is generated. When the deviation level number is two and the resource level number is one, a restriction instruction is generated. When the deviation level number is two and the resource level number is two or three, a blocking command is generated. When the deviation level number is three, a blocking command is generated; When the hierarchical handling instruction is a prompt instruction, the permission management service sends an out-of-task operation prompt to the terminal corresponding to the authorized subject identifier and keeps the temporary authorization valid; When the hierarchical handling instruction is a restriction instruction, the access management service suspends the access capability corresponding to the resource identifier marked by the off-task operation in the associated authorization record.
