DST-04 Persistence mechanism
block 0 hits here sandbox-verified
① What it stops
Agent attempted to establish persistence (cron job, systemd service, startup item, scheduled task, registry Run key)
Persistence entries survive the session and re-execute code; require explicit human approval.
② Criteria
| Item | Value |
|---|---|
| Severity | critical |
| Category | destructive |
| Gate | Gate 4 behavior (destructive/persistence) |
| Criterion type | tool_call |
| Applies to | Write、Edit、Bash |
File path patterns
crontabsystemd[/\\]systemLaunchAgentsrc\.local\.config[/\\]autostartcurrentversion[/\\]run(?i)start menu.*startup(?i)system32[/\\]tasks\b(?i)launchdaemons\b(?i)etc[/\\]cron\b(?i)spool[/\\]cron\b(?i)\.reg\b(?i)currentversion[/\\]winlogon
Command patterns
crontab\s+-[el]systemctl\s+enablelaunchctl\s+load\bschtasks\b\breg\s+add\b(?i)\bregedit\b(?i)start menu.*startup(?i)\bat\s+\d{1,2}:\d{2}\s+/\w+\bpowershell\b[^\n]{0,80}\-(enc|encodedcommand)\b
Generated directly from rules/default.json — never hand-written or paraphrased.
③ Real hits
Triggered in a disposable sandbox project using the real hooks/pre_tool_use.py — the same method as challenge/generate_challenge.py. All 24 rules verified this way (24/24).
④ 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 | Write、Edit、Bash |
| 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
Cite this page
Antinel AgentState. DST-04 Persistence mechanism — rule detail. https://antinel.com/en/agentstate/rules/DST-04/ (accessed YYYY-MM-DD)
Antinel. (2026). DST-04 Persistence mechanism — rule detail. AgentState. https://antinel.com/en/agentstate/rules/DST-04/
BibTeX
@misc{antinel_en_agentstate_rules_DST_04,
title = {DST-04 Persistence mechanism — rule detail},
author = {{Antinel}},
year = {2026},
url = {https://antinel.com/en/agentstate/rules/DST-04/},
note = {claim tier: measured}
}
Claim tier: measured 采集时刻:2026-09-23T22:41:18+08:00