A power network request detection and tracing method, system and device based on multi-base model driven agent cooperation and a storage medium
By using a multi-base model-driven intelligent agent collaborative framework, the problems of high false alarm rate and insufficient traceability of traditional power network request detection are solved, realizing efficient and accurate power network request detection and traceability, and improving the efficiency of safe operation.
Patent Information
- Application Number
- CN202610932371.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-26
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional power grid request detection methods suffer from high false alarm rates and significant resource waste when facing complex attacks, and their alarm tracing capabilities are insufficient, making it difficult to quickly locate the source of threats.
A multi-base model-driven intelligent agent collaborative framework is adopted, which includes detection agent, judgment agent and source tracing agent. Lightweight, long context and strong inference models are used to process power network requests respectively to realize anomaly screening, in-depth analysis and source tracing.
It significantly reduces false alarm rate, improves detection accuracy and resource utilization, shortens response time, and enhances security operation efficiency, enabling effective detection of complex attacks and rapid attribution of attackers.
Smart Images

Figure CN123184871A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network security technology, and in particular to a method, system, device, and storage medium for power network request detection and tracing based on a multi-pedestal model-driven intelligent agent collaboration. Background Technology
[0002] Systemic risks will persist for a long time, and network requests often become the primary means for attackers to breach network boundaries, deliver malicious payloads, or establish covert communications. Traditional power grid request detection methods mainly rely on rule matching and blacklist / whitelist databases, which have significant limitations when facing increasingly complex attack methods. For example, they cannot detect variants of unknown attacks, resulting in a high false positive rate; rule and blacklist / whitelist databases require frequent manual updates and maintenance; they cannot effectively balance detection speed and false positive rate; and they lack sufficient understanding of complex attacks.
[0003] Currently, the application of large language models in the field of security has received increasing attention from academia. However, the mainstream approach of directly using a single large model to handle security tasks has various shortcomings, such as: difficulty in real-time detection; overcapacity when performing simple tasks, resulting in a waste of computing resources; and the inability of a single model to simultaneously handle capabilities such as fast response, long context understanding, and deep reasoning.
[0004] Furthermore, traditional security systems are weak in terms of alarm attribution, mostly providing only simple alarm information and lacking in-depth analysis of attacker identity and methods. This makes it difficult for security operations personnel to quickly locate the source of threats and take targeted measures. Summary of the Invention
[0005] Purpose of the invention: The present invention aims to provide a power network request detection and tracing method that can integrate the advantages of multiple models to achieve efficient detection and tracing; another purpose of the present invention is to provide a power network request detection and tracing system, device and storage medium based on multi-base model-driven intelligent agent collaboration.
[0006] Technical solution: The power network request detection and tracing method based on multi-pedestal model-driven intelligent agent collaboration described in this invention includes the following steps:
[0007] (1) Construct a multi-agent collaborative framework and connect multiple heterogeneous base models to drive agents with different roles on demand. The agents include detection agents, judgment agents and source tracing agents.
[0008] (2) Extract request features from the power network requests to be detected; input the request features into the detection agent, which is driven by a lightweight base model, and uses a rule matching engine and a machine learning classifier to perform anomaly screening, and outputs the screening results and their confidence scores.
[0009] (3) When the confidence score of the initial screening result exceeds the preset threshold, the judgment agent is activated. The judgment agent is driven by the long context base model, performs load decoding and historical baseline query on the power network request, and generates a threat qualitative report.
[0010] (4) When the threat characterization report confirms a real threat, the source tracing agent is activated. The source tracing agent is driven by a strong inference base model, calls the threat intelligence database and attacker profiling tools, and constructs a structured source tracing file.
[0011] (5) Output the final detection results and traceability files, and execute the corresponding security response strategy.
[0012] Furthermore, in step (2), the lightweight base model is a Transformer architecture model with fewer than 10B parameters; the rule matching engine has a built-in OWASP Top 10 attack feature library; the machine learning classifier uses an ensemble learning algorithm, including a combination model of random forest and gradient boosting tree.
[0013] Furthermore, in step (3), the long context base model supports a context window length of no less than 128K tokens, and the payload decoding supports multiple encoding formats.
[0014] Furthermore, the encoding formats include Base64, URL encoding, Unicode obfuscation, and multi-level nested encoding; historical baseline queries are based on sliding time window statistics.
[0015] Furthermore, in step (4), the strong reasoning base model has chain reasoning capability, the threat intelligence database is connected to the threat intelligence source, and the attacker profiling tool constructs an attacker association graph based on graph neural network.
[0016] Furthermore, in step (4), the structured traceability file includes attacker fingerprints, attack techniques (TTPs), related historical attack events, inferences of potential attack intentions, and risk level assessments.
[0017] Furthermore, the multi-agent collaborative framework adopts an event-driven architecture, with asynchronous communication between agents, supporting scaling up and down and failover.
[0018] The power network request detection and tracing system based on a multi-pedestal model-driven intelligent agent collaboration, as described in this invention, includes...
[0019] The framework building module is used to build a multi-agent collaborative framework and connect to multiple heterogeneous base models to drive agents with different roles on demand.
[0020] The request preprocessing module is used to receive and parse power network requests and extract features;
[0021] The detection agent module, driven by a lightweight base model, is equipped with a rule matching engine and a machine learning classifier to perform initial anomaly screening.
[0022] The intelligent agent module is driven by a long context base model and is equipped with a payload decoder and a baseline query engine for performing threat characterization.
[0023] The source tracing intelligent agent module is driven by a strong inference base model and is equipped with an intelligence query interface and a profile writing tool to build structured source tracing files.
[0024] The collaborative scheduling module is used to manage the task flow and state synchronization among multiple agents;
[0025] The response execution module is used to execute security response strategies based on the detection results.
[0026] The computer device of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above method.
[0027] The computer-readable storage medium of the present invention stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.
[0028] Beneficial Effects: Compared with existing technologies, the significant advantages of this invention are: 1. Based on a multi-base model-driven hierarchical architecture, this invention can adjust appropriate model resources according to different task complexities, significantly enhancing detection efficiency and resource utilization. For example, the lightweight model handles more than 80% of simple requests, greatly reducing the overall inference cost; 2. Through a multi-agent collaborative pipeline design, this invention effectively reduces the false alarm rate through a three-level progressive mechanism of detection, analysis, and tracing, while simultaneously achieving in-depth profiling and tracing of attackers; 3. Based on the complementary advantages of heterogeneous base models, this invention effectively balances detection speed and accuracy, improving the detection accuracy of complex obfuscated attacks to over 85%, and maintaining good stability even in high-concurrency environments; 4. Through structured tracing archive output, this invention allows security operations personnel to quickly obtain attack lines, reducing the average response time by more than half and significantly improving security operation efficiency. Attached Figure Description
[0029] Figure 1 This is a flowchart of the present invention;
[0030] Figure 2 This is a timing diagram for multi-agent cooperation. Detailed Implementation
[0031] The power network request detection and tracing method based on multi-pedestal model-driven intelligent agent collaboration described in this invention includes the following steps:
[0032] S1. Construct a multi-agent collaborative framework, integrating multiple heterogeneous base models to drive agents with different roles on demand. These agents include detection agents, analysis agents, and source-tracing agents. The multi-agent collaborative framework adopts an event-driven architecture, with asynchronous communication between agents, supporting scaling and failover.
[0033] S2. Receive the power network request to be detected and extract the request features, including the request header field, request body content, request frequency and source IP information.
[0034] S3. Input the features into the detection agent, driven by the lightweight base model, and call the rule matching engine and machine learning classifier to perform initial anomaly screening, outputting the initial screening results and confidence scores. The lightweight base model is a model with fewer than 10 bytes of parameters. The rule matching engine has a built-in OWASP Top 10 attack feature library, and the machine learning-based binary classifier uses an ensemble learning algorithm (based on random forest and gradient boosting tree).
[0035] S4. When the initial screening result is suspicious and the confidence score exceeds a preset threshold, the judgment agent is activated. Driven by the long context base model, the agent performs load decoding and historical baseline query on the power network request, generating a threat assessment report. The long context base model supports a context window length of no less than 100K tokens, and the load decoding supports multiple encoding formats including Base64, URL encoding, Unicode obfuscation, and multi-level nested encoding.
[0036] S5. When the threat qualitative report confirms a real threat, the attribution agent is activated. Driven by a strong inference foundation model, it calls upon the threat intelligence database and attacker profiling tools to construct a structured attribution profile. The strong inference foundation model possesses chain-like reasoning capabilities and supports a thought chain reasoning mode; the threat intelligence database connects to threat intelligence sources; the attacker profiling tool constructs an attacker association graph based on graph neural networks, with graph nodes including entities such as IP addresses, domain names, attack methods, and timestamps. The structured attribution profile includes attacker fingerprints, attack method TTPs, associated historical attack events, inferences of potential attack intentions, and risk level assessments.
[0037] S6. Output the final detection results and traceability files, and execute a certain response strategy.
[0038] The power network request detection and tracing system based on a multi-pedestal model-driven intelligent agent collaboration, as described in this invention, includes...
[0039] The framework building module is used to build a multi-agent collaborative framework and connect to multiple heterogeneous base models to drive agents with different roles on demand.
[0040] The request preprocessing module is used to receive and parse power network requests and extract features;
[0041] The detection agent module, driven by a lightweight base model, is equipped with a rule matching engine and a machine learning classifier to perform initial anomaly screening.
[0042] The intelligent agent module is driven by a long context base model and is equipped with a payload decoder and a baseline query engine for performing threat characterization.
[0043] The source tracing intelligent agent module is driven by a strong inference base model and is equipped with an intelligence query interface and a profile writing tool to build structured source tracing files.
[0044] The collaborative scheduling module is used to manage the task flow and state synchronization among multiple agents;
[0045] The response execution module is used to execute security response strategies based on the detection results.
[0046] The computer device of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above method.
[0047] The computer-readable storage medium of the present invention stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.
[0048] Example 1
[0049] This embodiment provides a power network request detection method based on a multi-pedestal model-driven intelligent agent collaboration, which is applied to the HTTP API security protection of power dispatching systems.
[0050] The power dispatching system interacts with substations and power plants via HTTP RESTful APIs, including issuing dispatching instructions and reporting status data. This embodiment focuses on detecting and tracing the source of abnormal API requests received by the dispatching system. The overall steps are as follows:
[0051] 1. Request preprocessing
[0052] The system receives a network request to be detected. The request path is ` / api / dispatch / control`, and the request method is POST. The request message is parsed, and the following key features are extracted: Request header fields: User-Agent is a normal browser identifier, Content-Type is application / json, and there are no abnormal headers; Request body content: The payload is in JSON format and contains scheduling instruction parameters, which, upon initial inspection, show abnormal encoding; Request frequency: This source IP has made 12 requests in the past 5 minutes, slightly higher than the normal average (approximately 3 times); Source IP information: The IP address belongs to a substation network segment, has a normal geographical location, and no historical malicious records. These features are used for subsequent machine learning and large model input.
[0053] 2. Initial screening of intelligent agents
[0054] Features are input into the detection agent. The detection agent is driven by a lightweight Transformer base model with 7B parameters. This model has been fine-tuned for the security domain and has basic power network request anomaly detection capabilities, enabling rapid initial screening of requests.
[0055] The intelligent agent call rule matching tool has a built-in attack feature library containing common attack features such as SQL injection, command injection, and parameter tampering. It can match situations such as power network requests containing code and plaintext keys.
[0056] The detection agent invokes a machine learning classifier, which employs an ensemble model of random forest and gradient boosting tree. We train the machine learning classifier using historical normal data, achieving an F1 score of over 90% during pre-training. In specific business scenarios, the classifier scores the current request and outputs a confidence score. The test result is "suspicious" because the confidence level exceeds the preset threshold. The system activates the analytical agent to perform deep analysis. The average inference latency of the detection agent is approximately 3 it / s, which can meet the real-time detection requirements under normal load conditions.
[0057] 3. Analyze and screen intelligent agents
[0058] The analytical agent is driven by a long-context base model supporting 128K tokens of context windows. This model possesses strong capabilities in payload semantic understanding and contextual correlation analysis. The analytical agent invokes a payload decoding tool to perform multi-layer decoding on the request body JSON parameters. The decoding process is as follows: The original parameter value of the request body is: `"value": "eyJ0YXJnZXQiOiAiMTIzIiwgInBhc3N 3ZCI6ICIxMjM0NTYifQ=="`. After Base64 decoding, it becomes: `{"target": "123", "passwd": "123456"}`. The model detects that the "passwd" field value is transmitted in plaintext.
[0059] The analysis agent invoked a historical baseline query tool to check the request patterns of this source IP over the past 24 hours. Baseline data showed that the parameter format of normal requests from this IP is relatively fixed, with an average request frequency of approximately 8 times per hour. The current request frequency is 12 times per hour. The deviation is calculated as follows:
[0060]
[0061] The deviation is slightly higher than the normal fluctuation range (usually) However, it did not reach the significant abnormality threshold ( The intelligent agent analyzes all previous information to determine if the request is abnormal and generates a report. The generated threat assessment report identifies the attack type as "abnormal parameter injection" with a confidence level of 0.72, recommending further source tracing analysis.
[0062] 4. Construction of intelligent agent profile for tracing origins
[0063] The confidence level of the threat qualitative report exceeds the source tracing activation threshold. The source-tracing agent is activated. Driven by a base model with strong reasoning capabilities, this agent supports a thought chain reasoning mode, enabling multi-step logical reasoning and correlation analysis.
[0064] The source tracing agent invokes a threat intelligence query tool to check the historical records of the source IP. For example, if the IP triggered a low-confidence alert 15 days ago, the detection result at that time was "normal," and no further action was taken. Then, it queries external threat intelligence sources, such as checking if the IP appears in the known malicious IP database.
[0065] The tracing agent invoked attacker profiling tools to construct a correlation graph. Graph nodes primarily include: IP address, associated substation number, historical request records, and the current anomalous request event. Graph analysis shows that the IP address has a high correlation with normal communication records of the substation, and this anomalous request is an isolated event with no apparent connection to other attack events.
[0066] The source tracing agent uses thought chain reasoning to analyze possible attack sources. For example, if the request originates from an internal substation IP, the possibility of a direct external attack is ruled out; abnormal loads may be due to parameter format issues, with possible sources including client program errors, human input errors, and malicious probing; combined with historical records (low-confidence alerts from 15 days ago), it infers the possible existence of intermittent abnormal behavior patterns. The source tracing agent outputs a structured source tracing profile: attacker fingerprint, attack method, related historical events, intent inference, and risk level.
[0067] 5. Result Output
[0068] Final detection result: Confidence level 0.62, low risk level. Requests will not be blocked; manual review is recommended.
[0069] This embodiment demonstrates a power network request detection process driven by a multi-base model and agent collaboration: a lightweight model for rapid initial screening, a long-context model for fine-tuning, and a strong inference model for source tracing analysis. The three agents collaborate, with the detection agent handling approximately 90% of legitimate requests, the analysis agent handling approximately 8% of suspicious requests, and the source tracing agent handling approximately 2% of confirmed threat requests, achieving a balance between detection efficiency and accuracy.
[0070] Example 2
[0071] This embodiment provides a power network request detection method based on a multi-base model-driven intelligent agent collaboration, applied to the detection of malicious requests on a power monitoring system's web management platform. The power monitoring system's web platform provides functions such as operation monitoring, parameter querying, and report export. This embodiment detects and traces the source of malicious power network requests received by the web platform.
[0072] 1. Request preprocessing
[0073] The system receives a request from the power network. The request path is ` / web / query`, the request method is GET, and the query parameters include user input. Parsing the request message, the following feature fields are extracted: Request header fields: User-Agent is the identifier of the automation tool (containing the word "curl"), no Cookie, no Referer; Request body content: no request body (GET request), query parameter is `"id=1' OR '1'='1"`; Request frequency: this source IP has made 45 requests in the past 10 minutes, significantly higher than the normal average (approximately 5 times); Source IP information: the IP address is an external address, belonging to a cloud service provider's network segment, with no historical access records. The feature vector is represented as:
[0074]
[0075] 2. Initial screening of intelligent agents
[0076] The feature vector is input into the detection agent. The detection agent is driven by a lightweight Transformer base model with 7B parameters.
[0077] The detection agent invokes the rule matching engine to scan the query parameters. The rule engine detects an SQL injection signature: the query parameters contain the string "'OR '1'='1'", matching the SQL injection attack signature database.
[0078] The detection agent invokes a machine learning classifier, which scores requests based on request frequency and source IP characteristics, and outputs a confidence score. The detection result is "malicious," with a high confidence level. The analytical agent is activated to conduct confirmatory analysis.
[0079] 3. Analyze and screen intelligent agents
[0080] The analytical agent is driven by a long context base model that supports 128K tokens in the context window. The agent calls a payload decoding tool to parse the query parameters. The original parameter value is in URL-encoded format, which, after decoding, yields: `id=1' OR '1'='1'. Based on the semantic understanding capabilities of the long context model, the agent analyzes the semantic meaning of this parameter: it represents a typical SQL injection test payload, attempting to achieve database query injection through logical bypass.
[0081] The analysis agent uses a historical baseline query tool to check the IP's historical access records. For example, if this IP is accessing the platform for the first time and there is no normal access baseline, and the request frequency is 40 times per hour, it is determined that the request belongs to scanning and probing behavior.
[0082] Based on the above information, the intelligent agent generated a report indicating that the attack type was "SQL injection detection," with a confidence level of 0.91. The attack complexity was low, and the attack intent was obvious. The recommended action was to "block the request and report it."
[0083] 4. Construction of intelligent agent profile for tracing origins
[0084] The report confidence level exceeds the threshold The system employs a source tracing agent. This agent is driven by a base model with strong reasoning capabilities and supports a thought chain reasoning mode. The agent invokes attacker profiling tools to construct a relational graph based on a graph neural network. Graph nodes include: the source IP address, associated cloud service provider network segments, scanning activity events recorded by the intelligence source, and the current attack event. Graph analysis shows a correlation between the IP address and recent scanning activities, potentially indicating the probing behavior of automated scanning tools. The source tracing agent outputs a structured source tracing profile, primarily including: attacker fingerprint, attack methods, associated historical events, intent inference, and risk level.
[0085] 5. Result Response
[0086] Final detection result: Based on comprehensive analysis, this power network request is an SQL injection attack. The confidence level is 0.90, indicating a medium risk. It is recommended to block IP access and report the incident.
[0087] This embodiment demonstrates the application of a multi-base model-driven agent collaboration in malicious request detection, mainly including request preprocessing, initial screening of detection agents, fine screening of judgment agents, construction of a profile of the tracing agent, and result response. The three agents work collaboratively to achieve rapid detection and effective tracing of malicious requests.
Claims
1. A method for power network request detection and tracing based on multi-pedestal model-driven agent collaboration, characterized in that, Includes the following steps: (1) Construct a multi-agent collaborative framework and connect multiple heterogeneous base models to drive agents with different roles on demand. The agents include detection agents, judgment agents and source tracing agents. (2) Extract request features from the power network requests to be detected; input the request features into the detection agent, which is driven by a lightweight base model, and uses a rule matching engine and a machine learning classifier to perform anomaly screening, and outputs the screening results and their confidence scores. (3) When the confidence score of the initial screening result exceeds the preset threshold, the judgment agent is activated. The judgment agent is driven by the long context base model, performs load decoding and historical baseline query on the power network request, and generates a threat qualitative report. (4) When the threat characterization report confirms that it is a real threat, the source tracing agent is activated. The source tracing agent is driven by a strong inference base model, calls the threat intelligence database and attacker profiling tools, and constructs a structured source tracing file. (5) Output the final detection results and traceability files, and execute the corresponding security response strategy.
2. The power network request detection and tracing method based on multi-base model-driven intelligent agent collaboration as described in claim 1, characterized in that, In step (2), the lightweight base model is a Transformer architecture model with fewer than 10B parameters; the rule matching engine has a built-in OWASP Top 10 attack feature library; the machine learning classifier uses an ensemble learning algorithm, including a combination model of random forest and gradient boosting tree.
3. The power network request detection and tracing method based on multi-pedestal model-driven intelligent agent collaboration as described in claim 1, characterized in that, In step (3), the long context base model supports a context window length of no less than 128K tokens, and the payload decoding supports multiple encoding formats.
4. The power network request detection and tracing method based on multi-pedestal model-driven intelligent agent collaboration as described in claim 3, characterized in that, Encoding formats include Base64, URL encoding, Unicode obfuscation, and multi-level nested encoding; historical baseline queries are based on sliding time window statistics.
5. The power network request detection and tracing method based on multi-base model-driven intelligent agent collaboration according to claim 1, characterized in that, In step (4), the strong reasoning base model has chain reasoning capability, the threat intelligence database is connected to the threat intelligence source, and the attacker profiling tool constructs an attacker association graph based on graph neural network.
6. The power network request detection and tracing method based on multi-pedestal model-driven intelligent agent collaboration according to claim 1, characterized in that, In step (4), the structured traceability file includes attacker fingerprints, attack techniques (TTPs), related historical attack events, inference of potential attack intentions, and risk level assessment.
7. The power network request detection and tracing method based on multi-base model-driven intelligent agent collaboration according to claim 1, characterized in that, The multi-agent collaborative framework adopts an event-driven architecture, with asynchronous communication between agents, supporting scaling up and down and failover.
8. A power network request detection and tracing system based on a multi-base model-driven intelligent agent collaboration, characterized in that, include The framework building module is used to build a multi-agent collaborative framework and connect to multiple heterogeneous base models to drive agents with different roles on demand. The request preprocessing module is used to receive and parse power network requests and extract features; The detection agent module, driven by a lightweight base model, is equipped with a rule matching engine and a machine learning classifier to perform initial anomaly screening. The intelligent agent module is driven by a long context base model and is equipped with a payload decoder and a baseline query engine for performing threat characterization. The source tracing intelligent agent module is driven by a strong inference base model and is equipped with an intelligence query interface and a profile writing tool to build structured source tracing files. The collaborative scheduling module is used to manage the task flow and state synchronization among multiple agents; The response execution module is used to execute security response strategies based on the detection results.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
