> Markdown version of [/videos/1015-the-ai-security-survival-guide-practical-advice-for-stressed-out-developers](https://www.wearedevelopers.com/videos/1015-the-ai-security-survival-guide-practical-advice-for-stressed-out-developers). Every page supports `.md` or `Accept: text/markdown`. Links point to the HTML versions so they work for humans too. Agent guide: [/agents.md](https://www.wearedevelopers.com/agents.md). --- # The AI Security Survival Guide: Practical Advice for Stressed-Out Developers Attackers are publishing malware using fake dependency names hallucinated by AI assistants. Discover how to defeat prompt injection and safely secure your automated development workflow. - **Speakers:** [Mackenzie](https://www.wearedevelopers.com/@mackenzie) - **Event:** World Congress 2024 - **Published:** August 20, 2024 - **Duration:** 30:36 - **URL:** https://www.wearedevelopers.com/videos/1015-the-ai-security-survival-guide-practical-advice-for-stressed-out-developers ## Summary The rapid adoption of artificial intelligence in software development introduces complex new vulnerabilities, requiring engineering teams to rethink how they secure both their internal supply chains and user-facing applications. The core challenge stems from instruction-tuned models, which blindly follow commands and introduce risks like prompt injection—a threat aptly described as "social engineering meets SQL injection." Because prompt injection uses malicious natural language in fields designed for language, traditional sanitization methods fall short. When these models are integrated into daily tools, such as email assistants, an attacker need only send a crafted message to manipulate the AI into forwarding sensitive data, stealing computational resources, or executing malicious links. Beyond local prompt manipulation, developers face severe risks from AI hallucinations and open-source poisoning. Attackers now engage in "hallucination squatting"—identifying non-existent dependencies confidently fabricated by LLMs and publishing malware under those exact names to trick developers who natively copy and paste code. To counter these systemic issues, teams must rely on rigorous software composition analysis (SCA) and adopt robust architectural patterns, like the dual-LLM system, which isolates a privileged model from a quarantined one to safely handle untrusted text input. Additionally, deploying third-party security agents can help filter inputs and outputs directly. Ultimately, securing AI-driven development requires doubling down on "inside-out" security fundamentals like network segmentation and preventing hardcoded secrets, as bad actors increasingly leverage custom malicious models to automatically refactor previously patched exploits and launch hyper-targeted spear-phishing campaigns. Banning tools altogether out of caution is counterproductive and inevitably spawns an unmonitored "shadow AI" ecosystem across the workforce. Instead, organizations should empower their teams through continuous security education and provide fit-for-purpose tools—ensuring developers can confidently harness AI speed code development without exposing their core infrastructure. **Keywords:** prompt injection vulnerabilities, hallucination squatting, dual-LLM architecture, shadow AI, instruction-tuned LLMs, open-source software poisoning, software composition analysis, malicious custom AI models, spear-phishing automation, inside-out security architecture, AI supply chain risks, LLM jailbreaking techniques, developer security education, sensitive data leakage ## Chapters 1. **Artificial intelligence components in the software supply chain** (00:00) — Integrating language models introduces inherited vulnerabilities into development workflows regardless of direct implementation. 1. **Differentiating language model types for software development** (01:44) — Understanding the safety differences between baseline-tuned completion plugins and instruction-tuned conversational agents informs developer usage. 1. **Evaluating training datasets and open source code quality** (03:55) — Models trained on vast public repositories often ingest and reproduce insecure open source coding patterns. 1. **Identifying and defining prompt injection execution vulnerabilities** (06:05) — Malicious language input bypasses instructions by treating natural language text fields as hidden executable commands. 1. **Demonstrating interactive prompt injection exploits in applications** (09:35) — Practical terminal demonstrations show how direct commands override application-specific master prompts to execute unverified actions. 1. **Exploiting automated email assistant integrations with malicious input** (12:07) — Injecting deceptive commands into external communications manipulates automated assistants into executing unverified internal actions. 1. **Mitigating prompt injection through architectural privilege separation** (15:02) — Implementing third-party security agents and dual-model quarantine systems isolates sensitive operations from untrusted language inputs. 1. **Exploiting artificial intelligence package hallucinations through squatting** (16:47) — Attackers publish malware under the names of non-existent packages frequently fabricated by language models responding to generic prompts. 1. **Securing applications against hallucinated developer dependency attacks** (21:17) — Verifying package legitimacy and utilizing software composition analysis prevents the integration of malicious hallucinated code iterations. 1. **Leveraging purpose-built models for escalated security attacks** (22:30) — Unrestricted malicious models enable attackers to refactor obsolete architectural exploits and automate highly personalized developer spear phishing campaigns. 1. **Defending internal networks against intelligence-augmented phishing threats** (26:31) — Enforcing strict access control and network segmentation limits the blast radius of developer accounts compromised via targeted phishing. 1. **Preventing sensitive data leakage into public language models** (27:11) — Training models on proprietary configuration code creates interactive avenues for extracting hardcoded credentials and internal infrastructure secrets. 1. **Integrating generative models safely without outright prohibition** (29:06) — Banning corporate models encourages risky shadow usage, making developer education and foundational environment security practices essential components of adoption. ## Related Moments - [Top security vulnerabilities for AI applications](https://www.wearedevelopers.com/videos/1637-delay-the-ai-overlords-how-oauth-and-openfga-can-keep-your-ai-agents-from-going-rogue) (from "Delay the AI Overlords: How OAuth and OpenFGA Can Keep Your AI Agents from Going Rogue") - [The necessity of developer intelligence amidst automated attack generation](https://www.wearedevelopers.com/videos/1004-let-s-write-an-exploit-using-ai) (from "Let’s write an exploit using AI") - [Security integration and AI skepticism in developer tooling](https://www.wearedevelopers.com/videos/1830-wearedevelopers-live-speculaitions) (from "WeAreDevelopers LIVE - SpeculAItions") - [Addressing psychological safety and ethical risks of AI adoption](https://www.wearedevelopers.com/videos/1950-the-scrum-master-as-an-orchestrator-guiding-human-ai-collaboration-in-modern-teams) (from "The Scrum Master as an Orchestrator: Guiding Human–AI Collaboration in Modern Teams") - [Managing security risks in AI-accelerated development processes](https://www.wearedevelopers.com/videos/100323-automated-security-for-the-entire-sdlc) (from "Automated Security for the Entire SDLC") - [Emerging risks and attack vectors in AI systems](https://www.wearedevelopers.com/videos/1948-building-trustworthy-ai-in-industry-beyond-traditional-cybersecurity) (from "Building Trustworthy AI in Industry: Beyond Traditional Cybersecurity") ## Related Articles - [Exploring AI: Opportunities and Risks for Developers](https://www.wearedevelopers.com/magazine/522-exploring-ai-opportunities-and-risks-for-developers) - [MLOps And AI Driven Development](https://www.wearedevelopers.com/magazine/82-mlops-and-ai-driven-development) - [Transforming Software Development: The Role of AI and Developer Tools](https://www.wearedevelopers.com/magazine/527-transforming-software-development-the-role-of-ai-and-developer-tools) - [WWC24 Talk - Scott Hanselman - AI: Superhero or Supervillain?](https://www.wearedevelopers.com/magazine/469-wwc24-talk-scott-hanselman-ai-superhero-or-supervillain) ## Related Jobs - [Staff Developer Advocate, GitHub Security Lab](https://www.wearedevelopers.com/jobs/ext/1921051-staff-developer-advocate-github-security-lab) at **GitHub** - [Security Architect - AI](https://www.wearedevelopers.com/jobs/ext/1581899-security-architect-ai) at **ZEISS Group** - [Principal Software Engineer, Enterprise AI Platform](https://www.wearedevelopers.com/jobs/ext/1467292-principal-software-engineer-enterprise-ai-platform) at **GitHub** - [AI Software Engineer (Germany)](https://www.wearedevelopers.com/jobs/48317-ai-software-engineer-germany) at **Sunhat** - [Staff Software Engineer, Copilot Experiences](https://www.wearedevelopers.com/jobs/ext/164361-staff-software-engineer-copilot-experiences) at **GitHub** - [Senior Engineer, Infrastructure Platform](https://www.wearedevelopers.com/jobs/ext/328836-senior-engineer-infrastructure-platform) at **Intercom, Inc.**