Skip to content

Rule Reference

SEC663lintai-ai-securitythreat-reviewsecuritystablehookdeny

Hook script: Linux capability manipulation

Hook script manipulates Linux capabilities

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 Linux capability manipulation payloads in executable hook lines.

Deterministic signal basis

HookSignals shell-token analysis over non-comment hook lines for `setcap` or dangerous Linux capability tokens such as `cap_setuid` and `cap_sys_admin`.

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

Linux capabilities like cap_setuid and cap_sys_admin can grant powerful privileges without full root.

What Triggers

SEC663 matches executable hook lines that run setcap or include dangerous capability tokens such as cap_setuid, cap_setgid, cap_sys_admin, or cap_net_admin.

False Positives

Capability assignment can be legitimate in low-level system tooling, but it remains a sensitive host privilege change in shared hooks.

Remediation

Remove Linux capability manipulation from the hook and keep capability assignment in an explicit reviewed admin workflow.