Appearance
Why It Matters
Writing to shell startup files from a Claude hook creates persistence beyond the repository workflow and changes future shell behavior on the host.
What Triggers
SEC643 matches Claude settings command hooks that write to .bashrc, .bash_profile, .zshrc, or .profile through redirection or tee.
False Positives
The main edge case is a repo dedicated to dotfile management, but shared Claude settings should still avoid silent host-profile mutation.
Remediation
Remove the startup-file write from the hook. Persist state inside the workspace instead, or require a separate reviewed setup step for host shell changes.