Security Review logo

Security Review

Community
UnpaidAttention
security-review

Run a structured vulnerability pass over code — injection, auth/authz gaps, secrets exposure, unsafe deserialization, unvalidated boundary input, SSRF, and stack-specific classes — reporting findings by severity with concrete fixes. Trigger this after writing or modifying code that handles user input, authentication/authorization, database queries, file paths, external requests, deserialization, or secrets; before committing security-sensitive changes; and whenever the user asks for a security review or mentions handling untrusted data. Do NOT trigger for pure-internal logic with no trust boundary, or as a substitute for general code-review — this pass hunts vulnerabilities specifically.

Overview

PublisherUnpaidAttention
Repositoryfable5-methodology
Skill namesecurity-review
Stars
94
Forks
21
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by UnpaidAttention on GitHub. Read the source before you install it.

Installation

Install the Security Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/security-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/security-review .claude/skills/security-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Security Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Security Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Security Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Security Review

Attackers send the inputs you didn't imagine. This pass walks the code from the attacker's side of every trust boundary. Work the checklist concretely — for each item either point to the line that handles it or record its absence as a finding.

Step 1: Map the trust boundaries and data flow

List every point where external data enters: HTTP params/body/headers/cookies, CLI args, file contents, env vars, message-queue payloads, third-party API responses, uploaded files. For each, trace where the data GOES — into a query? a shell command? a file path? an HTML response? a deserializer? The dangerous combination is always untrusted-source → sensitive-sink. Find the sinks.

Step 2: Run the vulnerability checklist

For each, find the handling line or log a finding:

  1. Injection — the sink test. Every sink gets checked:
    • SQL/NoSQL: parameterized queries / bound params ONLY. Any string-built query with external data = SEC-CRITICAL. ORMs help but raw-query escape hatches don't.
    • OS command: no shelling out with interpolated input; use execFile/subprocess with an arg array and shell=False; never shell=True with user data.
    • Path traversal: user-influenced file paths are resolved and confirmed within an allowed base dir; ../ is neutralized. Never open(base + user_input).
    • Template/HTML: output encoding on by default; find every raw/dangerouslySetInnerHTML/ |safe/v-html sink and confirm the input is trusted or sanitized (XSS).
  2. AuthN/AuthZ. Every non-public endpoint checks authentication AND authorization. The frequent hole is authz: authenticated user A can act on user B's resource (IDOR) — confirm ownership/role is checked against the RESOURCE, not just that someone is logged in. Never trust a client-supplied role/ID for access decisions.
  3. Secrets exposure. No hardcoded keys/tokens/passwords/connection strings. No secrets in logs, error messages, or client responses. Stack traces and internal paths never reach the client (generic message out, detail to server logs).
  4. Unsafe deserialization. No pickle/yaml.load (unsafe loader)/Java native deserialization/eval/Function() on untrusted data. Use safe parsers (JSON, yaml.safe_load).
  5. Input validation at the boundary. Type, length, range, format validated where data enters, allowlist over denylist. Unbounded input (huge body, deep JSON, giant upload) is bounded — absence is a DoS vector.
  6. SSRF and outbound requests. URLs built from user input for server-side fetches are validated against an allowlist; internal/metadata addresses (169.254.169.254, localhost, RFC1918) are blocked.
  7. Crypto and identifiers. No MD5/SHA1 for passwords (use argon2/bcrypt/scrypt); tokens and IDs from a crypto-secure RNG (secrets, crypto.randomBytes), never Math.random/ random.random; TLS verification never disabled.
  8. Transport and session. State-changing endpoints protected against CSRF where cookie-based; auth cookies HttpOnly+Secure+SameSite; tokens not in localStorage if XSS is reachable.

Step 3: Adapt to the stack

Layer the ecosystem's specific classes on top:

  • Node/TS: prototype pollution (Object.assign/merge from user JSON), child_process misuse, regex catastrophic backtracking (ReDoS), missing helmet.
  • Python: yaml.load, subprocess(shell=True), pickle, Jinja2 SSTI, Flask debug=True in prod, assert used for security checks (stripped under -O).
  • SQL/Postgres: dynamic SQL in functions, over-broad role grants, RLS assumed but not enabled.
  • Run the stack's audit tool as corroboration, not substitute: npm audit, pip-audit, cargo audit, and a SAST pass (semgrep) if available — read findings, don't just paste them.

Step 4: Report by severity, with fixes

Rank findings; each gets file:line, the concrete exploit ("attacker sends ?id=../../etc/passwd → reads arbitrary files"), and the specific fix — not "sanitize input" but "use Path(base).joinpath(name).resolve() and assert it's relative to base".

  • CRITICAL: directly exploitable for data breach / RCE / auth bypass. Block delivery.
  • HIGH: exploitable under realistic conditions (stored XSS, IDOR on sensitive data). Fix before merge.
  • MEDIUM: increases attack surface, not directly exploitable (missing rate limit, verbose errors). Log and schedule.
  • LOW/INFO: best-practice gaps, defense-in-depth.

Worked example finding

SEC-CRITICAL  api/reports.js:47  SQL injection
  Code: db.query(`SELECT * FROM reports WHERE owner='${req.query.user}'`)
  Exploit: ?user=' OR '1'='1  → dumps all reports; ?user='; DROP TABLE... → destructive.
  Fix: db.query('SELECT * FROM reports WHERE owner = $1', [req.query.user])
  Plus (SEC-HIGH, same line): no authz — any caller reads any owner's reports. Check
  req.query.user === session.userId (or a role grant) before querying.

Done when

Every external-input boundary has been traced to its sinks; every checklist item is either tied to a handling line or logged as a finding; findings are ranked with file:line, a concrete exploit, and a specific fix; and no CRITICAL finding is left un-flagged. Reporting is sufficient — do not fix beyond the task's scope without saying so (integrity-guardrails rule 7).

Frequently asked questions

What does the Security Review AI skill do?

Run a structured vulnerability pass over code — injection, auth/authz gaps, secrets exposure, unsafe deserialization, unvalidated boundary input, SSRF, and stack-specific classes — reporting findings by severity with concrete fixes. Trigger this after writing or modifying code that handles user input, authentication/authorization, database queries, file paths, external requests, deserialization, or secrets; before committing security-sensitive changes; and whenever the user asks for a security review or mentions handling untrusted data. Do NOT trigger for pure-internal logic with no trust b...

Why use Security Review on TypingMind?

Because you install it once and use it with any model. Security Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Security Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/security-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Security Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Security Review?

As many as you like. As long as a model supports skills, you can use Security Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Security Review AI skill free?

It is published on GitHub by UnpaidAttention. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇