DevSec Station
DevSec Station is a security focused podcast for software developers who want to create amazing applications. Hosted by Tanya Janca, also known as SheHacksPurple, these short lessons will help you level up.
What Is an AI Agent Harness, and Can It Actually Keep an Agent Safe?
Your AI coding agent can read files, execute commands, modify code, and run tests. But how does it actually do all of that? And what prevents it from doing something dangerous?
Meet the AI agent harness: the software that connects an AI model to its tools, manages its workflow, and turns its decisions into actions.
In this episode of DevSec Station, Tanya Janca (SheHacksPurple) explains how AI agent harnesses work, what security controls they might provide, and why having a harness doesn't automatically make an AI agent secure.
We'll...
Let's Threat Model an AI Agent Escape
What happens when an AI agent crosses a security boundary it was supposed to respect? How do we prevent an agent from accessing unauthorized systems, exposing secrets, or finding an unexpected path into production?
In this episode of DevSec Station, Tanya Janca (SheHacksPurple) walks through how to threat model an AI agent escape using Adam Shostack's four simple threat modeling questions:
What are we doing?What could go wrong?What are we going to do about it?Did we do a good job?Using a fictional AI...
What Permissions Should You Give an AI Agent?
Your AI agent can read files, execute commands, install software, connect to external services, and maybe even deploy to production. But should it have permission to do all of those things?
In Season 2, Episode 3 of DevSec Station, Tanya Janca (SheHacksPurple) explores one of the most important principles in AI agent security: least privilege.
After Claude unexpectedly published, executed, and scheduled Tanya's little "Hello Queen" application, she started asking some serious questions about what AI agents should actually be allowed to do.
In this episode, we cover:
Permissions vs. instructions:<...Special Bulletin: PHP2Shell, Critical PHP Vulnerabilities Developers Need to Know About
Two critical PHP vulnerabilities have been disclosed, and even applications written with secure coding practices may be affected.
In this special bulletin of DevSec Station, Tanya Janca (SheHacksPurple) explains PHP2Shell, why vulnerabilities in the underlying PHP runtime can put otherwise secure applications at risk, and what developers and organizations should do to protect their systems.
In this episode, we cover:
Why secure application code alone cannot protect against vulnerabilities in the underlying runtimeWhat developers and operations teams should check in their PHP environmentsWhy patching, rebuilding containers, and redeploying applications matterWhy a web application...What Can Your AI Agent Actually Do?
I asked Claude to build me a little application that would greet me every morning.
Nothing complicated. Just say hello, call me a Queen, give me a compliment, and share an inspirational quote. Cute, right?
Except Claude didn't just write the code.
It built the application, published it, executed it, scheduled it to run on my computer, and connected it to an external API I hadn't vetted.
But... I hadn't explicitly asked it to do all those things.
And the application was missing some rather important...
Your AI Worked 59 Times. What About the 60th?
What happens when your AI assistant does exactly what you expect 59 times... and then does something completely bananas on the 60th?
While teaching a secure coding class, I watched nearly 60 students use the same AI assistant, programming language, and prompts. For 59 of them, everything went as expected.
But one student's AI-generated Python code included instructions to suppress linting checks, followed by code that leaked secrets to an external file.
The AI hadn't escaped a sandbox. It wasn't even an agent. It was simply generating code within the boundaries we'd given it.
...
Security Requirements: What They Are and How to Add Them to Your Project
Security problems don't generally happen because developers 'don't care' or lack skill. They happen because no one clearly defined what "secure" meant in the first place. When security expectations are left implicit, developers are forced to guess. And that's where vulnerabilities are born.
In this episode of DevSec Station, Tanya Janca explains what security requirements are, why they're one of the most overlooked secure development practices, and how developers can start adding them to projects today. You'll learn how clear, testable security requirements eliminate guesswork, improve collaboration, and help teams build secure software from the start.
Threat Modeling for Developers (How To)
Threat modeling has a reputation for being complicated, full of diagrams, and requiring long meetings. In reality, most developers already do it, they just don't realize it. The difference is that doing it intentionally helps you catch security problems before they become security incidents.
In this episode of DevSec Station, Tanya Janca breaks threat modeling down into a simple five-step process that any developer can use while designing a feature. You'll learn how to identify what you're protecting, where trust boundaries exist, and how to ask a few simple questions that uncover security issues early; before they're...
How to Do Secure Code Review (When You’re Not a Security Expert)
Secure code review isn't about finding obscure vulnerabilities or thinking like an elite hacker. It's about verifying that the security controls your application depends on are actually present, in the right place, and correctly implemented.
In this episode of DevSec Station, Tanya Janca explains how developers can perform effective secure code reviews without being security experts. You'll learn what security controls to look for, how trust boundaries help you focus your review, and a simple framework for turning security review from "vibes" into a repeatable engineering practice that meaningfully increases the security of your code.
The Most Common Secure Coding Mistakes Good Devs Make
Security bugs aren't usually caused by 'bad developers'. More often, they're the result of good developers making rational decisions under deadlines, competing priorities, and imperfect systems.
In this episode of DevSec Station, Tanya Janca explores why common secure coding mistakes are often incentive problems rather than knowledge problems. You'll learn why insecure patterns emerge, why simply telling developers to "be more careful" doesn't work, and how changing your development environment can make secure coding the easiest path forward.
You'll learn:
why good developers still introduce security vulnerabilities how deadlines, delivery pressure, and oper...Secure Defaults Beat Secure Training
Security training has its place. But if training alone solved security problems, we wouldn't keep seeing the same vulnerabilities appear over and over again. The real problem usually isn't that developers don't know what to do; it's that the easiest path is often an insecure one.
In this episode of DevSec Station, Tanya Janca explains why secure defaults are one of the most effective security controls you can implement, why relying on memory and willpower rarely works under pressure, and how small changes to your development workflow can prevent the same mistakes from happening again. You'll learn...
Why Current Security Tools Fail Developers
Security tools are supposed to help developers build safer software. But sometimes it seems like they create more frustration than security.
In this episode of DevSec Station, Tanya Janca explains why many security tools overwhelm developers with alerts, how alert fatigue erodes trust, and why "more findings" doesn't mean "more security." You'll learn how to tune your classic AppSec tools so they surface meaningful issues instead of creating noise that everyone eventually ignores.
You'll learn:
• why classic AppSec tools often optimize for coverage instead of developer workflows
• how alert fatigue develops and why it l...
Vibe Coding, Copilots, and Security Drift
AI coding assistants can help developers move incredibly fast. But this new speed comes with a new challenge: security drift.
In this episode of DevSec Station, Tanya Janca explores how tools like GitHub Copilot, ChatGPT, Cursor, and other AI coding assistants can unintentionally change the security assumptions your software was built on. You'll learn what security drift is, why it happens so quietly, and how to keep the benefits of AI-assisted development without letting important security controls slowly disappear.
You'll learn:
• what security drift is and why it matters
• how AI-generated code...
Secrets Management: Stop Playing Whack-a-Mole
If you've ever committed an API key, password, token, certificate, or other secret to a repository, you're not alone. Most secret leaks don't happen because developers don't care about security. They happen because the easiest place to put a secret is inside the code that uses it.
In this episode of DevSec Station, Tanya Janca explains why secrets leak, why "just be careful" isn't an effective security strategy, and how developers can stop playing whack-a-mole with exposed credentials. You'll learn why secrets belong outside of source control, how secret scanning can help you find problems before attackers...
Supply Chain Is More Than Just Dependencies
Most developers think software supply chain security starts and ends with dependencies. But modern supply chain attacks don't stop there. Attackers look for paths into your software, and those paths often run through developers, CI/CD systems, build tools, deployment pipelines, and other trusted parts of the software delivery process.
In this episode of DevSec Station, Tanya Janca explains why the software supply chain is much bigger than libraries and packages, how modern attacks move through trusted systems, and what developers can do to better understand and protect the paths their software travels before it reaches production.<...
Malicious Dependencies Aren’t an Accident
Malicious dependencies are not accidents. They are often intentionally designed to look trustworthy so developers install them without hesitation. In this episode of DevSec Station, Tanya Janca explains how attackers use typosquatting, dependency confusion, fake packages, and even AI-generated recommendations to compromise developer environments and steal credentials.
You’ll learn:
• how malicious packages trick developers
• why dependency attacks work so well
• how attackers abuse trust and speed
• why “just be careful” is not an effective defense
• practical ways to add safer guardrails to your development workflow
Tanya walks through a realistic example...
NPM Supply Chain Attack: Active Worm Stealing Tokens, SSH Keys, and Credentials
🚨 Emergency DevSec Station update.
There’s an active npm supply chain attack happening right now.
Malicious npm packages are running install scripts that quietly steal:
• SSH keys
• AWS credentials
• GitHub tokens
• Browser passwords
• Crypto wallets
From there, the attack uses your npm publish token to spread into every package you maintain. That’s how this turns into a worm across the npm ecosystem.
This is not theoretical. It’s already in the wild.
👉 Immediate fix:
Run
npm config set ignore-scripts tru...
How Modern Supply Chain Attacks Really Happen (Step-by-Step Breakdown for Developers)
What if a supply chain attack didn’t start with a complex exploit… but something completely normal?
A typo.
A copy-paste.
Even an AI suggestion.
In this episode, Tanya Janca breaks down how modern supply chain attacks actually happen inside everyday developer workflows.
These attacks aren’t one big moment. They’re a series of small, reasonable decisions that quietly introduce risk.
You’ll learn:
• Why supply chain attacks are a process, not a single event
• How attackers exploit normal developer behavior
• A simple, step-by-ste...
Developers Are Now Targets: How Supply Chain Attacks Actually Reach You
Developers are no longer just building software.
They’re being targeted directly.
In this episode, Tanya Janca explains how supply chain attacks reach developers through everyday tools, packages, and workflows.
These attacks don’t feel like attacks at first. They look like normal development work until it’s too late.
You’ll learn:
• How supply chain attacks reach individual developers
• Why developer environments are now high-value targets
• Where risk shows up in daily workflows
• Simple ways to protect yourself without slowing down
If you work in JavaScript...