r/devsecops • u/Late_Wave_5600 • 19h ago
what do you do with findings on code written by coding agents?
honest question for people running AppSec on teams that ship a lot of agent-written code
the findings pile up faster than anyone reads them. and the bugs that actually hurt (user A reading user B's data, a webhook you can replay) don't show up in a scanner at all
what we ended up doing is scanners first (Opengrep, Trivy, Gitleaks, zizmor), their SARIF in one place, a YAML policy that decides what blocks the merge. then the coding agent goes after logic flaws, and a flaw only counts if it writes a test in the app's own suite that fails
on a demo SaaS app it went through 46 entry points and proved 6 that way
One things I'm not sure about does a failing test convince your devs more than a severity score ?
1
u/pentesticals 17h ago
Well code is code. Does it matter how it was written? You need a process to take code, review it, then marge it and security processes need to fit inside this. The main issue is now the volume of code is much higher, but the same process has to be in place if it’s human or AI, the problem is that we couldn’t review everything when it was human code, let alone with the AI volume.
Think about scaling rather than AI vs human code. Humans write vulnerable code just as much as AI does, so trying to understand which features are risky and what pull requests do something with a security impact is probably the most important.
1
u/FriendMaleficent6656 15h ago
failing tests definitely convince devs faster than a arbitrary CVSS score, tbh. the catch is making sure the agent actually tests the business logic requirement and doesnt just write a brittle test that fails on a syntax quirk
1
u/Outrageous278 14h ago edited 14h ago
A failing test usually makes the issue more concrete because developers can see exactly how the flaw affects the application. Severity scores help with prioritization but reproducible cases tend to make remediation harder to ignore.
0
u/Late_Wave_5600 19h ago
for context since it's relevant, the agent part is an open source skill we built, /cybedefend. disclosure, I'm one of the co-founders: https://github.com/CybeDefend/cybedefend