AppSec Untangled Resources
Security code review resources from the
AppSec Untangled blog and YouTube channel:
an application security wiki, and Claude Code skills that review code
against it and walk you through how it works.
📖 The wiki
https://mohamed-osama-aboelkheir.github.io/appsec-untangled-resources/
- The methodology — how to run a threat-model-first review, end to end, over one pull request
- The threats — 14 threats in two categories, each with criteria, attack, mitigation, per-stack code and the bypasses worth checking
- Threat modeling — the Doors, Windows & Holes method for designs, features and whole systems
- Using the skill — running the same method as a Claude Code skill
- Example report — what a finished review looks like
🤖 The skills
/plugin marketplace add mohamed-osama-aboelkheir/appsec-untangled-resources
/plugin install appsec-skills@appsec-untangled
secure-code-review
Reviews a pull request, commit or diff against the wiki: it builds the story of
the change, lists entry points and dangerous sinks, picks the threats that
apply, checks each mitigation against the code, and writes a Markdown and HTML
report with evidence.
From the repository you want reviewed:
/appsec-skills:secure-code-review 128 # a pull request
/appsec-skills:secure-code-review HEAD # a commit
/appsec-skills:secure-code-review main..HEAD # a range
It reads only the wiki example files matching the project's stack, so a review
costs about the same context however far the wiki grows. It does not attempt
exploitation, and does not look up the project's known vulnerabilities — the
report shows what the method finds from the code alone.
threat-model
Threat models a design doc, a feature description or a repository with the
Doors, Windows & Holes method: the problem and the stories as numbered
sequence diagrams, then the template's scope questions, which find the
doors (entry points), windows (hidden entry points found by
de-abstracting each component, SaaS integrations included) and holes
(dangerous sinks). Doors, windows and holes that would get the same threats
and mitigations are grouped, so the model stays short enough to read in
one meeting. Each group gets its business-logic or source-to-sink threats as
what / who / impact, linked to shared mitigations, and every mitigation gets a
point-in-time or continuous test.
By default it runs in four stages and stops for your review after each:
stories, doors/windows/holes, threats and mitigations, tests. Ask for "one
shot" to run it straight through.
/appsec-skills:threat-model docs/design/checkout.md
/appsec-skills:threat-model . # the current repository
/appsec-skills:threat-model docs/design/checkout.md, one shot
/appsec-skills:threat-model the new reminders feature, against threat-model/threat-model.json
It writes threat-model.md and threat-model.json, and can fill a copy of
the Notion threat model template (page text and question callouts, then the
doors/windows/holes, threats, mitigations and testing plan databases) through
the Notion connector.
code-walkthrough
Explains how a flow works, so you understand the code instead of trusting a
verdict. Give it a route, a feature or a code location (a scanner finding's
sink, for example): it finds the routes that reach it, runs the app locally to
capture real responses, and writes, for each flow, a Mermaid sequence diagram
and a matching CodeTour
for VS Code. Step N in the tour is step N in the diagram, and each tour step
highlights the exact code it describes.
/appsec-skills:code-walkthrough GET /orders
/appsec-skills:code-walkthrough src/repositories/orderRepository.js:8
/appsec-skills:code-walkthrough the node-postgres-sqli findings in semgrep.json
It writes one spec per flow (docs/flows/<id>.flow.json) and generates the
tour (.tours/) and the diagram page (docs/flows/<id>.md) from it, so the
two never drift apart. Tour steps are anchored on code patterns, not line
numbers: after the code changes, rebuild and the highlights follow it.
source-to-sink