Works with the AI Agents you already use

    HAR File Forensics: Sanitize, Audit & Diff Network Traces

    by ClumsyMoney

    1

    Sanitizes and audits local .har HTTP Archive captures offline, returning secret-free HAR files, p50/p95/p99 waterfall forensics, security leak findings, and release regression diffs.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    HAR File Forensics: Sanitize, Audit & Diff Network Traces

    HAR File Forensics: Sanitize, Audit & Diff Network Traces

    Example session with this skill installed

    Sanitize ./captures/checkout_v2.har to ./clean/checkout_v2.sanitized.har, audit it for performance and security issues, and diff it against ./captures/checkout_v1.har with a 150 ms p95 regression threshold.

    • Read your context and instructions
    • Compiled the har file forensics

    HAR Forensics Summary — checkout_v2.har

    • Requests: 48 total (6 cached, 1 4xx/5xx/aborted) | Wire Transfer: 1,842.4 KiB
    • Latency (Wait / TTFB): p50 142.5 ms | p95 920.0 ms | p99 1,180.0 ms
    • Findings: 1 CRITICAL, 3 ERROR, 2 WARNING
    SeverityCodeEndpoint / TargetDetailsRecommended Fix
    CRITICALCOOKIE_SAMESITE_NONE_INSECURESet-Cookie: sidSameSite=None without Secure flagAdd Secure attribute
    ERRORUNCOMPRESSED_PAYLOADGET /api/v1/orders/:id45.2 KiB application/json without br/gzipEnable Brotli or gzip
    ERRORCORS_PREFLIGHT_UNCACHEDOPTIONS /api/v1/orders/:idMissing Access-Control-Max-Age (5s default)Set Access-Control-Max-Age: 7200

    HAR Diff (checkout_v1.har -> checkout_v2.har): FAIL (exit code 1)

    • GET api.example.com/api/v1/orders/:id: p95 180 ms -> 920 ms (+740 ms, exceeds 150 ms gate).

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

    About this skill

    Stop fighting 50 MB browser .har files that overflow LLM context windows and leak live session cookies.

    HAR File Forensics gives your AI agent a deterministic, 100% offline Python 3.9+ toolkit to sanitize, audit, and diff W3C HAR 1.2 network captures from Chrome DevTools, Firefox, Safari, Charles, and Proxyman—with zero pip installs, zero API keys, and zero network calls.

    What It Does

    • 8-Vector DevTools-Safe Sanitizer (har_sanitize.py): Scrubs Authorization, Cookie, Set-Cookie, X-API-Key, OAuth query/redirect tokens (rewriting queryString[], request.url, and redirectURL in lockstep), JSON/form postData, base64-encoded response bodies, and _initiator URLs using deterministic pseudonymous hashes ([REDACTED:HEADER:a1b2c3]) so session correlation survives without leaking credentials. Supports --strip-bodies for monster 50+ MB SPA captures.
    • Waterfall Performance & Security Auditor (har_audit.py): Computes exact p50/p95/p99 timings (properly handling HAR 1.2 -1 sentinels and avoiding ssl-inside-connect double-counting), wire transfer weight via the Chrome _transferSize cascade, uncompressed compressible payloads (>= 1.4 KiB while skipping binary webp/woff2/png), Cache-Control/immutable gaps, uncached CORS OPTIONS preflights (Access-Control-Max-Age), redirect chains, duplicate calls, status: 0 aborted requests, mixed content, and Set-Cookie flag flaws (Secure, HttpOnly, SameSite, __Host-/__Secure-). Automatically detects Chrome 130+ pre-sanitized exports.
    • Release-to-Release HAR Regression Differ (har_diff.py): Normalizes dynamic URLs (/users/12345 -> /users/:id, UUIDs, hex hashes, fingerprinted bundles) to compare baseline vs. candidate captures for p50/p95 latency regressions, payload bloat, new 4xx/5xx errors, and newly added third-party hosts—with CI exit codes (--max-p95-delta-ms, --fail-on-new-5xx).

    Operates exclusively on W3C HAR 1.2 JSON captures (.har); does not parse binary Wireshark .pcap/.pcapng files or run live remote Lighthouse crawls. Chrome 130+ exports that stripped sensitive headers at capture time cannot be audited for missing Set-Cookie security flags (an informational notice is emitted).

    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 3 days ago

    Software
    Python 3.9+

    Permissions

    Terminal / Shell
    Write Files
    Network Access
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    No. All three scripts run 100% offline using Python 3.9+ standard library only. Zero network requests, zero pip installs, and zero raw tokens are printed to stdout.

    Yes. har_sanitize.py parses and re-serializes valid W3C HAR 1.2 JSON, preserving all timing phases, status codes, and schema structure while replacing credentials with deterministic pseudonymous hashes.

    Chrome DevTools (including Chrome 130+ pre-sanitized export detection and _transferSize), Firefox, Safari, Charles Proxy, and Proxyman—handling UTF-8 BOMs, empty pages[] arrays, and floating-point timings automatically.

    No. This toolkit is purpose-built for W3C HAR 1.2 HTTP Archive (.har) JSON captures, not binary L3/L4 .pcap/.pcapng packet captures.

    Only Python 3.9 or newer. No Node.js, Lighthouse, or third-party Python packages are required.

    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.