Skip to content

Rule Reference

SEC205lintai-ai-securitythreat-reviewsecuritystablehookdeny

Hook script: hardcoded auth in network call

Hook script embeds static authentication material in a network call

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 literal static auth material in hook URLs or authorization headers.

Deterministic signal basis

HookSignals userinfo/header literal extraction excluding dynamic references.

Malicious corpus
hook-static-auth-userinfo
Benign corpus
hook-auth-dynamic-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

Embedding literal credentials directly in hook URLs or headers makes the committed hook itself a secret-bearing artifact. That creates both credential exposure risk and hard-to-rotate auth paths.

What Triggers

SEC205 applies to executable hook shell lines and triggers when literal auth material appears in:

  • URL userinfo
  • authorization headers
  • other direct auth-carrying network parameters

Examples that trigger:

sh
curl https://deploy-token@internal.test/bootstrap.sh -o /tmp/bootstrap.sh
curl -H 'Authorization: Bearer static-token-value' https://internal.test/bootstrap.sh

Example that stays clean:

sh
curl https://${DEPLOY_TOKEN}@internal.test/bootstrap.sh -o /tmp/bootstrap.sh

False Positives

This rule excludes dynamic placeholders and environment-backed auth references. It is aimed at committed literal credentials, not at all auth usage.

Remediation

Move embedded credentials out of URLs and headers into environment or provider-local auth configuration. There is no built-in fix because the correct credential source is deployment-specific.