Skip to content

Rule Reference

SEC205lintai-ai-securitystablehookdeny

Hook script: hardcoded auth in network call

Hook script embeds static authentication material in a network call

Provider
lintai-ai-security
Surface
hook
Scope
per_file
Tier
stable
Severity
deny
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

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

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.