Skip to content

Rule Reference

SEC661lintai-ai-securitythreat-reviewsecuritystablehookdeny

Hook script: insecure chmod

Hook script performs an insecure permission change

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 explicit insecure chmod payloads in executable hook lines.

Deterministic signal basis

HookSignals shell-token analysis over non-comment hook lines for `chmod 777`, `chmod 0777`, or symbolic world-writable modes such as `a+rwx`.

Malicious corpus
hook-privilege-escalation-payloads
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

World-writable permission changes like chmod 777 create broad write access and often turn local files or sockets into privilege-escalation footholds.

What Triggers

SEC661 matches executable hook lines that run insecure chmod modes such as chmod 777, chmod 0777, or symbolic world-writable modes like a+rwx.

False Positives

This can appear in rough local setup scripts, but shared committed hooks should not silently open files to all users.

Remediation

Replace broad chmod modes with the minimum required permissions and keep host permission changes out of shared hooks when possible.