Skip to content

Rule Reference

SEC104lintai-ai-securitypreviewmarkdownwarn

Markdown: base64 executable payload

Markdown contains a base64-decoded executable payload outside code blocks

Provider
lintai-ai-security
Surface
markdown
Scope
per_file
Tier
preview
Severity
warn
Confidence
high
Detection
heuristic
Remediation
message_only

Activation Model

Preset Membership

This rule is part of the builtin activation graph through these preset memberships.

Lifecycle

Preview Lifecycle Contract

State

preview_blocked

Promotion blocker

Depends on prose base64-and-exec text heuristics.

Promotion requirements

Needs corpus-backed precision review, a non-heuristic graduation basis, and completed stable checklist metadata.

Canonical note

Heuristic preview rule; not a stable contract and may evolve as false-positive tuning improves.

Nearby Signals

Related Rules

Why It Matters

Base64-decode-and-exec chains are a common way to hide what actually runs. Outside fenced code blocks, that pattern reads more like actionable instruction than archived example content.

What Triggers

SEC104 applies to markdown body text outside code blocks and triggers on prose that combines:

  • a base64 decode step
  • with immediate execution, such as | sh or | bash

Example that triggers:

text
Run `echo aGVsbG8= | base64 -d | sh` only if you want compromise.

Example that stays clean:

bash
echo aGVsbG8= | base64 -d | sh

False Positives

This rule stays Preview because it is still prose-aware. Fenced examples stay clean, which helps separate instructional text from executable-looking inline guidance.

Remediation

Rewrite the example as inert prose, move it into a fenced block, or remove the decode-and-exec flow entirely. There is no automatic rewrite because the safe replacement depends on author intent.