/viperclaw:viper-proxy-parser-alignmentfrom viperclaw
Audits reverse-proxy vs. backend parser consistency, content-type validation, and URI normalization to detect interpretation conflicts (CWE-436).
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-proxy-parser-alignment)viper_fingerprint_traffic, viper_diff_oracle, viper_verify_and_reportviperclaw fingerprint ./traffic.har --output proxy_audit.jsonflowchart LR
Req["Incoming HTTP Request"] --> WAF["Edge WAF / Reverse Proxy Parser"] --> Norm["Canonical Normalization Layer"] --> App["Backend Router & Body Parser"]
Defense-in-depth controls fail when an upstream edge proxy or WAF parses paths, headers, query parameters, or body encodings differently from the downstream web framework (e.g., Nginx vs. Spring path matrix parameters /admin;v=1, duplicate JSON keys, or mismatched Content-Type handling).
Run the following discovery commands across the target repository before manual code review:
# 1. Automated ViperClaw analysis
viperclaw fingerprint ./traffic.har --output proxy_audit.json
# 2. Rapid static pattern discovery (ripgrep)
rg -n "(Content-Type|application/x-www-form-urlencoded|multipart/form-data|application/json)"
rg -n "(req\.query|request\.args|request\.GET|parse_qs)"
rg -n "(Transfer-Encoding|Content-Length|X-Original-URL|X-Rewrite-URL)"
| Control ID | Audit Verification Target | Pass Criteria | Fail / Vulnerability Indicator |
|---|---|---|---|
EDGE-01 | Strict Content-Type Allowlisting | Backend controllers explicitly reject requests whose Content-Type does not match the endpoint contract (e.g., 415 Unsupported Media Type). | JSON endpoint also accepts application/x-www-form-urlencoded or text/plain, causing parser mismatch with edge rules or CSRF preflights. |
EDGE-02 | Path Normalization Consistency | Reverse proxy and backend normalize ; matrix parameters, %2f encoded slashes, and dot-segments identically. | Proxy ACL restricts /admin/* while normalized variants reach downstream routing handlers. |
EDGE-03 | HTTP Parameter Precedence (HPP) | Duplicate query parameters (?role=user&role=admin) are rejected or handled with identical precedence across proxy and app. | Edge validator checks the first value while Express/PHP/Python reads the last value or a list. |
EDGE-04 | Duplicate JSON Key Rejection | JSON parsers reject bodies containing duplicate object keys ({"admin":false,"admin":true}). | Upstream validator checks the first key while downstream parser keeps the last key. |
EDGE-05 | Routing Override Header Stripping | Edge proxy strips untrusted X-Original-URL, X-Rewrite-URL, X-Forwarded-Host, and X-Forwarded-Prefix headers. | Untrusted X-Original-URL header accepted by downstream middleware to alter resolved route path. |
EDGE-06 | Body Size & Inspection Limit Alignment | Maximum request body size at the reverse proxy is <= the edge filter's inspection limit (e.g., 8KB/64KB). | Backend accepts multi-megabyte bodies while upstream inspection stops at the first 8KB. |
EDGE-07 | HTTP/1.1 Framing Consistency | Front-end and back-end servers use HTTP/2 or normalize Transfer-Encoding and reject ambiguous Content-Length + Transfer-Encoding requests. | Ambiguous chunked framing accepted by edge proxy (CWE-444). |
EDGE-08 | Code-Level Root-Cause Remediation | Validation and access control are enforced directly in application handlers rather than relying solely on edge rules. | Authorization or parameterization omitted in application code behind regex edge filters. |
| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.1) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | Path normalization or X-Original-URL mismatch circumventing access checks on restricted endpoints. |
| HIGH (7.5) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | Duplicate JSON key or parameter precedence mismatch circumventing input validation filters. |
| MEDIUM (5.3) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | Unrestricted Content-Type acceptance or missing header stripping at the reverse proxy. |
# ❌ VULNERABLE: Passes untrusted X-Original-URL & unnormalized path directly to backend
location / {
proxy_pass http://backend_upstream;
}
# ✅ HARDENED: Strips routing override headers, caps body size to inspection limit & normalizes URI
location / {
client_max_body_size 64k;
proxy_set_header X-Original-URL "";
proxy_set_header X-Rewrite-URL "";
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://backend_upstream;
}
viperclaw taint and viperclaw verify to confirm zero remaining unmitigated flows in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub zahidoverflow/viperclaw --plugin viperclaw72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas./viper-auth-oauth-jwtAuthentication, OAuth 2.0 / OIDC & JWT Security Auditor. Reviews token verification, algorithm allowlisting, claim validation, and OAuth redirect_uri configurations./viper-aws-iam-cloud-auditAWS IAM, STS, S3, KMS & Lambda Security Auditor (modeled on Prowler, Parliament & CloudSplaining). Reviews iam:PassRole escalation, STS ExternalId, S3 policies, and IMDSv2./viper-bola-idorObject & Function-Level Authorization (BOLA / BFLA) Audit Skill. Reviews resource access controls, tenant scoping, and ownership checks across API endpoints and controllers.Other plugins' skills for the same job