A time series graph autoregressive APT dynamic path prediction method and system
By constructing a multidimensional time-series graph and an autoregressive decoder, and utilizing dynamic physical attention masking and tensor splitting techniques, the problems of network changes and control plane signaling simulation in APT attack path prediction were solved, achieving high-precision attack path prediction and device control.
Patent Information
- Application Number
- CN202611262106.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot reflect network changes in real time in APT attack path prediction, cannot continuously generate multi-hop paths, and cannot simulate the state of micro-isolation of the user plane but survival of control plane signaling, which allows attackers to use residual control plane signaling for covert lateral movement.
A multi-dimensional time-series graph is constructed, candidate paths are generated through an autoregressive decoder, and counterfactual states of micro-isolation in the user plane are simulated using dynamic physical attention masks and tensor splitting techniques to detect the compliance of control plane signaling and generate device control strategies.
Early detection of control surface jump attack risks that may be triggered by defensive actions can prevent new covert attack channels, improve path prediction accuracy, shorten response time, and reduce lateral movement windows.
Smart Images

Figure CN123184885A_ABST
Abstract
Description
Technical Field
[0001] Applications generally involve the field of cybersecurity technology, and in particular, a method and system for predicting dynamic paths of APTs based on time-series graph autoregression. Background Technology
[0002] Currently, APT (Advanced Persistent Threat) attacks typically go through multiple stages, including initial access, execution, persistence, privilege escalation, credential access, lateral movement, command and control, and data theft. Predicting and blocking attack paths is a core challenge in network security defense.
[0003] Existing threat reasoning schemes based on knowledge graphs and graph neural networks have the following main shortcomings: Firstly, static graph-based solutions extract entities and relationships from vulnerability intelligence, asset information, and alarm logs to construct knowledge graphs or attack graphs, and then use graph search or graph neural networks to output suspected attack chains. The graphs constructed by this type of solution are snapshots at a certain point in time, and cannot reflect real-time changes such as the freshness of threat intelligence, changes in device policies, changes in account permissions, and changes in network boundary status. Therefore, they cannot directly support infringement evidence collection and device linkage.
[0004] Secondly, single-step prediction schemes based on time-series graphs add timestamps to static graphs to predict node relationships or event categories at a future point in time. These schemes remain at the single-step prediction level and cannot continuously generate multi-hop paths in real networks that satisfy topological reachability, permission execution, and attack phase continuity.
[0005] Third, the Transformer-based discriminative detection scheme treats event streams such as logs and alarms as sequences, using a Transformer encoder to learn a deep representation of the sequence. Its technical goal is to determine whether a sequence of events that has occurred belongs to an APT attack. This scheme is a post-event or in-event identification technique and does not have the ability to predict future attack paths.
[0006] Fourth, the reinforcement learning-based path exploration scheme models attack path selection as a search or policy optimization problem, choosing a path based on a reward function or attack payoff. However, this scheme lacks a strong connection between the reward function and the actual device state; the output path may be statistically reasonable, but it could be directly blocked by firewalls, access control lists, micro-segmentation policies, or identity / permission restrictions in the current network.
[0007] Fifth, the external post-filtering path generation scheme first calculates the probability distribution of all candidate entities by the model, and then multiplies or eliminates the topology reachability matrix, permission matrix, or stage matrix as external filters. In this scheme, the model still performs invalid probability calculations for a large number of physically disconnected and permission-unreachable nodes, which can easily lead to path branch explosion and increased inference latency in large-scale node sets.
[0008] Sixth, in the 5G service-oriented architecture core network, user plane service flows and control plane service calls are separated. Existing security systems, upon detecting abnormal service flows, typically suppress attack propagation by blocking PDU sessions, restricting UPF forwarding paths, or blocking user plane service channels. However, blocking service flows does not mean the simultaneous termination of related control plane signaling. Because the service-oriented architecture relies on control plane services such as NRF service discovery, NF state subscription, AMF / SMF session maintenance, AUSF / UDM authentication, and subscription data access, some seemingly compliant control plane signaling may still persist due to network continuity and service governance requirements. Attackers may exploit these residual control plane interactions to maintain registration context, probe NF topology, subscribe to network element state changes, or wait for service plane recovery, thus creating a risk of residual control plane signaling after user plane blocking.
[0009] Existing static control plane / user plane decoupling modeling schemes split the control plane and user plane into different nodes or different subgraphs in the early stage of graph data structure construction. This is a static topology modeling scheme. It cannot change the tensor representation of the target network element in real time according to the attack stage and candidate disposal actions within the attention calculation step of the autoregressive decoder. It also cannot simulate the counterfactual state that "the user plane is micro-isolated but the compliant signaling of the control plane must be retained". Therefore, it is difficult to detect variant paths in which attackers use retained control plane signaling to carry out covert lateral movement. Summary of the Invention
[0010] This disclosure addresses some deficiencies mentioned in the background art by providing a method and system for dynamic path prediction based on time-series graph autoregressive APT.
[0011] In a first aspect, embodiments of this disclosure provide a dynamic path prediction method for autoregressive APT based on time-series graphs, comprising the following steps: Construct a time-series graph containing multi-dimensional temporal fact units; the multi-dimensional temporal fact units are indicated by attribute vectors to their bound physical reachability and permission executability; During the process of the autoregressive decoder generating candidate attack paths sequentially based on the time series graph, the current path end node and the candidate next hop node are obtained. A dynamic physical attention mask is constructed based on the physical reachability and permission executability of the current path end node and the candidate next hop node in the time series graph, and the dynamic physical attention mask is injected into the attention calculation of the autoregressive decoder. When the preset tensor splitting trigger condition is met, in the current attention calculation step of the autoregressive decoder, the key tensor corresponding to the target network element with the control plane and user plane decoupling architecture in the candidate next-hop node in the time sequence graph is separated into control plane key tensor and user plane key tensor, and an asymmetric shadow mask is injected to perform counterfactual inference, so as to simulate the state in which user plane micro-isolation blocks user plane service flow while control plane signaling survives. After performing the counterfactual deduction, it is detected whether the probability of the control plane key tensor being transferred to a non-whitelisted control plane element exceeds a preset security threshold. If it does, the initial candidate action is discarded and the initial candidate action is upgraded. The candidate attack paths generated by the autoregressive decoder are sorted by multiple targets to determine the predicted path, and a device control strategy is generated and executed based on the predicted path.
[0012] In one embodiment of the first aspect, the step of constructing a time series graph containing multidimensional temporal fact units further includes: Collect and preprocess multi-source security data, and abstract the preprocessed event data into basic temporal quadruples, which are used to describe the relationship between entities. Attribute vectors are extracted from real network device states and policies, and the attribute vectors are superimposed on the basic time-series quadruple to form the multidimensional time-series fact unit. The attribute vector includes topology reachability, route reachability path, security policy status, permission status, attack phase, control plane role and user plane role, candidate action, time validity, and intelligence credibility.
[0013] In one embodiment of the first aspect, the step of constructing the dynamic physical attention mask further includes: Obtain the physical reachability and permission executability of the current path end node and the candidate next-hop node from the time series graph, and construct the topology reachability matrix and permission executability matrix. The topology reachability matrix and the permission executable matrix are converted into dynamic physical attention masks of the same dimension as the candidate node attention scores; When a candidate node satisfies both physical reachability and executable permissions, the corresponding mask value is zero; when a candidate node does not satisfy physical reachability or is not executable permissions, the corresponding mask value is set to negative infinity, so that the probability of the candidate node is zero after attention normalization.
[0014] In one embodiment of the first aspect, the step of satisfying the preset tensor splitting trigger condition further includes: The candidate next-hop node is the target network element with the control plane and user plane decoupling architecture; The attack phase identified by the hidden state vector of the previous prediction step of the autoregressive decoder is either lateral movement or command control. The initial candidate action calculated for the target network element is the user plane micro-isolation; The target network element has distinguishable control plane signaling and user plane service flows within the current time slot of the time sequence diagram.
[0015] In one embodiment of the first aspect, the step of separating the key tensor corresponding to the target network element with a control plane and user plane decoupled architecture in the candidate next-hop node in the time series graph into a control plane key tensor and a user plane key tensor, and injecting an asymmetric shadow mask to perform counterfactual inference, further includes: Keeping the topology of the target network element in the time series map unchanged, a control plane projection matrix and a user plane projection matrix are generated based on the microservice characteristics of the target network element in the current time slot. The original key tensor corresponding to the target network element in the time series map is separated into the control plane key tensor and the user plane key tensor using the control plane projection matrix and the user plane projection matrix; Generate a first mask and a second mask. The first mask applies only to the user face key tensor and is set to negative infinity. The second mask applies to the control face key tensor and is set to zero. The probability distribution of the counterfactual inference is obtained by injecting attention normalization calculations into the first mask and the second mask.
[0016] In one embodiment of the first aspect, the step of detecting whether the transfer probability of the control plane key tensor to a non-whitelisted control plane element exceeds a preset security threshold further includes: Under the probability distribution of the counterfactual inference, the control plane candidate transition probability is restricted to a preset compliant signaling space, and the transition probability of the control plane key tensor to the non-whitelisted control plane network element is calculated. If the transfer probability exceeds the preset security threshold, it is determined that there is a risk of lateral movement using retained compliance control signaling.
[0017] In one embodiment of the first aspect, the step of generating and executing a device control strategy based on the predicted path further includes: The terminal node information in the predicted path is parsed to generate equipment control commands corresponding to the upgraded handling actions, and then sent to security devices and / or core network elements. The execution feedback information is written back to the time series graph to form a closed loop.
[0018] In a second aspect, embodiments of this disclosure provide a time-series graph autoregressive APT dynamic path prediction system, applying the time-series graph autoregressive APT dynamic path prediction method as described above, including: The time series graph construction module is configured to construct a time series graph containing multi-dimensional time series fact units; the multi-dimensional time series fact units are indicated by attribute vectors to their bound physical reachability and permission executability; The dynamic physical mask autoregressive path prediction module is configured to, during the process of the autoregressive decoder generating candidate attack paths sequentially based on the time series graph, obtain the current path end node and the candidate next hop node, construct a dynamic physical attention mask based on the physical reachability and permission executability bound to the current path end node and the candidate next hop node in the time series graph, and inject the dynamic physical attention mask into the attention calculation of the autoregressive decoder. The tensor projection splitting module is configured to, when a preset tensor splitting trigger condition is met, in the current attention calculation step of the autoregressive decoder, separate the key tensor corresponding to the target network element with the control plane and user plane decoupled architecture in the candidate next hop node in the time series graph into a control plane key tensor and a user plane key tensor. The asymmetric shadow mask counterfactual deduction module is configured to inject asymmetric shadow masks to perform counterfactual deduction to simulate the state where the user plane is blocked but the control plane signaling survives. After performing the counterfactual deduction, it detects whether the probability of the control plane key tensor transferring to the non-whitelisted control plane network element exceeds a preset security threshold, and triggers the upgrade of the initial candidate handling action when it exceeds the threshold. The comprehensive ranking and strategy execution module is configured to perform multi-target comprehensive ranking on the candidate attack paths generated by the autoregressive decoder to determine the predicted path, and generate and execute device control strategies based on the predicted path.
[0019] In one embodiment of the second aspect, the tensor projection splitting module is further configured to: Keeping the topology of the target network element in the time series map unchanged, a control plane projection matrix and a user plane projection matrix are generated based on the microservice characteristics of the target network element in the current time slot; The original key tensor corresponding to the target network element in the time series spectrum is separated into the control plane key tensor and the user plane key tensor using the control plane projection matrix and the user plane projection matrix.
[0020] In one embodiment of the second aspect, the asymmetric shadow mask counterfactual deduction module is further configured to: Generate a first mask and a second mask. The first mask applies only to the user face key tensor and is set to negative infinity. The second mask applies to the control face key tensor and is set to zero. By injecting attention normalization calculations into the first mask and the second mask, the probability distribution of counterfactual inference is obtained; Under the probability distribution of the counterfactual inference, the control plane candidate transition probability is restricted to a preset compliant signaling space, and the transition probability of the control plane key tensor to the non-whitelisted control plane network element is calculated. When the transfer probability exceeds the preset security threshold, the initial user plane micro-isolation action is upgraded to full node blocking, network element-level isolation, or slice isolation.
[0021] This disclosure proposes a dynamic path prediction method and system based on time-series graph autoregressive APT, which has the following beneficial effects: (1) By performing tensor projection splitting and asymmetric shadow mask counterfactual deduction inside the autoregressive decoder, it is possible to simulate the counterfactual state that "the user plane service flow is blocked while the control plane signaling remains alive according to the specifications" before the user plane micro-isolation action is actually issued, thereby discovering the control plane jump attack risk that the defense action itself may induce in advance and avoiding leaving new hidden attack channels due to improper handling actions.
[0022] (2) The topology reachability matrix and permission executable matrix are converted into dynamic physical attention masks and injected into the attention calculation of the autoregressive decoder. This makes the probability calculation of candidate next-hop nodes directly constrained by the real network device configuration information and policy information. After attention normalization, the probability of physically unreachable or permission-unexecutable nodes is zero, avoiding the path branch explosion and inference latency problems caused by the model performing probability calculation on invalid nodes.
[0023] (3) Tensor splitting is triggered only during the lateral movement or command and control attack phase and when the candidate disposal action is user plane micro-isolation. It does not change the static topology of the temporal graph, but dynamically separates the control plane key tensor and user plane key tensor within the current attention calculation step. The processing accuracy is higher than the scheme of statically splitting the control plane and user plane during the graph construction phase.
[0024] (4) The asymmetric shadow mask only applies a negative infinite penalty term to the user face key tensor and keeps the control face key tensor as a zero mask, simulating the real state of control signaling survival required by the 5G specification, which is different from the symmetric blocking method of ordinary micro-segmentation that treats the entire target link as the blocking object.
[0025] (5) Detecting the probability mutation of the transfer of control plane key tensor to non-whitelist control plane network elements within the preset compliance signaling space can identify variant paths of attackers to carry out covert lateral movement by retaining compliance control signaling through NRF subscription, UDM authentication, etc., which makes up for the shortcomings of existing solutions that only focus on user plane blocking effect and ignore control plane residual risks.
[0026] (6) A closed-loop security protection process of “path prediction - virtual handling - risk detection - action escalation - execution feedback - map update” is formed. The output end can automatically generate equipment control instructions corresponding to the upgraded handling actions and send them to security equipment or core network elements. This realizes the direct conversion from attack path prediction to equipment-level control instructions, shortens the response time, and reduces the lateral movement window. Attached Figure Description
[0027] Figure 1 Here is a flowchart of a time-series graph-based autoregressive APT dynamic path prediction method according to this disclosure; Figure 2 This is a diagram of an APT dynamic path prediction system architecture based on time-series graph autoregression according to the present disclosure. Detailed Implementation
[0028] The present application / disclosure will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application / disclosure and are not intended to limit the scope of the present application / disclosure. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present application / disclosure are shown in the accompanying drawings, not the entire structure.
[0029] Example 1 Figure 1 The flowchart of a time-series graph-based autoregressive APT dynamic path prediction method according to this disclosure is shown below with reference to... Figure 1 This paper provides a detailed description of a time-series graph-based autoregressive APT dynamic path prediction method.
[0030] Step 101: Construct a time series graph containing multi-dimensional time series fact units; the multi-dimensional time series fact units are indicated by attribute vectors indicating their bound physical reachability and permission executability.
[0031] In this embodiment, the system continuously collects multi-source security data from the operator's existing network. This multi-source security data includes: logs from network elements such as 5G core network application functions (AF), network open functions (NEF), session management functions (SMF), access and mobility management functions (AMF), network repository functions (NRF), and unified data management (UDM); service-oriented architecture (SBA) microservice registration, discovery, subscription, and authentication logs; N33, N2, and N4 interface call logs; WAF alarms, endpoint detection and response (EDR) telemetry, and NDR / IDS alarms; firewall policies, core switch access control lists (ACLs), border gateway protocols (BGP), routing information bases (RIBs), and forwarding tables (FIBs); CMDB asset ledgers; identity and access management (IAM) permissions and token logs; cloud access security proxy (CASB), database auditing, and object storage access auditing; external threat intelligence, compromise indicators (IOCs), common vulnerability disclosures (CVEs), and tactical and technical procedures (TTPs) and other security intelligence data.
[0032] In one embodiment, the collected heterogeneous logs and security data are preprocessed to generate security event records in a unified format. Standardized fields include at least: event time, source IP, destination IP, protocol, port, asset ID, business domain, account ID, token ID, log source device, alarm type, CVE number, IOC value, attack stage, SBA microservice characteristics, control plane / user plane role, candidate action, policy version number, and device identifier.
[0033] In one embodiment, header entities, relations, tail entities, and timestamps are extracted from preprocessed event data to construct basic time-series quadtuples. For example, “AF—call—NEF_N33_Service—at a certain moment” or “Token_X—access—object bucket—at a certain moment”.
[0034] In one embodiment, an attribute vector A is extracted from the configuration information and policy information of the network device, and the attribute vector A is superimposed onto the basic time-series quadruple. Above, forming multi-dimensional temporal fact units. This generates a continuously updated time-series graph, providing a unified data foundation for subsequent dynamic physical mask construction, autoregressive candidate attack path generation, SBA tensor splitting trigger judgment, and counterfactual inference. Here, h is the head entity, r is the relation, t is the tail entity, τ is the timestamp, and A is the physically available attribute vector, which includes at least one of the following fields: A_type: Entity type and relationship type, determined by log parsing rules, device type dictionary, and CVE / IOC library; A_topo: Topology location and inter-domain boundary, obtained by resolving the BGP table of the boundary router, the RIB / FIB forwarding table, the ACL of the core switch, the CMDB link, and the SDN flow table; A_route: The reachable path from source to destination, calculated based on source IP, destination IP, subnet mask, next hop, and firewall security domain; A_policy: Security policy state, determined by firewall policy, NAT rules, micro-segmentation policy, WAF policy, and EDR policy; A_asset: Asset risk level, determined by CMDB asset level, business domain, and whether it carries core network or user privacy data; A_stage: The attack stage, determined by mapping local alerts to the rule table of the stage using MITRE ATT&CK technology; A_sba: SBA signaling status, determined by NRF registration discovery records, NFStatusSubscribe subscriptions, and Nnrf / Nnef / Nsmf interface call logs; A_plane: Control plane (CP) / User plane (UP) role, determined by SBA service name, interface type, SBI message direction, N2 / N33 / N4 interface mapping, etc. A_action0: Initial candidate action, determined by SOAR candidate strategy, micro-segmentation template, and UP plane service flow blocking rules; A_perm: Permission status, determined by IAM policy, Token scope, bastion host session, AD group, K8s RBAC, and EDR local administrator status; A_time: Time validity, determined by the intelligence release time, vulnerability disclosure time, most recent hit time, and policy effective time; A_conf: Intelligence credibility, determined by intelligence source level, number of hits from multiple sources, manual verification results, and historical false alarm rate; A_action: The action that can be performed is determined by the device brand, API address, policy template, and rollback policy ID.
[0035] As an example, the A_topo in the fact unit "IT Business WEB Server ReachableTo Core Network AMF" is automatically generated by resolving the subnet to which the source and destination IPs belong, the FIB next hop of the border router, the source / destination security domain of the firewall, the ACL allow rules, and the micro-segmentation policy status. The A_topo in the fact unit "Token_X CanAccess OSS Object Storage" is similar. permIt is calculated jointly by the IAM policy, token scope, token expiration time, and object bucket policy. The A in the fact unit "AF Invokes NEF_N33_Service" sba Generated from NEF service exposure logs, NRF registration items, NFStatusSubscribe subscription records, and N33 interface call logs, A plane Used to distinguish the user plane business flow, control plane service discovery, or state subscription signaling corresponding to the call.
[0036] Step 102: During the process of the autoregressive decoder generating candidate attack paths sequentially based on the time sequence graph, the current path end node and the candidate next-hop node are obtained. A dynamic physical attention mask is constructed based on the physical reachability and permission executability of the current path end node and the candidate next-hop node in the time sequence graph, and the dynamic physical attention mask is injected into the attention calculation of the autoregressive decoder.
[0037] In this embodiment, upon receiving the initial IOC or initial alarm, the system extracts a context subgraph related to the current event from the time-series graph. The autoregressive decoder is used as a candidate path generator and counterfactual inferrer. Its input tensor represents the current fact unit, current topology domain, current permission state, current attack stage, target network element SBA microservice characteristics, and candidate action. Its output tensor represents the candidate next-hop relationship, network element node, protocol interface, signaling type, and action. The autoregressive decoder can employ GRU, Transformer Decoder, or other sequence models.
[0038] In one embodiment, before calculating the candidate next-hop probability, the system constructs multiple constraint matrices based on entity type legitimacy, topological reachability, attack phase transition, permission executability, time validity, asset exposure, and intelligence credibility. The topological reachability matrix and the permission executability matrix are converted into dynamic physical attention masks and injected into the attention score tensor of the autoregressive decoder.
[0039] In one embodiment, for the k-th step candidate next hop c=(r, e, proto, port), the system calculates the following matrix.
[0040] In this embodiment, the entity type validity matrix M type (k,c): Determines whether the candidate relation and candidate entity type are valid. For example, the tail entity of the Exploits relation must be a CVE-type vulnerability, and the tail entity of the CanAccess relation must be an asset, data resource, or cloud resource. If invalid, then M... type (k,c)=0.
[0041] In this embodiment, the topological reachability matrix M topo (k,c): Calculated based on real network device configuration and policy information. Read the source IP, destination IP, protocol, and port of the current path's end node, and perform the following checks: A next hop from the source subnet to the destination subnet exists in the border router or core switch FIB; the firewall policy from the source security domain to the destination security domain allows the corresponding protocol and port; the relevant ACL does not explicitly deny; the micro-segmentation or zero-trust policy does not block; if a jump server or proxy channel is needed, the channel is within a valid session window. When all the above conditions are met, M... topo (k,c)=1; if any condition is not met, M topo (k,c)=0.
[0042] In this embodiment, the attack phase transition matrix M stage (k,c): Construct a Directed Acyclic Graph (DAG) for attack phases based on the MITRE ATT&CK framework. Phase nodes include at least the following: Initial Access, Execution, Persistence, Privilege Escalation, Defense Evasion, Credential Access, Discovery, Lateral Movement, Command & Control, Collection, Data Theft, and Impact. The system predefines legitimate directed edges; for example, Initial Access allows transitions to Execution and Persistence; Credential Access allows transitions to Lateral Movement, Discovery, and Command & Control; Collection allows transitions to Data Theft and Impact. If the candidate next hop corresponds to a phase that is a legitimate successor node in the DAG, then M... stage (k,c)=1; otherwise, it is 0.
[0043] In this embodiment, the permission-executable matrix M perm (k,c): Obtained by comparing the accumulated permission status of the current path with the permissions required for the candidate actions. Accessing the database requires database account or host permissions; accessing OSS object storage requires cloud token or IAM authorization; controlling AMF / SMF / UDM network elements requires network element management permissions, operation and maintenance jump board authorization, or exploitable service vulnerabilities. If the current path has not obtained the corresponding permissions and there is no exploitable authorization chain, then M... perm (k,c)=0.
[0044] In one embodiment, the system will and Transform into a dynamic physical attention mask with the same dimension as the candidate node attention score. The conversion rules are as follows:
[0045] When a candidate node is physically reachable and has executable permissions, the mask value is 0, and the original attention score remains unchanged. When a candidate node is physically unreachable or has non-executable permissions, the mask value is negative infinity, making the probability of that node 0 after attention normalization. This mask is dynamically updated based on changes in the current path's end node, the current account / Token state, real-time firewall policies, ACLs, and routing tables.
[0046] In one embodiment, the time validity matrix Used to quantify the time-limited effectiveness of vulnerabilities, Inversion of Controls (IOCs), Time-to-Purpose Transaction (TTPs), or policies. The system employs a half-life decay method.
[0047] in, , For the current predicted time, This includes the intelligence release time, the most recent exploit time, the most recent IOC hit time, or the policy take effect time. The half-life is set for different evidence types. Example values are: IOC half-life 7 days, active CVE half-life 30 days, TTP phase intelligence half-life 90 days, and firewall policy status half-life based on the policy version's expiration date. Therefore, Limited to The weights are consecutive. If intelligence is marked as invalid or the policy has been revoked, the weights are set to 0.
[0048] In one embodiment, the asset exposure matrix M asset (k,c) is calculated based on CMDB asset level, exposed ports, open services, external connection channels, and business importance. Intelligence confidence matrix M conf (k,c) is calculated from the intelligence source level, the number of hits from multiple sources, the number of hits from local alarms, and the historical false alarm rate. Both are used as soft weights in the overall ranking, or as strong constraints to block when they are below a preset threshold.
[0049] S103, when the preset tensor splitting trigger condition is met, in the current attention calculation step of the autoregressive decoder, the key tensor corresponding to the target network element with the control plane and user plane decoupling architecture in the candidate next-hop node in the time sequence graph is separated into control plane key tensor and user plane key tensor, and an asymmetric shadow mask is injected to perform counterfactual inference, so as to simulate the state in which the user plane micro-isolation blocks the user plane service flow while the control plane signaling survives.
[0050] In one embodiment, the tensor splitting trigger condition simultaneously satisfies the following four conditions: First, the current path end entity or candidate target entity is a target network element with a control plane and user plane decoupled architecture, such as 5G SBA network elements such as AF, NEF, SMF, AMF, NRF, UDM, etc. Second, the hidden state vector of the previous prediction step of the autoregressive decoder is extracted and input into a pre-trained classification probe. The stage category probability distribution output online by the probe shows that the predicted probability of the current temporal context belonging to the lateral movement or command and control attack stage is greater than the set engineering confidence threshold. The classification probe is implemented by bypassing a lightweight multilayer perceptron (MLP) to the hidden state output layer of the autoregressive decoder. During the model training phase, the classification cross-entropy loss calculated by the probe for the real attack stage label is combined with the generation loss of the next-hop graph node predicted by the backbone network to construct a weighted joint loss function and perform end-to-end backpropagation. During the actual inference phase, the probe, as a feedforward component, directly receives the hidden state vector of the previous decoding step, and outputs the probability distribution of the current prediction step belonging to various attack stages online through weight matrix mapping and normalized activation. Third, the initial candidate action calculated by the system for the candidate target network element is UP surface micro-isolation; Fourth, the target network element has distinguishable control plane signaling and user plane service flows within the current time slot, which is determined by SBA microservice characteristics.
[0051] In this embodiment, if the above conditions are met simultaneously, the system does not change the static topology in the time series graph, but instead performs the current attention calculation step in the decoder. Internally, the system maintains the static topology of the time-series graph unchanged, without adding CP or UP nodes during the graph construction phase. Instead, it internally determines the SBA microservice characteristics of the target network element based on the current time slot within the decoder. Generate control surface projection matrix and user plane projection matrix and the original key tensor of the target network element Split into:
[0052]
[0053] in, It should include at least the service name, service instance ID, S-NSSAI, PLMN, SBI interface type, NRF discovery record, NFStatusSubscribe subscription status, UDM authentication status, NEF N33 interface call direction, and time window from the NFProfile. Used to extract control plane signaling features such as NRF discovery, NFStatusSubscribe status subscription, UDM authentication, and N2 / Nnrf / Nudm; Used to extract traffic characteristics applicable to N33 business data streams, user plane access sessions, business API calls, and UP plane micro-segmentation.
[0054] In one embodiment, the tensor projection matrix is adjusted by introducing an orthogonal regularization constraint term and a supervised contrastive learning loss into the total loss function. and Joint optimization is performed to ensure that highly entangled bond tensors achieve physical-level orthogonal decoupling within the latent feature space. Specifically, an orthogonal penalty term is added to the original path prediction loss of the system. :
[0055] in, It is the Frobenius norm. This term enforces that the control surface feature space and the user surface feature space remain strictly mathematically orthogonal (i.e., the inner product approaches 0), avoiding cross-over of feature representations.
[0056] Simultaneously, sample pairs containing deterministic control plane signaling and user plane service flows are constructed, and the contrastive learning loss is calculated. This shortens the cosine distance between features on the same plane and widens the distance between features across planes. Under the above joint constraints, after the model training converges, the decoupled user-plane key tensor... Apply When using a mask for blocking, it can be mathematically guaranteed that the penalty term will not penetrate or erroneously alter the control surface key tensor. The probability distribution.
[0057] In one embodiment, when the initial candidate action is "UP facet micro-isolation", the system generates an asymmetric shadow mask. This mask only sets the penalty term corresponding to the user facet-key tensor to negative infinity, while keeping the mask corresponding to the control facet-key tensor at zero.
[0058]
[0059] The system injects asymmetric shadow masks into the attention normalization computation:
[0060] in, This represents the query tensor for the current path status. and These represent the value tensors corresponding to the control plane and the value plane, respectively. This indicates a splicing operation. Because... In virtual mode, the UP surface service flow is forcibly interrupted; due to In this counterfactual state, compliance control plane signaling such as NRF discovery, NFStatusSubscribe, and UDM authentication still maintain computable probabilities. This counterfactual state simulates the extreme scenario in a 5G network where "service flows are cut off by defensive actions, but control signaling must survive according to specifications."
[0061] S104 After performing counterfactual reasoning, check whether the probability of the control plane key tensor being transferred to a non-whitelisted control plane element exceeds a preset security threshold. If it does, discard the initial candidate action and upgrade the initial candidate action.
[0062] In this embodiment, after the asymmetric shadow masking, the system uses a microservice feature projection matrix to force the candidate transition probabilities of the control facet key tensor to be limited to a preset 5G compliant signaling space. This space should include at least whitelisted signaling types such as NRF service discovery, NFStatusSubscribe status subscription, UDM authentication, AMF registration management, and SMF session management, and exclude unauthorized CP network elements or unauthorized SBI services.
[0063] System computational control surface counterfactual mutation risk:
[0064] like Exceeding the preset safety threshold If the attacker is deemed to have used retained compliance control signaling as a springboard to carry out covert lateral movement or topology theft, the system will automatically discard the original "UP surface micro-isolation" action and upgrade the output action to full node blocking, network element-level isolation, N2-level slice isolation via AMF interface calls, or other more powerful control actions.
[0065] Therefore, path generation is no longer a one-way "prediction -> output" process, but rather incorporates a closed loop of "predictive action -> counterfactual virtual execution -> control plane residual risk detection -> action escalation". This closed loop can detect control plane jump attacks that may be induced by ordinary micro-segmentation strategies, preventing defensive actions from only cutting off business flows while retaining compliant signaling tunnels that can be abused.
[0066] S105: Perform multi-target comprehensive sorting on the candidate attack paths generated by the autoregressive decoder to determine the predicted path, and generate and execute the device control strategy based on the predicted path.
[0067] In one embodiment, the system selects the most risky and priority-requiring path from multiple candidate paths. At each step, several candidate paths are retained for ranking. Candidate paths The overall score can be expressed as:
[0068] in, This represents the probability of path generation or the path consistency score. Indicates asset hazard. Indicates time validity. Indicating the credibility of intelligence, Represents topological reachability, Indicates the urgency of defense. This represents the risk of residual signaling mutations in the control surface obtained from the counterfactual deduction of asymmetric shadow masks. to It is not simply "configurable weights," but is obtained through at least one of the following three methods: (1) Map the CVSS baseline score, asset level, and exposure surface of the candidate path involving CVEs to weights. An example rule is: when the CVSS baseline score is greater than or equal to 9.0 and the target asset is a 5G core network AMF / SMF / UDM, and Increase them to above 0.25; when CVSS is less than 4.0 and the target asset is a low-value intranet test asset, No more than 0.10. All weights are normalized to a sum of 1.
[0069] (2) Construct a hierarchical analysis judgment matrix based on the conversion rate of "predicted paths were eventually confirmed by real logs" in historical alarms. The relative importance of asset hazards, topology reachability, permission execution, time validity, intelligence credibility, and control plane residual signaling mutation risk is obtained from historical samples, red team exercises, and 5G core network simulation results, and then normalized after consistency verification. to .
[0070] (3) The learned weight tensors are solidified into numerical tensors during the training phase. During the training phase, weight tensors are learned through backpropagation using historical attack paths, red team drill paths, and verified security events as samples. Before going live, the learned weight tensors are exported as versioned configuration files, and the training data version, time, and verification summary are recorded. This fixed version of the weights is used during the runtime phase for easy auditing and reproduction.
[0071] In one embodiment, the system selects the attack path with the highest overall score from the candidate path set as the predicted path. The predicted path is then parsed, including the end-node IP, protocol, port, service domain, asset ID, account ID, token ID, network element identifier, SBA service name, and interface type. When a counterfactual analysis triggers an escalation of the handling action, the initial UP-plane micro-segmentation action is automatically replaced with a full-node block, network element-level isolation, or N2-level slice isolation action executed via the AMF / NSSF interface. Based on the device brand and action type, an action template is invoked to generate a REST API request or SOAR orchestration task and distribute it to the physical firewall, EDR, micro-segmentation platform, IAM, or SOAR platform.
[0072] In one embodiment, the receiving device executes feedback and writes the feedback results back to the time sequence graph. The written-back content includes the issued action, policy ID, execution result, effective time, rollback identifier, isolated assets, rotated tokens, blocked IPs, isolated network elements, affected slices, and subsequent log hit status. If subsequent security logs prove that the predicted path was hit, the confidence of that path is increased, and the validity period of the relevant action policy can be extended. If subsequent logs conflict with the predicted path, candidate path reordering is triggered, and new action actions or the original policy can be generated or rolled back.
[0073] Example 2 Figure 2 To illustrate the system architecture diagram of the time-series graph-based autoregressive APT dynamic path prediction system disclosed herein, and to be applied to the methods described above, the system architecture of this disclosure includes a time-series graph construction module 10, a dynamic physical mask autoregressive path prediction module 20, a tensor projection splitting module 30, an asymmetric shadow mask counterfactual deduction module 40, and a comprehensive ranking and policy execution module 50. References will follow below. Figure 2 This paper provides a detailed description of a time-series graph-based autoregressive APT dynamic path prediction system.
[0074] The time series graph construction module 10 is configured to construct a time series graph containing multi-dimensional time series fact units; the multi-dimensional time series fact units are indicated by attribute vectors to their bound physical reachability and permission executability; The dynamic physical mask autoregressive path prediction module 20 is configured to, during the process of the autoregressive decoder generating candidate attack paths sequentially based on the time series graph, obtain the current path end node and the candidate next hop node, construct a dynamic physical attention mask based on the physical reachability and permission executability bound to the current path end node and the candidate next hop node in the time series graph, and inject the dynamic physical attention mask into the attention calculation of the autoregressive decoder. Tensor projection splitting module 30 is configured to, when a preset tensor splitting trigger condition is met, in the current attention calculation step of the autoregressive decoder, separate the key tensor corresponding to the target network element with the control plane and user plane decoupled architecture in the candidate next hop node in the time series graph into a control plane key tensor and a user plane key tensor. The asymmetric shadow mask counterfactual deduction module 40 is configured to inject an asymmetric shadow mask to perform counterfactual deduction to simulate the state where the user plane is blocked but the control plane signaling survives. After performing the counterfactual deduction, it detects whether the probability of the control plane key tensor transferring to the non-whitelisted control plane network element exceeds a preset security threshold, and triggers the upgrade of the initial candidate handling action when it exceeds the threshold. The comprehensive ranking and strategy execution module 50 is configured to perform multi-target comprehensive ranking on the candidate attack paths generated by the autoregressive decoder to determine the predicted path, and generate and execute a device control strategy based on the predicted path.
[0075] In one embodiment, the tensor projection splitting module 30 is further configured to: keep the topology of the target network element in the time series graph unchanged, generate a control plane projection matrix and a user plane projection matrix according to the microservice characteristics of the target network element in the current time slot; and use the control plane projection matrix and the user plane projection matrix to separate the original key tensor corresponding to the target network element in the time series graph into the control plane key tensor and the user plane key tensor.
[0076] In one embodiment, the asymmetric shadow mask counterfactual inference module 40 is further configured to: generate a first mask and a second mask, wherein the first mask applies only to the user plane key tensor and is set to negative infinity, and the second mask applies to the control plane key tensor and is set to zero; inject attention-normalized calculations into the first mask and the second mask to obtain a probability distribution for counterfactual inference; under the probability distribution of the counterfactual inference, limit the control plane candidate transition probability to a preset compliant signaling space, and calculate the transition probability of the control plane key tensor to the non-whitelisted control plane network element; when the transition probability exceeds the preset security threshold, trigger the upgrade of the initial user plane micro-isolation action to full node blocking, network element-level isolation, or slice isolation.
[0077] This disclosure provides a method and system for dynamic APT path prediction based on time-series graph autoregressive architecture. It constructs a time-series graph by integrating multi-source security logs, network topology, device policies, permission status, and core network signaling status. An autoregressive decoder then predicts the attacker's possible next path. When the system is about to execute user plane micro-segmentation, it does not immediately issue the policy. Instead, the decoder dynamically splits the target network element into two tensor perspectives: control plane and user plane. An asymmetric shadow mask simulates the counterfactual state where "the user plane is blocked, but control plane signaling remains active." If it detects that the attacker might continue lateral movement using residual control plane signaling, the system automatically abandons the original micro-segmentation action and upgrades it to network element-level isolation, full node blocking, or slice isolation, thereby preventing the defense action itself from leaving new, hidden attack channels.
[0078] In a third aspect, embodiments of this disclosure provide an electronic device, including a memory and a processor, wherein the memory stores a program that runs on the processor, and the processor executes the steps of a time-series graph autoregressive APT dynamic path prediction method as described in the second aspect. In a fourth aspect, embodiments of this disclosure provide a computer-readable storage medium having computer instructions stored thereon, which, when executed, perform the steps of a time-series graph autoregressive APT dynamic path prediction method as described in the second aspect.
Claims
1. A dynamic path prediction method based on time-series autoregressive APT, characterized in that, Includes the following steps: Construct a time series graph containing multi-dimensional temporal fact units; The multidimensional temporal fact unit is indicated by an attribute vector for its bound physical reachability and permission executability; During the process of the autoregressive decoder generating candidate attack paths sequentially based on the time series graph, the current path end node and the candidate next hop node are obtained. A dynamic physical attention mask is constructed based on the physical reachability and permission executability of the current path end node and the candidate next hop node in the time series graph, and the dynamic physical attention mask is injected into the attention calculation of the autoregressive decoder. When the preset tensor splitting trigger condition is met, in the current attention calculation step of the autoregressive decoder, the key tensor corresponding to the target network element with the control plane and user plane decoupling architecture in the candidate next-hop node in the time sequence graph is separated into control plane key tensor and user plane key tensor, and an asymmetric shadow mask is injected to perform counterfactual inference, so as to simulate the state in which user plane micro-isolation blocks user plane service flow while control plane signaling survives. After performing the counterfactual deduction, it is detected whether the probability of the control plane key tensor being transferred to a non-whitelisted control plane element exceeds a preset security threshold. If it does, the initial candidate action is discarded and the initial candidate action is upgraded. The candidate attack paths generated by the autoregressive decoder are sorted by multiple targets to determine the predicted path, and a device control strategy is generated and executed based on the predicted path.
2. The method for dynamic path prediction based on time-series autoregressive APT as described in claim 1, characterized in that, The step of constructing a time series graph containing multidimensional time series fact units further includes: Collect and preprocess multi-source security data, and abstract the preprocessed event data into basic temporal quadruples, which are used to describe the relationship between entities. Attribute vectors are extracted from real network device states and policies, and the attribute vectors are superimposed on the basic time-series quadruple to form the multidimensional time-series fact unit. The attribute vector includes topology reachability, route reachability path, security policy status, permission status, attack phase, control plane role and user plane role, candidate action, time validity, and intelligence credibility.
3. The method for predicting dynamic paths based on time-series autoregressive APT as described in claim 1, characterized in that, The step of constructing the dynamic physical attention mask further includes: Obtain the physical reachability and permission executability of the current path end node and the candidate next-hop node from the time series graph, and construct the topology reachability matrix and permission executability matrix. The topology reachability matrix and the permission executable matrix are converted into dynamic physical attention masks of the same dimension as the candidate node attention scores; When a candidate node satisfies both physical reachability and executable permissions, the corresponding mask value is zero; when a candidate node does not satisfy physical reachability or is not executable permissions, the corresponding mask value is set to negative infinity, so that the probability of the candidate node is zero after attention normalization.
4. The method for dynamic path prediction based on time-series autoregressive APT as described in claim 1, characterized in that, The step of satisfying the preset tensor splitting trigger condition further includes: The candidate next-hop node is the target network element with the control plane and user plane decoupling architecture; The attack phase identified by the hidden state vector of the previous prediction step of the autoregressive decoder is either lateral movement or command control. The initial candidate action calculated for the target network element is the user plane micro-isolation; The target network element has distinguishable control plane signaling and user plane service flows within the current time slot of the time sequence diagram.
5. The method for predicting dynamic paths based on time-series autoregressive APT as described in claim 4, characterized in that, The step of separating the key tensor corresponding to the target network element with a control plane and user plane decoupled architecture in the candidate next-hop node into a control plane key tensor and a user plane key tensor in the time series graph, and injecting an asymmetric shadow mask to perform counterfactual inference, further includes: Keeping the topology of the target network element in the time series map unchanged, a control plane projection matrix and a user plane projection matrix are generated based on the microservice characteristics of the target network element in the current time slot. The original key tensor corresponding to the target network element in the time series map is separated into the control plane key tensor and the user plane key tensor using the control plane projection matrix and the user plane projection matrix; Generate a first mask and a second mask. The first mask applies only to the user face key tensor and is set to negative infinity. The second mask applies to the control face key tensor and is set to zero. The probability distribution of the counterfactual inference is obtained by injecting attention normalization calculations into the first mask and the second mask.
6. The method for predicting dynamic paths based on time-series autoregressive APT as described in claim 5, characterized in that, The step of detecting whether the transfer probability of the control plane key tensor to a non-whitelisted control plane element exceeds a preset security threshold further includes: Under the probability distribution of the counterfactual inference, the control plane candidate transition probability is restricted to a preset compliant signaling space, and the transition probability of the control plane key tensor to the non-whitelisted control plane network element is calculated. If the transfer probability exceeds the preset security threshold, it is determined that there is a risk of lateral movement using retained compliance control signaling.
7. The method for predicting dynamic paths based on time-series autoregressive APT as described in claim 1, characterized in that, The step of generating and executing a device control strategy based on the predicted path further includes: The terminal node information in the predicted path is parsed to generate equipment control commands corresponding to the upgraded handling actions, and then sent to security devices and / or core network elements. The execution feedback information is written back to the time series graph to form a closed loop.
8. A dynamic path prediction system based on time-series graph autoregressive APT, applying the dynamic path prediction method based on time-series graph autoregressive APT as described in claims 1-7, characterized in that, include: The time series graph construction module is configured to construct a time series graph containing multi-dimensional time series fact units; The multidimensional temporal fact unit is indicated by an attribute vector for its bound physical reachability and permission executability; The dynamic physical mask autoregressive path prediction module is configured to, during the process of the autoregressive decoder generating candidate attack paths sequentially based on the time series graph, obtain the current path end node and the candidate next hop node, construct a dynamic physical attention mask based on the physical reachability and permission executability bound to the current path end node and the candidate next hop node in the time series graph, and inject the dynamic physical attention mask into the attention calculation of the autoregressive decoder. The tensor projection splitting module is configured to, when a preset tensor splitting trigger condition is met, in the current attention calculation step of the autoregressive decoder, separate the key tensor corresponding to the target network element with the control plane and user plane decoupled architecture in the candidate next hop node in the time series graph into a control plane key tensor and a user plane key tensor. The asymmetric shadow mask counterfactual deduction module is configured to inject asymmetric shadow masks to perform counterfactual deduction to simulate the state where the user plane is blocked but the control plane signaling survives. After performing the counterfactual deduction, it detects whether the probability of the control plane key tensor transferring to the non-whitelisted control plane network element exceeds a preset security threshold, and triggers the upgrade of the initial candidate handling action when it exceeds the threshold. The comprehensive ranking and strategy execution module is configured to perform multi-target comprehensive ranking on the candidate attack paths generated by the autoregressive decoder to determine the predicted path, and generate and execute device control strategies based on the predicted path.
9. The time-series graph-based autoregressive APT dynamic path prediction system according to claim 8, characterized in that, The tensor projection splitting module is further configured to: Keeping the topology of the target network element in the time series map unchanged, a control plane projection matrix and a user plane projection matrix are generated based on the microservice characteristics of the target network element in the current time slot; The original key tensor corresponding to the target network element in the time series spectrum is separated into the control plane key tensor and the user plane key tensor using the control plane projection matrix and the user plane projection matrix.
10. The time-series graph-based autoregressive APT dynamic path prediction system according to claim 8, characterized in that, The asymmetric shadow mask counterfactual deduction module is further configured as follows: Generate a first mask and a second mask. The first mask applies only to the user face key tensor and is set to negative infinity. The second mask applies to the control face key tensor and is set to zero. By injecting attention normalization calculations into the first mask and the second mask, the probability distribution of counterfactual inference is obtained; Under the probability distribution of the counterfactual inference, the control plane candidate transition probability is restricted to a preset compliant signaling space, and the transition probability of the control plane key tensor to the non-whitelisted control plane network element is calculated. When the transfer probability exceeds the preset security threshold, the initial user plane micro-isolation action is upgraded to full node blocking, network element-level isolation, or slice isolation.
