{
 "public_id": "AIR-2023-0013",
 "incident_id": "2023-06-openai-chat-with-code-plugin",
 "date_disclosed": "2023-06-20",
 "date_occurred": null,
 "title": "ChatGPT Chat with Code plugin: prompt injection turns private GitHub repos public and steals source",
 "class": "responsible_disclosure",
 "attack_surface": "skill_plugin",
 "initial_vector": "indirect_prompt_injection_web_content",
 "agent_capability_abused": [
  "oauth_authorized_plugin_actions",
  "repository_write"
 ],
 "target_product": "ChatGPT Chat with Code plugin",
 "target_vendor": "OpenAI (third-party plugin)",
 "autonomy_level": "assistant",
 "impact_realized": false,
 "impact_type": [
  "unauthorized_action",
  "source_code_theft",
  "privacy_violation"
 ],
 "blast_radius": "users who installed the plugin and authorized GitHub OAuth",
 "cve": [],
 "taxonomy": {
  "owasp_asi": [
   "ASI01",
   "ASI03"
  ],
  "mitre_atlas": [],
  "labels": [
   "confused_deputy",
   "oauth_abuse",
   "no_user_confirmation"
  ]
 },
 "defense_present": "none - the plugin took actions without user confirmation",
 "defense_bypassed": true,
 "fix_shipped": "the plugin was later removed from the store (see the 2023-07-06 follow-up post); OpenAI added store criteria requiring user confirmation before actions",
 "primary_sources": [
  "https://embracethered.com/blog/posts/2023/chatgpt-plugin-vulns-chat-with-code/"
 ],
 "verified_quote": "Over the last few months I reached out to OpenAI about these issues many times (at least four) with little to no success or feedback.",
 "confidence": "high",
 "notes": "Johann Rehberger. Earliest widely cited case of an LLM plugin performing destructive OAuth-authorized actions from injected instructions.",
 "risk_category": "security_fraud",
 "risk_secondary": [
  "privacy"
 ],
 "risk_subcategory": "Prompt Injection",
 "risk_sub_secondary": [],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": false,
 "agency_reason": "the plugin performed OAuth-authorised repo writes, making private repos public",
 "vector_family": "indirect_prompt_injection",
 "vector_detail": "indirect_prompt_injection_web_content",
 "guardrail_kind": [
  "none"
 ],
 "guardrail_outcome": "not_applicable",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [],
  "ghsa": []
 },
 "primary_asi": "ASI01",
 "agent_framework": "unknown",
 "model_provider": "openai",
 "model_name": "",
 "detection_mechanism": "external_researcher",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "unsafe_actuation",
 "eai_domain": "agent_behaviour",
 "eai_secondary": [
  "sensitive_data_exposure",
  "confused_deputy"
 ],
 "eai_reason": "impact rule: unsafe_actuation",
 "asi_curated": [
  "ASI01"
 ],
 "asi_scope": "in_scope",
 "asi_provenance": "curated_plus_rule",
 "asi_reason": "curated: ASI01 | added ASI03 (signal=identity)",
 "submitted_by": "EAI Internal"
}