Skip to content
AIR Security·Indexed by this site · Originally published· Event →

AIR Security: Anthropic document skills can execute code after a malicious shim is written to the temporary directory

Office Party: A Flaw in Anthropic’s Official Skills Allows Malicious Code Execution

AI summary

AIR Security disclosed a vulnerability in Anthropic's official document skills: an attacker who pre-places a file in the temporary directory can execute code with user privileges inside LibreOffice. The vulnerability lies in the helper script scripts/office/soffice.py used for converting documents; when the Unix socket is blocked by the sandbox, it loads lo_socket_shim.so from a fixed path in the temporary directory via LD_PRELOAD, and does not verify the file's origin; the script is distributed with the three official skills docx, pptx, and xlsx, and the docx skill causes Claude to render every generated document as a PDF. The researchers reproduced the attack by directly placing the file in the Claude Code sandbox, and also demonstrated a combined approach in which another seemingly normal skill plants the library while unpacking supporting files.

Read originalair.security