{"data":{"id":"e89b669f-db45-44bb-9e06-6e2c4a083643","title":"Terminal DiLLMa: LLM-powered Apps Can Hijack Your Terminal Via Prompt Injection","summary":"Leon Derczynski reported that LLMs can output ANSI escape codes, including the ESC (ASCII 27) control character, which terminal emulators interpret to change behavior. The author builds on this by turning the codes into prompt injection test cases covering flashing text, title changes, cursor movement, hidden text, clipboard copying, denial of service and clickable hyperlinks. The author notes that LLM-integrated CLI tools and programs that print LLM output to stdout without handling control characters are the main exposed scenarios, and that injection via prompt injection has not yet been confirmed.","solution":"N/A -- no mitigation discussed in source.","labels":["security","research"],"sourceUrl":"https://embracethered.com/blog/posts/2024/terminal-dillmas-prompt-injection-ansi-sequences/","publishedAt":"2024-12-06T16:00:25.000Z","cveId":null,"cweIds":null,"cvssScore":null,"cvssSeverity":null,"severity":"medium","attackType":["prompt_injection","denial_of_service"],"issueType":"news","affectedPackages":null,"affectedPackageNames":null,"affectedPackageRefs":null,"affectedVendors":[],"affectedVendorsRaw":["LLM-integrated CLI tools","Google Gemini"],"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":["integrity","availability","confidentiality"],"aiComponentTargeted":"inference","llmSpecific":true,"classifierConfidence":0.85,"researchCategory":null,"atlasIds":["AML.T0051"]}}