Appearance
Why It Matters
An MCP command that modifies authorized_keys can grant persistent SSH access to the host.
What Triggers
SEC640 matches MCP command definitions that write to an authorized_keys target, including redirection in a command string or structured tee invocations aimed at an authorized_keys path.
False Positives
Provisioning systems sometimes manage SSH keys intentionally, but shared MCP launch config should not silently change host login access.
Remediation
Remove the authorized_keys modification from the MCP config. Handle SSH key management in a dedicated reviewed provisioning path instead.