Appearance
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
| shor| 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 | shFalse 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.