Skip to content

Rule Reference

SEC685lintai-ai-securitystableclaude_settingswarn

Claude settings: sensitive file exfiltration hook

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

Provider
lintai-ai-security
Surface
claude_settings
Scope
per_file
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message_only

Activation Model

Preset Membership

This rule is part of the builtin activation graph through these preset memberships.

Lifecycle

Stable Lifecycle Contract

State

stable_gated

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 intended as a high-precision check with deterministic evidence.

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.