ECC: Command for GitHub Copilot

.github/prompts/security-review.prompt.md

security-review is a command for GitHub Copilot from affaan-m/ECC. It costs 19 tokens per session (531 once invoked), scanned A, original, MIT.

A security-review checklist for source code, covering secrets, input handling, injection, authentication, authorization, and data exposure. It is based on common web application risks such as those in the OWASP Top 10.

In plain words
What is it for?
Reviewing a codebase or branch for security problems in configuration, user input, login controls, sessions, logs, and error responses.
Why use it?
It helps find vulnerabilities such as leaked credentials, unsafe queries, cross-site scripting, path traversal, and missing access checks before they reach users.

Command for GitHub Copilot

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

This is affaan-m/ECC's own configuration. It tells GitHub Copilot how to work on ECC itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ECC configures →

Part of the ecc plugin — 70 skills, 58 commands, 68 agents, 1 MCP server shipped together

About the project

ECC is a toolkit that organizes and improves how coding agents work through skills, memory, security checks, research practices, and related extensions. It is for developers using agents such as Claude Code, Codex, OpenCode, and Cursor.

affaan-m/ECC · 253,158 stars · on GitHub · ecc.tools

Reuse

Borrowing it

Nothing to install: this file belongs to affaan-m/ECC. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/affaan-m/ECC/main/.github/prompts/security-review.prompt.md
Clone the repo
git clone --depth 1 https://github.com/affaan-m/ECC

Made for: GitHub Copilot.

Or install ecc, the plugin that ships this one along with the rest of its 70 skills, 58 commands, 68 agents, 1 MCP server.

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/affaan-m/ecc/security-review.svg)](https://agentmods.dev/commands/affaan-m/ecc/security-review)
Your own site
<a href="https://agentmods.dev/commands/affaan-m/ecc/security-review"><img src="https://agentmods.dev/badge/commands/affaan-m/ecc/security-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 531 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.00019 $0.00531
Opus 5 $0.00010 $0.00266
Sonnet 5 $0.00004 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured yesterday against content hash cad3b7159a3d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 yesterday.

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 · 71 lines

How it starts

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

Security Review

Perform a thorough security analysis of the selected code or current branch changes.

Checklist

Secrets & Configuration

  • No hardcoded API keys, tokens, passwords, or private keys anywhere in source
  • All secrets loaded from environment variables or a secret manager
  • Required env vars validated at startup (fail fast if missing)
  • .env files excluded from version control

Input Validation & Injection

  • All user inputs validated and sanitized before use
  • Parameterized queries for every database operation (no string interpolation)
  • HTML output escaped or sanitized (XSS prevention)
  • File path inputs sanitized (path traversal prevention)
  • Command inputs sanitized (command injection prevention)

Authentication & Authorization

  • Auth checks enforced server-side — never trust client-supplied user IDs or roles
  • Session tokens are sufficiently random and expire appropriately
  • Sensitive operations protected by authz checks, not just authn
  • CSRF protection enabled for state-changing endpoints

Data Exposure

  • Error responses scrubbed of stack traces, internal paths, and sensitive data
  • Logs do not contain PII, tokens, or passwords
  • Sensitive fields excluded from API responses (no over-fetching)
  • Appropriate HTTP security headers set

Dependencies

  • No known vulnerable packages (run npm audit / pip-audit / cargo audit)
  • Dependency versions pinned or locked
  • No unused dependencies that increase attack surface

Infrastructure (if applicable)

  • Rate limiting on all public endpoints
  • HTTPS enforced; no HTTP fallback in production
  • Principle of least privilege for service accounts and IAM roles

Response Protocol

If a CRITICAL issue is found:

  1. Stop and report immediately.
  2. Do not ship until fixed.
  3. Rotate any exposed secrets.
  4. Scan the rest of the codebase for similar patterns.

Output Format

## Findings

**[CRITICAL|HIGH|MEDIUM|LOW]** — [category]
Location: [file:line if known]
Issue: [what is wrong and why it is dangerous]
Fix: [concrete remediation]

## Summary
- Critical: N
- High: N
- Medium: N
- Safe to ship: yes / no

Read the full file on GitHub · 71 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. yesterday First seen · 71 lines · 19 tokens per session scan A cad3b7159a3d

Subscribe to this mod's changes

security-review is a command published in the GitHub repository affaan-m/ECC (253,158 stars, last pushed today), licensed MIT. It adds 19 tokens to every session and 531 once invoked, about $0.0001 per session on Opus 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-07.