{
 "schema": "aiblocks-page/1",
 "id": "track-agent-injection-controls-and-retest-evidence",
 "type": "agent",
 "name": "Agent injection evidence review assistant",
 "summary": "Get safe prompt injection test cases for your AI agent, a control gap list and retest records. Tests run only with the owner's written approval.",
 "headline": "Agent injection evidence review assistant",
 "subhead": "Give it a map of your AI agent and the written scope for testing. It lists where untrusted text can reach the agent, plans safe test cases with fake data and records every result. After a fix, it tracks the retest.",
 "job": {
  "id": "secure-code",
  "name": "Keep your code secure"
 },
 "level": "advanced",
 "thinking": "high",
 "tested": true,
 "updated": "2026-11-03",
 "first_published": "2026-10-25",
 "inputs": [
  {
   "type": "document",
   "required": true,
   "label": "Document",
   "what": "a finished document, such as a Word file, a PDF or a page of notes"
  },
  {
   "type": "codebase",
   "required": false,
   "label": "Codebase",
   "what": "a project's code, in a folder or repo the AI can open"
  },
  {
   "type": "question",
   "required": false,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "security_report",
   "required": true,
   "label": "Security report",
   "what": "the risks found in the code, ranked, each with a fix"
  },
  {
   "type": "test_report",
   "required": true,
   "label": "Test report",
   "what": "what was tested, what passed, what failed and why"
  },
  {
   "type": "plan",
   "required": true,
   "label": "Plan",
   "what": "a dated plan: what to do, in what order, with a decision rule for each step"
  },
  {
   "type": "eval_set",
   "required": true,
   "label": "Eval set",
   "what": "a fixed set of test cases for an AI, each with its input and the answer that counts as a pass"
  }
 ],
 "you_give": [
  "A map of your agent. List what it reads, each tool and its access, its memory and where its output goes (from your architecture notes).",
  "Written approval to test. Name the agent's owner, the exact system and accounts, the dates, the limits and a person who can stop the test.",
  "Safe test data, such as fake accounts, canary values that grant no access and the places test output may go",
  "Your current safeguards, earlier findings and a few normal tasks the agent must still do (optional)",
  "The agent's version or configuration ID (optional)",
  "Results from tests you already ran (optional)"
 ],
 "you_get": [
  "A boundary map of every place untrusted text can reach the agent, what it protects and the rules that must always hold",
  "A control table that marks each safeguard missing, planned, implemented or verified",
  "A test case plan with a unique ID for each case",
  "A results ledger with pass, fail, blocked, error or not run for every planned case",
  "Findings with repeats merged, a fix for each and a retest queue",
  "A cleanup list of test accounts, files and canary values"
 ],
 "use_when": [
  "You are about to give an AI agent tools such as email, files or a database and want to know where hostile text could steer it.",
  "Your agent reads outside content like web pages, support tickets or uploaded documents.",
  "A security reviewer asks for evidence that your injection controls work.",
  "You fixed a hole and need a retest that points back to the failure it came from."
 ],
 "skip_when": [
  "You do not own the agent or have no written approval to test it. You get a planning checklist only, and nothing is run.",
  "You want to test someone else's agent, a live production system or another customer's data. It stops.",
  "You want a design review and fix plan with no tests. Use the Prompt injection defender.",
  "You already have an approved test plan and only want to run it. Use the AI agent attack tester.",
  "You want a general check of your code and packages. Use the Project secrets and package risk review."
 ],
 "output_sample": {
  "input": [
   "A map of your agent, with inputs, tools, access and outputs",
   "Your written approval to test it",
   "Safe test data, such as fake accounts and canary values",
   "Your current safeguards and earlier findings (optional)",
   "Results from tests you already ran (optional)"
  ],
  "prerequisites": [
   "An AI to plan and record, such as Claude, ChatGPT or Gemini",
   "Your own approved test setup to run the cases",
   "Written approval from the agent's owner"
  ],
  "output": [
   {
    "name": "boundary-manifest.md",
    "contains": "Every input, tool, secret and output, which inputs outsiders can write to, the rules that must hold and each control's state."
   },
   {
    "name": "case-plan.md",
    "contains": "Each test case with its ID, input, rule tested, fake data, expected safe result and stop condition."
   },
   {
    "name": "result-ledger.md",
    "contains": "Pass, fail, blocked, error or not run for every planned case, with evidence and counts against the full plan."
   },
   {
    "name": "findings.md",
    "contains": "Failures merged by cause, each with the cases, the fix and where to enforce it."
   },
   {
    "name": "cleanup-status.md",
    "contains": "Test accounts, files and canary values to remove, each marked removed or unknown."
   },
   {
    "name": "retest-queue.md",
    "contains": "Cases to run again after each fix, who watches for the problem and what stays open."
   }
  ]
 },
 "output_shape": "APPROVAL  <owner> | <target and accounts> | <window> | <limits> | <stop contact> | <present, partial or missing>\nCONFIGURATION  <agent version or ID, or MISSING>\n\nBOUNDARY MAP\n  INPUTS  <channel> | <who can write to it> | <untrusted or trusted>\n  TOOLS  <tool> | <access it has> | <identity it uses> | <what it can change>\n  PROTECTED  <secret, private data or action> | <where it lives>\n  OUTPUTS  <where results go> | <approved destination or not>\n\nRULES THAT MUST HOLD\n  <rule> | <enforced in code, or prompt wording only>\n\nCONTROL TABLE\n  <control> | <rule it supports> | <missing, planned, implemented or verified> | <where it is enforced> | <evidence needed>\n\nCASE PLAN\n  <case ID> | <input used> | <rule tested> | <fake data> | <safe result expected> | <stop condition> | <approved yes or no>\n\nRESULTS LEDGER  <n> planned | <n> pass | <n> fail | <n> blocked | <n> error | <n> not run\n  <case ID> | <status> | <evidence> | <time>\n\nFINDINGS  <finding> | <cases> | <cause> | <fix and where> | <owner or MISSING>\nCLEANUP  <item to remove> | <confirmed removed or unknown>\nRETEST QUEUE  <case ID> | <after which fix> | <who watches>\nMISSING  <each gap and what it blocks>\nCHECKS MISSED  <one line each, or none>",
 "how_to_use": [
  "Download the pack and add it to your AI, or paste SKILL.md into a new chat. Claude, ChatGPT and Gemini can plan and record. A plain chat cannot run the tests. You run each case in your own approved test setup.",
  "Attach your agent map and your written approval. Add your test data and safeguards. If you have no written approval, say so. You then get a planning checklist only.",
  "Say \"Plan the cases and record results. Run nothing against any system.\" Your AI asks once for anything missing.",
  "Open boundary-manifest.md first. Check that it lists every input and every tool. Add anything it missed.",
  "Run each approved case in your test setup, then paste the result back. The AI records it as pass, fail, blocked or error. A case you did not run stays \"not run\".",
  "After a fix, give it the change and your new test result. Only then does a control become verified. Keep retest-queue.md for the next round."
 ],
 "checks": [
  "Authorization, target and configuration match every executed case.",
  "Synthetic fixtures and bounded destinations protect real data.",
  "Implementation and verified behavior have separate evidence.",
  "All planned case statuses and cleanup are retained."
 ],
 "steps": [
  {
   "position": 1,
   "id": "prompt-injection-defender",
   "name": "Prompt injection defender",
   "summary": "Describe your AI app. Map prompt-injection risks and safeguards for text it reads.",
   "url": "https://useaiblocks.com/skills/prompt-injection-defender"
  },
  {
   "position": 2,
   "id": "ai-agent-attack-tester",
   "name": "AI agent attack tester",
   "summary": "Share the agent and authorised test scope. Get a test plan, evidence-backed findings and retest results for checks that actually run.",
   "url": "https://useaiblocks.com/skills/ai-agent-attack-tester"
  },
  {
   "position": 3,
   "id": "prompt-injection-defender",
   "name": "Prompt injection defender",
   "summary": "Describe your AI app. Map prompt-injection risks and safeguards for text it reads.",
   "url": "https://useaiblocks.com/skills/prompt-injection-defender"
  }
 ],
 "next": [
  {
   "name": "Human approval review planner",
   "url": "https://useaiblocks.com/skills/human-review-gate",
   "why": "Human approval review planner"
  },
  {
   "name": "Code change test coverage reviewer",
   "url": "https://useaiblocks.com/skills/test-gap-finder",
   "why": "Code change test coverage reviewer"
  },
  {
   "name": "Test results analyst",
   "url": "https://useaiblocks.com/skills/agency-testing-test-results-analyzer",
   "why": "Test results analyst"
  },
  {
   "name": "Marketing prompt tester",
   "url": "https://useaiblocks.com/skills/marketing-prompt-tester",
   "why": "Set up AI to work for you"
  },
  {
   "name": "Service rollout and rollback planner",
   "url": "https://useaiblocks.com/skills/copilot-devops-rollout-plan",
   "why": "Service rollout and rollback planner"
  }
 ],
 "source": null,
 "credits": [],
 "files": [
  "references/practice-case.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/agents/track-agent-injection-controls-and-retest-evidence",
  "markdown": "https://useaiblocks.com/agents/track-agent-injection-controls-and-retest-evidence.md",
  "json": "https://useaiblocks.com/agents/track-agent-injection-controls-and-retest-evidence.json",
  "instructions": "https://useaiblocks.com/skills/track-agent-injection-controls-and-retest-evidence/SKILL.md",
  "download": "https://useaiblocks.com/skills/track-agent-injection-controls-and-retest-evidence.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/track-agent-injection-controls-and-retest-evidence",
  "api_document": "https://useaiblocks.com/api/v1/documents/agent/track-agent-injection-controls-and-retest-evidence",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
