Dettaglio notizia
| Data | 26/10/2026 |
| Titolo | Malicious AGENTS.md File Tricks Codex Into Running npm Malware in Tests |
| Contesto | Forever Security discovered a malicious AGENTS.md instruction file in a customer's Downloads folder that attempted to persuade an AI coding agent to install the malicious npm package function-color. The real-world attempt was stopped before code executed, and the file's delivery mechanism remains unknown. In isolated tests, however, the planted file caused OpenAI Codex to execute malware in more than 90% of attempts and sought to alter machine-wide configuration for persistence across sessions. Researchers also demonstrated that a web page could silently download an instruction file into Downloads, where a coding agent might later treat it as trusted guidance.A separate Claude Code proof of concept redirected API traffic to a researcher-controlled server, exposing a session token and allowing malicious responses, with reported success in approximately half of tests. Together, the findings highlight the risk of coding agents treating attacker-controlled local files and configuration as authoritative instructions. Forever recommended avoiding agent sessions in Downloads, inspecting agent instruction files and configuration, retaining approval prompts and sandbox protections, and rotating potentially exposed tokens. |
| Fonte | https://mallory.ai/stories/01a176dd-80e7-704f-a46d-694e2abb92fb |
| Discussione? | Parliamone sul Forum |