Black Friday Deals For Authors Are On Now!

Leanpub Header

Skip to main content

Dissecting ARTEX: Inside the Design and Harness Internals of AI Pentesting Agents

How an LLM Multi-Agent Offensive Security System Plans, Executes, Verifies and Governs Autonomous Penetration Tests

Dissecting ARTEX: Inside the Design and Harness Internals of AI Pentesting Agents
This book is 100% completeLast updated on 2026-11-27

What really happens inside an autonomous AI penetration testing system? This book takes you beneath ARTEX's surface to examine the architecture, agents and internal mechanisms that make it work. Through source code analysis and detailed technical breakdowns, it reveals how ARTEX plans attacks, coordinates agents, verifies results and keeps autonomous execution under control.

Minimum price

$25.00

$35.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
193
Pages
About

About

About the Book

This book is a source-grounded technical investigation of ARTEX, an open-source autonomous penetration testing framework that has moved from a 23,000-star GitHub repository to the center of real-world nation-state cyber operations in a matter of months. Written as a senior engineer's technical monograph, it reverse-engineers every major subsystem: the dual-graph data model, the event-driven planner-worker engine, the agent harness built on the norma SDK, the recording MITM proxy, the interception gate, the noise governor and the layered control plane that constrains an LLM's autonomy through architecture rather than trust.

Bundle

Bundles that include this book

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience spanning software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. His work focuses on understanding complex systems, uncovering security weaknesses and developing practical solutions that make technology more secure, reliable and effective.

Through Steve Publications, he collaborates with experienced researchers, engineers and industry experts to create practical, technically rigorous books on various topics not limited to self-improvement, software development, cybersecurity, cloud computing, DevOps, artificial intelligence and enterprise technologies. His mission is to make complex technical subjects accessible through clear explanations, real-world examples and hands-on exercises that help IT professionals, students and technology enthusiasts build valuable, practical skills.

Steve Publications embraces AI as a supporting tool for translation, proofreading and editorial refinement, not as a substitute for original research, technical expertise, or hands-on experience. Some contributors choose to publish under pseudonyms to protect their privacy or maintain professional boundaries.

Behind every book is a commitment to technical accuracy, practical relevance and continuous improvement. Our publications are written, reviewed and maintained by experienced professionals, with support from a private community of more than 420 engineers and researchers. Rather than prioritizing volume or mass-produced AI-generated content, we focus on delivering reliable, useful resources that readers can apply in real-world environments.

We also welcome experienced professionals who want to share their knowledge by writing or reviewing books, particularly in specialized and emerging technology fields. If you have expertise to contribute, we invite you to get in touch and explore opportunities to collaborate.

Our commitment is simple: To deliver books that respect our readers' time, support their professional growth and provide lasting practical value. If a book does not meet your expectations, Leanpub offers a 60-day money-back guarantee.

Contents

Table of Contents

How an LLM Multi-Agent Offensive Security System Plans, Executes, Verifies and Governs Autonomous Penetration Tests

About This Book

Introduction: The Shape of Autonomous Offense

  1. The Central Thesis: Autonomy Through Constraint
  2. The Dual-Graph Core
  3. Evidence as First-Class Data
  4. Scope and Methodology
  5. How to Read This Book
  6. Why This Matters

Part I: Foundations and System Context

Chapter 1: ARTEX in the Ecosystem of Agentic Offensive Security

  1. The Rise of Autonomous Offensive Frameworks
  2. ARTEX’s Provenance
  3. The Threat Landscape Shift
  4. What “Autonomous Penetration Testing” Means (and Does Not Mean)
  5. Why the Architecture Is the Interesting Part

Chapter 2: The Core Design Philosophy: Autonomy Through Constraint

  1. The Two-Graph Thesis
  2. The Planner/Worker Split
  3. Evidence as First-Class Data
  4. The Control Plane
  5. Untrusted Data Boundaries
  6. Design Decisions and Their Rationale
  7. The Recurring Pattern

Part II: System Architecture

Chapter 3: High-Level Architecture and Deployment Model

  1. Component Map
  2. Deployment Options
  3. The Single-Binary Model and go:embed
  4. Ports, Configuration and the Environment Surface
  5. Trust Boundaries

Chapter 4: The Dual-Graph Data Model

  1. The Schema at a Glance
  2. The Asset Graph
  3. The Exploration Graph
  4. Why Graphs and Not a Flat Task List
  5. The Cold-Digest Mechanism
  6. Schema Migrations and Idempotent Startup
  7. The Task Layer
  8. Cross-Task Relationships
  9. The Activity Ledger

Chapter 5: The Server, Manager and Engine

  1. The HTTP Server
  2. The Manager
  3. The Task Handle
  4. The Engine: Planner Loop
  5. The Engine: Worker Loops
  6. Intent Claiming and Crash Recovery
  7. Per-Work Control
  8. Idle-Turn Nudge
  9. Execution Context
  10. LLM Pool and Failover
  11. Activity Emission
  12. Error Handling

Part III: The Agent Harness (norma SDK)

Chapter 6: The norma SDK: ARTEX’s Agent Runtime

  1. What norma Is
  2. agentcore: The Session and Execution Loop
  3. llm.Provider: The Model Abstraction
  4. tool.CoreTool: The Tool Specification
  5. permission and Hooks
  6. transcript: Conversation Persistence
  7. harness.HookRunner and the Hook Registry

Chapter 7: The Agent Execution Loop

  1. agentcore.Options: The Configuration Surface
  2. The Turn Loop
  3. Streaming vs. Non-Streaming
  4. Tool Calling: From Model Decision to Executable Action
  5. Output Spill and Truncation
  6. Termination and Settlement

Chapter 8: Context Management, Compaction and NOA

  1. The Compaction Window
  2. Cold-Node Compaction
  3. The NOA Experimental Mechanism
  4. TodoStore: Planning Scratchpads
  5. Deferred Tools and the Unlock Set
  6. Context Telemetry

Part IV: The Planner

Chapter 9: The Planner: ARTEX’s Decision Brain

  1. The Planner’s Role
  2. The Event-Driven Wake-Up
  3. The Situational Block
  4. Constraints and the Code-Owned Prompt
  5. The Hard Floor Rule
  6. The Planner’s Tool Set
  7. The Planning Prompt

Chapter 10: Planning Semantics: Goals, Intents and Attack Chains

  1. Goals and the prove_goal Contract
  2. Intents: Open Exploration Directions
  3. Lineage: Parents and Yields
  4. Serial Exploit Chains
  5. Anti-Stagnation by Discipline
  6. Coverage: The Ledger and the Denominator
  7. The Force-Directed Coverage Graph

Part V: The Worker

Chapter 11: The Worker: Bounded Execution

  1. The Worker’s Contract
  2. Claiming and Per-Intent Session Identity
  3. The Worker’s Tool Surface
  4. Write-Back Discipline
  5. The Report Contract
  6. Budget Discipline and Settlement
  7. Resume and Continuation
  8. Operator Handoff

Chapter 12: Tool Discovery, Augmentation and RAG

  1. The Base Tool Set
  2. Domain Tools: The Dual-Graph Interface
  3. AugmentTools: Skills, MCP and the Unlock Set
  4. Deferred Tools: The Catalog That Fits
  5. Custom Tools and the Execution Spec
  6. Tool Surface Reduction: Why the Worker Loses MultiEdit/Glob/Grep

Chapter 13: Reconnaissance, Enumeration and the Scanner Toolchain

  1. The Image Toolchain: Lean by Default
  2. The Recording Proxy as the Reconnaissance Spine
  3. The Enrich Engine
  4. Asset Insertion and Coverage-Driven Exploration
  5. OSINT and Web Search Backends
  6. The Browser Toolchain for Authenticated Targets

Part VI: Evidence, Findings and Verification

Chapter 14: The Recording MITM Proxy and Traffic Store

  1. The Proxy Architecture
  2. The Traffic Store
  3. Traffic Search, Retrieval and Lifecycle
  4. How Traffic Becomes Finding Evidence

Chapter 15: Findings, Provenance and Verification

  1. The Finding Lifecycle
  2. The Reporter: Findings Become Reports
  3. Evidence Binding and the Evidence Store
  4. The Retester Agent
  5. Provenance and Verification: What Is Enforced Where
  6. Finding Notifications

Part VII: Control, Safety and Governance

Chapter 16: The Interception Gate and Approval Workflow

  1. The Intercept Package
  2. The LLM Fallback Judge
  3. Approval Rules: String and Regex
  4. The PreToolUse Hook and Guard Wiring
  5. Asset Interception: Gating the Plan
  6. Decision Records
  7. The Human in the Loop

Chapter 17: Scope, Budgets and Concurrency

  1. Scope Rows and the Coverage Denominator
  2. Task and Run Budgets: Time and Steps
  3. Concurrency: The Real Blast-Radius Control
  4. The Honest Gap: No Egress Pacing

Chapter 18: Prompt Injection Defense and Untrusted Output

  1. The Threat Model: The Target as an Adversarial Prompt Source
  2. What the Code Owns: Prompts, Capability, Context
  3. Review-Context Isolation: The Judge Cannot Be Poisoned by the Transcript
  4. Verification as the Injection Backstop
  5. The Notifications Escalator: An Injection Defense Outside the Agent Loop

Part VIII: Operations, Reliability and Extension

Chapter 19: Observability, Debugging and Reliability

  1. The Activity Ledger and Per-Step Traces
  2. SSE Streaming and the Live Console
  3. Token Accounting and LLM Usage Records
  4. Session Transcripts and the llmrec Recorder
  5. Error Recovery: The Five Retry Layers
  6. Operations: Pool, Backups, Self-Update

Chapter 20: Extension Points, Skills, MCP and Multi-Task Orchestration

  1. Skills: The Shipped Catalog
  2. MCP Servers: stdio, HTTP and SSE
  3. Memory and the Workspace
  4. Multi-Task Orchestration: Cross-Task Inheritance and the Blackboard
  5. The LLM Chain: Per-Task Failover
  6. Extending the Agent Roles

Conclusion: The Unified Mental Model

  1. Synthesis: Connecting All Subsystems
  2. The Most Significant Architectural Strengths
  3. The Most Significant Limitations
  4. The Broader Engineering Principles
  5. Where the Field Is Going

References

Appendix A: Source File Map

  1. Application packages
  2. The vendored SDK
  3. Frontend and operations

Appendix B: Environment Variables and Configuration

  1. Environment variables
  2. config.example.json
  3. Runtime settings (UI, persisted to the settings table)
  4. Ports and paths
  5. A note on secrets

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub