{
 "public_id": "AIR-2026-0038",
 "incident_id": "2026-02-moonwell-ai-written-oracle-code-loss",
 "date_disclosed": "2026-02-11",
 "date_occurred": "2026-02-08",
 "title": "AI-written Chainlink OEV wrapper code left DeFi lender Moonwell with ~$1.8M in bad debt",
 "class": "safety_failure",
 "attack_surface": "coding_agent",
 "initial_vector": "none_adversarial",
 "agent_capability_abused": [
  "code_generation",
  "smart_contract_authoring"
 ],
 "target_product": "Moonwell (Base/Optimism) oracle wrapper contracts; code reportedly generated with Claude Opus 4.6",
 "target_vendor": "Moonwell; Anthropic (model)",
 "autonomy_level": "copilot_with_approval",
 "impact_realized": true,
 "impact_type": [
  "financial_loss"
 ],
 "blast_radius": "~$1.8 million in bad debt and a liquidation cascade affecting Moonwell borrowers",
 "cve": [],
 "taxonomy": {
  "owasp_asi": [
   "ASI09"
  ],
  "mitre_atlas": [],
  "labels": [
   "ai_generated_code_in_production",
   "audit_gap",
   "defi",
   "borderline_no_tool_use"
  ]
 },
 "defense_present": "governance proposal review and smart-contract audit process",
 "defense_bypassed": true,
 "fix_shipped": "feed disabled; Moonwell postmortem published on Discord",
 "primary_sources": [
  "https://finance.yahoo.com/news/oracle-error-leaves-defi-lender-082155372.html"
 ],
 "verified_quote": "Reports indicate the flawed code layout may have been generated by AI tools, specifically Claude Opus 4.6, raising serious questions about audit verification standards for generated code.",
 "confidence": "medium",
 "notes": "Surfaced via AIAAIC2211 ('AI-generated code error results in USD 1.8m smart contract loss'). Borderline for scope: the model generated code that a human governance process deployed, so there is no autonomous agent action - but the harm is real, financial and traceable to AI-authored code. The AI attribution is reported, not confirmed by Moonwell. Cryptopolitan's dedicated writeup is noted but not quoted here.",
 "risk_category": "security_fraud",
 "risk_secondary": [],
 "risk_subcategory": "Insecure Code Generation",
 "risk_sub_secondary": [],
 "ai_entity": "generative",
 "agency": "human_acted_on_output",
 "agency_debatable": false,
 "agency_reason": "the model wrote the wrapper; humans reviewed and deployed it on-chain",
 "vector_family": "none_autonomous",
 "vector_detail": "none_adversarial",
 "guardrail_kind": [
  "unknown"
 ],
 "guardrail_outcome": "silent",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [],
  "ghsa": []
 },
 "primary_asi": "ASI09",
 "agent_framework": "unknown",
 "model_provider": "anthropic",
 "model_name": "",
 "detection_mechanism": "unknown",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "hallucination",
 "eai_domain": "agent_output_quality",
 "eai_secondary": [
  "unsafe_actuation"
 ],
 "eai_reason": "subcategory: Insecure Code Generation",
 "asi_curated": [],
 "asi_scope": "in_scope",
 "asi_provenance": "rule",
 "asi_reason": "ASI09 (eai fallback: hallucination)",
 "submitted_by": "EAI Internal"
}