Claude found 493 security flaws in 25 open-source projects without fixing a single bug
Using Claude to reduce the attack surface of code
Anthropic researchers ran Claude over 25 open-source projects—over five million lines of C, C++, Java, PHP, and Python—to map reachable code and flag unnecessary exposure. The model surfaced 493 issues, including 162 dangerous configuration combinations and 93 pre-authentication surfaces in gated projects. In OpenSSH, it traced 4,500 lines of post-quantum signature code reachable by unauthenticated clients, leading to a fix that removed roughly a fifth of the daemon's pre-auth attack surface.
Minimizing codebases' attack surface results in better security without ever having to find or fix an individual vulnerability.
- ethin
I would believe Anthropic about how Claude reduces attack surfaces if they weren't simultaneously nannying everyone about how they supposedly don't want their models used for cybersecurity because... Reasons. And if you do want that access, you have to verify your identity, and do a bunch of other things, all of which goes against "reducing" the "attack surface". If they really gave a damn about cybersecurity, this cybersecurity filter wouldn't exist, period.
- StilesCrisis
> leaving a features behavior undefined
Missing an apostrophe? A human wrote this! Love to see it.
- mentalgear
There is really just one way this goes and its upwards to the peak: which means full formal verification programming languages, OS uni-kernels, small TCB and probably verified HW for the most sensitive cases. Everything else will soon be hackable via 'brute compute' because economy of scale and accessibility of open weight models.
- jph
I'm doing this attack surface tactic with Vix IDE, a terminal text editor that helps novices get comfortable with vi, emacs, git, jj, sql, commands, and more.
The prompt I used was "Goal: rework to reduce the attack surface. Process: move features into feature-flag Rust crates. Output: build a minimal version. Questions: Ask me anything."
This past weekend, Claude Fable/Opus/Sonnet together successfully refactored the whole Vix IDE codebase into many separate Rust crates and Cargo features.
This refactor enables a security-oriented user to pick and choose, and also makes it easier for a security auditor to look at one capability at a time.
If you're curious you can see the commit messages by Claude Sonnet. IMHO they're reasonably good.
- Marcom07
Nice article! Thanks for sharing.