Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

Is my AI tool safe?Coding agentsGitHub (Microsoft)

Is GitHub Copilot safe?

No tool is safe or unsafe on its own: it depends on what it can reach and how it is set up. The record for GitHub Copilot: 4 incidents in this center's library (its advisory feed does not track it, so it has no CVE count here). Below: what went wrong, what was fixed, and how to use it safely.

What to watch for

CamoLeak pulled private code out through GitHub's own image proxy with a hidden comment; invisible characters in rules files planted backdoors in generated code; Plugin4Shell was unpatched for Copilot at disclosure. Encrypted instructions on a web page made Copilot CLI in autopilot send .env secrets out, and GitHub did not treat it as a vulnerability.

How to use it safely

Treat generated code as untrusted until reviewed, scan rules files for hidden characters, and watch the Copilot advisory feed for the plugin pinning fix.

What it can reach

  • Reads attacker-controlled content
  • Holds API keys and tokens
  • Installs plugins, skills or tools from registries

What went wrong: incidents in the library

How many people use it

A high CVE count can mean heavy scrutiny as much as weak engineering, so read the incidents and advisories, not only the number. The counts are what this center has recorded, not every flaw ever found; usage figures are the vendors' and registries' own published numbers.

Sources

Compare it with the others on the Technology watch list