{
 "public_id": "AIR-2024-0020",
 "incident_id": "2024-06-github-copilot-chat-exfil",
 "date_disclosed": "2024-06-14",
 "date_occurred": null,
 "title": "GitHub Copilot Chat: prompt injection in source comments to chat-history exfiltration",
 "class": "responsible_disclosure",
 "attack_surface": "coding_agent",
 "initial_vector": "indirect_prompt_injection_source_code",
 "agent_capability_abused": [
  "markdown_image_rendering",
  "chat_history_read"
 ],
 "target_product": "GitHub Copilot Chat VS Code extension",
 "target_vendor": "Microsoft / GitHub",
 "autonomy_level": "assistant",
 "impact_realized": false,
 "impact_type": [
  "data_exfiltration"
 ],
 "blast_radius": "Copilot Chat users opening untrusted repositories",
 "cve": [],
 "taxonomy": {
  "owasp_asi": [
   "ASI01",
   "ASI02"
  ],
  "mitre_atlas": [],
  "labels": [
   "image_markdown_exfiltration",
   "zero_click"
  ]
 },
 "defense_present": "none",
 "defense_bypassed": true,
 "fix_shipped": "fixed 2024-06-12 by disabling markdown image rendering in Copilot Chat; validity confirmed 2024-03-06",
 "primary_sources": [
  "https://embracethered.com/blog/posts/2024/github-copilot-chat-prompt-injection-data-exfiltration/"
 ],
 "verified_quote": "This means that using carefully crafted instructions in a source code file, an attacker can cause the LLM to return hyperlinks to images which will then be automatically retrieved.",
 "confidence": "high",
 "notes": "Johann Rehberger.",
 "risk_category": "privacy",
 "risk_secondary": [],
 "risk_subcategory": "Data Exfiltration via Context",
 "risk_sub_secondary": [],
 "ai_entity": "generative",
 "agency": "agent_acted",
 "agency_debatable": false,
 "agency_reason": "Copilot Chat rendered an image exfiltrating chat history",
 "vector_family": "indirect_prompt_injection",
 "vector_detail": "indirect_prompt_injection_source_code",
 "guardrail_kind": [
  "none"
 ],
 "guardrail_outcome": "not_applicable",
 "xrefs": {
  "aiid": [],
  "atlas": [],
  "cve": [],
  "ghsa": []
 },
 "primary_asi": "ASI01",
 "agent_framework": "github_copilot",
 "model_provider": "microsoft",
 "model_name": "",
 "detection_mechanism": "external_researcher",
 "tool_access": "unknown",
 "financial_loss_band": "unknown",
 "eai_category": "data_exfiltration_channels",
 "eai_domain": "privacy",
 "eai_secondary": [
  "confused_deputy"
 ],
 "eai_reason": "subcategory: Data Exfiltration via Context",
 "asi_curated": [
  "ASI01"
 ],
 "asi_scope": "in_scope",
 "asi_provenance": "curated_plus_rule",
 "asi_reason": "curated: ASI01 | added ASI02 (impact=tool_misuse)",
 "submitted_by": "EAI Internal"
}