CTX-07 Inline base64-decode exec
block 0 hits here sandbox-verified
① What it stops
Inline base64-decode-then-exec/eval in a shell command (classic obfuscated payload carrier)
Decode and inspect the payload first; never let inline decoded code run directly.
② Criteria
| Item | Value |
|---|---|
| Severity | critical |
| Category | injection |
| Gate | Gate 1 content safety |
| Criterion type | tool_call |
| Applies to | Bash |
Content patterns
\bexec\s*\(\s*(?:__import__\(['\"]base64['\"]\)\.)?base64\.b64decode\(\beval\s*\(\s*(?:__import__\(['\"]base64['\"]\)\.)?base64\.b64decode\((?:exec|eval)\s*\([^;\n]{0,120}b64decode\s*\(
Generated directly from rules/default.json — never hand-written or paraphrased.
③ Real hits
Zero hits in the 14-day ledger on this machine — we do not post a sample. Zero hits means this machine never hit it, not that the rule is dead; effectiveness is covered by the sandbox trigger above.
④ False positives & exemptions
Built-in exclude patterns are listed under ②. Four exemption mechanisms exist globally (declared workspace roots, policy path whitelist, path-suspect alert-only, exclude patterns); counts on this machine are published on the Chinese page and in Limits.
⑤ Boundaries
| Boundary | |
|---|---|
| Criterion type | tool_call |
| Applies to | - |
| Platform | all platforms |
| Case sensitivity | Measured: insensitive (RM -RF is blocked like rm -rf) |
| Path normalisation | Measured: effective (./sub/../.env is blocked) |
| Scripts not parsed | An absolute path outside the project mentioned in a Bash command is alerted, not blocked — scripts are not parsed (THREAT_MODEL Non-goals) |
| Failure posture | fail-open; best-effort, not a hard security boundary |
⑥ Reproduce
grep -h "CTX-07" .psl/audit/*.jsonl | head
python challenge/generate_challenge.py
python challenge/verify.py
Cite this page
Antinel AgentState. CTX-07 Inline base64-decode exec — rule detail. https://antinel.com/en/agentstate/rules/CTX-07/ (accessed YYYY-MM-DD)
Antinel. (2026). CTX-07 Inline base64-decode exec — rule detail. AgentState. https://antinel.com/en/agentstate/rules/CTX-07/
BibTeX
@misc{antinel_en_agentstate_rules_CTX_07,
title = {CTX-07 Inline base64-decode exec — rule detail},
author = {{Antinel}},
year = {2026},
url = {https://antinel.com/en/agentstate/rules/CTX-07/},
note = {claim tier: measured}
}
Claim tier: measured 采集时刻:2026-09-24T19:00:36+08:00