More screenshots
Works with the AI Agents you already use
Security Review: OWASP Top 10 + Lethal Trifecta
by kim-svadoz
A security review that reports only what it can prove.
Free
Security Review: OWASP Top 10 + Lethal Trifecta
Example session with this skill installed
Perform a security review of the staged changes in this repo. Focus on the new /api/v1/fetch endpoint and the helper function in utils/net.ts.
- Read your context and instructions
- Compiled the security review
I have completed the security review of the staged changes affecting api/v1/fetch.ts and utils/net.ts.
Verdict
BLOCK
A Critical SSRF vulnerability was identified in the new fetch handler allowing access to internal metadata services.
Scope
Reviewed: api/v1/fetch.ts (lines 1-45), utils/net.ts (lines 12-30)
Not reviewed: Middleware auth logic in auth/index.ts as it was not in the diff.
Findings
SR-01 — Server-Side Request Forgery (SSRF)
- Severity: Critical
- OWASP: A10:2021 Server-Side Request Forgery
- CWE: CWE-918 Server-Side Request Forgery
- Location:
api/v1/fetch.ts:22 - Input:
target_urlparameter set tohttp://169.254.169.254/latest/meta-data/ - Outcome: The server fetches and returns cloud provider metadata, including IAM credentials, to the unauthenticated caller.
- Fix: Use an allowlist of permitted hostnames and set
followRedirects: falsein the fetch options.
SR-02 — Missing Ownership Check
- Severity: High
- OWASP: A01:2021 Broken Access Control
- CWE: CWE-639 IDOR
- Location:
api/v1/fetch.ts:15 - Input: Request with valid
session_idbut aresource_idbelonging to another user. - Outcome: The endpoint returns data for any
resource_idwithout verifying the requesting user owns it. - Fix: Add a check to verify
resource.owner_id === request.user_idbefore processing the fetch.
Lethal trifecta
| Component | Private data | Untrusted input | External communication | Result |
|---|---|---|---|---|
api/v1/fetch.ts:10 | yes | yes | yes | trifecta |
Verdict: trifecta present. The component reads env.INTERNAL_TOKEN (Private) and uses it to call a user-supplied URL (Untrusted + External).
Flow: target_url parameter → fetchInternalData → outbound HTTP request.
OWASP coverage
| Category | Result |
|---|---|
| A01 Broken Access Control | finding SR-02 |
| A02 Cryptographic Failures | no issue in scope |
| A03 Injection | no issue in scope |
| A04 Insecure Design | no issue in scope |
| A05 Security Misconfiguration | no issue in scope |
| A06 Vulnerable Components | not applicable: no dependency changes |
| A07 Identification/Auth | no issue in scope |
| A08 Integrity Failures | no issue in scope |
| A09 Logging/Monitoring | no issue in scope |
| A10 SSRF | finding SR-01 |
Unverified assumptions
request.user_id— depends on thevalidateSessionmiddleware correctly populating the user object from the database.
Coverage limits
Static reading cannot establish if the production environment uses a WAF or network-level egress filtering that might mitigate SR-01 at the infrastructure layer.
Next steps
- Implement the hostname allowlist in
utils/net.tsto resolve the SSRF. - Add the ownership verification query to the
api/v1/fetch.tshandler. - Re-run the review once changes are staged.
Connects securely to your tools. The creator never sees your data.
About this skill
A security review that reports only what it can prove.
An AI can write a pull request faster than anyone can review it, and a model reading a diff does not picture an attacker. This skill does. Before merge it names the request that reaches the defect, the rows it returns, the token that leaves the host — and when there is no such evidence, it says so instead of guessing.
Every finding carries a concrete input, the outcome that input produces, the OWASP Top 10 (2021) category and the CWE. A defect that cannot be demonstrated goes under unverified assumptions, not into the findings list, so the report stays trustworthy when it is short.
The part most reviews skip is the lethal trifecta. When a change adds a tool, endpoint or handler, the skill checks whether one flow can reach private data (secrets, tokens, user records, internal services), act on content an outside party controls (request input, fetched pages, issue text, model-produced arguments), and send data out. All three in one flow is an exfiltration path, and the report names the input leg, the code path and the output leg. A mitigation has to remove a leg, so a blocklist or an instruction telling the model not to leak data does not count.
Why this exists
This is not a demo written for a marketplace. It is the security gate from sugo (github.com/kim-svadoz/sugo), an open-source Claude Code plugin that runs each task through spec, implement, test and review, and decides each step from real build and test records instead of an agent reporting that it is done. In that pipeline the review step cannot finish without the lethal-trifecta check: a warning blocks the review until the mitigation names the leg it removes.
Cutting it out is what produced this listing: one SKILL.md, no scripts, no network calls and no credentials, so any agent that loads it can run the review, and you can read the whole procedure before you load it. The findings in the screenshots are the ones it produced on the sample diff included below, not an illustration.
What is inside
- SKILL.md: the review procedure. Scope, trust boundaries, the OWASP walk, the trifecta test, severity rules, the exact report format and the verdict rules (BLOCK / CHANGES REQUESTED / PASS).
- references/owasp-2021-cwe-matrix.md: for each of the ten categories, the code patterns to inspect, the evidence a finding needs and the CWE IDs to map to.
- references/lethal-trifecta.md: how to judge the three legs from code, how to trace the flow, a mitigation catalogue with the leg each one removes, and the mitigations that do not count.
- examples/sample-diff.patch: a small change containing an SQL injection, a missing authorization check, an SSRF, a trifecta tool, a session token in logs and a CSV formula injection. Applies with git apply.
- examples/sample-report.md: the report this skill produces for that diff, with the coverage table, the trifecta table and the unverified assumptions.
Use it when you want a security review, a vulnerability check on a pull request, an AppSec pass before release, or a review of a new MCP tool or endpoint. It is written to the SKILL.md standard, so any agent that loads SKILL.md can run it. It is read-only: it reports, it does not edit code.
What it does not do
- No dynamic testing or request execution. Findings come from reading the code.
- No dependency advisory lookup. An outdated-component claim is marked unverified without a resolved lockfile.
- No infrastructure review. Deployment configuration outside the repository is listed as unverified.
Read-only static analysis. Cannot verify runtime infrastructure, environment secrets, or code outside the provided diff/files. Static reading cannot confirm dependency version behaviors.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 17 days ago
- Free with an Agensi account
- Software
Git
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.