MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Security-Review

Security-Review是一款code方向的AI技能,核心价值是AI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching vulnerabilities that pattern-matching t,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

AI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component interactions, and catching vulnerabilities that pattern-matching t

Last verified on: 2026-05-30
mkdir -p ./skills/security-review && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/security-review/SKILL.md -o ./skills/security-review/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Security Review


An AI-powered security scanner that reasons about your codebase the way a human security

researcher would — tracing data flows, understanding component interactions, and catching

vulnerabilities that pattern-matching tools miss.


When to Use This Skill


Use this skill when the request involves:


- Scanning a codebase or file for security vulnerabilities

- Running a security review or vulnerability check

- Checking for SQL injection, XSS, command injection, or other injection flaws

- Finding exposed API keys, hardcoded secrets, or credentials in code

- Auditing dependencies for known CVEs

- Reviewing authentication, authorization, or access control logic

- Detecting insecure cryptography or weak randomness

- Performing a data flow analysis to trace user input to dangerous sinks

- Any request phrasing like "is my code secure?", "scan this file", or "check my repo for vulnerabilities"

- Running `/security-review` or `/security-review <path>`


How This Skill Works


Unlike traditional static analysis tools that match patterns, this skill:

1. **Reads code like a security researcher** — understanding context, intent, and data flow

2. **Traces across files** — following how user input moves through your application

3. **Self-verifies findings** — re-examines each result to filter false positives

4. **Assigns severity ratings** — CRITICAL / HIGH / MEDIUM / LOW / INFO

5. **Proposes targeted patches** — every finding includes a concrete fix

6. **Requires human approval** — nothing is auto-applied; you always review first


Execution Workflow


Follow these steps **in order** every time:


Step 1 — Scope Resolution

Determine what to scan:

- If a path was provided (`/security-review src/auth/`), scan only that scope

- If no path given, scan the **entire project** starting from the root

- Identify the language(s) and framework(s) in use (check package.json, requirements.txt,

go.mod, Cargo.toml, pom.xml, Gemfile, composer.json, etc.)

- Read `references/language-patterns.md` to load language-specific vulnerability patterns


Step 2 — Dependency Audit

Before scanning source code, audit dependencies first (fast wins):

- **Node.js**: Check `package.json` + `package-lock.json` for known vulnerable packages

- **Python**: Check `requirements.txt` / `pyproject.toml` / `Pipfile`

- **Java**: Check `pom.xml` / `build.gradle`

- **Ruby**: Check `Gemfile.lock`

- **Rust**: Check `Cargo.toml`

- **Go**: Check `go.sum`

- Flag packages with known CVEs, deprecated crypto libs, or suspiciously old pinned versions

- Read `references/vulnerable-packages.md` for a curated watchlist


Step 3 — Secrets & Exposure Scan

Scan ALL files (including config, env, CI/CD, Dockerfiles, IaC) for:

- Hardcoded API keys, tokens, passwords, private keys

- `.env` files accidentally committed

- Secrets in comments or debug logs

- Cloud credentials (AWS, GCP, Azure, Stripe, Twilio, etc.)

- Database connection strings with credentials embedded

- Read `references/secret-patterns.md` for regex patterns and entropy heuristics to apply


Step 4 — Vulnerability Deep Scan

This is the core scan. Reason about the code — don't just pattern-match.

Read `references/vuln-categories.md` for full details on each category.


**Injection Flaws**

- SQL Injection: raw queries with string interpolation, ORM misuse, second-order SQLi

- XSS: unescaped output, dangerouslySetInnerHTML, innerHTML, template injection

- Command Injection: exec/spawn/system with user input

- LDAP, XPath, Header, Log injection


**Authentication & Access Control**

- Missing authentication on sensitive endpoints

- Broken object-level authorization (BOLA/IDOR)

- JWT weaknesses (alg:none, weak secrets, no expiry validation)

- Session fixation, missing CSRF protection

- Privilege escalation paths

- Mass assignment / parameter pollution


**Data Handling**

- Sensitive data in logs, error messages, or API responses

- Missing encryption at rest or in transit

- Insecure deserialization

- Path traversa

🎯 Best For

  • Engineering teams doing code reviews
  • Open source maintainers
  • Security auditors
  • DevSecOps teams
  • Compliance officers

💡 Use Cases

  • Reviewing pull requests for security vulnerabilities
  • Checking code style consistency
  • Auditing dependencies for known CVEs
  • Scanning API endpoints for auth gaps

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Security-Review to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this skill check for OWASP Top 10?

Security-focused review skills often include OWASP checks. Check the skill content for specific vulnerability categories covered.

Can this replace a dedicated SAST tool?

AI-based security review is complementary to SAST tools. Use it as a first-pass filter, not a replacement.

Is Security-Review compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Security-Review?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Security-Review?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/security-review/SKILL.md, ready to use.

⚠️ Common Mistakes to Avoid

Blindly accepting AI suggestions

Always verify AI-generated review comments. Some suggestions may not apply to your specific codebase conventions.

Only scanning surface-level issues

Deep security review requires understanding your app architecture, not just regex patterns.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills