WhoBuilt

Using LLMs to Secure Source Code

Jul 17, 2026· 22 min· 661 views·Watch on YouTube

Speaker

Eugene Yan, a member of technical staff at Anthropic, shares lessons from working with security teams and Claude to find and fix software vulnerabilities.

Models are finding more vulnerabilities

Yan says cybersecurity models are improving at longer, more complex tasks. He points to Firefox fixing about 20 security bugs per month on average in 2025, then 400 in April, with about two-thirds attributed to Claude Mythos Preview. Anthropic scanned over 1,000 open-source repositories and reported 1,600 findings to maintainers, shifting the bottleneck toward verification, triage, and patching.

Set up context and a safe sandbox

Yan describes a six-step process, beginning with a threat model and an isolated, reproducible sandbox. A threat model records assets, entry points, likely threats, and system context that may be missing from the code. For an order service, the sandbox includes the app, Postgres, and Redis, while the security agent probes the app from outside the target boundary.

Find and verify vulnerabilities

For discovery, Yan recommends giving models relevant code and system context, keeping prompts simple, and providing tools to query APIs, inspect logs, and read source. He separates discovery, which aims for recall, from verification, which aims for precision. An independent verifier can try to reproduce a finding in a fresh container, such as confirming that a SQL injection exposes customer data.

Prioritize findings and close the patch loop

Yan says teams should deduplicate findings and rank them by exploit impact and likelihood, using business context such as firewalls, internal-only access, and sensitive data. After patching, agents can check that the proof of concept no longer works, the test suite still passes, and a fresh discovery agent cannot exploit the fix. A human reviews the patch before it is merged.

Prepare teams for the organizational bottlenecks

Yan says engineering capacity and compute can grow with demand, while human attention does not. Teams need shared severity rules, documented threat models, and a clear way to route findings to code or service owners. He recommends starting with open-source dependencies, working interactively with an AI coding tool, and building toward automation as teams learn where context and precision fall short.

Takeaways

  • Document system context and threat models so agents can judge which findings matter.
  • Run security agents in isolated, reproducible environments without production credentials or network egress.
  • Keep discovery and verification separate, and ask an independent agent to reproduce findings.
  • Prioritize by business impact and exploit likelihood to protect engineering attention.
  • Validate patches with the original exploit, the test suite, and a fresh attack attempt.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • uses
    “working with security teams and Claude to find and fix vulnerabilities”
    YouTube
    Verified13 sources· Talk, Job posting
  • works at
    Member of Technical Staff
    “I'm Eugene Yan, a member of technical staff at Anthropic.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • metric
    Firefox: Security bug fixes rose to about 400 in April, around 20 times the 2025 monthly average of about 20.
    “in April it increased sevenfold to 400. That means April saw 20 times last year's average.”
    YouTube
    Unverified1 source· Talk
  • metric
    Claude Mythos Preview: Credited with about 271 Firefox security bug fixes, roughly two-thirds of the April total.
    “They attributed about two-thirds of this to Claude Mythos Preview, about 271 bugs.”
    YouTube
    Unverified1 source· Talk
  • metric
    Anthropic: Scanned more than 1,000 open-source repositories; of 23,000 candidates, 6,200 were rated high or critical, 1,600 reported to maintainers, and about 100 patched upstream.
    “Of 23,000 candidates, 6,200 were rated high or critical.”
    YouTube
    Unverified1 source· Talk
  • feature
    late-bound sagas: Combine models and tools to find real bugs and dismiss nonreproducible speculation.
    “These models and harnesses together can find real bugs and dismiss nonreproducible speculation.”
    YouTube
    Unverified1 source· Talk

Related talks