AI Agent Security: Block Dangerous Shell Commands
AI agent security: A shell tool with no limits lets the agent run rm and delete a file, as the LangSmith trace shows. An allowlist of trusted commands (pwd, date, ls, cat) blocks everything else, so the same request leaves the file alone.
By Balaji ChippadaBalaji Chippada

Read the full story
Originally published by Balaji Chippada on Nov 17, 2026.
Comments
Sign in to join the discussion.