Work

AgentRed: Towards an Agent-Based Approach to Automated Network Attack Traffic Generation

Year: 2026
Type: article
Abstract: Network security tools are indispensable in testing and evaluating the security of computer networks. Existing tools, such as Hping3, however, offer a limited set of options and attack-specific configurations, which restrict their use solely to well-known attack patterns. Although highly parameterizable libraries, such as Scapy, provide more options and scripting capabilities, they require extensive manual setup and often a steep learning curve. The development of powerful AI models, capitalizing on the transformer architecture, has enabled cybersecurity researchers to develop or incorporate these models into existing cyber-defense systems and red-team assessments. Prominent models such as NetGPT, TrafficFormer, and TrafficGPT can be effective, but require extensive computational resources for fine-tuning and a complex setup to adapt to proprietary networking environments and protocols. In this work, we propose AgentRed, a lightweight tool for generating network attack traffic with minimal human configuration and setup. Our tool integrates an AI agent and a large language model with fewer than a billion parameters into the network traffic generation process. Our method creates lightweight Low-Rank Adaptation (LoRA) adapters that can learn specific traffic patterns in a particular network environment. Our agent can autonomously train the LoRA adapters, search online documentation for attack patterns and parameters, and select appropriate adapters to generate network traffic specific to the user’s needs. It utilizes the LoRA adapters to create an intermediate traffic representation that can be parsed and executed by tools such as Scapy to generate malicious traffic in a virtualized test environment. We assess the performance of the proposed approach on six popular network attacks, including flooding attacks, Smurf, Ping-of-Death, and normal ICMP ping traffic. Our results validate the ability of the proposed tool to efficiently generate network packets with 97.9% accuracy using the LoRA adapters, compared to 95.4% accuracy using the base pre-trained Qwen3 0.6B model. When the AI agent performs online searches to enrich the LoRA adapters’ context during traffic generation, our method maintains an accuracy of 96.0% across all tested traffic patterns.
Source: Algorithms
Institution: University of Idaho
Language: English
Open Access status: gold
Estimated APC paid: $1,930
Award: PURPOSE: THE OBJECTIVE OF THE PROJECT IS TO BUILD ON THE STATE-OF-THE-ART LABORATORY FACILITIES DEDICATED TO ADVANCING RESEARCH FOCUSED ON CYBER-INFORMED ENGINEERING (CIE). THE LABORATORY WILL SERVE AS A NEXUS FOR INTERDISCIPLINARY COLLABORATION, INNOVATION, AND KNOWLEDGE DISSEMINATION IN THE FIELDS OF ELECTRICAL ENGINEERING, INDUSTRIAL AUTOMATION, AND SYSTEMS SECURITY ENGINEERING. CIE PROVIDES AN INTERDISCIPLINARY, ENGINEERING-BASED APPROACH TO COUNTERING THE ADVANCED PERSISTENT THREAT BY INCORPORATING PRACTICES FROM SYSTEMS ENGINEERING, CYBERSECURITY, BUSINESS MANAGEMENT, AND MILITARY INTELLIGENCE TO MINIMIZE THE POSSIBILITY OF ADVERSARIES ACHIEVING DEVASTATING IMPACTS AGAINST THE COUNTRY'S MOST CRITICAL SYSTEMS.ACTIVITIES TO BE PERFORMED: EQUIP AN INDUSTRIAL CYBERSECURITY RESEARCH AND TRAINING LABORATORY FOCUSED ON CIE. PROVISION REMOTE ACCESSIBILITY TO THE CYBERSECURITY RESEARCH AND TRAINING LABORATORY. IMPLEMENT HANDS-ON TRAINING USING THE LABORATORY EQUIPMENT. DEMONSTRATE INITIAL RESEARCH ON CIE.EXPECTED OUTCOMES: A FULLY-FUNCTIONAL INDUSTRIAL CYBERSECURITY RESEARCH AND TRAINING LABORATORY. INCREASED STUDENT ACCESS TO RESEARCH AND TRAINING FACILITIES (BOTH ONSITE AND REMOTE). RESEARCH RESULTS FROM CIE ACTIVITIES CONDUCTED WITH THE NEW LABORATORY EQUIPMENT.INTENDED BENEFICIARIES: NIST WILL BENEFIT FROM THE CONDUCT OF CIE RESEARCH MADE POSSIBLE BY THE EQUIPMENT PURCHASED IN THIS GRANT. THE RESEARCH RESULTS WILL INFORM FUTURE NIST SYSTEMS SECURITY ENGINEERING PUBLICATIONS PROVIDING CRITICAL GUIDANCE TO PUBLIC AND PRIVATE SECTOR ORGANIZATIONS. THE APPLICANT WILL BENEFIT BECAUSE THE GRANT WILL PROVIDE FUNDING TO PURCHASE ESSENTIAL EQUIPMENT NECESSARY TO CONDUCT CIE RESEARCH AND PROVIDE AN EFFECTIVE EDUCATION AND TRAINING ENVIRONMENT FOR STUDENTS. THE GENERAL PUBLIC WILL BENEFIT FROM CIE RESEARCH AS IT WILL IDENTIFY WAYS TO MORE EFFECTIVELY PROTECT INDUSTRIAL CONTROL SYSTEMS THAT ARE PART OF THE U.S. CRITICAL INFRASTRUCTURE FROM ADVANCED PERSISTENT THREATS.SUBRECIPIENT ACTIVITIES: THERE ARE NO PLANNED SUBAWARDS.
OpenAlex ID: W7118165462
FWCI:
Cites: 10
Cited by:
Related to: