Looking for code that should not be reachable

Anthropic has published research by Chris Rohlf of its Frontier Red Team describing a different use for a coding model: not finding bugs, but finding code that an attacker can reach before they should be able to, and then shutting that path.

Claude went through 25 open-source projects — over five million lines of C, C++, Java, PHP and Python, grouped as 10 public, 11 gated and 4 private services. It reported 493 issues and inventoried more than 17,000 configuration options, of which 3,842 were security-relevant.

The method has three parts: code reachable in a default configuration that no default functionality needs; pairs of options that are each reasonable alone and break a security property together; and sensitive code that runs before authentication or before a protocol state check.

What turned up in the gated projects

All eleven gated projects had unintentionally reachable code. Anthropic counts 93 unnecessary pre-authentication surfaces in default configurations, 37 locations that executed or recorded state before authentication, and 61 option combinations that silently weakened a pre-authentication control.

A network patch panel with coloured cables
Illustration: the findings concern what an unauthenticated client can reach over the network. Stock photograph, not a system described in the research. Brett Sayles · pexels · Pexels License

Across the configuration-interaction findings, 162 security-sensitive combinations were accepted with no warning and no documentation, and in 94 of those a security control was silently switched off. Four unrelated projects shared the same fail-open pattern: hostname-based deny rules that never fired when reverse DNS lookups were disabled, because the server compared the hostname pattern against an IP address. In one project, a conflict between configuration options dropped a required client-certificate check, letting unauthenticated clients reach request handling. That conflict, Anthropic says, had existed for 21 years.

The OpenSSH case

The worked example is OpenSSH 10.4, where Claude found roughly 4,500 lines of experimental ML-DSA-44 post-quantum signature code that unauthenticated clients could reach in the default configuration — even when the algorithm was excluded. Anthropic puts that at about 16% of the pre-authentication code in a default sshd.

The team reported it with patches, and release 10.5 moved the check before parsing. Claude then found two gaps in that fix: the check trusted the algorithm name the client advertised rather than the key type inside the blob, and certificate CA signature verification was not gated. The team built a proof of concept and worked with maintainers on a fix placing the checks inside the parser. It removed roughly a fifth of the code an unauthenticated client can reach, and shipped in 10.6.

A heavy door with several deadbolts
Illustration: the OpenSSH fix moved the check inside the parser. Stock photograph, used as an illustration only. Robert So · pexels · Pexels License

What the write-up does not say

Anthropic has packaged the method as a Claude skill — three passes, each starting from a fresh context window, with findings confirmed by dynamic traces and default-configuration gates required to pass the project’s own test suites with identical results. Non-default changes are left to a human. The company says it is working to integrate the skill into OSS-Scanner.

The post describes itself as initial research, and several things are missing from it. There is no false-positive rate. It does not say how many of the 493 issues were confirmed exploitable, and it notes that the gated-project findings were not immediately exploitable on their own. There is nothing on cost or runtime. Those are the numbers that would tell a maintainer whether to point this at their own repository, and they are the ones to watch for when the OSS-Scanner integration lands.