# baarai/artex — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `ai-models`
- Overall score: `3.8/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `2ccf6692e38b` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/baarai/artex
- Radar entry: https://radar.alplab.co/#repo/baarai/artex
- License: `AGPL-3.0`
- CI workflows: `.github/workflows`
- Tags: `penetration-testing`, `llm-agents`, `offensive-security`, `mitm-proxy`, `self-hosted`, `go`

## Summary

Self-hosted LLM multi-agent penetration-testing platform in Go: planner/worker agents explore a dual asset/exploration graph in PostgreSQL, run real scanners through a recording MITM proxy, and bind findings to captured request/response evidence behind an approval/scope gate.

## Implementation Check

README's planner→intent→worker loop, dual graphs, MITM evidence, intercept gate and isolation are all implemented: agent/worker.go and agent/planner.go drive db/schema.sql stores, guard/guard.go+intercept/intercept.go enforce allow/deny/ask with fail-closed rule loading, server/isolation.go self-tests agent privilege drop; no stubs found where features are claimed.

## When to Use

Reach for it when running an authorized pentest/recon engagement and you can self-host Docker+PostgreSQL and pay LLM tokens, wanting findings with captured-traffic receipts; not for untrusted multi-tenant hosting, and never against systems outside your written authorization.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 4.0/5 |

## Code Evidence

Large real implementation (~600 Go files with tests in agent/, db/, server/, intercept/, traffic/): ci.yml runs gofmt+vet+go test against postgres:16 plus -race on 17 packages, web tests and shellcheck; Dockerfile pins every fetched tool by sha256 and bakes scanner toolchain (nmap/nuclei/sqlmap/bbot); intercept denies when the rule store is unreadable and LLM-judge failures default to ask (intercept/intercept.go); secrets sealed AES-256-GCM with per-column AAD (docs/ARCHITECTURE.md §6, db/secrets.go); SECURITY.md documents residual trust boundaries candidly.

## Issues Found

Deliberate InsecureSkipVerify in enrich/enrich.go:106 (justified: connections go through intercept.PinnedDialer under the MITM CA) and opt-in per-server insecure TLS in mcphttp/client.go:187,216 — documented, but worth knowing; SECURITY.md itself lists residual symlink-swap races in root-by-path reads (ask_operator staging, archive packaging) that remain open by design; target-gate and budgets are off by default, so an unconfigured install lets agents act broadly within declared scope.

## Key Risks

Nothing was executed: no proof the agent loop finds real vulns end-to-end or that installs work; two tests skip in CI (issue #9) and db tests are not idempotent (ci.yml comments); GHCR image not yet published (v0.7.0 predates the publish step) so Docker path is checkout-build only; maturity data says early class with 0.63 top-author share and history rewritten once on 2026-10-23; go.mod module path still github.com/Autumn-27/artex (fork of upstream Autumn-27/artex, now private) with a replace to BaaRai/Norma.

## Reviewed Files

- `README.md`
- `go.mod`
- `cmd/artex/main.go`
- `docs/ARCHITECTURE.md`
- `.github/workflows/ci.yml`
- `Dockerfile`
- `install.sh`
- `SECURITY.md`
- `server/isolation.go`
- `guard/guard.go`
- `intercept/intercept.go`
- `agent/worker.go`
- `enrich/enrich.go`
- `mcphttp/client.go`
- `repo_list of server/ and root`
