Mutate to Bypass: Autonomous Endpoint Evasion via Knowledge-Driven Multi-Agent OrchestrationMutate to Bypass: Autonomous Endpoint Evasion via Knowledge-Driven Multi-Agent Orchestration
The authors propose AutoBypass, which uses a knowledge-base-driven multi-agent closed-loop pipeline to automatically generate EDR bypass samples, achieving bypass against all 7 commercial endpoint security products, with a maximum of 90% on Windows Defender.
Gray-box: the attacker has gained initial access and holds standard user privileges, without the source code, internal detection logic, or ML models of the target AV/EDR, but can use public detection rules, technical blogs, and OPSEC guides, and can observe alert feedback to iteratively improve. The attack vector is limited to shellcode loaders, taking arbitrary position-independent shellcode as input and outputting an executable or a DLL for sideloading; exploits or attacks against the AV/EDR agent itself are not considered.
- Publicly available EDR bypass techniques are scattered across threat intelligence, blogs, and PoC repositories, and there is a lack of methods to automatically synthesize them into usable payloads and iteratively improve them based on alert feedback, making automated end-to-end evaluation of EDR resilience difficult to achieve.
- AutoBypass models EDR bypass as a knowledge-driven, feedback-oriented multi-agent closed-loop process: the Detection-Aware KB structures public attack and defense knowledge, the four agents Strategist/Coder/Builder/Debugger generate and compile polymorphic samples, and the Tester executes in real EDR environments, infers detection root causes from system telemetry, and writes back to the KB to drive the next round of strategy evolution.
- Bypass was achieved against all 7 commercial AV/EDR products: under GPT-5.1, Windows Defender reached a maximum of 90.0%, Trend Micro 86.7%, and Elastic the lowest (16.7%–23.3%); 62.9% of samples had ≤5 VirusTotal detections; ablation shows the KB raised the escape rate of 8B open-source models from 27–53% to 43–83%; DLL Sideloading samples (52.3%) outperformed standalone EXE (37.4%).
- The authors acknowledge: it cannot perform fine-grained localization like human experts (e.g., binary slicing to locate feature bytes) and can only regenerate modules as a whole; alert root-cause inference is based on heuristics and does not guarantee absolutely accurate attribution; it covers only shellcode loaders, excluding script vectors such as PowerShell and WMI. The experiments tested only 7 Windows platform products and 3 payloads, with 30 iterations per cell.
- Evaluated models
- Windows Defender AVTrendMicro PC-cillin AVAvira Internet SecurityMcAfee LiveSafeKaspersky EDRBitdefender GravityZone EDRElastic SecurityGPT-5.1DeepSeek-R1DeepSeek-V3Gemini-2.5-FlashLlama-3.1-70BLlama-3.1-8BQwen3-8B
- Benchmarks
- Windows Defender AVTrend Micro PC-cillin AVAvira Internet SecurityMcAfee LiveSafeKaspersky EDRBitdefender GravityZone EDRElastic SecurityVirusTotal
- Metrics
- Success Evasion RateCompilation SuccessAvg. TimeAvg. Token (In/Out)VirusTotal Detection Count
Researchers propose AutoBypass, a multi-agent framework that automatically evaluates the resilience of commercial endpoint detection and response (EDR) systems, bypassing all targets in tests against seven commercial endpoint security platforms. A detection-aware knowledge base organizes threat intelligence, expert analysis and open-source proofs of concept into evasion techniques and operational constraints; agents use it to plan attacks, generate polymorphic code and compile binaries, while a telemetry-driven reasoning engine diagnoses failures and feeds corrective evidence back into the attack strategy. Among these, the evasion rate reached 90% against Windows Defender and 86.7% against Trend Micro AV. Ablation experiments show that the knowledge base raised the evasion success rate of an 8B open-weight model from 27%–53% to 43%–83%, approaching large proprietary models. The authors say these results demonstrate a systematic approach to putting public security knowledge to practical use and continuously automating evaluation of EDR resilience.
Paper analysis
What problem does this paper attempt to solve?
The authors aim to automatically synthesize publicly available EDR bypass knowledge into usable payloads and iterate in a closed loop, addressing the problem that EDR resilience cannot be evaluated end-to-end automatically.
Core question: Can publicly available but scattered EDR bypass techniques be automatically transformed into executable payloads, thereby systematically evaluating the real resilience of commercial EDRs.
- Scenario and motivation: Threat intelligence, open-source PoCs, and security blogs continuously disclose a large number of bypass techniques, but the authors argue that this knowledge is isolated and lacks a systematic method to automatically synthesize it into fully functional executables; EDR alerts are opaque (reporting only generic threats without disclosing detection root causes), hindering automated payload improvement.
- Shortcomings of existing methods (three gaps summarized by the authors): Templated frameworks (BOAZ, Inceptor) and ANIMAGUS lack polymorphic generation capability (Gap 1); syntactic methods such as deterministic AST transformations cannot switch attack tactics and techniques when behavioral monitoring blocks the original scheme (Gap 2); existing LLM tools are only passive coding assistants, all open-loop, with no validation against online defenses and no alert-interpretation feedback (Gap 3).
- Core observation: The authors emphasize that their contribution is not discovering new bypass primitives, but autonomously orchestrating known techniques in a knowledge-driven manner to achieve polymorphism and semantic-level adaptation.
- What the paper proposes: The AutoBypass framework—a closed-loop system consisting of a Detection-Aware Knowledge Base + a multi-agent sample generation pipeline + an alert reasoning module; the authors claim it is the first framework to model EDR bypass as a knowledge-driven, feedback-oriented agent workflow.
- Threat model (§3):
- Goal: Execute arbitrary shellcode on the target endpoint without triggering AV/EDR interception or high-confidence alerts; this is in the post-exploitation stage.
- Knowledge: gray-box—no source code, internal detection logic, or ML models; can use public detection rules (YARA/Sigma/Elastic), technical blogs, OPSEC guides, and can observe alert feedback to iterate.
- Capabilities: Has already gained initial access and holds standard user privileges; can generate and compile samples offline on its own infrastructure before delivery.
- Victim systems and scope: 7 commercial AV/EDR products; the attack vector is limited to shellcode loaders, excluding exploits or attacks against the EDR agent itself.
What related research exists?
Related work falls into three groups: single-point EDR bypass techniques, automated malicious sample generation, and LLM security applications; the authors state that all of them are open-loop and lack knowledge-driven orchestration.
EDR bypass techniques (§6.1)
- HookChain [35] redirects the execution flow to bypass user-mode hooks; indirect system calls invoke kernel services directly to avoid ntdll.dll instrumentation [31].
- Sleep obfuscation such as Ekko and Cronos encrypts the beacon image in memory during idle periods to counter memory scanning [19]; stack spoofing counters call-chain heuristics; ETW patching and AMSI bypass blind the telemetry pipeline before payload execution.
- EvilEDR [2] repurposes the EDR agent itself as an attack tool; mimicry attacks [27] embed malicious behavior into benign provenance subgraphs; ANIMAGUS [68] imitates legitimate I/O patterns to bypass ransomware detectors. The authors state that these techniques each target isolated detection points and require substantial manual expertise to combine across products.
Automated malware generation (§6.2)
- AIMED [12] uses genetic programming to mutate malware binaries; MAB-Malware [56] models evasion as a multi-armed bandit problem. Pierazzi et al. [52] point out that adversarial samples in the problem space must preserve file validity and execution semantics, which feature-space perturbations often ignore.
- Templated frameworks BOAZ [59] and Inceptor [38] insert payloads into predefined code skeletons; the authors criticize their static structure for producing fingerprints that EDRs can quickly learn.
- Dante-7B [5] fine-tunes a 7B model on malware development data; the authors point out that its compilation success rate is only 4.7%, indicating that raw LLM capability without structured domain knowledge is insufficient to reliably synthesize exploit code.
LLMs for offensive security (§6.3)
- TitanFuzz [18] and Fuzz4All [65] use LLMs to generate fuzzing inputs; PentestGPT [17] orchestrates LLMs to guide the penetration testing process. The authors state that these works focus on discovering vulnerabilities rather than weaponizing samples against online defenses.
- Sandoval et al. [53] found that unguided LLM code often contains functional defects or is detected immediately. The authors criticize existing LLM methods for all running open-loop, without validating against online defenses after generation.
Baselines and benchmarks: the experiments compare three baselines, BOAZ, Inceptor, and Dante-7B, all using the Cobalt Strike payload; Leucism [40] was excluded because its source code is unavailable. The evaluation subjects are 7 commercial AV/EDR products.
Positioning: the authors state that all existing methods are open-loop, and AutoBypass fills this gap through semantic-level KB-guided reasoning and closed-loop alert reasoning.
How does the paper address this problem?
AutoBypass forms a closed loop consisting of a detection-aware knowledge base, a four-agent generation pipeline, and an alert reasoning module, modeling bypass generation as knowledge-driven iterative evolution.
Overall approach: model EDR bypass generation as an autonomous, knowledge-driven, closed-loop multi-agent workflow. AutoBypass contains three modules (Figure 3): the Detection-Aware Knowledge Base structures attack and defense knowledge; the multi-agent generation module turns strategies into compilable samples; Automated Alert Reasoning executes samples on real EDRs, infers detection root causes, and writes them back to the KB.
Detection-Aware Knowledge Base (§4.1)
- Three types of knowledge: Evasion & Encoding Techniques (specific implementation methods for each stage), Defensive Rules (OPSEC constraints and behavioral patterns that trigger detection), and Historical Experience (results and failure reasons of historical runs).
- Construction process: data source identification → collection → extraction. Using the Google Search API with 20 domain keywords, 1351 web pages and 6 GitHub repositories were collected; after filtering with GPT-4o, 427 relevant text segments remained; GPT-5.1 extracted them into structured entries; YARA/Sigma/Elastic rules were imported directly with a Python parser, filtering Windows malware-related rules by directory and keywords.
- Scale: 19 AV/EDR bypass techniques, 5 encoding schemes, 68 OPSEC constraints, 1537 detection rules (407 YARA, 400 Sigma, 730 Elastic); hybrid storage with a MySQL relational database + Chroma vector database, embeddings using all-MiniLM-L6-v2; all code snippets were manually reviewed by 4 security experts.
- Formalization: a technique is modeled as a tuple T = ⟨ Name, Description, CodeSnippet, RiskLevel, StageTag ⟩, where RiskLevel is Low/Medium/High and StageTag is anchored to one of the six stages of a shellcode loader (Execution Guardrails, Anti-Emulation, EDR Desensitization, Memory Allocation, Shellcode Injector, Shellcode Execution); there are also three types of logical constraints: intra-stage mutual exclusion, inter-stage synergy, and environment dependency.
Multi-agent sample generation (§4.2)
- Four roles (based on LangGraph): Strategist queries the KB to generate an attack blueprint (Blueprint, JSON, containing rationale, evasion_tech, encode_tech, compiler_flags, sample_type); Coder synthesizes polymorphic C++ source code according to the blueprint; Builder compiles with MSVC (Visual Studio Build Tools 2022, cl.exe) and performs defense pre-checks; Debugger automatically fixes compilation errors.
- Knowledge use: Strategist filters candidate techniques from the relational database by StageTag and RiskLevel, and uses historical failure reasons to semantically retrieve countermeasures from the vector database; Coder retrieves CodeSnippet exactly by technique name as implementation reference, and semantically retrieves OPSEC constraints to inject into the generation prompt.
- Retry mechanism: Builder self-repairs up to 5 times; if all fail, it returns to Coder with error context to regenerate; after Coder fails 5 consecutive times, it falls back to Strategist to re-plan.
- Defense pre-check: after compilation, scan the binary with YARA rules from the KB and analyze the source code API call sequence with Sigma/Elastic rules; samples hitting known signatures are discarded directly.
- Implementation details: agents are driven by GPT-5.1, with default temperature to produce natural code variation; Strategist output is constrained to structured JSON, Coder outputs raw compilable C++; each compilation runs in an isolated environment. Figure 5 gives the complete prompts for Strategist and Coder.
Automated Alert Reasoning (§4.3)
- Two-stage validation: first verify that the sample functions normally in a baseline environment with EDR disabled (establishing a C2 connection, executing commands), then deploy to an environment with EDR enabled to evaluate evasion.
- Root-cause inference: Tester correlates observable system telemetry (file existence, process liveness, network connections) to infer the detection mechanism (Table 5): deleted immediately upon landing → static detection; terminated within seconds after startup → behavioral interception; process alive but C2 fails → network interception; delayed termination after several minutes of running → memory scanning.
- Evolutionary update: each test writes ⟨target EDR, blueprint, result, inferred cause⟩ into Historical Experience; successful blueprints serve as positive references, failed blueprints as negative constraints; specific failure causes trigger targeted countermeasures (e.g., memory scanning failure → retrieve sleep obfuscation or stack spoofing).
- Test infrastructure: VMware Workstation manages isolated VMs, a host Flask service + guest Python agent, monitoring system state every 2 seconds; successful evasion is defined as establishing a stable C2 connection and maintaining heartbeat for more than 30 seconds; a file deleted within 5 seconds is judged static detection, a process terminated within 30 seconds is judged behavioral interception, alive but no C2 is judged network interception, termination after 2 minutes is judged memory scanning; the VM snapshot is rolled back after each test.
What experiments did the paper conduct?
For 7 commercial AV/EDR products and 3 payloads with 30 iterations each: under GPT-5.1 all targets were bypassed, with Windows Defender highest at 90.0% and Elastic lowest at 16.7%–23.3%.
Experimental Setup
- Targets under test: 7 commercial products with default installation settings—Windows Defender AV (Engine 1.1.25110.1, Win10 22H2), Trend Micro PC-cillin AV (17.9.1106, Win10 22H2), Avira Internet Security (1.1.115.3317, Win11 23H2), McAfee LiveSafe (1.39.160.1, Win11 23H2), Kaspersky EDR (12.11.0.637, Win11 23H2), Bitdefender GravityZone EDR (7.9.29.589, Win11 24H2), Elastic Security (9.2.4, Win11 24H2).
- Payloads: Cobalt Strike shellcode (926 bytes), a custom MVP beacon developed together with Claude Code (Claude Sonnet 4.5), and the AdaptixC2 framework.
- Protocol: 30 iterations per target, terminating at the first successful evasion (stable C2 connection + heartbeat over 30 seconds) or upon reaching 5 improvement attempts; the RQ1 main experiments all use GPT-5.1.
- Baselines: BOAZ (272 generations yielding 159 samples), Inceptor (30 yielding 30), Dante-7B (300 yielding 14), all uniformly using the Cobalt Strike payload; evasion rate is calculated by the number of successfully generated samples rather than the total number of attempts.
- Ablation and sensitivity: RQ2 uses Qwen3-8B and Llama-3.1-8B, Cobalt Strike payload only, with 5 configuration ablations on Windows Defender and Kaspersky; RQ3 tests 7 models (GPT-5.1, DeepSeek-R1, DeepSeek-V3, Gemini-2.5-Flash, Llama-3.1-70B, Llama-3.1-8B, Qwen3-8B) against 5 targets (Defender, Trend Micro, Kaspersky, Bitdefender, Elastic).
- Metrics: Success Evasion (evasion rate), Avg. Time, Avg. Token (calculated per successful evasion), VirusTotal detection count (≤5 as the evasion threshold, following the VirusTotal threat hunting guide).
Main Results
According to the Success Evasion in Table 6 (GPT-5.1, N=30 per cell):
Swipe horizontally to read the table
Payload W T K A M B E Cobalt Strike 90.0% 86.7% 53.3% 23.3% 83.3% 13.3% 16.7% MVP 86.7% 86.7% 73.3% 60.0% 83.3% 60.0% 23.3% AdaptixC2 86.7% 83.3% 40.0% 46.7% 86.7% 76.7% 20.0% (W=Windows Defender, T=Trend Micro, K=Kaspersky, A=Avira, M=McAfee, B=Bitdefender, E=Elastic)
- The authors state that the framework produced evasive samples against all 7 targets; Cobalt Strike against Bitdefender was only 13.3%, which the authors attribute to its pre-execution sandbox terminating the highly identifiable malicious process creation before the evasion logic initializes, mitigated after switching to MVP (60.0%) and AdaptixC2 (76.7%).
- Elastic Security was the hardest for all payloads (16.7%–23.3%); the authors state that its payload execution monitoring is aggressive and that its static malware protection engine is closed-source and undisclosed.
- Baseline comparison (Table 7, Cobalt Strike payload): AutoBypass was higher than BOAZ (0.0%–11.3%), Inceptor (0.0%–30.0%), and Dante-7B (0.0%–42.9%) on every target; Dante-7B's compilation success rate was only 4.7% (14/300).
VirusTotal and One-Month Retest
- VirusTotal: All 630 AutoBypass samples were uploaded and compared with baseline samples (Figure 6); 62.9% of AutoBypass samples had a detection count ≤5, no baseline entered this low-detection range, and over 50% of BOAZ/Inceptor/Dante-7B samples were detected by more than 16 engines.
- KB retrieval quality: 2 security experts independently annotated the top-3 results of 691 deduplicated queries (5411 calls in total), and 82.1% of queries returned at least 1 relevant result; the misses were mostly broad queries used by the Strategist for initial exploration.
- One-month retest (Table 8, 90 runs per product): evasion rates declined over time, e.g., Windows Defender 87.8%→76.7%, Kaspersky 55.6%→41.1%, McAfee 84.4%→83.3%; the authors attribute this to public sandbox submissions accelerating signature generation and endpoint agents automatically uploading samples to vendor cloud analysis.
RQ2 Ablation (Table 9, Cobalt Strike, Defender/Kaspersky, 30 runs each)
- No KB: Llama-3.1-8B against Defender dropped from 80.0% to 33.3%, and Qwen3-8B against Kaspersky dropped from 43.3% to 36.7%.
- No Evasion Techs: For Llama-3.1-8B against Defender, functionally effective samples dropped from 27 to 10, with an evasion rate of 26.7%; the authors state that this component is most critical for functional correctness.
- No Defensive Rules: Qwen3-8B against Defender dropped from 83.3% to 60.0%; No History: Llama-3.1-8B against Defender dropped from 80% to 76.7%.
RQ3 Model Sensitivity (Table 10, Cobalt Strike)
- 8B models approach large models: Against Windows Defender, Qwen3-8B 83.3%, Llama-3.1-8B 80.0%, and GPT-5.1 90.0%; the authors state that 8B models cost 20 to 60× less.
- Exceptions: DeepSeek-V3, Llama-3.1-70B, Llama-3.1-8B, and Qwen3-8B were all 0.0% against Bitdefender and Elastic; Gemini-2.5-Flash was 3.3% and 6.7% against them.
- Cost trade-off: The authors state that small models can formulate strategies but are weaker at tactical implementation, with more compilation failures requiring Debugger intervention; GPT-5.1 usually produces compilable code on the first attempt.
RQ4 Technique Effectiveness Analysis (Tables 11, 12, aggregating logs from all 7 models in RQ3)
- Single techniques: module_overload was highest at 74.3% (26/35), remote_thread_hijack 62.1%; etw_patch and unhook_ntdll had the highest alert volumes (173, 139), and the authors state that modern EDR actively monitors its own hook integrity; early_bird was lowest at 41.2%.
- Execution context: DLL Sideloading overall was 52.3% (272/520), higher than Standalone EXE at 37.4% (198/530); the authors state that running within the address space of a legitimate process inherits the host's trust and is a blind spot of behavioral detection.
Other Ablations and Analyses
- Operation selection: default self-injection avoids cross-process system calls; when a new host process is needed (e.g., early_bird), the Strategist dynamically generates notepad.exe as a sacrificial process (§5.3).
- Cost: The token cost per successful evasion for GPT-5.1 ranges from 7.2k/2.3k (In/Out) for Windows Defender to 70.1k/18.1k for Bitdefender (Table 6).
What are some points that can be further explored?
The authors acknowledge three limitations: no fine-grained localization, heuristic alert inference, and coverage of only shellcode loaders; the experiments are limited to 7 Windows products.
Limitations and future directions noted by the authors
- Lack of fine-grained localization (§7 Discussion): AutoBypass relies on LLM variability for high-level strategy iteration and cannot reproduce the fine-grained tactics and techniques of human experts—when facing static detection, analysts use binary slicing (e.g., VirTest) to locate the specific bytes of the triggering feature, and when facing behavioral alerts, they use debugging tools such as x64dbg to locate the specific API call that causes interception; the current system can only regenerate modules as a whole. The authors plan to introduce a dedicated localization stage in the future to automate these precise improvement tasks.
- Alert reasoning is heuristic (§7): alerts from commercial endpoint protection are opaque, and the framework empirically infers root causes by monitoring objective OS traces; the authors acknowledge that this cannot guarantee absolute attribution accuracy.
- Covers only shellcode loaders (§7): the deployment scope excludes other common attack vectors, such as script execution environments (PowerShell, WMI); the authors state that extending to these vectors is a key direction for future research.
- Impact of release strategy on reproducibility (Artifacts section): the authors explicitly acknowledge that not releasing the complete pre-populated knowledge base weakens the direct reproducibility of the core claims; in practice, only the multi-agent orchestration logic, the test infrastructure, and a minimal subset containing the 3 least effective techniques are released.
Experimental coverage
- The subjects under test are 7 commercial AV/EDR products on the Windows platform, all with default installation settings, distributed across three OS versions: Win10 22H2, Win11 23H2, and Win11 24H2 (§5.1).
- There are 3 payloads: Cobalt Strike (926-byte shellcode), a custom MVP beacon, and AdaptixC2; the main experiment uses 30 iterations per target and at most 5 improvement attempts (§5.1).
- The ablation (RQ2) uses only the Cobalt Strike payload, 2 8B models, and 2 targets (Windows Defender, Kaspersky); the sensitivity analysis (RQ3) and technique analysis (RQ4) cover a subset of 5 targets (§5.1).
- KB retrieval quality was annotated by 2 security experts on the top-3 results of 691 queries (8 person-hours in total); the paper does not report inter-annotator agreement values (§5.3).
- The threat model explicitly excludes software exploits and attacks against the AV/EDR agent itself (e.g., driver vulnerabilities, privilege escalation to disable the agent) (§3).
Summarize the main content of the paper
AutoBypass uses a knowledge-base-driven multi-agent closed loop to automatically generate EDR bypass samples; all 7 commercial products were bypassed, and the authors state that this exposes the systematic blind spot of trusted execution contexts.
AutoBypass is a framework that models EDR bypass as a knowledge-driven, feedback-oriented agent process, with the goal of answering the question "can publicly documented attack techniques penetrate state-of-the-art EDR."
- Problem: Bypass techniques are public but scattered, and automated synthesis and iteration methods are lacking; EDR alerts are opaque, and the authors state that existing automated methods (template frameworks, AST transformations, LLM assistants) are all open-loop.
- Method: The Detection-Aware KB (19 techniques, 68 OPSEC constraints, 1537 detection rules, filtered by GPT-4o, extracted by GPT-5.1, reviewed by 4 experts) supports four agents—Strategist/Coder/Builder/Debugger—in generating polymorphic C++ loaders; the Tester executes in real EDR environments, infers four categories of root cause—static detection/behavioral blocking/network blocking/memory scanning—from telemetry phenomena, and writes back to the KB to drive evolution.
- Main results: Under GPT-5.1, bypass was achieved against all 7 commercial AV/EDR products, with Windows Defender at a maximum of 90.0%, Trend Micro at 86.7%, and Elastic at a minimum of 16.7%–23.3% (Table 6); 62.9% of samples had a VirusTotal detection count ≤5, and none of the three baselines entered this range (Figure 6).
- Ablation and sensitivity: After removing the KB, Llama-3.1-8B against Defender dropped from 80.0% to 33.3%; the authors state that the KB enables an 8B open-source model to approach GPT-5.1 at 20–60× lower cost.
- Technical analysis: The DLL Sideloading sample evasion rate was 52.3%, higher than the 37.4% of standalone EXE; the authors state that inheriting the trust of a legitimate process is a systematic blind spot of behavioral detection, and recommend that vendors strengthen monitoring of code injection into signed binaries and of DLL loading sequences.
- Conclusion and handling: The authors believe that the knowledge required to evade modern defenses is already public and can be systematically operationalized; disclosure has been made to all 7 vendors with confirmation from 2, and the code is released under a limited release policy (excluding the full knowledge base).