Appearance
Why It Matters
Modifying authorized_keys grants or preserves SSH access on the host. That is a direct persistence and access-control change, not ordinary hook behavior.
What Triggers
SEC636 matches executable hook lines that write to an authorized_keys target through redirection or tee.
False Positives
Provisioning tools may manage SSH keys intentionally, but repository hooks should not silently change host login access. Keep this enabled unless the repository is explicitly dedicated to reviewed machine bootstrap.
Remediation
Remove the authorized_keys write from the hook. Handle SSH key provisioning in a separate reviewed admin workflow instead of repository-controlled automation.