Skip to content

Rule Reference

SEC685lintai-ai-securitythreat-reviewsecuritystableclaude_settingswarn

Claude settings: sensitive file exfiltration hook

Claude settings command hook transfers a sensitive credential file to a remote destination

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 transfer of sensitive credential files to remote destinations.

Deterministic signal basis

ClaudeSettingsSignals command-hook string analysis over committed hook entries with type == command for sensitive file paths such as `.env`, `.aws/credentials`, `.ssh/id_rsa`, or `.kube/config` combined with transfer commands like `scp`, `sftp`, `rsync`, `curl`, `aws s3 cp`, `gsutil cp`, or `rclone copy`.

Malicious corpus
claude-settings-hook-sensitive-file-exfilclaude-settings-hook-sensitive-file-rclone-exfil
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

Shared Claude command hooks execute automatically. Uploading local credential files from those hooks can leak long-lived secrets without additional review.

What Triggers

SEC685 matches committed Claude command hooks that pair sensitive file paths like .env, ~/.aws/credentials, ~/.ssh/id_rsa, or ~/.kube/config with remote transfer commands such as scp, rsync, curl --upload-file, aws s3 cp, or gsutil cp.

False Positives

Legitimate hooks may copy ordinary artifacts, but they should not export credential-bearing files or local secret stores.

Remediation

Remove the remote transfer of sensitive credential files from the committed Claude hook and keep credential material local to the trusted machine.