{
 "public_id": "AIR-2023-0002",
 "incident_id": "2023-01-mathgpt-prompt-injection-rce",
 "date_disclosed": "2023-01-28",
 "date_occurred": "2023-01-28",
 "title": "Code execution in MathGPT via prompt injection against LLM-generated Python",
 "class": "responsible_disclosure",
 "attack_surface": "other",
 "initial_vector": "direct_prompt_injection_user_input",
 "agent_capability_abused": [
  "code_generation",
  "code_execution"
 ],
 "target_product": "MathGPT (Streamlit app)",
 "target_vendor": "MathGPT / Streamlit",
 "autonomy_level": "semi_autonomous",
 "impact_realized": false,
 "impact_type": [
  "credential_theft",
  "denial_of_service"
 ],
 "blast_radius": "single public Streamlit application and its GPT-3 API key",
 "cve": [],
 "taxonomy": {
  "owasp_asi": [
   "ASI01",
   "ASI05",
   "ASI03"
  ],
  "mitre_atlas": [
   "AML.CS0016"
  ],
  "labels": [
   "prompt_injection",
   "llm_to_code_execution",
   "early_agentic"
  ]
 },
 "defense_present": null,
 "defense_bypassed": null,
 "fix_shipped": "prompt filtering + API key rotation by MathGPT/Streamlit teams",
 "primary_sources": [
  "https://raw.githubusercontent.com/mitre-atlas/atlas-data/main/dist/v6/ATLAS-2026.07.yaml"
 ],
 "verified_quote": "In the MathGPT application, GPT-3 is used to convert the user's natural language question into Python code that is then executed.",
 "confidence": "medium",
 "notes": "Reported by Ludwig-Ferdinand Stumpp. The NCC Group reference URL now redirects to a landing page, so the quote is taken verbatim from MITRE ATLAS's own published data file. One of the earliest LLM-emits-code-that-is-executed incidents.",
 "risk_category": "security_fraud",
 "risk_secondary": [],
 "risk_subcategory": "Prompt Injection",
 "risk_sub_secondary": [
  "Credential & Secret Theft",
  "Remote Code Execution & Sandbox Escape"
 ],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": false,
 "agency_reason": "the app executed the LLM-generated Python",
 "vector_family": "direct_prompt_injection",
 "vector_detail": "direct_prompt_injection_user_input",
 "guardrail_kind": [
  "unknown"
 ],
 "guardrail_outcome": "silent",
 "xrefs": {
  "aiid": [],
  "atlas": [
   "AML.CS0016"
  ],
  "cve": [],
  "ghsa": []
 },
 "primary_asi": "ASI01",
 "agent_framework": "unknown",
 "model_provider": "unknown",
 "model_name": "",
 "detection_mechanism": "unknown",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "credential_theft",
 "eai_domain": "access_control_and_permissions",
 "eai_secondary": [
  "uncontrolled_resource_consumption"
 ],
 "eai_reason": "impact rule: credential_theft",
 "asi_curated": [],
 "asi_scope": "in_scope",
 "asi_provenance": "rule",
 "asi_reason": "ASI01 (vector_family=direct_prompt_injection); ASI05 (vector=code_exec); ASI03 (eai_category=credential_theft)",
 "submitted_by": "EAI Internal"
}