More screenshots

    Works with the AI Agents you already use

    Security Review: OWASP Top 10 + Lethal Trifecta

    by kim-svadoz

    1

    A security review that reports only what it can prove.

    Free

    Security scanned
    Security Review: OWASP Top 10 + Lethal Trifecta

    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_url parameter set to http://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: false in 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_id but a resource_id belonging to another user.
    • Outcome: The endpoint returns data for any resource_id without verifying the requesting user owns it.
    • Fix: Add a check to verify resource.owner_id === request.user_id before processing the fetch.

    Lethal trifecta

    ComponentPrivate dataUntrusted inputExternal communicationResult
    api/v1/fetch.ts:10yesyesyestrifecta

    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

    CategoryResult
    A01 Broken Access Controlfinding SR-02
    A02 Cryptographic Failuresno issue in scope
    A03 Injectionno issue in scope
    A04 Insecure Designno issue in scope
    A05 Security Misconfigurationno issue in scope
    A06 Vulnerable Componentsnot applicable: no dependency changes
    A07 Identification/Authno issue in scope
    A08 Integrity Failuresno issue in scope
    A09 Logging/Monitoringno issue in scope
    A10 SSRFfinding SR-01

    Unverified assumptions

    • request.user_id — depends on the validateSession middleware 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

    1. Implement the hostname allowlist in utils/net.ts to resolve the SSRF.
    2. Add the ownership verification query to the api/v1/fetch.ts handler.
    3. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Frequently Asked Questions

    This skill goes beyond basic pattern matching by enforcing a strict 'evidence-based' standard, requiring a clear exploit path for every finding to eliminate the 'fluff' and false positives common in generic AI security prompts.

    The skill is language-agnostic and functions with any text-based source code, git diff, or patch file, making it compatible with any programming language or framework your agent is currently handling.

    The 'lethal trifecta' is a specialized audit that identifies dangerous intersections where code handles private data, accepts untrusted input, and has access to external networks, specifically targeting complex data exfiltration risks.

    This skill provides a static, read-only audit of the code provided; it does not analyze your live infrastructure, runtime environment, or the internal logic of compiled third-party dependencies.

    You receive the complete security review skill logic, pre-configured to map findings to OWASP Top 10 and CWE standards, ready to be integrated into your existing AI agent workflow or PR review pipeline.

    Yes, the skill is specifically designed to audit LLM-centric components, including prompt instructions and agent tool definitions, to protect against indirect injection and unauthorized data access.

    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.

    Free