{
 "public_id": "AIR-2026-0083",
 "incident_id": "2026-03-anthropic-claude-code-source-leak",
 "date_disclosed": "2026-04-01",
 "date_occurred": "2026-03-31",
 "title": "Claude Code source map shipped in npm v2.1.88, immediately followed by typosquatting of its internal dependencies",
 "class": "in_the_wild",
 "attack_surface": "coding_agent",
 "initial_vector": "accidental_source_map_in_published_package_then_dependency_confusion",
 "agent_capability_abused": [
  "package_installation"
 ],
 "target_product": "@anthropic-ai/claude-code npm package v2.1.88",
 "target_vendor": "Anthropic",
 "autonomy_level": "semi_autonomous",
 "impact_realized": true,
 "impact_type": [
  "ip_disclosure",
  "malware_distribution"
 ],
 "blast_radius": "~512,000 lines of unobfuscated TypeScript across ~1,900 files publicly mirrored; five squatted internal dependency names registered on npm",
 "cve": [],
 "taxonomy": {
  "owasp_asi": [
   "ASI05",
   "ASI04",
   "ASI03"
  ],
  "mitre_atlas": [],
  "labels": [
   "dependency_confusion",
   "typosquatting",
   "agent_tooling_impersonation",
   "trojanized_download_lures"
  ]
 },
 "defense_present": "npm publishing pipeline",
 "defense_bypassed": true,
 "fix_shipped": "Anthropic pulled the source map from subsequent releases",
 "primary_sources": [
  "https://thehackernews.com/2026/04/claude-code-tleaked-via-npm-packaging.html"
 ],
 "verified_quote": "No sensitive customer data or credentials were involved or exposed. This was a release packaging issue caused by human error, not a security breach.",
 "confidence": "high",
 "notes": "A 59.8 MB JS source map was included in v2.1.88 on 2026-03-31. npm user pacifier136 then registered audio-capture-napi, color-diff-napi, image-processor-napi, modifiers-napi and url-handler-napi as empty stubs to squat Claude Code's internal dependency names. Reporting also states users who installed Claude Code between 00:21 and 03:29 UTC on 2026-03-31 may have pulled a trojanized Axios containing a cross-platform RAT - that Axios compromise was NOT independently verified here and deserves its own record.",
 "risk_category": "security_fraud",
 "risk_secondary": [],
 "risk_subcategory": "Supply Chain Compromise",
 "risk_sub_secondary": [],
 "ai_entity": "generative",
 "agency": "human_acted_on_output",
 "agency_debatable": true,
 "agency_reason": "a leaked source map let humans typosquat deps that installers then pulled",
 "vector_family": "conventional_vulnerability",
 "vector_detail": "accidental_source_map_in_published_package_then_dependency_confusion",
 "guardrail_kind": [
  "unknown"
 ],
 "guardrail_outcome": "silent",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [],
  "ghsa": []
 },
 "primary_asi": "ASI05",
 "agent_framework": "claude_code",
 "model_provider": "anthropic",
 "model_name": "",
 "detection_mechanism": "unknown",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "supply_chain_vulnerabilities",
 "eai_domain": "tool_misuse",
 "eai_secondary": [],
 "eai_reason": "subcategory: Supply Chain Compromise",
 "asi_curated": [
  "ASI05"
 ],
 "asi_scope": "in_scope",
 "asi_provenance": "curated_plus_rule",
 "asi_reason": "curated: ASI05 | added ASI04 (eai_category=supply_chain_vulnerabilities), ASI03 (signal=identity)",
 "submitted_by": "EAI Internal"
}