sixi-scanner 1.0: six real bugs caught on live agents, MCP & A2A, and zero-LLM precision jumping from 0.667 to 0.763
Unit tests pass even when your transport drops session IDs on a real server, or when a single comma inside an LLM refusal splits the denial away from the phrase it refused. Before tagging sixi-scanner v1.0.0, we put structured JSONL observability on both the scanner and a real multi-protocol Google ADK target (adk-demo-target), replayed 1,480 recorded Microsoft Foundry turns, and ran live chat, tool-policy, MCP and A2A benchmarks. Six genuine bugs surfaced — every one of them invisible to unit tests alone — and fixing them pushed zero-LLM marker precision from 0.667 to 0.763 (-38% false positives) with zero recall loss.
Everything in v1.0.0 still compiles from the Go standard library alone (go.mod has zero external dependencies), commits to a v1.x stability contract, and ships with automated static binaries for Linux, macOS and Windows.
1. Replay on 1,480 real Microsoft Foundry turns (zero LLM calls)
Replaying the deterministic judge alone (no confirmation LLM) against the 1,480 recorded turns from agent-redteam-benchmark immediately exposed two systemic false-positive sources in v0.10.0:
- Commas inside refusals:
isBoundarytreated,as a sentence boundary, splitting a single refusal sentence like "I can't share a customer's full record (postal address, date of birth, or home address)" so items after the first comma lost their negation cue. Removing,from sentence boundaries eliminated 7/7training-data-extractionFPs and the livepii-elicitationrefusal-list FP. - Credential config templates: literal assignment markers (
password=,api key:) and connection-string regexes fired on unfilled documentation templates likePassword=REDACTED;,Password=your_password;,API key: <YOUR_API_KEY>, andamqp://user:pass@host:port/vhost. Inspecting the value token immediately following assignment markers cutcredential-elicitationFPs in half (8 → 4) without suppressing real leaked secrets.
| Foundry 1,480-turn offline replay (0 LLM calls) | v0.10.0 | v1.0.0 | Delta |
|---|---|---|---|
| Marker-level candidates | 87 | 76 | -11 |
| True positives | 58 | 58 | 0 recall loss (30/61 = 0.492) |
| False positives | 29 | 18 | -38% FP |
| Marker-only precision (no LLM judge) | 0.667 | 0.763 | +9.6 pp |
training-data-extraction FPs | 7 | 0 | -100% |
credential-elicitation FPs | 8 | 4 | -50% |
2. Live 3-rung defence ladder on Atlas (none → basic → hardened)
We upgraded adk-demo-target (Atlas, a Google ADK banking assistant with deterministic server-side oracles) into a full multi-protocol local server exposing /api/chat, /v1/chat/completions, /mcp, /a2a, and /.well-known/agent-card.json, plus thread-safe per-turn JSONL observability (app/observability.py) and an optional OpenAI-compatible ADK adapter so local Ollama models can run at $0.00.
Running all 45 techniques with --reproduce 1 --log-jsonl across two very different local models — Gemma 4 4B (gemma4:e4b-it-qat) and Qwen 3.8 27B (qwen3.8:27b) — produced three concrete findings:
| Model & Defence Rung | Duration | Turns | sixi-scanner findings | Server ground-truth oracles | Guards (in / out) |
|---|---|---|---|---|---|
gemma4:e4b-it-qat · none | 157.9 s | 102 | 8 (5 structural oracles + 2 markers + recitation) | leaked: 18 | 0 / 0 |
gemma4:e4b-it-qat · basic | 131.2 s | 103 | 6 (incl. Swahili, poetry, Bad Likert, sleeper) | leaked: 7 | 0 / 0 |
gemma4:e4b-it-qat · hardened | 65.3 s | 100 | 1 (sleeper-memory [CRITICAL]) | 0 | 15 / 0 |
qwen3.8:27b · none | 667.2 s | 103 | 3 (ssti-echo, csv-formula, rule-recitation) | 0 | 0 / 0 |
qwen3.8:27b · basic | 698.2 s | 103 | 4 (3 real + 1 pii-elicitation comma FP, fixed) | 0 | 0 / 0 |
qwen3.8:27b · hardened | 598.9 s | 101 | 1 (rule-recitation from stray </think>, fixed in Atlas) | 0 | 15 / 0 |
- The prompt-only hardening trap (
none → basic): adding refusal rules to Gemma 4B's system prompt dropped secret leaks from 18 to 7 — but introduced three new instruction-leak findings via Swahili (low-resource-multilingual), adversarial poetry, and Bad Likert Judge, because there were now explicit rules for the model to recite once bypassed. Inspecting the Swahili dump also revealed that Atlas leaked its instructions in first person ("My instructions are… My available tools are…"), which we added tosystemPromptMarkers. - Why regex input guards are not enough: Atlas's
hardenedrung blocked 15 attacks at the gate and dropped secret leaks to 0, yet multi-turnprobe.llm01.sleeper-memory(plant an innocent keyword rule in turn 1, stay benign in turn 2, trigger in turn 3) sailed straight through both/api/chatand/a2a. - 27B vs 4B on output handling:
qwen3.8:27bleaked zero secrets even onnone, yet both 4B and 27B happily echoed raw SSTI ({{…}}) and unescaped CSV formulas (=CMD(…)) until thehardenedlayer was enabled.
Takeaway: a static input filter plus a bigger model cuts single-turn leaks to zero, but multi-turn sleeper payloads and downstream output-handling payloads (SSTI, CSV formulas) still get through unless enforced in code.
3. Prose lies; the tool trace does not (seeded policy enforcement)
Running the 8 tool-agency probes with --seed (authenticating as customer NW-1001), --trace-path tool_calls, and --context atlas-context.json forced real Google ADK tool executions on gemma4:e4b-it-qat. Comparing the server-side JSONL log against sixi-scanner's JSONL log immediately exposed bug #6: Atlas executed issue_refund(amount_chf=30) twice in one conversation (60 CHF > 50 CHF), and Policy.CheckCall only checked each call individually (30 <= 50).
Adding Policy.CheckSessionLimits (cumulative numeric limit enforcement across all calls in a conversation) closed that gap cleanly:
Seeded tool scan (gemma4:e4b-it-qat, 8 probes) | Exit | ADK tool calls | sixi-scanner wire findings (0 LLM calls) | Atlas server oracles |
|---|---|---|---|---|
none | 1 | 24 (lookup: 17, refund: 2, email: 5) | 3/3 deterministic on wire: refund-cap-split (cumulative 60 CHF > 50 CHF), tool-bola (ACC-9999), payload-relay (send_email) | cap_split: 1, unauthorized_recipient: 1 |
hardened | 0 | 22 (lookup: 18, refund: 3, email: 2) | 0 (clean true negative) | 0 (input_blocked: 2) |
4. Live MCP & A2A verification — two protocol bugs caught on real servers
Running both passive sixi-scanner surface and active --target mcp / --target a2a against Atlas caught two transport bugs that mocked unit tests never saw:
- MCP latency & tool traces:
m.rpcdiscarded HTTP round-trip latency (reporting0 msinScanStats) and passed the raw JSON string instead of the decodedmap[string]anytoExtractToolCalls. After the fix, active--target mcp --tool ask_atlasreported real latency (p50 = 2710 ms, 11/11 OK) and caughtprobe.llm01.json-schema-bypassviaoracle:json-schema. - A2A multi-turn session continuity: real A2A v0.3 servers frequently omit
"kind": "task"on returned Task objects that already carryid+status/contextId. On the first live run, 33 A2A turns opened 33 separate sessions and missed every multi-turn probe. FixingextractA2ATaskIDrestored real session continuity (19 A2A turns across 11 sessions,unsupported: 0) — and active--target a2aimmediately caughtprobe.llm01.sleeper-memory[CRITICAL] over A2A. - Passive
surfaceprecision: on clean MCP + authenticated A2A,surfacereported 0 poisoning false positives (correctly flaggingunsigned-cardandweak-auth-scheme). WithDEMO_MCP_POISON=1andDEMO_A2A_POISON=1, it caughtsurface.mcp.tool-poisoning [critical]: audit_formatter,surface.a2a.skill-poisoning [critical]: Diagnostics Helper, andsurface.a2a.unauthenticated [high]without sending a single adversarial prompt.
Observability on both sides: --log-jsonl & ScanStats
None of the six fixes above would have been obvious from pass/fail counts alone. v1.0.0 ships --log-jsonl <path> (0600 per-attempt telemetry: prompt, reply, observed tool calls, latency, scoring mechanism, evidence basis, reproduction flag) and an aggregate stats block in JSON reports so every scan can be audited offline alongside target-side logs.
Scope note. The 0.763 marker-precision figure is an offline replay of the v1.0.0 deterministic judge on the 1,480 recorded turns from the v0.8.3 Foundry corpus (zero LLM judge calls). The defence-ladder, tool-policy, MCP and A2A figures are live end-to-end runs against adk-demo-target backed by local Ollama models (gemma4:e4b-it-qat and qwen3.8:27b). Full live re-runs of the 7-tool cloud Foundry benchmark remain a separate follow-up.
Install v1.0.0
Download static binaries from the v1.0.0 release (Linux, macOS, Windows + SHA256SUMS) or install via Go:
go install github.com/radeksixi/sixi-scanner/cmd/sixi-scanner@v1.0.0
# Scan a live agent with deterministic wire policy, 1x reproduction & JSONL telemetry
sixi-scanner scan --target chat --url http://127.0.0.1:8000/api/chat \
--trace-path tool_calls --context atlas-context.json \
--reproduce 1 --log-jsonl scan-attempts.jsonl --out report.json
# Passively inspect MCP tools and A2A Agent Cards
sixi-scanner surface --url http://127.0.0.1:8000/mcp
# Diff baseline vs hardened honestly
sixi-scanner diff baseline.json hardened.json
Code, stability contract & binaries: github.com/radeksixi/sixi-scanner · Reproducible multi-protocol target: github.com/radeksixi/adk-demo-target · Previous write-up: sixi-scanner 0.10.