agentleFS
zahidoverflowzahidoverflow/viperclaw/skills/viper-proof-judge/SKILL.md

viper-proof-judge

Skill22 starsChanged 15 days agoMITView on GitHub

Evidence Quality Gate, CVSS v3.1 Calculator & Security Report Writer. Validates diagnostic evidence, filters false positives, and generates SARIF 2.1.0 and Markdown audit reports.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the following discovery commands across the target repository before manual code review:

    line 30
  2. Distinctive:

    Verify whether an upstream API Gateway, global middleware, or ORM hook already enforces the control before flagging a controller.

    line 60
  3. Distinctive:

    Write a Positive Unit Test confirming authorized, schema-valid requests succeed.

    line 87
  4. Distinctive:

    Write a Negative Security Regression Test confirming unauthorized, cross-tenant, or malformed inputs are deterministically rejected.

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

7-Gate Evidence Quality Judge, CVSS v3.1 Calculator & SARIF Reporter (viper-proof-judge)

1. Executive Scope, Standards & CWE/OWASP Mapping

  • Frameworks & Standards: FIRST CVSS v3.1 Specification, OASIS SARIF v2.1.0 Standard, Enterprise Vulnerability Triage & Compliance Quality Guidelines
  • Primary CWE Mapping: CWE-1000 (Research Concepts), CVSS v3.1 Base Metric Group
  • ViperClaw MCP Tools: viper_verify_and_report, viper_diff_oracle
  • ViperClaw CLI Command: viperclaw verify findings.json --report-md audit_report.md --report-sarif findings.sarif

2. Threat Model & Root-Cause Architecture

flowchart LR
  Cand["Candidate Finding + Receipts"] --> WAF["Gate 1-3: WAF Soft-200 & Noise Filter"] --> CVSS["Gate 4-6: Boundary & CVSS 3.1 Math"] --> Out["Gate 7: Verified H1 MD + SARIF 2.1.0"]

Root-Cause Analysis

Automated scanners and generic LLM agents flood engineering teams with false positives: reporting Cloudflare/Akamai 200 OK HTML challenge pages as vulnerabilities, flagging informational response headers as High severity, or emitting speculative reports without reproducible evidence.


3. Deterministic Discovery & Grep/AST Audit Commands

Run the following discovery commands across the target repository before manual code review:

# 1. Automated ViperClaw analysis
viperclaw verify findings.json --report-md audit_report.md --report-sarif findings.sarif

# 2. Rapid static pattern discovery (ripgrep)
viperclaw verify --title "<title>" --asset "<endpoint>" --request "<req>" --response "<resp>"

4. Senior Security Engineer 8-Point Audit Checklist

Control IDAudit Verification TargetPass CriteriaFail / Vulnerability Indicator
JUDGE-01Gate 1 — Target & Asset SpecificityExact file path + line number (SAST) or full HTTP endpoint + parameter (DAST) recorded.Vague component reference without a concrete file or URL.
JUDGE-02Gate 2 — Non-Noise ClassificationFinding is not on the auto-rejected scanner-noise list (missing X-Frame-Options on API, version banners, self-XSS, rate-limit on public read).Informational best-practice suggestion reported as an actionable vulnerability.
JUDGE-03Gate 3 — WAF Soft-200 EliminationResponse receipt verified by ProofOracle.detect_waf_soft_block to be genuine application output.Cloudflare (Attention Required!), Akamai (Reference #), or Imperva block page mistaken for a 200 OK hit.
JUDGE-04Gate 4 — Complete Diagnostic ReceiptBoth request_receipt (or source trace) and response_receipt (or sink proof) are non-empty and reproducible.Speculative claim ('This endpoint might be vulnerable to SQLi') with no verification receipt.
JUDGE-05Gate 5 — Trust Boundary CrossingEvidence demonstrates crossing an authentication, tenant, or privilege boundary.User accessing their own data or admin executing an intended admin feature.
JUDGE-06Gate 6 — Exact CVSS v3.1 Vector MathCVSS v3.1 base score computed deterministically from AV/AC/PR/UI/S/C/I/A metrics.Inflated severity score that contradicts the required privileges (PR:H) or impact.
JUDGE-07Gate 7 — Root-Cause Remediation IncludedReport includes an idiomatic, copy-pasteable code or configuration patch.Generic remediation advice ('Sanitize all user inputs') without specific code guidance.
JUDGE-08SARIF 2.1.0 Schema ComplianceOutput validates against OASIS SARIF v2.1.0 for direct upload to GitHub Code Scanning.Malformed JSON report incompatible with CI/CD security dashboards.

5. False-Positive Elimination & CVSS v3.1 Triage Rubric

False-Positive Gate

  1. Verify whether an upstream API Gateway, global middleware, or ORM hook already enforces the control before flagging a controller.
  2. Confirm the code path is reachable from an external entrypoint (not dead code, CLI-only admin script, or unit-test fixture).
Severity TierBaseline CVSS v3.1 VectorQualifying Security Impact
CRITICAL (9.0–10.0)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HVerified unauthenticated remote code execution, authentication failure, or full database compromise.
HIGH (7.0–8.9)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NVerified cross-tenant BOLA/IDOR, SSRF to internal infrastructure, or privilege escalation.
MEDIUM (4.0–6.9)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NVerified XSS, CSRF on state-changing routes, or scoped information disclosure.
LOW (0.1–3.9)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:NVerified minor defense-in-depth weakness requiring high precondition complexity.

6. Production Remediation Patterns (Vulnerable vs. Hardened Code)

# ❌ INVALID REPORT: Speculative claim with no request/response receipt or WAF check
# Title: "Potential SQL Injection on /api/search" (Rejected by ProofOracle Gate 4)

# ✅ VERIFIED REPORT: Validated through all 7 ProofOracle gates with SARIF + Markdown export
viperclaw verify findings.json \
  --report-md verified_audit_report.md \
  --report-sarif github_code_scanning.sarif

7. Regression Testing & Continuous Verification

  1. Write a Positive Unit Test confirming authorized, schema-valid requests succeed.
  2. Write a Negative Security Regression Test confirming unauthorized, cross-tenant, or malformed inputs are deterministically rejected.
  3. Re-run viperclaw taint and viperclaw verify to confirm zero remaining unmitigated flows in .viperclaw/graph.db.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.