{"version":"1.0.77","anchor":"advanced-shell-command-escaping","canonical_anchor":"advanced-shell-command-escaping","heading":"Advanced Shell Command Escaping","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/1.0.77\/e\/advanced-shell-command-escaping","release_url":"https:\/\/changelogs.core-directive.com\/v\/1.0.77","markdown":"### Advanced Shell Command Escaping\n\n**What:** Sophisticated detection and escaping of dangerous shell constructs like heredocs and multiline strings **How to use:** This protection is automatic when Claude executes shell commands. It prevents injection attacks in complex scenarios:\n\n`# Heredocs are now safely handled cat << EOF $(potentially_dangerous_command) EOF # Multiline strings are properly escaped echo 'line1 line2'` **Details:**\n\n- Detects heredoc patterns that could bypass normal escaping\n- Identifies multiline strings that might hide malicious commands\n- Applies context-aware escaping strategies\n- Automatically adds stdin redirection (`< \/dev\/null`) to prevent interactive command exploitation\n- Protects against arithmetic expansion and nested command substitution attacks"}