{
  "id": "copilot-autoapprove-cve-2025-53773",
  "name": "GitHub Copilot prompt injection → autoApprove RCE (CVE-2025-53773)",
  "date_reported": "2025-08-12",
  "researcher": "Johann Rehberger",
  "org": "Embrace The Red",
  "sources": [
    {
      "url": "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/"
    },
    {
      "url": "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
    }
  ],
  "magicsword_coverage": [],
  "borderline": false,
  "borderline_note": null,
  "ai_role": "ai_agent_or_mcp_as_target",
  "ai_role_secondary": null,
  "ai_role_detail": null,
  "technique_summary": "Prompt injection could make Copilot write chat.tools.autoApprove true into .vscode/settings.json (YOLO mode), enabling shell commands without confirmation. Delivery via malicious source, web content, GitHub issues, or MCP responses. Affects Win/macOS/Linux. Patched VS 2022 17.14.12.",
  "initial_access": "Indirect prompt injection into Copilot context",
  "ai_tooling_and_models": [
    "GitHub Copilot",
    "Visual Studio"
  ],
  "other_tooling": [],
  "victims_and_sectors": "unknown",
  "regions": [
    "unknown"
  ],
  "attribution_or_cluster": "unknown",
  "scale_and_metrics": "CVE-2025-53773; patched Aug 2025",
  "prevention_angle": "Patch VS; alert on writes enabling autoApprove; treat agent settings as execution policy",
  "related_magicsword_projects": [],
  "source_notes": null,
  "last_reviewed": "2026-10-20",
  "attack_flow": {
    "nodes": [
      {
        "id": "step-1",
        "title": "Untrusted content enters context",
        "description": "Malicious source, web content, issues or MCP responses reach Copilot.",
        "kind": "access",
        "source_urls": [
          "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/",
          "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
        ]
      },
      {
        "id": "step-2",
        "title": "Indirect instructions redirect Copilot",
        "description": "Injected instructions induce an edit to the workspace settings.",
        "kind": "ai",
        "source_urls": [
          "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/",
          "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
        ]
      },
      {
        "id": "step-3",
        "title": "Automatic tool approval is enabled",
        "description": "The agent writes chat.tools.autoApprove into .vscode/settings.json.",
        "kind": "execution",
        "source_urls": [
          "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/",
          "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
        ]
      },
      {
        "id": "step-4",
        "title": "Shell actions bypass confirmation",
        "description": "The changed setting permits command execution without the expected approval.",
        "kind": "impact",
        "source_urls": [
          "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/",
          "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
        ]
      }
    ],
    "edges": [
      {
        "source": "step-1",
        "target": "step-2"
      },
      {
        "source": "step-2",
        "target": "step-3"
      },
      {
        "source": "step-3",
        "target": "step-4"
      }
    ]
  },
  "atlas_techniques": [
    {
      "id": "AML.T0051.001",
      "rationale": "Untrusted context supplies the injected instructions.",
      "source_urls": [
        "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/",
        "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
      ]
    },
    {
      "id": "AML.T0081",
      "rationale": "The agent changes its automatic-approval setting.",
      "source_urls": [
        "https://embracethered.com/blog/posts/2025/github-copilot-remote-code-execution-via-prompt-injection/",
        "https://msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2025-53773"
      ]
    }
  ],
  "category": "attacks-on-ai",
  "ai_involvement_confidence": "confirmed",
  "detections": [
    {
      "name": "Review attack-specific indicators",
      "format": "guidance",
      "notes": "Monitor for the techniques described in GitHub Copilot prompt injection → autoApprove RCE (CVE-2025-53773). Refer to sources for specific IOCs and TTPs."
    }
  ]
}