After studying this material, you should be able to:
Security is not a feature you add at the end. It is a structured engineering discipline with:
| Requirement | What It Means |
|---|---|
| Defined security requirements | Know exactly what must be protected |
| Enforceable controls | Rules that actually block harmful actions |
| Named owners | A specific person accountable for each control |
| Evidence of protection | Proof that controls work, not just assumptions |
Internet arrived → New operating conditions
→ Same core responsibilities endured
Cloud arrived → New operating conditions
→ Same core responsibilities endured
AI agents arrive → New operating conditions
→ Same core responsibilities must endure
Key Insight: AI agents do not replace these responsibilities. They create new conditions under which the same responsibilities must be applied.
AI agents can:
This adaptability is powerful — and dangerous. An agent might encounter malicious instructions in a document and act on them.
┌─────────────────────────────────────┐
│ RUNTIME ENVIRONMENT │ ← Infrastructure where actions execute
├─────────────────────────────────────┤
│ HARNESS │ ← Organizes context, tools, workflows
├─────────────────────────────────────┤
│ MODEL │ ← Provides reasoning capabilities
└─────────────────────────────────────┘
Each layer carries its own security responsibilities.
Follow this scenario step by step:
Step 1: Agent is given permission to UPDATE a customer record
↓
Step 2: Agent opens an attached document
↓
Step 3: Document contains malicious instructions
↓
Step 4: Agent attempts to EXPORT customer data to unauthorized destination
↓
Step 5: What should happen?
Correct Security Response:
| Control | Action |
|---|---|
| Network policy | Blocks the unauthorized transfer |
| Protected logs | Capture the tool call, authorization decision and outcome |
| Permission boundary | Update ≠ Export (these are separate permissions) |
| Human approval | Agent cannot authorize its own expanded access |
Critical Rule: Permission to perform Action A does not automatically grant permission to perform Action B, even if they seem related.
"A security boundary has to hold even when an agent makes the wrong decision."
This is fundamental. You cannot rely on the agent always reasoning correctly. The environment must enforce limits independently.
Agent Reasoning Layer: "Should I do this?" (can be manipulated)
↕
Environment Control Layer: "Are you allowed to do this?" (must be enforced externally)
1. Traceable Identity
2. Clear Access Policies Define explicitly:
3. Human Approval for Consequential Actions
Low-risk routine action → Agent can proceed
High-risk or permission-changing action → Requires human approval
4. Supply Chain Verification
5. Protected Audit Records When something goes wrong, you need to reconstruct:
| Capability | Purpose |
|---|---|
| Revocation procedures | Quickly remove agent access |
| Containment procedures | Limit damage during an incident |
| Protected logs | Make evidence actionable for investigators |
OpenShell demonstrates these principles in practice:
Built upon by partners:
Saying "we think it's secure" is not acceptable. You need evidence that controls work.
Test Category 1: Credential Boundaries
→ Can the agent obtain credentials beyond its scope? (It should not be able to)
Test Category 2: Data Exfiltration
→ Can sensitive data be sent to unauthorized destinations? (It should be blocked)
Test Category 3: Permission Escalation
→ Can the agent change its own permissions? (It should not be able to)
Test Category 4: Monitoring Integrity
→ Can the agent interfere with its own audit logs? (It should not be able to)
1. Test before deployment
↓
2. Named owner reviews results
↓
3. Owner decides: ready or not ready
↓
4. Failed tests → corrective action (mandatory)
↓
5. Each failure becomes a repeatable test
↓
6. Re-test after any material change to model, tools or workflows
↓
7. Repeat cycle continuously
Key Principle: Every failure discovered becomes a permanent test case. This prevents the same vulnerability from reappearing in future releases.
| Tool | Function |
|---|---|
| CrowdStrike SafeMind | Repeated attack simulations to test and strengthen defenses |
| Palo Alto Networks Prisma AIRS | Continuous red teaming as models and applications change |
| Model Type | Strengths | Best For |
|---|---|---|
| Closed models | Managed capabilities, maintained services | Standard defensive tasks |
| Open models | Inspect components, adapt strategies, control infrastructure | Incident investigation, sensitive evidence handling |
During an active incident:
Closed model approach: Evidence may leave your environment
Limited ability to adapt investigation
Open model approach: Keep sensitive evidence within your environment
Reproduce failures on your own systems
Test fixes before deploying them
Adapt investigation strategy as needed
AI can assist security teams by:
How to measure AI's value as a defensive tool:
| Tool | Function |
|---|---|
| Capital One VulnHunter | AI-powered code security analysis |
| ReversingLabs Spectra Assure | AI-powered analysis of software packages to detect malware and tampering |
Security knowledge shared across organizations creates a compounding defensive advantage.
Organization A discovers a failure
↓
Shares: what failed + which controls worked + how fix was verified
↓
Organizations B, C, D strengthen their own systems
↓
Collective security posture improves faster than attackers can adapt
This is more valuable than general advice because it is specific, tested and actionable.
┌─────────────────────────────────────────────────────────┐
│ AI SECURITY FRAMEWORK │
├─────────────────────────────────────────────────────────┤
│ PRINCIPLE 1: Engineering Discipline │
│ → Requirements + Controls + Owners + Evidence │
├─────────────────────────────────────────────────────────┤
│ PRINCIPLE 2: Full Stack Responsibility │
│ → Model + Harness + Runtime all carry security duties │
├─────────────────────────────────────────────────────────┤
│ PRINCIPLE 3: Environment Enforces Boundaries │
│ → Controls hold even when agent reasoning fails │
├─────────────────────────────────────────────────────────┤
│ PRINCIPLE 4: Evidence Before Deployment │
│ → Test, assign owner, fix failures, retest always │
├─────────────────────────────────────────────────────────┤
│ PRINCIPLE 5: Right Tools for the Task │
│ → Open models for sensitive investigation │
├─────────────────────────────────────────────────────────┤
│ PRINCIPLE 6: Collective Defense │
│ → Share findings, controls and verified fixes │
└─────────────────────────────────────────────────────────┘