viper-proxy-fingerprint
Skill22 starsChanged 15 days agoMITView on GitHub
HTTP Stack, Header & Error-Envelope Auditor. Reviews HAR captures and HTTP responses to inventory backend frameworks, cookie security attributes, and verbose error disclosures.
In this repository72 other files it gives its agents.
- llms.txtllms.txt
- viper-agent-skill-supplychainSkill
- viper-ai-llm-guardrailsSkill
- viper-api-gateway-apigee-kongSkill
- viper-auth-oauth-jwtSkill
- viper-aws-iam-cloud-auditSkill
- viper-bola-idorSkill
- viper-browser-extension-mv3Skill
- viper-browseros-agentSkill
- viper-cicd-hardeningSkill
- viperclawSkill
- viper-container-k8s-auditSkill
- viper-crypto-tls-auditSkill
- viper-csrf-samesite-auditSkill
- viper-dependency-sbomSkill
- viper-deserialization-parserSkill
- viper-diff-pr-reviewSkill
- viper-dns-email-domainSkill
- viper-electron-tauri-desktopSkill
- viper-fastapi-django-flaskSkill
- viper-file-upload-storageSkill
- viper-gcp-azure-cloud-auditSkill
- viper-github-repo-governanceSkill
- viper-go-service-auditSkill
- viper-graphql-wsSkill
- viper-grpc-protobuf-auditSkill
- viper-headers-csp-corsSkill
- viper-iac-terraform-auditSkill
- viper-incident-forensics-triageSkill
- viper-injection-oracleSkill
- viper-java-spring-auditSkill
- viper-js-harvesterSkill
- viper-kafka-rabbitmq-queueSkill
- viper-linux-systemd-hostSkill
- viper-logging-pii-complianceSkill
- viper-mcp-server-auditSkill
- viper-mobile-api-configSkill
- viper-multitenant-isolationSkill
- viper-nextjs-react-rscSkill
- viper-nginx-envoy-gatewaySkill
- viper-nodejs-express-nestjsSkill
- viper-oauth-oidc-complianceSkill
- viper-openapi-rest-schemaSkill
- viper-orchestratorSkill
- viper-payment-stripe-pciSkill
- viper-php-laravel-wordpressSkill
- viper-postgres-redis-mongoSkill
- viper-privacy-gdpr-hipaaSkill
- viper-proof-judgeSkill
- viper-proxy-parser-alignmentSkill
- viper-race-logicSkill
- viper-rag-vector-auditSkill
- viper-rate-limit-dos-resilienceSkill
- viper-remediation-patch-verifierSkill
- viper-ruby-rails-auditSkill
- viper-rust-memory-unsafeSkill
- viper-saml-sso-enterpriseSkill
- viper-sbom-slsa-provenanceSkill
- viper-secrets-auditSkill
- viper-semgrep-rule-authorSkill
- The first 60 shown.
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
- Distinctive: line 30
Run the following discovery commands across the target repository before manual code review:
- Distinctive: line 62
Verify whether an upstream API Gateway, global middleware, or ORM hook already enforces the control before flagging a controller.
- Distinctive: line 95
Write a Positive Unit Test confirming authorized, schema-valid requests succeed.
- Distinctive: line 96
Write a Negative Security Regression Test confirming unauthorized, cross-tenant, or malformed inputs are deterministically rejected.
≈ “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.
Files
HTTP Stack, Reverse-Proxy & Error-Envelope Security Auditor (viper-proxy-fingerprint)
1. Executive Scope, Standards & CWE/OWASP Mapping
- Frameworks & Standards: OWASP WSTG-INFO-02/08, OWASP Secure Headers Project, OWASP ASVS V14 (Configuration), CWE-209, CWE-614
- Primary CWE Mapping: CWE-209 (Generation of Error Message Containing Sensitive Information), CWE-614 (Sensitive Cookie in HTTPS Session Without 'Secure' Attribute), CWE-1004 (Sensitive Cookie Without 'HttpOnly' Flag)
- ViperClaw MCP Tools:
viper_fingerprint_traffic,viper_diff_oracle,viper_graph_upsert - ViperClaw CLI Command:
viperclaw fingerprint ./traffic.har --domain example.com --output stack_audit.json
2. Threat Model & Root-Cause Architecture
flowchart LR
Client["HTTP Client / HAR Capture"] --> CDN["Edge CDN / WAF / Reverse Proxy"] --> App["Backend Framework (FastAPI/NestJS/Spring)"] --> Err["Error Handler & Cookie Serializer"]Root-Cause Analysis
Inconsistent configuration between edge proxies and backend frameworks leaks internal version banners (Server, X-Powered-By, X-AspNet-Version), framework debug stack traces on malformed JSON/query inputs, and insecure session cookies.
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 fingerprint ./traffic.har --domain example.com --output stack_audit.json
# 2. Rapid static pattern discovery (ripgrep)
rg -n "(ServerTokens|server_tokens|x-powered-by|expose_php)"
rg -n "(set_cookie|Set-Cookie|SESSION_COOKIE_SECURE|SESSION_COOKIE_HTTPONLY)"
rg -n "(traceback\.format_exc|stackTrace|APP_DEBUG)"4. Senior Security Engineer 8-Point Audit Checklist
| Control ID | Audit Verification Target | Pass Criteria | Fail / Vulnerability Indicator |
FP-01 | Version Banner Suppression | Server, X-Powered-By, and X-AspNet-Version headers stripped or genericized. | Exact patch versions (nginx/1.18.0, PHP/8.1.2, Express) disclosed in responses. |
FP-02 | Production Error Envelope Hygiene | 500/400 errors return uniform JSON ({"error": "Bad Request", "request_id": "..."}). | Werkzeug/Django/Laravel/Spring debug pages or SQL stack traces returned to clients. |
FP-03 | Session Cookie Security Flags | All authentication cookies set Secure; HttpOnly; SameSite=Lax (or Strict). | Session cookies missing HttpOnly or Secure flags. |
FP-04 | Cache-Control on Authenticated APIs | Sensitive endpoints set Cache-Control: no-store, private. | Authenticated PII responses cached by shared CDNs due to missing Cache-Control. |
FP-05 | Sibling & Staging Host Isolation | Staging/internal API hosts discovered in HAR traffic require VPN/mTLS or Zero-Trust auth. | Development subdomains (api-dev, staging) accessible publicly with debug flags enabled. |
FP-06 | HTTP Method Restriction | TRACE, TRACK, and unused WebDAV methods disabled at the reverse proxy. | TRACE enabled or OPTIONS exposing administrative verbs without auth. |
FP-07 | Content-Type & nosniff Enforcement | Every API response sets explicit Content-Type: application/json; charset=utf-8 + X-Content-Type-Options: nosniff. | Missing Content-Type allowing MIME-sniffing XSS on uploaded/reflected content. |
FP-08 | HSTS Transport Pinning | Strict-Transport-Security: max-age=63072000; includeSubDomains; preload enforced. | Missing HSTS or http:// endpoints accepting credentials in cleartext. |
5. False-Positive Elimination & CVSS v3.1 Triage Rubric
False-Positive Gate
- Verify whether an upstream API Gateway, global middleware, or ORM hook already enforces the control before flagging a controller.
- Confirm the code path is reachable from an external entrypoint (not dead code, CLI-only admin script, or unit-test fixture).
| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
| HIGH (7.5) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | Verbose exception handler leaks environment variables, DB credentials, or AWS keys in 500 tracebacks. |
| MEDIUM (5.3) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | Authenticated PII endpoints missing Cache-Control: no-store, enabling Web Cache Deception. |
| LOW (3.1) | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N | Session cookie missing Secure or HttpOnly attribute or verbose server version banner. |
6. Production Remediation Patterns (Vulnerable vs. Hardened Code)
# ❌ VULNERABLE: Returns raw exception traceback to client & sets insecure cookie
@app.errorhandler(Exception)
def handle_error(exc: Exception):
return jsonify({"error": str(exc), "trace": traceback.format_exc()}), 500
# ✅ HARDENED: Logs full traceback internally with correlation ID & returns sanitized envelope
@app.errorhandler(Exception)
def handle_error(exc: Exception):
req_id = str(uuid.uuid4())
logger.exception("Unhandled error [request_id=%s]", req_id, exc_info=exc)
resp = jsonify({"error": "Internal Server Error", "request_id": req_id})
resp.headers["Cache-Control"] = "no-store"
resp.headers["X-Content-Type-Options"] = "nosniff"
return resp, 5007. Regression Testing & Continuous Verification
- Write a Positive Unit Test confirming authorized, schema-valid requests succeed.
- Write a Negative Security Regression Test confirming unauthorized, cross-tenant, or malformed inputs are deterministically rejected.
- Re-run
viperclaw taintandviperclaw verifyto confirm zero remaining unmitigated flows in.viperclaw/graph.db.
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
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.

