bulwark
# Bulwark
I built Bulwark after the FBI published its alert on ARTEX in November 2026. ARTEX is a program that hands a break in to a team of AI agents. It invents nothing new. It walks through doors that were left open, at machine speed, and it did enough damage in its first months that the Bureau wrote up its methods for everyone to read.
That write up is the good news. The weaknesses it uses are known, short in number, and checkable. Bulwark checks them, watches for the attack while it happens, and plants bait that tells you the moment a machine is inside. Three parts, one job.
## The audit
The Bulwark server runs seven checks against systems you own or are authorized to test. Every check is read only. The web checks send plain requests, the kind a browser sends, and report what they find without using it.
1. secret_scan reads your public code the way an agent reads it and reports secrets left in it, with the values masked.
2. sourcemap_check reports whether your source maps are public, because a public map hands over your original code.
3. api_surface_check inventories common API and exposure routes and reports which ones answer with no login at all.
4. header_check reports the standard security headers your site sends and the ones it is missing.
5. token_config_check inspects a token or a token configuration you hand it and reports dangerous settings, like the algorithm none being accepted or expiry switched off.
6. console_exposure_check looks for an agent console exposed on your own hosts. More than 1,600 ARTEX consoles were found sitting public in November 2026. This check answers whether one of them is yours.
7. defense_report runs the web checks together and hands back one report with the fix list ordered the way the FBI ordered the weaknesses.
## The watch
The detection folder holds five log rules and the same hunts written as ready to run searches. They watch for the published fingerprints of this kind of attack, the agent user agent strings, bursts of failed attempts, a server suddenly calling out to AI services, source maps being pulled down, and unsigned tokens being tried.
## The bait
The canary folder holds a generator and a listener. The generator makes decoy credentials and decoy routes that exist nowhere else. You plant them where agents look first. The listener and the log scanner tell you the moment one is touched, and no person and no honest program ever has a reason to touch one.
## Running it
The server needs Python 3 and nothing else. It uses only the standard library and runs offline apart from the requests to the address you give it.
```
PYTHONPATH=server/src python3 -m bulwark defense_report https://example.com
```
With no arguments it runs as an MCP server on stdio, ready for the agent tools you already use.
```
PYTHONPATH=server/src python3 -m bulwark
```
The guide in this package walks through the audit, the rules, and the planting, step by step, and ends with a first hour checklist for the day an alert fires.
## The line
Bulwark is defensive, completely. It contains no attack tooling, sends no payloads, tries no credentials, and proves a weakness exists without ever using it. Run it only against systems you own or are authorized to test. That is not fine print. That is the whole design.
Second Desk
TDQS
Scored across 7 tools
Each tool targets a distinct artifact: secrets in code, source maps, unauthenticated API routes, headers, token configuration, and exposed consoles, so an agent can generally map intent to tool. The only soft overlap is between api_surface_check and console_exposure_check, which both probe paths with plain GETs, though their stated targets (API auth bypass vs. console page markers) are clearly separated. defense_report is a deliberate rollup of the others rather than a competing tool.
All names follow a consistent <subject>_<action> snake_case pattern: secret_scan, sourcemap_check, header_check, defense_report, etc. Verb/action choice is predictable (scan/check/report) and no camelCase or ad-hoc abbreviations creep in.
Seven tools is well within the ideal 3-15 range and each one earns its place with a distinct check plus one aggregator. Nothing feels padded or missing from the orchestration layer.
The surface covers the core client-side exposure classes (secrets, source maps, unauthenticated routes, headers, token misconfig, console exposure) and bundles them into a report, so the main lifecycle is closed. Minor gaps remain for a web security posture tool: no TLS/certificate check, no cookie flag or CORS inspection, and no way to persist or export a report beyond the inline defense_report output.