# AI Security for Product Managers: Template Pack

From the AI Security From Zero series on falkster.com: https://falkster.com/blog/ai-security-for-product-managers

How to use this pack: Five templates, in the order you use them. Write the feature threat sheet before the build starts, starting with the three-line mandate: Reads, Reaches, Does alone. Run the trifecta check on every session type, not on the product as a whole. Put abuse cases in the same table as use cases, and give each one a control and a test ID. Turn the controls into security acceptance criteria that can block a launch, then into security evals that run on every build and every model change. Use the launch checklist as the gate, and fill in the 'if it goes wrong' section before launch day. Injected text in the examples is a harmless placeholder on purpose. Describe risks, don't write attacks. Numbers in the templates are illustrations.

Method credits: Simon Willison (the lethal trifecta), Meta (Agents Rule of Two), Dave Chismon at the UK NCSC (the confusable deputy and the privilege rule), Andrew Paverd at Microsoft MSRC (design so a successful injection has no security impact), NIST CAISI (agent red-teaming). Templates by Falk Gottlob.

This isn't legal advice, and it doesn't replace your security team. Bring them the filled-in templates.

## 1. Step 1: Write the feature threat sheet

```markdown
## Feature threat sheet: [feature name], v[N], [date]
Owner (PM): [name]   Eng lead: [name]   Security reviewer: [name]

### 1. The mandate in three lines
Reads: [every source of text: user prompt, uploads, web pages, emails, tickets, tool results, memory]
Reaches: [every system and dataset, with access: read / write / delete]
Does alone: [every action taken without a person approving]

### 2. Who could put words in front of it?
| Input | Who controls it | Trusted? |
|---|---|---|
| The user's own prompt | the signed-in user | yes |
| Inbound email body | anyone on the internet | no |
| Public web form field | anyone on the internet | no |
| Third-party tool descriptions and results | the tool's publisher | no, until reviewed |
| Saved memory | whatever it read before | only if the user approved it |

### 3. Worst case with what it reaches
Leak: [which data, to whom, through which channel: email, link, image, post]
Change: [which records, and can we undo it? how fast?]
Spend: [money, compute, messages sent, with a ceiling]

### 4. Trifecta result: [pass / red, broken by: ...]  (see trifecta check)

### 5. Top abuse cases: [AC-01, AC-02, AC-03]  (see abuse case list)

### 6. Decisions
| Decision | Option chosen | Who decided | Date |
|---|---|---|---|
| [e.g. Can the triage agent send email?] | [No, drafts only] | [PM + security] | [date] |

### 7. If it goes wrong
Kill switch: [what it turns off, who can flip it, how fast]
User message owner: [name]   Outside notice contact: [who, checked by]
```

## 2. Step 2: Run the trifecta check

```markdown
## Trifecta check: [feature], [date]
Session type: [e.g. "triage one inbound ticket"]
Rule: in one session, at most two of these three. (Simon Willison's lethal trifecta; Meta's Agents Rule of Two)

| Leg | Question | Yes / No | Evidence (which input, system, or tool) |
|---|---|---|---|
| A. Untrusted input | Does it read anything a stranger could have written? | | |
| B. Private data or sensitive systems | Can it see or touch data that stranger shouldn't? | | |
| C. Change state or talk outside | Can it send, post, write, delete, buy, or load a URL? | | |

Yes count: [0 to 3]

If 3, pick one and write it into the spec:
- [ ] Cut A: only trusted sources in this session (split reading from acting)
- [ ] Cut B: narrower scope (one record, one repo, read-only)
- [ ] Cut C: no outbound sends, links, or images; write to a draft only
- [ ] Keep all three, with a person approving each consequential action (name each action)

Hidden legs people miss:
- Link previews and images in the agent's output count as C (they can carry data out)
- Saved memory from past sessions counts as A
- Third-party tool descriptions and results count as A
- A shared drive or a search index counts as B

Rerun when: a tool, connector, data source, or memory feature is added.
```

## 3. Step 3: Write abuse cases next to use cases

```markdown
## Abuse cases: [feature], v[N], [date]

| ID | Use case (what we want) | Abuse case (what someone could make it do) | Who could try it | Harm if it works | Likelihood | Control in the spec | Test ID |
|---|---|---|---|---|---|---|---|
| AC-01 | Agent summarizes a new ticket | Ticket has a hidden line telling the agent to email the account file elsewhere | Anyone who can file a ticket | Customer data leaves | Medium | Triage session can't send email; links and images stripped from output | SEC-01 |
| AC-02 | Agent refunds small orders | Someone asks politely for 40 small refunds in a row | A real but abusive user | Money lost | Medium | Daily cap per account; person approves above cap | SEC-02 |
| AC-03 | Agent remembers preferences | A page it reads tells it to remember a vendor as "always trusted" | Any site owner | Biased answers for weeks | Low | Memory writes shown to the user and need approval | SEC-03 |
| AC-04 | Agent runs on our API key | A leaked key runs up our bill | Whoever finds the key | Surprise spend | Low | Hard spend ceiling and alert per key | SEC-04 |
| AC-05 | Agent updates the CRM record | A form field tells it to change a different customer's record | Anyone on the website | Wrong data, hard to spot | Medium | Write scope limited to the record in this session | SEC-05 |

Who reviewed: [PM, eng lead, security reviewer, support lead]   Next review: [date or "on any new tool"]
```

## 4. Step 4: Set security acceptance criteria

```markdown
## Security acceptance criteria: [feature], v[N], [date]
Each line is pass or fail, with a test. Any "Blocks launch = yes" line that fails stops the launch.

| # | Pass means | How we test | Bar | Blocks launch? |
|---|---|---|---|---|
| S1 | Untrusted content can't cause an outbound send, link, or image load | Security eval set SEC-01 to SEC-20, every build | Zero sends in all runs | Yes |
| S2 | Every action on the "approve first" list shows a confirmation with the real recipient and data | Scripted walkthrough plus eval | 100% | Yes |
| S3 | The agent's access matches the mandate, with no scope it doesn't use | Eng lead checks the scope list against the threat sheet | Exact match | Yes |
| S4 | Spend per account and per day stops at a hard ceiling and alerts | Test past the ceiling in staging | Stops at ceiling | Yes |
| S5 | Kill switch turns off [named actions] within [N] minutes | Drill in staging | Under [N] minutes | Yes |
| S6 | Every agent action is logged with input source, tool, and result | Spot check 20 sessions | 20 of 20 | No, fix in two weeks |
| S7 | Memory writes are visible to the user and deletable | Design review plus test | Pass | Yes |

Signed: [PM] [eng lead] [security reviewer]   Date: [date]
```

## 5. Step 6: Plan for the day it goes wrong

```markdown
## Agent launch checklist: [feature], launch date [date]

Before launch
- [ ] Threat sheet signed by PM, eng lead, and security reviewer
- [ ] Trifecta check passed for every session type, or the third leg has a named control
- [ ] Every abuse case has a control and a test
- [ ] Security evals pass at the agreed bar on the release build
- [ ] Test and staging environments have the same network limits as production
- [ ] Spend ceiling and alerts live
- [ ] Kill switch drilled; owner on call for launch week
- [ ] Support has the "the agent did something wrong" playbook and reply macro
- [ ] Legal and risk have reviewed what the agent does alone

After launch
- [ ] Week 1: read 50 real sessions for surprises; add new abuse cases
- [ ] Any new tool, connector, data source, or memory feature reruns the trifecta check
- [ ] Monthly, and on every model change: rerun security evals

If it goes wrong
- [ ] Flip the kill switch first, investigate second
- [ ] Tell affected users what happened, in plain words, and say an agent acted
- [ ] Notify outside parties through a checked contact, with a correct link, and say an AI agent acted
- [ ] Turn the incident into eval cases before turning the feature back on
```
