How Ward is measured

Every number here comes from a run in the repository, with its raw data. Results that look bad for Ward stay in.

Real security fixes (held-out set)

20 security fixes from open-source Android apps. Each app is checked out at the commit just before its fix, and Ward runs on it. Strict means Ward marks the fixed problem FAIL. Lenient means a finding near the fixed code describes the problem, with any verdict. Decoys are planted look-alikes: code that seems risky but is fine.

Ward 1.0 free checkAgent hunts (2.0 baseline)
Found, strict5 of 205 of 20
Found, lenient9 of 208 of 20
Decoys flagged00
Wrong citations0 of 5160 of 809
Time and cost, all 20under 30 s, $0over 2 h, $46 API-equivalent
Read the 5 of 20 with care. Ward's last three checks (version variables in build files, FileProvider paths, WebView debugging) were written after studying cases HO-10, HO-20 and HO-24, so those three go up by construction. Eight cases nobody has looked at are kept for a fair test. With 20 cases, a found rate is uncertain by about ±22 points.

Why the agent isn't in 1.0: it found the same number of real bugs strictly, at about $2.40 and 7 minutes a check. Ward 2.0 brings it back only if focused hunts find at least 2 of those 8 unseen cases beyond the free check, with no wrong citations.

CaseThe fixed problemKindWard 1.0 free checkAgent (2.0 baseline)Trace
HO-01Widget authentication activity exported to other apps
home-assistant/android fix 30a56b9
configfound (lenient)found (lenient)14 findings
HO-02Certificate trust dialog exported from a library module
tasks/tasks fix 79b084e
configfound (lenient)found (strict)11 findings
HO-03Exported main activity runs widget connect actions sent by any app
ProtonVPN/android-app fix 55970e0
absencemissedfound (lenient)7 findings
HO-04jackson-core 2.20.1 with known advisories
nextcloud/talk-android fix baf4f18
dependencyfound (strict)found (strict)10 findings
HO-05Path traversal in the CalDAV task cache
tasks/tasks fix ed52e58
codemissedmissed11 findings
HO-06Icon pack import can write outside its directory (zip path traversal)
beemdevelopment/Aegis fix f4e599e
codemissedmissed7 findings
HO-07Account credentials sent to look-alike hosts (URL prefix check)
nextcloud/talk-android fix 848ecda
codemissedmissed10 findings
HO-08Backup and plaintext export folders lack .nomedia, so media scanners index them
signalapp/Signal-Android fix 5dd9386
absencemissedmissed10 findings
HO-09Backup enabled; app files (documents, photos, models) not excluded
JMAN730/opendroid fix b83315c
configfound (lenient)found (strict)11 findings
HO-10WebView contents debugging enabled in release builds
itkach/aard2-android fix 25c5d23
configfound (strict)missed2 findings
HO-13Shared file's DISPLAY_NAME used as a cache path (path traversal on import)
ankidroid/Anki-Android fix 5bb5a82
codemissedmissed14 findings
HO-14Crash reports attach logcat even when the exception was sanitised for personal data
ankidroid/Anki-Android fix 1349d37
absencemissedmissed14 findings
HO-15Back gesture closes the passcode or pattern lock screen (app lock bypass)
owncloud/android fix 1123728
codemissedmissed10 findings
HO-17Privileged JS bridges check webView.url, which can be a pending navigation, not the calling page
duckduckgo/Android fix 6eff8db
codemissedmissed9 findings
HO-18Exported StartupActivity starts an Intent taken from its own extras (intent redirection)
mycelium-com/wallet-android fix 8e5a417
codemissedfound (strict)6 findings
HO-19Logged exception prints the nostrconnect:// address with its pairing secret
vitorpamplona/amethyst fix c8caff1
codemissedmissed8 findings
HO-20FileProvider shares all of external storage (external-path ".")
home-assistant/android fix 5eb016f
configfound (strict)missed14 findings
HO-23Exported ShortcutActivity shares diagnostic logs on any app's intent, without confirmation
protonpass/android-pass fix 893ed89
absencefound (lenient)found (lenient)4 findings
HO-24jsoup 1.18.3 with known advisories (GHSA-pmhh-3w7g-xqp8, GHSA-65r4-943x-97jj)
M66B/FairEmail fix 9b12685
dependencyfound (strict)missed11 findings
HO-25jsoup 1.22.2 with a known advisory (GHSA-pmhh-3w7g-xqp8)
element-hq/element-x-android fix df925c2
dependencyfound (strict)found (strict)9 findings

Raw data: evals/results/held-out. Each trace is the run folder: findings.json (what Ward reported, with file:line) and grades.json (how each finding was scored). Labels were set by Claude; the caveats are in the measurements log. Full transcripts of the agent runs stay local.

Example app with planted issues

A small Android app with 23 planted issues, and a clean twin without them. This was the starting point: Claude Code alone already found 21.7 of 23 on average (3 runs, precision 97%), and adding a plain MASVS checklist skill or OWASP's own skills changed nothing measurable. That is why Ward doesn't try to find more bugs. It aims at a report you can trust: a verdict for every control, exact facts, and a plain list of what wasn't checked.

On the same app, Ward 1.0's free check flags 8 problems as FAIL with file:line (16 failing checks). Each is a planted issue, 8 of the 23; no decoy is marked FAIL, and the clean twin gets no FAIL at all. Every other check gets a status: no finding, manual, needs a running app, to review or N/A. Open that report.

80 developer questions with known right answers. Ward's tuned keyword search (BM25) puts the right MASVS, MASTG or MASWE entry in the top 5 for 93.8% of them (MRR 0.811). Adding vector search raised that only to 96.3%, so Ward ships keyword search alone. No search could tell "nothing relevant" questions apart. Try it.

Limits

  • 20 cases, one run each, one model (Sonnet 5.5) for the agent arm.
  • Plain-code checks see config, dependencies and a few code patterns. Most code-level bugs (8 of the 20 cases) need a person or a running app.
  • Ward never runs your app. Dynamic checks are listed with the MASTG test to run.

The full log of every measurement is in docs/measurements.md.