H6Harnessscope: coreweight: 1fix: guided

    H6: Hook scripts network access

    Why this rule exists (Empirical Evidence)

    Corpus analysis: 5 repos have hooks that POST tool call input/output to external servers via curl/wget/fetch. This is a data exfiltration vector — tool calls may contain source code, credentials, or user data.

    Claude Code Repository Corpus Analysis (2026)
    Anti-pattern (Triggers H6)
    # Anti-pattern triggering H6 (Hook scripts network access)
    # Rule or repository configuration violates this check without verification.
    Compliant pattern (Passes H6)
    # Compliant harness passing H6 (Hook scripts network access)
    # Concrete, verifiable repository configuration backed by corpus-4533.
    Verify locally or online
    npm install -g agentlint-ai && agentlint check --check H6

    More Harness checks