Works with the AI Agents you already use

    Zero-Trust Code Auditor & Security Guard

    by Jocasta

    1

    Principal-level security auditor for detecting vulnerabilities, race conditions, and performance bottlenecks in code.

    $3.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Zero-Trust Code Auditor & Security Guard

    Zero-Trust Code Auditor & Security Guard

    Example session with this skill installed

    Review this Go diff for a new payment handler. It uses a mutex to update the balance. Check for race conditions and IDOR vulnerabilities. Use the testing package for any generated tests.

    • Read your context and instructions
    • Compiled the zero-trust code auditor

    I have audited the payment handler implementation in Go. The review identified a high-severity concurrency hazard regarding mutex scope and a critical authorization flaw.

    🛡️ Zero-Trust Code Audit Report

    1. Executive Summary & Verdict

    • Verdict: [REQUEST CHANGES]
    • Findings Summary: [1 Critical, 1 High, 0 Medium, 1 Low]

    2. Categorized Findings Matrix

    🚨 [CRITICAL] Broken Object-Level Authorization (IDOR)

    • Location: internal/api/payments.go#L42-L45
    • Vulnerability / Flaw: The handler fetches the Account record using only the account_id from the request body without verifying that the authenticated userID from the JWT context owns that account. An attacker can drain any account by guessing the ID.
    • Remediation:
    - account, err := repo.GetAccount(req.AccountID)
    + account, err := repo.GetAccountForUser(req.AccountID, ctx.Value("userID"))
    

    🚨 [HIGH] Improper Mutex Scope (Race Condition)

    • Location: internal/service/balance.go#L88-L102
    • Vulnerability / Flaw: The mutex is unlocked before the database transaction is committed. Concurrent requests can read a stale balance from the database before the previous transaction finishes, leading to a double-spend.
    • Remediation:
      s.mu.Lock()
    - defer s.mu.Unlock()
      err := s.db.Transaction(func(tx *sql.Tx) error {
          // update logic
      })
    + s.mu.Unlock()
    

    3. Defensive Security Audit (OWASP / CWE)

    • Broken Object-Level Authorization (BOLA/IDOR): [Flagged]
    • Injection & Input Validation: [Pass]
    • Secret Exposure & Logging: [Pass]

    4. Automated Regression & Concurrency Tests

    func TestPaymentConcurrency(t *testing.T) {
        service := NewPaymentService()
        var wg sync.WaitGroup
        for i := 0; i < 50; i++ {
            wg.Add(1)
            go func() {
                defer wg.Done()
                service.ProcessPayment(context.Background(), "acc_123", 100)
            }()
        }
        wg.Wait()
        // Assert final balance equals expected
    }
    

    Next steps

    1. Update the GetAccount repository call to include userID validation.
    2. Refactor the balance.go mutex logic to ensure the lock covers the entire database transaction lifecycle.
    3. Run the provided concurrency test to verify the fix under load.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Automated code reviews often miss deep architectural flaws, race conditions, and subtle security vulnerabilities that lead to production outages or data breaches. This skill acts as a principal-level security auditor, performing zero-trust analysis on your pull requests to catch critical defects before they reach main.

    What it does

    • Security scanning identifies OWASP Top 10 vulnerabilities including SQLi, IDOR, and hardcoded secrets with precise line citations.
    • Concurrency analysis detects race conditions, deadlocks, and missing distributed locks in asynchronous operations.
    • Performance profiling assesses Big-O time and space complexity while flagging N+1 query bottlenecks and resource leaks.
    • Automated test synthesis generates runnable unit, security, and concurrency tests for your specific framework.
    • Remediation generation provides drop-in, production-ready diffs for every identified issue.

    How it works

    1. Analyze input by inspecting your git diff or code snippet alongside your business intent and tech stack.
    2. Execute five-pillar audit covering severity categorization, defensive engineering, performance, test synthesis, and a merge verdict.
    3. Generate findings matrix with exact file paths, technical explanations, and before/after code blocks.
    4. Deliver verdict as a final "Request Changes" or "Approve" status based on strict enterprise standards.

    Frameworks & tools

    Works across any stack including TypeScript, Go, C#, and Python. Compatible with test runners like Vitest, pytest, and xUnit. Designed for use within Cursor, Claude Code, and GitHub Copilot.

    Why this beats prompting it yourself

    Generic prompts fail to enforce a systematic zero-trust protocol across five distinct engineering pillars. This skill guarantees every finding includes a technical justification and a valid code fix, preventing vague suggestions or hallucinated vulnerabilities.

    Use cases

    • Security sign-off for PRs handling sensitive PII or financial transactions.
    • Concurrency debugging for high-throughput async services and distributed systems.
    • Production readiness audits to ensure code meets SOLID principles and performance SLAs.

    Known limitations

    Does not perform syntax formatting or basic typo corrections. Vulnerabilities dependent on external infrastructure configuration are presented as verification questions rather than definitive flags.

    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

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 13 days ago

    Software
    PythonGit

    Permissions

    Terminal / Shell
    Read Files
    Listed13 days ago

    What's inside

    Frequently Asked Questions

    This skill acts as a principal-level auditor that goes beyond syntax checks to identify deep architectural flaws, concurrency race conditions, and OWASP vulnerabilities with production-ready code fixes for each finding.

    The skill is stack-agnostic and fully compatible with popular AI development environments like Cursor, Claude Code, and GitHub Copilot, supporting languages ranging from Go and Rust to TypeScript and Python.

    You receive the specialized zero-trust auditing protocol, a five-pillar analysis framework, and automated test synthesis capabilities designed to verify the security of your specific codebases.

    Once added to your AI agent of choice, simply point it toward a git diff or code snippet; it will automatically initiate the five-pillar audit and return a structured findings matrix.

    While it excels at logic and security audits, it does not handle cosmetic formatting or infrastructure-level vulnerabilities (like AWS IAM roles) that exist outside of the provided source code.

    Updates are delivered periodically to incorporate new vulnerability patterns and performance optimization techniques, ensuring the auditor stays current with evolving security threats.

    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.