{
  "schema_version": "1.3.0",
  "slug": "across-what-dependency-pinning-and-hash-verification-gates-must-an-instance-resolve-external-packages-to-prevent-hallucinated-typosquat-and-supply-chain-injection",
  "title": "Across what dependency-pinning and hash-verification gates must an instance resolve external packages to prevent hallucinated, typosquat, and supply-chain injection?",
  "date_of_record": "2026 October 20",
  "scope": "* **Applies when:** Resolving, recommending, or installing external software packages, container base images, or CI/CD workflow actions across any runtime environment. * **Does not apply when:** Importing modules exclusively from the langua",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/across-what-dependency-pinning-and-hash-verification-gates-must-an-instance-resolve-external-packages-to-prevent-hallucinated-typosquat-and-supply-chain-injection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/across-what-dependency-pinning-and-hash-verification-gates-must-an-instance-resolve-external-packages-to-prevent-hallucinated-typosquat-and-supply-chain-injection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/across-what-dependency-pinning-and-hash-verification-gates-must-an-instance-resolve-external-packages-to-prevent-hallucinated-typosquat-and-supply-chain-injection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2027,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "When an autonomous instance generates `pip install`, `npm install`, `cargo add`, or `go get` commands, a catastrophic supply-chain vulnerability known as **slopsquatting (hallucinated package injection)** occurs if the instance **invents a plausible-sounding package name from parametric memory (e.g., `fastapi-jwt-auth-helper` or `react-use-safe-state`) that ...",
    "what_was_observed": "In automated coding agents and CI/CD generation pipelines, unverified dependency resolution causes four primary supply-chain failure modes: 1. **Slopsquatting / Hallucinated Package Execution:** An LLM repeatedly hallucinates a non-existent utility package name across thousands of user sessions; a threat actor registers that exact name on PyPI with a malicious `setup.py` that exfiltrates `.env` secrets the moment an ...",
    "condition_of_validity": "* **Applies when:** Resolving, recommending, or installing external software packages, container base images, or CI/CD workflow actions across any runtime environment. * **Does not apply when:** Importing modules exclusively from the language runtime's built-in standard library (`sys.stdlib_module_names`). * **Non-binding outside condition:** This residual i...",
    "decision_boundary": "1. **Can you write this helper using the standard library or packages already installed in the repo?** If so, do not add a new external package. 2. **Are you about to recommend or install a package name from memory without checking a lockfile?** Stop—never guess package names, because attackers register hallucinated names on public registries. 3. **Does your...",
    "operational_effect": "1. **Total Elimination of Slopsquatting:** Hallucinated and unapproved package names are blocked before any registry request is made. 2. **Cryptographic Artifact Integrity:** Every external dependency is locked to an immutable version and SHA-256 digest. 3. **Neutralization of Install-Time Script Attacks:** Enforcing binary wheels and `--ignore-scripts` prev..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:AUTHENTICATION_AND_CREDENTIAL_ROTATION"
  ],
  "composition_edges": {
    "primary_domain": "authentication_and_credential_rotation",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/across-what-w3c-baggage-allowlist-and-pii-sanitization-gates-must-an-instance-propagate-cross-service-context-to-prevent-header-amplification-and-external-data-exfiltration.md",
      "https://corpusfetch.com/c/across-what-encoding-and-canonicalization-boundaries-must-an-instance-normalize-identifiers-and-paths-to-prevent-equivalence-collision-and-bypass.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/across-what-mandatory-tenant-predicate-scoping-and-row-level-security-gates-must-an-instance-isolate-multi-tenant-data-to-prevent-cross-tenant-data-leaks.md",
      "https://corpusfetch.com/c/across-what-concurrent-pipe-drain-and-ring-buffer-boundaries-must-an-instance-consume-subprocess-stdout-and-stderr-to-prevent-os-pipe-deadlocks-and-unbounded-output-oom.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/across-what-cryptographic-csprng-and-state-prediction-isolation-gates-must-an-instance-generate-tokens-and-session-identifiers-to-prevent-pseudo-random-predictability-and-token-forgery.md",
      "https://corpusfetch.com/c/across-what-monotonic-fencing-token-and-lease-heartbeat-gates-must-an-instance-execute-background-jobs-to-prevent-zombie-worker-split-brain-writes.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "90277be6e966e704bd6eac7ff923dc5eb854dbeac8dbfe5b6d1e8754f9e0eaa9",
    "verified_classes": [
      "SupplyChainDependencyRefusalError",
      "DependencyRequirementSpec",
      "VerifiedInstallCommand",
      "SupplyChainPinningGate"
    ],
    "verified_functions": [
      "verify_and_build_pip_argv"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SupplyChainDependencyRefusalError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
