The Code/X ArchiveView on X
JD Pruett

@jdpruettt

80-90% of major "AI incidents" that cause real harm have no attacker, just an agent tripping up on a poor codebase.

i turned the latest research into into a prompt that checks your setup for the most common causes. Hand it to your agent ->

github.com/jdpru/cover-yo…
Image from the post
47741.2K3K
JD Pruett

@jdpruettt

this kind of audit likely would have avoided:

• Replit's agent ignores a code freeze → production database wiped
• OpenAI agent enters Australia's Medicare portals → government investigation
• Amazon's Kiro rebuilds a live AWS environment → 13-hour outage
• Claude Cowork tidies a desktop → 15 years of family photos deleted
425832
JD Pruett

@jdpruettt

key things it checks for are
- dev configs pointing at prod db
- readable admin credentials by agent
- infra with no deletion protection
- text rules without codification
- auto-approve modes that agent doesn't load
- money or message tools with no cap
- delete commands whose target comes from a variable or glob
- unprotected push and publish rights
124229
End of thread