AI Harness Engineering for Cybersecurity: A Reference Architecture and Development Methodology
The emergence of large language models (LLMs) asreasoning engines for cybersecurity has shifted the bottleneckfrom model capability to harness engineering—the disciplineof building the runtime infrastructure that transforms a lan-guage model into a reliable, controllable security agent. Thispaper presents a comprehensive methodology for designing,building, and deploying AI harnesses across the full spectrumof cybersecurity operations: penetration testing, red teaming,reverse engineering, security operations centers (SOC), malwareanalysis, and digital forensics. We synthesize insights fromeleven production harness systems, four foundational researchpapers, and five open-source security agent frameworks—Norma,ARTEX, NeuroSploit, Strix, and AiSOC—to identify seven coresubsystems, twenty-nine design patterns, and five orchestrationarchitectures that form the basis of effective security harnessdesign. We propose a layered reference architecture with concreteimplementation guidance for each layer, covering both cloud-hosted models (Anthropic Claude, OpenAI GPT) and locally-deployed models (Ollama, llama.cpp). A nine-phase develop-ment methodology is presented with working code examplesin Python and Rust. Our methodology addresses the uniquechallenges of security automation: tool safety in adversarialenvironments, evidence-backed claim verification, scope controlacross attack surfaces, and the critical separation between controland execution planes. We additionally present a threat modelfor AI security agents themselves, a complete implementationwalkthrough, lessons learned from production deployments, anda comparison with traditional security automation. We providearchitectural diagrams, pattern catalogs, and a step-by-stepdevelopment methodology that practitioners can follow to buildharnesses for any security domain.
Authors
- Joas Antonio dos Santos (ORCID: https://orcid.org/0009-0003-1772-9826)
Publication Details
- Journal
- Preprints.org
- Published
- 2026-12-03
- DOI
- https://doi.org/10.20944/preprints202612.0388.v1
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- preprint