Skip to content

Rule Reference

SEC644lintai-ai-securitythreat-reviewsecuritystableclaude_settingswarn

Claude settings: command hook authorized_keys write

Claude settings command hook writes to SSH authorized_keys

Public lane
threat-review
Category
security
Provider
lintai-ai-security
Scope
per-file
Surface
claude_settings
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message only
How to read this lane

Explicit malicious, secret-bearing, or spyware-like review.

How to read this category

Strong exploit, secret, or unsafe-execution signal.

Activation Model

Preset Activation

These presets explain where this rule appears in the product experience.

Lifecycle

Stable Lifecycle Contract

State

stable

Graduation rationale

Checks committed Claude settings command hooks for explicit writes to SSH `authorized_keys`.

Deterministic signal basis

ClaudeSettingsSignals command-hook analysis over committed hook entries with type == command using redirection-or-tee targeting of `authorized_keys`.

Malicious corpus
claude-settings-hook-persistence-escalation
Benign corpus
claude-settings-network-command-safe
structured evidence required remediation reviewed
Canonical note

Structural stable rule positioned as an explicit threat-review control: high-signal malicious, credential-bearing, or spyware-like behavior that stays opt-in rather than shaping the quiet default.

Nearby Signals

Related Rules

Why It Matters

Changing authorized_keys from a shared Claude hook can create or preserve remote login access on the host.

What Triggers

SEC644 matches Claude settings command hooks that write to an authorized_keys path through redirection or tee.

False Positives

SSH bootstrap flows exist, but shared committed Claude settings are not an appropriate place to make silent host access-control changes.

Remediation

Remove the authorized_keys write from the hook and move SSH key provisioning into a dedicated reviewed administrative workflow.