Skip to content

Rule Reference

SEC648lintai-ai-securitythreat-reviewsecuritystablejsonwarn

Plugin hook: authorized_keys write

Plugin hook command writes to SSH authorized_keys

Public lane
threat-review
Category
security
Provider
lintai-ai-security
Scope
per-file
Surface
json
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 plugin hook command values for explicit writes to SSH `authorized_keys`.

Deterministic signal basis

JsonSignals command-string analysis over ArtifactKind::CursorPluginHooks using redirection-or-tee targeting of `authorized_keys`.

Malicious corpus
plugin-hook-command-persistence-escalation
Benign corpus
plugin-hook-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

Writing to authorized_keys from a plugin hook can grant persistent SSH access to the machine where the plugin runs.

What Triggers

SEC648 matches plugin hook command strings that write to an authorized_keys target through redirection or tee.

False Positives

Machine bootstrap plugins may manage SSH keys intentionally, but that remains a sensitive access-control change that should not happen silently in ordinary plugin hooks.

Remediation

Remove the authorized_keys write from the plugin hook. Handle SSH key provisioning in a separate reviewed administrative workflow instead.