← Lab /Security & privacy

RAG-guided GenAI can automatically create malware-specific deception playbooks

RAG-guided structured prompting can generate effective, low-overhead deception orchestration code for specific malware

Security & privacy arXiv 8 Oct 2026 Method Prototype evidence

Published as “ORCAGen: Orchestrating Context-Aware Malware Deception with RAG-Guided Generative AI”

Why it matters

Defenders can keep a malicious process alive, observe its behavior, and neutralize its actions without immediate termination, improving incident response insight.

Summary

ORCAGen can neutralize the majority of real-world malware, achieving 92% complete neutralization of keyloggers, 100% of information stealers, and 96% of ransomware samples. It uses Retrieval-Augmented Generation and structured prompts to automatically create proof-of-concept malware and corresponding deception orchestration code, which are validated offline before being compiled into a runtime DLL. The evaluation shows that LLM reliability varies widely: GPT-5.5 and Gemini 3.5 Flash achieve near-perfect zero-shot success, while GPT-4o, Claude Sonnet 4.5, and Qwen3-Coder require multiple refinements and exhibit higher hallucination or overhead. The evidence is based on 15 synthetic scenarios and 150 real malware samples run in a Windows 7 VM; no live LLM inference is used at runtime. The paper does not describe an explicit threat model.

What they found 1

  1. High real-world neutralization rates across malware families

    “ORCAGen achieved strong effectiveness across all three real-world malware families. It completely neutralized 92% of keyloggers, 100% of information stealers, and 96% of ransomware samples.”

Caveats 6

  • Zero-shot deception success was only 66.67% for GPT-4o, 60% for Qwen3-Coder, and 26.67% for Claude Sonnet 4.5, requiring refinements to reach 100%.
  • Qwen3-Coder exhibited a hallucination rate of 0.27 and the highest runtime overhead (183.56 ms).
  • Claude Sonnet 4.5 could not generate PoC malware due to content safety restrictions.
  • We evaluated five LLM backends: ... All PoC malware and orchestration logic were executed only inside the isolated virtual environment.
  • The four failed keylogger samples used direct keyboard-state polling with internal key mapping; ORCAGen could suppress or simulate key-state responses, but could not consistently replace internally reconstructed key values with decoy keystrokes.
  • For ransomware, the partial case depended on a command-andcontrol server to download an additional component; because the infrastructure was unavailable during testing, only part of the behavior was observed, so we conservatively classified it as partial disruption.

What’s new here 4

  • Combines GenAI with Retrieval-Augmented Generation to generate both PoC malware and deception orchestration code offline.
  • Introduces a curated knowledge base that maps malware techniques to active defense strategies for grounded generation.
  • Validates generated code against the PoC before inclusion in a runtime playbook, eliminating live LLM inference.
  • Demonstrates a structured prompt architecture that outperforms direct and RAG-only prompting.