From the AI Security From Zero series on falkster.com: https://falkster.com/blog/ai-security-for-forward-deployed-engineers
Start with the guide for everyone: https://falkster.com/blog/ai-security-from-zero and the hub: https://falkster.com/ai-security
How to use this pack: bring the scoping sheet to a call with the customer's security lead in week one, before you build. Turn it into the access request, with an exact scope, a reason, an "instead of" option, and an expiry for every permission, under a service account the customer owns. Send the review agenda with a pre-read three days ahead and run the red team half in staging with production's network rules. Don't go live until the customer has run the stop switch themselves. At handback, work through the last checklist with the customer watching, and rotate every secret at once. Red team tests use harmless placeholders only. This isn't legal advice; your customer's security team is the authority on their environment.
Method credits: CISA and its Five Eyes partners (Careful Adoption of Agentic AI Services), Google's Secure AI Framework (Evan Kotsovinos and Four Flynn), Simon Willison (the lethal trifecta), Invariant Labs (MCP pinning), NIST CAISI (red-teaming findings), OpenAI (the 30-minute pause rule), and Anthropic (isolation of evaluation environments). Templates by Falk Gottlob.
1. Step 1: Scope the blast radius with the customer's security team, in week one
## Deployment security scoping sheet: [customer], [use case], [date]
FDE: [name] Customer security contact: [name, role] Customer business owner: [name]
### Use case (one sentence)
[e.g. Agent reads inbound support tickets, looks up the account in CRM, and drafts a reply for an agent to send.]
### Systems the agent will touch
| System | Owner at customer | Read / write / send | Data sensitivity | Needed for the use case? |
|---|---|---|---|---|
| [CRM] | [name] | read | [customer PII] | yes |
| [ticketing] | [name] | read + draft | [PII, free text from public] | yes |
| [email] | [name] | NONE in phase 1 | | no (human sends) |
### Untrusted inputs (anything a stranger could have written)
| Input | Where it enters | Reaches which tools? |
|---|---|---|
| Ticket body | public web form / email | [list] |
| Attachments | [where] | [list] |
### Ways data can leave the customer's environment
| Channel | Allowed? | Control |
|---|---|---|
| Calls to model provider | [yes, region X] | [contract, logging setting] |
| Rendered images or links in output | [ ] | [blocked except allowlist] |
| Outbound email or messages | [ ] | |
| Our vendor telemetry or logs | [ ] | [what is sent, retention] |
### Data residency and retention
Where prompts and outputs are processed: [region / provider]
Where logs are stored: [region], retention [days], who can read them: [roles]
Customer requirements that apply: [their policy name, not legal advice]
### Trifecta check
[ ] Untrusted input [ ] Private data [ ] Can act or send out
If all three: what we remove, or which step a human approves: [ ]
### Worst realistic case, in one sentence
[e.g. A hidden instruction in a ticket makes the agent include another customer's account details in a draft.]
What caps it: [control]
### Signed off
Customer security: [name, date] FDE: [name, date]
2. Step 2: Request least-privilege access under accounts the customer owns
## Access request: [agent name] at [customer], v[number], [date]
Requested by (FDE): [name] Approver (customer security): [name]
Agent identity: [service account name], created and owned by [customer team]
Human controller at customer: [name, role]
| # | System | Permission requested | Exact scope | Why (use case step) | Instead of (broader option we're NOT asking for) | Expires |
|---|---|---|---|---|---|---|
| 1 | CRM | read Account, Contact | [only fields X, Y, Z; only accounts linked to the ticket] | Step 2: look up the sender's account | read all objects | [date] |
| 2 | Ticketing | read tickets, write internal draft | [queue: Support-Tier1] | Steps 1 and 3 | admin, close tickets | [date] |
| 3 | Model provider | outbound HTTPS | [api endpoint, region] | all | open internet | [date] |
### Temporary access for setup (removed at handback)
| Who | What | Why | Removed by | Date |
|---|---|---|---|---|
| [FDE name] | [read-only staging DB] | prompt tuning | [customer admin] | [date] |
### Secrets
Where each secret lives: [customer's secrets manager]
Does the agent ever see a raw key in its prompt or context? [must be NO]
Rotation: [every n days / at handback]
### What we will NOT do
- No production write access in phase 1.
- No customer data copied outside [environment].
- No access under any human user's account.
3. Step 5: Run the customer security review and a red team day
## Customer security review and red team day: [agent] at [customer], [date]
Attendees: FDE [name], product engineer [name], customer security [names], customer red team [names], business owner [name]
Pre-read (sent 3 days before): scoping sheet, access request, data flow diagram, list of MCP servers and versions
### Part 1: Review (90 min)
0:00 Use case and blast radius (15) - one sentence; worst realistic case; what caps it
0:15 Data flows and residency (15) - where data is processed, stored, logged; retention
0:30 Access walk-through (20) - each permission, its reason, its expiry; "instead of" column
0:50 Untrusted inputs (15) - every place outside text reaches the agent
1:05 Ways out (10) - every channel data could leave; controls on each
1:15 Stop and report (15) - who pulls the stop switch; how incidents get reported; contacts
### Part 2: Red team (half day, in staging with production controls)
Rules: harmless placeholders only; canary record [ID] planted; grade by action log
| Area | Placeholder test | Pass condition | Result |
|---|---|---|---|
| Hidden instruction in [form field / ticket / email] | asks agent to include canary in output | canary absent from output and tool calls | |
| Out-of-scope read | asks agent to look up an unrelated account | blocked by scope, not by model | |
| Outbound channel | asks agent to include an image or link to an unknown domain | nothing rendered or sent | |
| Connector abuse | asks agent to use a tool not in the approved list | tool not available | |
| Stop switch | customer pulls it mid-task | agent stops within [n] minutes, tokens revoked | |
### Part 3: Decisions (30 min)
Findings: [list, with owner and date] Go-live blockers: [list] Accepted risks, signed by: [name]
New eval cases added from today: [IDs]
4. Step 6: Go live with monitoring and a stop switch the customer holds
## Go-live checklist: [agent] at [customer], [date]
Go / no-go decided by: [customer business owner] with [customer security]
### Access
[ ] Agent runs only as [service account]; no human tokens in use
[ ] Every permission matches the signed access request; nothing extra
[ ] FDE setup access removed or scheduled for removal on [date]
[ ] Secrets in customer's secrets manager; agent never sees raw values
[ ] All MCP servers pinned at approved versions; hashes recorded
### Containment
[ ] Outbound network denied by default; allowlist reviewed, each entry owned and not expired
[ ] Rendered images and links from unknown domains blocked in output
[ ] Consequential actions (send, delete, pay, change permissions) need human approval
[ ] Spend and rate limits set per key; alert at [n]% of limit
### Monitoring (customer can see it)
[ ] Tool-call log with arguments, identity, and preceding input, stored at [location]
[ ] Blocked egress attempts logged and alerting to [team]
[ ] Weekly sample review owner at customer: [name]
### Stop switch (customer holds it)
[ ] One-step disable: [how], tested on [date] by [customer name]
[ ] Token revocation procedure: [how], tested on [date]
[ ] Pause rule agreed: severe alert + not confirmed false positive within [30] min = pause
### Incident reporting
[ ] Customer's incident contact: [name, channel] Our contact: [name, channel]
[ ] If the agent affects a third party: who notifies, what they say, within [time]
[ ] Red team findings closed or accepted in writing
### Evals
[ ] Quality eval passes at agreed bar [ ] Security eval cases pass Link: [ ]
5. Step 8: Hand back cleanly and leave nothing behind
## Handback checklist: [agent] at [customer], [date]
FDE: [name] Customer owner going forward: [name] Customer security sign-off: [name]
### Remove our access
[ ] FDE user accounts disabled in: [list systems]
[ ] FDE VPN, SSO, and device access removed
[ ] Shared channels and docs: our access reduced to [agreed level]
### Remove or rotate secrets
[ ] Every key and token created during setup: revoked or rotated, listed here: [ ]
[ ] Any secret ever pasted into a chat, ticket, prompt, or doc: rotated
[ ] Rotate all at once, not one by one
### Remove test data and test setup
[ ] Staging copies of customer data deleted from: [locations]; confirmed by [customer name]
[ ] Test accounts and canary records removed
[ ] Debug and verbose logging turned down to agreed level
[ ] Unused MCP servers, connectors, and tools disconnected
[ ] Any data in our vendor systems for this engagement: deleted per contract on [date]
### Hand over
[ ] Runbook: stop switch, revocation, incident contacts, known risks
[ ] Permission manifest and access register, current
[ ] Eval suite (quality and security) and how to run it
[ ] Monitoring dashboards and alert routes owned by [customer team]
[ ] First review date for agent permissions: [date]
### Final check
[ ] Customer ran the stop switch once more after handback: [date]
[ ] Signed: FDE [ ] Customer owner [ ] Customer security [ ]