Documented Exercise · OBS.EX0130
Asleep at the Keyboard? 1,689-Program Security Audit of GitHub Copilot
Pearce et al. (IEEE S&P 2022) systematically audited GitHub Copilot across 89 coding scenarios covering MITRE Top-25 CWEs, generating 1,689 programs across diverse prompts, weaknesses, and domains to measure baseline insecure code emission. Static and manual vulnerability analysis found approximately 40% of generated programs contained exploitable security weaknesses inherited from unvetted open-source training data. Even without active adversarial poisoning, uncurated web code corpora propagate recurring vulnerability patterns into production software. Development teams should treat AI-generated code as untrusted input subject to mandatory SAST, dependency review, and human security sign-off.
Exercise dossier metadata
- Case ID
OBS.EX0130- Classification
- Exercise
- Date
- Evaluation scope
- GitHub Copilot · 89 High-Risk MITRE Top-25 CWE Coding Scenarios
- Reference URI
https://arxiv.org/abs/2108.09293
Mapped AI security techniques
- Supply Chain Compromise: Software AML.T0010.001
- Erode AI Model Integrity AML.T0031
- AI-Enabled Product or Service AML.T0047
Mapped defensive controls
- Vulnerability Scanning AML.M0016
- User Training AML.M0018
- Generative AI Guidelines AML.M0021
Source citation records
- Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions · arXiv (author preprint; peer-review status not inferred) ·