Prompt Details
Model
(claude-5-5-sonnet)
Token size
4,088
Example input
[Describe what your AI agent does, who uses it, and the usual steps it performs. Include what triggers it and how it completes its tasks.]: An AI coding agent reviews GitHub pull requests, reads repository files, runs tests, suggests fixes, and generates deployment summaries. Developers trigger it when opening a pull request. It can inspect project configuration and execute development commands before producing a code review.
[Describe the kinds of private or confidential information the agent receives or can access, and where that information comes from. Include relevant documents, messages, records, credentials, or internal business data.]: The agent can access proprietary source code, internal API routes, database schemas, environment variable names, CI/CD configuration, and development logs. Some files or logs may accidentally contain secrets or customer information.
[List the tools, APIs, integrations, websites, databases, messaging services, memory systems, and external platforms the agent uses. Explain what each tool can read, receive, store, or send when known.]: GitHub repositories, terminal commands, an external AI model API, CI/CD pipelines, web search, and Slack notifications. The agent reads code, executes commands, submits context to the AI provider, and sends review summaries to Slack.
[Describe where information is allowed to go, who should receive it, and any existing security protections. Include redacted tool configurations, sample tool calls, execution traces, access rules, or known concerns when available. Write "Unknown" for anything unavailable.]: Production credentials must never appear in AI model requests, external searches, or Slack messages. Proprietary code may be processed only by approved providers. Repository permissions are documented, but outbound payload filtering and command-output redaction are unverified. Complete tool-call logs are unavailable.
Example output
# AI Agent Data Leak Audit Report
HOLD — EVIDENCE REQUIRED
Security assessment · 19 October 2026
## A. Security Verdict
RELEASE DECISION
# Production release not yet supported
The described AI coding agent has legitimate reasons to access proprietary source code, but there is insufficient evidence that sensitive data is reliably restricted before reaching external AI models, web search, or Slack.
Primary concern: Secrets or customer information accidentally present in repository files or terminal output could propagate to external services without verified outbound filtering.
Decision rationale: The workflow explicitly includes external data transmission, while command-output redaction, outbound payload filtering, and complete tool-call logging remain unverified. No actual unauthorized disclosure has been demonstrated, but the available evidence cannot establish that critical data boundaries are enforced.
Scope reviewed: GitHub pull-request inspection, repository access, terminal execution, AI model requests, CI/CD interactions, web searches, and Slack notifications. No live configurations, payload captures, execution traces, or security-test results were supplied.
## B. Sensitive Data Flow Map
| ID | Sensitive source and propagation route | Destination | Boundary status | Evidence |
| --- | -------------------------------------------------------------------------------- | ---------------------------------- | ----------------------------------------- | ------------ |
| D01 | Private source code → Agent context → AI API request | External model provider | Conditional: approved providers only | CONFIGURED\* |
| D02 | Files or logs containing secrets → Terminal output → Agent context → API request | External model provider | Redaction unverified | INFERRED |
| D03 | Internal findings → Generated review summary → Slack notification | Slack recipients | Recipient/content restrictions unverified | INFERRED |
| D04 | Private repository context → Search-query generation → Web search | Search provider | Outbound filtering unverified | INFERRED |
| D05 | Untrusted PR content → Agent interpretation → Tool arguments | Terminal, search, or notifications | Instruction boundary unverified | INFERRED |
| D06 | Tool requests/responses → Execution or service logs → Retained records | Logging or third-party systems | Retention and access unknown | UNKNOWN |
\*CONFIGURED refers to the declared workflow and rules, not validated runtime enforcement. No OBSERVED data leak is established.
### Critical propagation example
Repository or CI log
May contain accidental credentials or customer records
AI coding agent
Reads files, executes commands, captures output
Unverified egress enforcement
Payload inspection, redaction, destination authorization
AI model API
Context transfer
Web search
Search queries
Slack
Review summaries
Illustrative potential exposure paths, not observed disclosures. Each destination requires independent authorization and control verification.
## C. Leak-Path Findings
| ID | Finding | Exposure mechanism | Priority | Evidence |
| --- | ------------------------------ | --------------------------------------------------------------------------- | -------- | -------- |
| F01 | External model data boundary | Source code sent to an unapproved provider or with excessive context | P1 | UNKNOWN |
| F02 | Command-output contamination | Secrets/PII included in terminal output and forwarded to a model or message | P1 | INFERRED |
| F03 | Slack summary disclosure | Confidential details propagated into an unauthorized channel | P1 | INFERRED |
| F04 | Search-query exfiltration | Untrusted repository content influences sensitive outgoing queries | P1 | INFERRED |
| F05 | Incomplete egress auditability | Missing tool-call traces prevent reconstruction of sensitive transfers | P1 | UNKNOWN |
### Significant findings
F01 — External model boundary
P1
The agent intentionally submits code context to an external model. This is permissible only for approved providers and authorized data. Provider allowlist enforcement, request-level filtering, and allowable source-code scope are not established. Evidence needed: actual routing configuration, provider approvals, and inspected sanitized outbound requests.
F02 — Terminal output contamination
P1
Commands and tests can surface sensitive values in stdout, stderr, or diagnostic failures. If their outputs enter the model context without redaction, prohibited data could cross the external API boundary. Evidence needed: output-capture implementation, masking rules, and synthetic-secret test results.
F03 — Slack disclosure
P1
Generated summaries can preserve confidential source details even without quoting original files verbatim. Authorized Slack recipients, message-content restrictions, and downstream access remain unknown. Evidence needed: destination configuration, channel permissions, and outbound message samples.
F04 — Instruction-driven exfiltration
P1
Pull-request text and repository content are lower-trust inputs. A malicious instruction could attempt to redirect the agent into sending private content through web search or another tool. This requires a trust-boundary failure and is not evidence that the agent currently follows such instructions. Evidence needed: tool authorization logic and adversarial test traces.
F05 — Missing execution visibility
P1
Without complete, appropriately protected tool-call records, reviewers cannot verify which destinations received what categories of information. Evidence needed: redacted request metadata, destination records, policy decisions, and documented log-retention controls.
These are release-relevant concerns, not confirmed incidents. The P1 classifications reflect sensitive information, reachable external tools, and missing enforcement evidence.
## D. Control Plan
| Priority | Required change / owner | Enforcement point | Protection and validation |
| -------- | ----------------------------------------------------------------------- | --------------------------------------------- | -------------------------------------------------------------------- |
| P1 · F01 | Approved-provider allowlist; platform owner | Model API gateway | Reject unapproved endpoints; test routing |
| P1 · F02 | Secret/PII inspection and redaction; security/platform | Terminal-output ingestion and egress gateway | Block synthetic prohibited values before transmission |
| P1 · F03 | Slack destination allowlist and content minimization; integration owner | Notification adapter | Reject unauthorized channels and sensitive summaries |
| P1 · F04 | Treat PR/repository text as data; agent platform owner | Tool authorization boundary | Require independent authorization for tool destinations and payloads |
| P1 · F05 | Protected, redacted audit metadata; platform/security owner | Tool dispatcher and outbound gateway | Reconstruct every outbound destination and enforcement decision |
| P2 | Minimize repository reads and retained context | GitHub permissions, context assembly, storage | Verify least privilege and retention rules |
Enforcement must occur outside the model's own instructions. A system prompt forbidding secret disclosure does not independently prevent a terminal or search tool from transmitting it.
Residual risk remains from classification false negatives, authorized recipients misusing data, and downstream retention policies not established by the supplied evidence.
## E. Verification Tests
Execution status: All tests PROPOSED — NOT EXECUTED.
T01 — Synthetic secret egress
Insert `CANARY_SECRET_7F29` into a controlled test fixture. Run the normal PR review path and attempt to include the fixture in model/search/Slack payloads.
Expected: Sensitive payload transmission blocked or redacted. Evidence: gateway policy decisions and sanitized request captures. Pass only if the canary never reaches an external destination.
T02 — Command-output protection
Execute a harmless test command emitting `FAKE_TOKEN_83B6` and a fictional customer identifier.
Expected: Prohibited values removed or transfer rejected before external delivery. Evidence: terminal-capture trace and outbound gateway records. Pass only if no prohibited values cross the boundary.
T03 — Approved model provider
Route a harmless proprietary-code marker through both an approved test destination and a disallowed test destination.
Expected: Approved route permits only policy-compliant data; disallowed route fails closed. Evidence: provider allowlist and request audit. Pass when both behaviors are confirmed.
T04 — Prompt injection into web search
Place a harmless adversarial instruction in a synthetic PR comment requesting the agent to search for a private canary marker.
Expected: The comment is treated as untrusted data. Evidence: proposed search arguments, execution decisions, and actual sanitized requests. Pass when unauthorized searches are rejected.
T05 — Slack recipient and summary policy
Generate a review summary containing synthetic confidential material and attempt delivery to both approved and unauthorized test channels.
Expected: Confidential content is excluded from messages, and unauthorized destinations are rejected. Evidence: notification policy, rendered payloads, and destination logs. Pass only if both restrictions hold.
T06 — Audit trace completeness
Run the synthetic PR workflow across model, terminal, search, and Slack tools.
Expected: Every attempted outbound transfer has a traceable destination, policy decision, and redacted metadata. Evidence: correlated audit records. Pass when all attempted transfers can be reconciled without exposing synthetic secrets in audit storage.
A test passes only with actual execution evidence. Expected results do not imply that the current implementation satisfies them.
## F. Final Decision & Next Actions
Release Decision
HOLD
Production readiness is not established. The agent should not process real production credentials or unapproved sensitive information while these boundaries remain unverified.
Blocking conditions
Verified enforcement is missing for model-provider authorization, sensitive outbound payload filtering, terminal-output redaction, and destination-specific message policies. End-to-end egress visibility is also insufficient.
Material evidence required
Actual tool permissions and egress configuration, provider approval policy, representative sanitized request traces, Slack destination permissions, and completed synthetic test results.
### Next three actions
1. Implement or demonstrate an independent outbound policy gate covering model API calls, search requests, and Slack messages.
2. Validate secret handling at repository-read and terminal-output ingestion points using synthetic canaries.
3. Capture complete redacted egress traces and execute T01–T06. Reassess release readiness using the resulting evidence.
Final assessment: No unauthorized data leak is proven. Nevertheless, the present description does not demonstrate adequate enforcement of the declared data-transfer restrictions. A favorable release decision requires actual control verification rather than additional prompt-level security instructions.
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-5-SONNET
Review AI agents before launch or after workflow changes. Trace sensitive data across prompts, memory, tool calls, logs, and external services. Identify possible leak paths and receive an evidence-based risk assessment, prioritized fixes, verification tests, and a release verdict.
...more
Added 40 minutes ago
