Skip to content

Rule Reference

SEC634lintai-ai-securitythreat-reviewsecuritystablehookdeny

Hook script: password file access

Hook script accesses a sensitive system password file

Public lane
threat-review
Category
security
Provider
lintai-ai-security
Scope
per-file
Surface
hook
Tier
stable
Severity
deny
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

Matches direct access to sensitive password and sudo policy files in executable hook lines.

Deterministic signal basis

HookSignals path detection over non-comment hook lines for `/etc/shadow`, `/etc/passwd`, `/etc/sudoers`, `/etc/gshadow`, or `/etc/master.passwd`.

Malicious corpus
hook-persistence-escalation
Benign corpus
cursor-plugin-clean-basic
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

Reading files such as /etc/shadow or /etc/sudoers from a hook exposes host credential and privilege data to repository-controlled automation.

What Triggers

SEC634 matches executable hook lines that directly reference sensitive system password or privilege files, including /etc/shadow, /etc/passwd, /etc/sudoers, /etc/gshadow, and /etc/master.passwd.

False Positives

Legitimate host-auditing tools can touch these files, but that is still high-risk in shared hook scripts because the repository is gaining visibility into host authentication data.

Remediation

Remove direct access to system password files from the hook. Keep hook behavior scoped to project-local files or move any host-audit workflow into a separately reviewed admin tool.