ARTEX Wins Baidu's Security Challenge Using Linked Graphs to Coordinate AI Hacking Agents
ARTEX, winner of Baidu's agent+ challenge, open sources a Go-based multi-agent pentest system built on a dual-graph architecture.
Takeaways
- ARTEX is an open source autonomous pentest system that won Baidu's agent+ offense/defense challenge.
- Go backend with embedded Next.js frontend, PostgreSQL, and the norma agent SDK.
- Dual-graph design separates a global asset graph from per-task exploration graphs, linked by anchors.
- Planner keeps a shared todolist across wakeups to run multi-step attack chains in order without race conditions.
- Workers can search other workers' step-level execution traces to avoid redoing discovery work.
- AGPL-3.0 licensed and restricted by the author to local study only, see the repo.
ARTEX is a source-available reference design for autonomous penetration testing agents. Its repository became public after the project won Baidu’s Agent+ Offense and Defense Challenge. The repository advertises AGPL-3.0, although separate use restrictions create a licensing conflict discussed below.
The stack combines a monolithic Go backend, an embedded Next.js frontend, PostgreSQL, and agent capabilities from the norma SDK. Its main architectural contribution is persistent coordination: multiple agents can pursue a long attack chain, share discoveries, preserve dependencies, and produce an inspectable record of their decisions.
Linked graphs keep state legible
ARTEX stores the target inventory and the agents’ reasoning in separate graphs, then joins them through database anchors. This separation gives stable identities to assets and preserves the lineage of each test.
| Graph | Scope | Nodes | Purpose |
|---|---|---|---|
| Asset Graph | Company-wide and shared across tasks | root_domain, subdomain, ip, service, app, and endpoint |
Maintains the target inventory, parent-child relationships, and stable asset identities. |
| Exploration Graph | One graph per task | goal, intent, fact, finding, and hint |
Records what agents planned, observed, inferred, and proved. |
Application code computes asset deduplication keys, removing that choice from model output. Exploration edges such as spawns, derived_from, yields, and proves preserve the path from an initial goal to supporting evidence and confirmed findings.
The exploration_anchors table connects intents, facts, and findings to specific assets. A developer can inspect which assets an exploration path touched or select an asset and retrieve every intent that tested it during the current task. ARTEX also derives coverage from these links across the represented in-scope surface; that metric describes graph coverage, with exhaustive security testing remaining a broader question.
A persistent queue preserves attack order
Attack chains impose dependencies that unconstrained parallel execution can break. An injection may expose credentials, those credentials may unlock a second service, and access to that service may enable privilege escalation. Dispatching every step during the first planner cycle would ask workers to act before prerequisite facts exist.
ARTEX divides responsibility between planners and workers, then stores the plan in a task-level to-do list that survives agent wakeups:
- The planner reads the exploration graph and evaluates progress toward the task goal.
- It adds intents for uncovered directions and selects items whose prerequisite facts are available.
- A worker claims one intent, invokes tools, and writes assets, facts, hints, and findings back to the graphs.
- The planner marks satisfied items complete and releases the next eligible steps during a later cycle.
Each planner wakeup starts a fresh agent session, so the persisted list carries sequencing decisions across rounds. The planner can emit zero or more intents per cycle, and each worker retains ownership of a single claimed intent before stopping.
Workers can search one another’s traces
Useful observations often appear during execution before an agent promotes them to formal facts. A malformed response, unusual error, or hidden parameter can remain buried in one worker’s trace and force another worker to repeat the same investigation.
ARTEX exposes step-level worker activity as a searchable resource within each task. A worker can call search_all_worker_traces(q) to search other workers’ execution records by keyword. The function excludes steps from the caller’s own intent and tags each result with its intent_id.
The worker can then use list_worker_traces and get_worker_trace to inspect a specific run or step. This design shares intermediate observations at trace granularity while preserving the assignment boundary around each intent.
Graph changes drive the engine
ARTEX uses graph updates as scheduling events. A change triggers a debounced planner wakeup, the planner emits eligible intents, workers claim and execute them, and their writes begin the next cycle. The loop continues as evidence accumulates toward the goal.
| Subsystem | What it provides |
|---|---|
| Recording proxy | Captures HTTP traffic through an intercepting proxy and supports local certificate-authority trust. |
| Approval gate | Requires approval before agents execute designated sensitive tool calls. |
| Enrichment | Performs asynchronous DNS and HTTP checks against discovered assets. |
| Agent extensions | Provides Model Context Protocol support, skills, memory, and report modules. |
| Finding retests | Runs isolated verification sessions with separate evidence trails. |
| Asset sync | Imports selected ScopeSentry targets into the shared Asset Graph. |
On first boot, the backend pre-seeds an editable retester agent. Its prompt, model, run budget, and tools are configurable. When a retest session returns fixed, ARTEX updates the finding’s disposition accordingly and retains the session’s evidence.
The ScopeSentry integration accepts a server address and API key on the Asset Sync page. Users can select targets and asset types by project or task, then import them into the Asset Graph for subsequent exploration.
From Docker to one binary
PostgreSQL is required, and exploration needs an LLM configured through ANTHROPIC_API_KEY or OPENAI_API_KEY. Provider settings can also be entered through the web interface.
| Install path | Behavior |
|---|---|
install.sh with Docker |
Detects or installs Docker and launches the full stack in containers. |
install.sh with local build |
Builds a Go executable with the Next.js interface embedded. |
| GitHub Releases | Provides a prebuilt binary. |
| Source build | Compiles the embedded interface with go build -tags embedui. |
The web interface listens on port 8787. An optional recording proxy listens on port 8788.
The license needs clarification
The repository presents ARTEX as AGPL-3.0 software and also states that use is limited to personal study, code research, and local technical validation. Its terms explicitly prohibit scanning, probing, exploiting, or attacking websites and online systems, including systems owned by or authorized for the user.
AGPL-3.0 ordinarily permits use for any purpose under its copyleft conditions, so the additional field-of-use restrictions leave the effective license unclear. Teams considering redistribution, modification, hosted deployment, or security testing should obtain clarification from the maintainer before adopting the code.
Under the stated restrictions, ARTEX serves primarily as a reference architecture for long-running, tool-using agent systems rather than an operational penetration testing platform. Developers seeking reusable agent infrastructure can inspect the underlying norma SDK separately and verify its licensing terms.