Radek Brus

sixi-scanner 1.0: six real bugs caught on live agents, MCP & A2A, and zero-LLM precision jumping from 0.667 to 0.763

Radek Brus · 19 November 2026 · sixi-scanner v1.0.0

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:

Zero-LLM marker precision on 1,480 Microsoft Foundry turns: v0.10.0 at 66.7% (58 TP, 29 FP) vs v1.0.0 at 76.3% (58 TP, 18 FP, +9.6 percentage points, -38% false positives, zero recall loss). training-data-extraction false positives drop 7 to 0; credential-elicitation false positives drop 8 to 4.
Foundry 1,480-turn offline replay (0 LLM calls)v0.10.0v1.0.0Delta
Marker-level candidates8776-11
True positives58580 recall loss (30/61 = 0.492)
False positives2918-38% FP
Marker-only precision (no LLM judge)0.6670.763+9.6 pp
training-data-extraction FPs70-100%
credential-elicitation FPs84-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:

Live 3-rung defence ladder on Atlas with Gemma 4 4B on local Ollama: none has 18 server secret leaks and 8 sixi-scanner findings (157.9 s); basic drops leaks to 7 and findings to 6 while opening Swahili, poetry and Bad Likert leaks (131.2 s); hardened blocks 15 inputs and drops secret leaks to 0 (65.3 s), leaving 1 critical finding: multi-turn sleeper-memory.
Model & Defence RungDurationTurnssixi-scanner findingsServer ground-truth oraclesGuards (in / out)
gemma4:e4b-it-qat · none157.9 s1028 (5 structural oracles + 2 markers + recitation)leaked: 180 / 0
gemma4:e4b-it-qat · basic131.2 s1036 (incl. Swahili, poetry, Bad Likert, sleeper)leaked: 70 / 0
gemma4:e4b-it-qat · hardened65.3 s1001 (sleeper-memory [CRITICAL])015 / 0
qwen3.8:27b · none667.2 s1033 (ssti-echo, csv-formula, rule-recitation)00 / 0
qwen3.8:27b · basic698.2 s1034 (3 real + 1 pii-elicitation comma FP, fixed)00 / 0
qwen3.8:27b · hardened598.9 s1011 (rule-recitation from stray </think>, fixed in Atlas)015 / 0

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:

Left: seeded tool-call policy scan on Atlas (Gemma 4 4B, 0 LLM judge calls) catching refund-cap-split (30 + 30 = 60 CHF > 50 CHF), tool-bola (ACC-9999), and payload-relay on none (24 tool calls), while exiting 0 with zero false positives on hardened (22 tool calls). Right: live MCP and A2A suite showing 0 poisoning false positives on clean surface, 3/3 caught on poisoned surface, active MCP catching json-schema-bypass at p50 2.71 s, and active A2A maintaining 19 turns across 11 sessions and catching sleeper-memory.
Seeded tool scan (gemma4:e4b-it-qat, 8 probes)ExitADK tool callssixi-scanner wire findings (0 LLM calls)Atlas server oracles
none124 (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
hardened022 (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:

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.