{"data":{"id":"b323d06e-edc9-4405-af5d-468d2b360342","title":"Amp Code: Invisible Prompt Injection Fixed by Sourcegraph","summary":"Sourcegraph's Amp coding agent interpreted invisible Unicode Tag characters as instructions, so hidden text in seemingly harmless input could trigger commands. The author chained this into an end-to-end exploit that searched for and dumped an environment variable, encoded it into a URL query parameter, and exfiltrated it through read_web_page or markdown image rendering. After Sourcegraph was contacted on June 14, 2025, the vulnerability was quickly addressed.","solution":"As far as the author can tell, Sourcegraph now sanitizes the input, and users should run the latest version. The author also provided recommendations to the Amp team: strip or neutralize Unicode Tag characters before processing any input, add visual and technical safeguards against invisible prompts, include automated detection of suspicious Unicode usage in prompt injection monitors, require human-in-the-loop approval before navigating to untrusted third-party domains, and mitigate downstream data exfiltration.","labels":["security","safety"],"sourceUrl":"https://embracethered.com/blog/posts/2025/amp-code-fixed-invisible-prompt-injection/","publishedAt":"2025-08-16T19:20:58.000Z","cveId":null,"cweIds":null,"cvssScore":null,"cvssSeverity":null,"severity":"medium","attackType":["prompt_injection","data_extraction"],"issueType":"news","affectedPackages":null,"affectedPackageNames":null,"affectedPackageRefs":null,"affectedVendors":["Anthropic","Google","OpenAI"],"affectedVendorsRaw":["Amp","Sourcegraph","Claude","Gemini","Grok","ChatGPT"],"classifierModel":"claude-haiku-5-5","classifierPromptVersion":"v4","summaryPromptVersion":"v2","headline":null,"headlinePromptVersion":null,"cvssVector":null,"attackVector":null,"attackComplexity":null,"privilegesRequired":null,"userInteraction":null,"exploitMaturity":null,"epssScore":null,"epssCheckedAt":null,"kevDateAdded":null,"advisoryAliases":null,"affectedPackagesSource":null,"affectedPackagesCheckedAt":null,"patchAvailable":null,"disclosureDate":null,"fixReleasedAt":null,"daysToFix":null,"fixCheckedAt":null,"capecIds":null,"crossRefCount":0,"attackSophistication":"moderate","impactType":["confidentiality","integrity"],"aiComponentTargeted":"agent","llmSpecific":true,"classifierConfidence":0.9,"researchCategory":null,"atlasIds":["AML.T0051"]}}