Eugene Yan Explains LLM Source-Code Security

AI Engineer21m 30s
Eugene Yan in a blue shirt beside the blue and white headline “AI FINDS CODE FLAWS” on a black background.
0 comments · 0 votesOpen discussionClose discussion
Sign in to join the discussion

    Eugene Yan argues that improved model capabilities shift the bottleneck in code security from finding possible vulnerabilities to deciding which findings are real, important and safely fixable. He presents six stages: threat modeling, sandbox preparation, discovery, verification, triage and patching. The threat model supplies business context, while a reproducible sandboxAn AI agent sandbox is an isolated execution environment that limits which files, processes, networks, credentials, and external systems an agent can access. provides isolation without production credentials or unrestricted access.

    Eugene Yan illustrates the workflow with a hypothetical order service containing SQL injection. Discovery seeks high recall; a separate adversarial verification agentIndependent evaluation assesses a system through reviewers whose judgment is sufficiently separate from the organization developing or promoting it. receives the finding without the discovery agent's reasoning and tries to disprove it or reproduce an exploit. Triage then accounts for severity, exposure, compensating controlsRisk assessment identifies possible harms and evaluates their likelihood and severity under defined conditions. and sensitive data rather than treating every technically valid finding as equally urgent.

    Eugene Yan describes patch validationSecurity testing checks whether software controls protect systems and information in defined scenarios. through a failing original exploit, passing existing tests and fresh attempts to attack the patched code, followed by human approval before mergingHuman-in-the-loop AI keeps a person involved in reviewing, correcting, approving, or guiding an AI system's work.. He also emphasizes organizational constraints: routing findings to owners, agreeing on severity definitions and scaling patch-review capacity. He recommends starting interactively with familiar code rather than assuming fully autonomous remediation.

    Original YouTube thumbnailWatch on YouTube

    Video topic coverage

    • Agents & workflows100
    • Coding & tools100
    • Models & learning10
    • Infrastructure & compute25
    • Research & evaluation75
    • Safety & security100
    • Business & productivity50
    • Creative & media0
    • Robotics & perception0
    • Society & policy0

    Share this video

    Eugene Yan in a blue shirt beside the blue and white headline “AI FINDS CODE FLAWS” on a black background. With WWW.ARTIFICIAL-INTELLIGENCE.VIDEO, 17 July 2026 and duration 21m 30s.

    Eugene Yan explains why AI-assisted code security needs threat models, isolated sandboxes and separate discovery, verification, triage and patching stages rather than more scanning alone.