Step 17 of 36 · Engineering partnership
AI-assisted development and ML systems
AI tools write your code and AI features read untrusted input. Set rules for the first and extend your threat model for the second.
Engineers use AI assistants and agents to write code that is plausible, fast and sometimes insecure, and an agent acts with whatever access you gave it. Your product now includes models that read input you do not control.
For AI-assisted development, the engineer who merges stays accountable, and review, tests and pipeline checks apply to generated code like any other. Decide which tools are approved, what data they may see and what an agent may touch without a human confirming.
For ML features, treat model output as untrusted and assume instructions can hide in any content the model reads. Limit what it can reach, above all where private data, outside content and a way to send data out meet. An instruction in a prompt is not a security control.
Try this week
- Publish a one-page rule for AI coding tools: which are approved, what data they may see and what agents may do unattended.
- List everything the model in one AI feature can read and every action it can trigger. Remove one permission it does not need.
Signs you've got it
- Engineers know which AI tools they may use with company code and data, and why.
- Security reviews of AI features cover what the model can read and reach, not only the API around it.
Resources
- guideOWASP Top 10 for LLM Applications (opens in a new tab)OWASP Gen AI Security Project
- guideGuidelines for secure AI system development (opens in a new tab)UK National Cyber Security Centre
- articleThe lethal trifecta for AI agents: private data, untrusted content, and external communication (opens in a new tab)Simon Willison
- paperDo Users Write More Insecure Code with AI Assistants? (opens in a new tab)Neil Perry, Megha Srivastava, Deepak Kumar and Dan Boneh
- guideSecurity-Focused Guide for AI Code Assistant Instructions (opens in a new tab)OpenSSF Best Practices Working Group