dyb

The 62 Percent: What Defenders Do Next

אִם יִרְצֶה הַשֵּׁם

י״ט חֶשְׁוָן תשפ״ז

Daniyel Yaacov Bilar, Chokmah LLC ORCID: 0000-0002-9040-6914

The earlier post showed that Veracode's 62% headline does not reconcile with its own language breakdown: the four language rates average 52.94%. This addendum is the to-do list. Even the honest reading is bad enough to act on: the best models pass 73% of simple, unguided tasks, the floor is 44%.

Start with the table. A pass means Veracode's scanner did not flag the targeted flaw, so a high pass rate is good and urgency runs the other way: the lower the number, the sooner you deal with it.

Urgency Target Pass rate Failure rate
1 Log injection (CWE-117) 12.6% 87.4%
2 XSS (CWE-80) 18% 82%
3 Java 31.00% 69%
4 JavaScript 56.99% 43%
5 C# 59.55% 40.45%
6 Python 64.22% 35.78%
7 SQL injection (CWE-89) 83.7% 16.3%
8 Weak crypto (CWE-327) 87.4% 12.6%

The flaw-class rows come from Fall report coverage and may pool editions; the language rows are the October release's own. The worst spot is where the rows cross, Java code handling logging or user output, and the study publishes no per-cell rate for it. Every axis points the same way anyway.

Gate the pipeline, not the model

Every model fails at least a quarter of these tasks. Model choice moves the failure rate between roughly 27% and 56%; it never removes it, so the control sits downstream.

  1. Inventory where AI code enters (IDE assistants, agents, chat paste-ins), and in the same pass block floor and prior-generation models in the tools you manage. The table spans 44% to 73%, and one generation can jump 18 points (Qwen 3.7-Max 50% to 3.8-Max 68%).
  2. Put a scanner in CI on every pull request, on the full diff. Paste-ins carry no AI flag, so diff-wide scanning is the only version that sees them. Use the SAST you already own, and it must scan a diff fast: a 20-minute scan gets routed around.
  3. Run warn-only for two weeks and baseline all pull requests. Paste-ins are invisible, so any "AI-touched" denominator is fiction, and vendor numbers are not your rate.
  4. Then block on high-severity findings in the four tested classes only; the rest stay warnings. Ship the prompt block and lint rules below during the baseline, not after it. Exceptions need a named approver and a 30-day expiry.
  5. Judge it by findings reaching the default branch per 100 pull requests. Not falling within a quarter means the gate is decoration.

Spend review where the failures concentrate

  1. Aim human review at the top of the table. SQL injection and weak crypto already pass 83.7% and 87.4% unguided; XSS and log injection pass 18% and 12.6%.
  2. Route the high-risk paths to named reviewers through CODEOWNERS: Java services, template directories, shared logging libraries. Use trained security champions inside the feature teams, or the central team becomes the bottleneck.
  3. Give reviewers a four-item checklist in the pull request template: input encoded at the output point; logging parameterized or structured, never concatenated with user data; queries parameterized; standard-library crypto only. Most of the time goes to the first two.
  4. Let lint ban what it can decide (concatenated SQL, raw log calls), and be plain about what it cannot: log injection travels through several functions to a logging sink (Veracode's Chris Wysopal, in TechTarget's coverage), so the real control is a central logging wrapper that encodes CR/LF by default. Each month, hand-check 10 to 20 merged pull requests on these paths; that escape rate is your real number.

Prompt for security on purpose

The study publishes no prompted pass rate, so the size of the prompting effect is unknown. This section therefore ends in a measurement, not a claim.

  1. Framework defaults first: autoescaping templates on, ORM query builders, structured logging. Models improved on XSS largely by adopting safer defaults (Wysopal again), so give them only safe defaults to adopt.
  2. One house prompt block in every assistant and agent config: parameterized queries; encode user input at output with the framework's escaping; structured logging only, never concatenate user data into log lines; current standard-library crypto only; never build HTML or SQL by concatenation.
  3. Agents run the diff scanner before a task counts as done, with at most two fix passes; a finding that survives both goes to a human.
  4. Price it yourself: 10 tasks your team actually assigns, run bare and then with the block, scanned the same way. Re-run at every model change, same tasks and scanner. That matched pair beats any vendor leaderboard.

The order is the argument: the gate catches everything and sets the yardstick, review spends scarce human attention on the classes that pass 12 to 18% of the time, and prompting lowers the volume the first two must handle.

Buy the verification layer, aim it at data-flow flaws and Java, prompt for security on purpose, and never let an unreconciled average set your posture.

← Previous
○ Ricky polyglot software developer
Next →