More Hanselminutes with Scott Hanselman episodes

AI and the Software Supply Chain with Endor Lab's Varun Badhwar thumbnail

AI and the Software Supply Chain with Endor Lab's Varun Badhwar

Published 30 Jul 2026

Duration: 00:31:46

"Software development faces growing security risks from AI-generated code, open-source dependencies, and citizen developers, demanding zero-trust environments, early security integration, and hybrid AI-driven defenses to combat rapid exploitation and supply chain threats."

Episode Description

Varun Badhwar, CEO and Co-Founder of Endor Labs, joins Scott to explore the expanding software supply chain risk in the age of AI-generated code. They...

Overview

The podcast discusses the growing security challenges associated with AI-generated code and the modern software supply chain. As developers increasingly rely on AI and open-source components, the risks of introducing vulnerabilities have intensified. AI models, trained on vast repositories of existing code - including insecure examples - often produce flawed or average-quality code, with studies suggesting 60% to 80% of AI-generated code may be insecure. The discussion emphasizes that trust in AI-generated code should mirror caution around untrusted open-source software, requiring rigorous vetting and integration of security early in the development lifecycle.

With the software development landscape evolving into a complex web of dependencies, abstractions, and AI agents, traditional security practices are no longer sufficient. The expanding attack surface includes developer workstations, which are now prime targets for fast, automated "smash-and-grab" attacks that exploit credentials and misconfigurations within seconds. To combat these threats, the conversation advocates for a zero-trust approach in development environments, hybrid security models combining static analysis with AI, and embedding security intelligence directly into agentic workflows. Initiatives like Project Acridis highlight industry efforts to address deep-rooted open-source vulnerabilities, while the need for automation, collaboration, and continuous improvement underscores the path toward more secure software despite the impossibility of achieving perfect security.

What If

  • What if you treated every AI-generated code suggestion as a third-party dependency requiring pre-PR vetting?

    • Move: Integrate a lightweight static analysis tool into your local development environment (e.g., using Semgrep or CodeQL CLI) to scan AI-generated code snippets before committing. Automate this via a Git pre-commit hook that blocks commits unless checks pass.
    • Why Now?: AI coding assistants are accelerating code output, but 60 - 80% of generated code may be insecure; the cost of fixing vulnerabilities post-merge is 5x higher than catching them pre-PR.
    • Expected Upside: Reduce security debt accumulation by 70%+ in solo projects, avoid introducing CVEs from hallucinated or insecure patterns, and maintain audit-ready hygiene for future scaling.
  • What if you simulated a smash-and-grab attack on your own dev environment to expose credential leakage risks?

    • Move: Run a controlled test by temporarily logging all outbound network requests from your workstation during a typical npm install or pip install session using tools like Little Snitch or Wireshark. Identify any packages making unexpected external calls.
    • Why Now?: Attackers now weaponize vulnerabilities within 10 hours of disclosure - your local machine is a high-value target with direct access to repos, cloud keys, and CI systems.
    • Expected Upside: Uncover hidden telemetry or malicious behavior in dependencies before deployment; establish personal baselines for safe package installation and reduce risk of real-time credential exfiltration.
  • What if you built a hybrid security gate for your CI pipeline using static analysis + targeted LLM review only on changed files?

    • Move: Configure your GitHub Actions or GitLab CI to run fast deterministic static analysis first (e.g., Bandit, ESLint security plugins), then trigger an LLM-based review only if high-risk patterns (e.g., eval, exec, env var usage) are detected - using a fine-tuned model trained on CVE data.
    • Why Now?: Pure AI scans cost up to $1M/month at scale and take 20 - 30 minutes per PR - prohibitively slow and expensive for sustained use without triage logic.
    • Expected Upside: Cut AI token costs by 90%, reduce false positives, achieve sub-2-minute feedback loops, and focus computational spend where it matters most: high-risk changes.

Takeaway

  • Audit and validate all AI-generated code using static analysis tools before integration, treating it like untrusted open-source dependencies.
  • Implement pre-PR security checks in CI/CD pipelines to catch vulnerabilities early, reducing remediation time and avoiding security bottlenecks.
  • Adopt a zero-trust mindset for development environments by minimizing developer workstation privileges and securing access to credentials and repositories.
  • Combine static analysis with AI-based tools in a hybrid security approach to improve detection accuracy and reduce scan costs and latency.
  • Integrate security into agentic workflows by using AI agents that prevent insecure code generation rather than relying solely on post-hoc vulnerability scanning.

Recent Episodes of Hanselminutes with Scott Hanselman

18 Jun 2026 The space between the Commits with Zed and DeltaDB's Nathan Sobo

The text critiques the dominance of monocultures in tech tools like Chromium and Electron, highlights the limitations of web-based IDEs, introduces ZED as a native alternative, and presents Delta DB, a version control system that tracks granular development processes for real-time collaboration and privacy-focused code evolution.

11 Jun 2026 Braille Is Freedom with Bristol Braille's Ed Rogers

Braille's declining literacy, tactile advantages over screen readers for precision and numeracy, and modern open-source innovations like the Canute Console face ongoing challenges of cost, complex data access, and integration with digital tools, emphasizing the need for community-driven solutions to sustain tactile accessibility.

4 Jun 2026 "Observabilitying" the Future of Software with Charity Majors

The text explores the shift in observability from fragmented metrics to unified trace data, emphasizing telemetry as a product feature, scalable debugging tools like OpenTelemetry, challenges in DevOps and AI's role, and key themes like communication, real-world testing, and product-driven observability practices.

More Hanselminutes with Scott Hanselman episodes