Security Review

Security Review is a command for GitHub Copilot from jnPiyush/AgentX. It costs 10 tokens per session (708 once invoked), scanned A, original, Apache-2.0.

A command for reviewing code changes for security weaknesses, including unsafe input handling, authentication and access-control problems, exposed data, and vulnerable dependencies. The OWASP Top 10 is a commonly used list of major web security risks.

In plain words
What is it for?
Use it to review a pull request or issue for injection, cross-site scripting, insecure authentication, broken authorisation, unsafe deserialisation, misconfiguration, and sensitive data in logs.
Why use it?
It gives a structured review so common security problems are checked before code is merged or released.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt. Also seen: agent in frontmatter.

Good fit Use it to review a pull request or issue for injection, cross-site scripting, insecure authentication, broken authorisation, unsafe deserialisation, misconfiguration, and sensitive data in logs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jnpiyush/agentx/security-review
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/jnPiyush/AgentX

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 Security Review

README.md
[![agentmods](https://agentmods.dev/badge/commands/jnpiyush/agentx/security-review/github.svg)](https://agentmods.dev/commands/jnpiyush/agentx/security-review)
Your own site
<a href="https://agentmods.dev/commands/jnpiyush/agentx/security-review"><img src="https://agentmods.dev/badge/commands/jnpiyush/agentx/security-review/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 Security Review

Your own site · 80×15
<a href="https://agentmods.dev/commands/jnpiyush/agentx/security-review"><img src="https://agentmods.dev/badge/commands/jnpiyush/agentx/security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 708 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00010 $0.00708
Opus 5.5 $0.00004 $0.00283
Sonnet 5.5 $0.00002 $0.00142
Haiku 4.5 $0.00001 $0.00071

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

Security

Grade A, and why

Security Review scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/security-review.prompt.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Review Prompt

Context

You are reviewing code for security vulnerabilities in PR/Issue #{{issue_number}}.

Before reviewing, read this file first:

  • .github/skills/architecture/security/SKILL.md

Instructions

1. OWASP Top 10 Check

Review code for each vulnerability category:

# Vulnerability What to Check
1 Injection SQL, NoSQL, OS command injection
2 Broken Auth Session management, password handling
3 Sensitive Data Encryption, data exposure
4 XXE XML parsing configuration
5 Broken Access Authorization checks
6 Misconfig Default credentials, error handling
7 XSS Output encoding, CSP
8 Deserialization Unsafe deserialization
9 Components Known vulnerable dependencies
10 Logging Sensitive data in logs

2. Input Validation

Check all user inputs:

  • Server-side validation present
  • Type checking implemented
  • Length limits enforced
  • Allowlist validation preferred
  • Parameterized queries used

3. Authentication & Authorization

  • Passwords not stored in plaintext
  • Strong hashing (bcrypt, Argon2)
  • Session tokens secure
  • Authorization checks on all endpoints
  • Principle of least privilege

4. Sensitive Data Handling

  • No secrets in code
  • Environment variables used
  • Encryption at rest
  • Encryption in transit (HTTPS)
  • PII properly handled

5. Error Handling

  • Errors don't expose internals
  • Stack traces hidden in production
  • Generic error messages to users
  • Detailed logging for debugging

6. Dependency Security

# Check for vulnerabilities
npm audit
pip-audit
dotnet list package --vulnerable
  • No known vulnerable packages
  • Dependencies up to date
  • Lock files present

7. Security Headers

Check for:

  • Content-Security-Policy
  • X-Frame-Options
  • X-Content-Type-Options
  • Strict-Transport-Security
  • X-XSS-Protection

Read the full file on GitHub · 124 lines

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. 7d ago Changed ca1e49e2f577
  2. 1mo ago Changed ac69b14e21c2
  3. 1mo ago First seen · 124 lines · 10 tokens per session scan A e688d63be432

Subscribe to this mod's changes

Security Review is a command published in the GitHub repository jnPiyush/AgentX (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 10 tokens to every session and 708 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.