How harqer/artex works
ARTEX is a self-hosted, LLM-driven penetration-testing platform. An operator configures and starts a task; the planner decomposes its goal into intents, workers run tools against the target, and results update the task’s exploration graph and shared asset graph. Findings retain traffic evidence, while scope checks, interception approvals, and budgets constrain autonomous actions. The README documents this workflow and the two graphs; sampled source confirms key engine, ingestion, and persistence responsibilities, but not every runtime connection, so uncertain links are omitted.
Main entry points: worker.go Tool workers · server.go HTTP API · exploration.go Exploration graph · engine.go Task engine
Components 20
Product entry
- Web interface
web/src/app - HTTP API
server/server.go
Task execution
- Task engine
server/engine.go - Goal planner
agent/planner.go - Tool workers
agent/worker.go - Scan ingestion
agent/scan_ingest.go
Safety controls
- Scope and approvals
guard/guard.go - Interception
intercept/intercept.go - Egress controls
egress/egress.go
Evidence and state
- Shared asset graph
db/assets.go - Exploration graph
db/exploration.go - Findings
db/findings.go - Traffic capture
traffic/traffic.go - Evidence store
evidence/store.go - LLM records
llmrec/llmrec.go
Interfaces
- Chat bridge
chatbridge/router.go
Other components
- Operator
- PostgreSQL
- LLM providers
- Test target
Connections 22
- Operator → Web interface: uses
README.md - Web interface → HTTP API: calls
- HTTP API → Task engine: controls tasks
- Task engine → Goal planner: runs
server/engine.go - Task engine → Tool workers: dispatches
server/engine.go - Goal planner → Exploration graph: reads progress
README.md - Tool workers → Test target: tests
README.md - Tool workers → Shared asset graph: writes observations
README.md - Tool workers → Exploration graph: writes results
README.md - Tool workers → Scope and approvals: passes gates
README.md - Tool workers → LLM providers: requests reasoning
- Scan ingestion → Shared asset graph: inserts assets
- Scan ingestion → Exploration graph: records facts
- Traffic capture → Evidence store: supplies traffic
evidence/store.go - Evidence store → PostgreSQL: persists evidence
evidence/store.go - Shared asset graph → PostgreSQL: stores graph
- Exploration graph → PostgreSQL: stores graph
- Findings → Evidence store: anchors proof
README.md - Egress controls → Interception: consults rules
egress/egress.go - Chat bridge → HTTP API: bridges chat
- LLM records → PostgreSQL: records usage
llmrec/llmrec.go - HTTP API → LLM records: records calls