Context Leakage
- Category
- Data Exfiltration
- Confidence
- 75% confidence
- Finding
Code or instructions that leak agent conversation context to external services, potentially exposing sensitive user interactions.
- Content
- Entry point — reject obviously invalid input at the API boundary (null/empty, existence, type, shape).
- Business logic — reject values that are syntactically fine but wrong for this operation.
- Environment guard — refuse dangerous operations in the wrong context (e.g. in tests, refuse destructive commands outside the temp dir; in prod, refuse admin paths on a read replica).
- Debug instrumentation — capture context (args, cwd, stack) right before the risky operation, so the next failure carries its own evidence.
typescript // Example spread across layers for "empty projectDir → git init in source tree"
