ai-pr-review-prompt-injection

ai-pr-review-prompt-injection is a command for GitHub Copilot from awslabs/aidlc-workflows. It costs 0 tokens per session (709 once invoked), scanned B, original, MIT-0.

A pull-request review focused on prompt injection, where untrusted text tries to make an AI agent ignore its task or follow the attacker’s instructions. It examines attacks aimed at agents and the rules they consume.

In plain words
What is it for?
It is for checking code changes and review materials for attacks against agents and model-controlled instructions.
Why use it?
It helps find attempts to manipulate automated reviewers through pull-request content, files, or other model-readable contracts.

Command for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit It is for checking code changes and review materials for attacks against agents and model-controlled instructions.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection
About the project

AI-DLC Workflows is a reusable software-development lifecycle that guides AI coding agents through staged engineering work and human approval gates. Teams use it to run structured, reviewable development processes across several coding-agent environments, and the catalogue entries are its agents, skills, rules, MCP integrations, and instructions.

awslabs/aidlc-workflows · 5,295 stars · on GitHub · awslabs.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/awslabs/aidlc-workflows

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-pr-review-prompt-injection

README.md
[![agentmods](https://agentmods.dev/badge/commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection/github.svg)](https://agentmods.dev/commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection)
Your own site
<a href="https://agentmods.dev/commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection"><img src="https://agentmods.dev/badge/commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-pr-review-prompt-injection

Your own site · 80×15
<a href="https://agentmods.dev/commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection"><img src="https://agentmods.dev/badge/commands/awslabs/aidlc-workflows/ai-pr-review-prompt-injection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 709 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00709
Opus 5.5 $0.00000 $0.00284
Sonnet 5.5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

Measured 6d ago against content hash db59ae6a88a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

ai-pr-review-prompt-injection scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

- Role and instruction attacks: “ignore previous instructions”, “you are now”,

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.github/prompts/ai-pr-review-prompt-injection.md · 58 lines

The source is not reproduced here

Licensed MIT-0

The repository is licensed MIT-0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +8 lines db59ae6a88a3
  2. 23d ago Changed · +7 lines ea2023023c5e
  3. 1mo ago First seen · 43 lines · 0 tokens per session scan B f610f6c9adf4

Subscribe to this mod's changes

ai-pr-review-prompt-injection is a command published in the GitHub repository awslabs/aidlc-workflows (5,295 stars, last pushed today), licensed MIT-0. It costs nothing until one of its globs matches a file; then it loads 709 tokens. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.