Resolving the Python interpreter solely from user PATH allows a malicious PATH entry to redirect execution. Prefer well-known system interpreter paths (/usr/bin/python3, /usr/local/bin/python3, /opt/homebrew/bin/python3) before falling back to PATH-based resolution. Applies to session-start.sh, pre-tool-use.sh, and error-occurred.sh. Co-authored-by: Claude Code <noreply@anthropic.com>