Threat-model an agent worker
Status: Ready
Article ID: 069
Truth label: Limited
Audience: Security reviewer and fleet operator
Reader outcome: Identify risks from tools, environment, repository code, and home state.
Related articles: 047, 063, 065
Target week: 28
Last verified: 2026-09-13
Technical reviewer: Codex security source audit
Editorial reviewer: Codex editorial audit
Define actors and assets
List the operator, worker service, coding child, repository code, retrieved text, external provider, and LAN peer. Then list source, credentials, task state, traces, home-directory files, network services, and compute budget.
Map capabilities
For each actor, record filesystem access, inherited environment, executable tools, network reach, API tokens, provider access, and persistence. Include tests and verification commands because they execute repository-controlled code.
Draw trust boundaries
Separate operator, control services, worker service, execution child, provider, and stored evidence. Mark every crossing: prompt assembly, process launch, API call, file read, result delivery, trace write, and knowledge promotion.
Test abuse cases
Use a synthetic repository that attempts to read an unrelated file, print an environment secret, reach loopback, start a descendant, modify another checkout, and call an operator route. Run only inside a disposable isolation environment.
Apply the safe-use rule
Start with trusted repositories and the lowest permission. Disable unnecessary keys and network access. Use dedicated host identity, narrow roots, protected credential files, reviewed verification commands, quotas, and trace retention.
Current limits
The current worker does not provide a complete OS sandbox, minimal child environment, full role separation, or confidential tenant isolation. Threat model results must not be converted into a production security claim until the controls are implemented and negative tests pass.
Next lesson
Continue with Security checks before trusted-LAN use.
Derivative map
- Weekly package: WEEK-28
- Long video: VIDEO-W28-LONG
- Shorts: SHORT-W28-PROBLEM, SHORT-W28-MECHANISM, SHORT-W28-WARNING
- Email: EMAIL-W28
- LinkedIn: LI-W28-A, LI-W28-B
- X: X-W28-A, X-W28-B
- Visual: VISUAL-W28
Review record
- Actors, assets, capabilities, boundaries, and abuse cases all named.
- Tests are limited to a disposable isolation environment.
- Missing sandbox, authority, and tenancy controls remain explicit.
- No threat-model result was promoted to an unsupported guarantee.
Review completed: 2026-08-27
Re-audited against the running product: 2026-09-13