Repository navigation
Description
Part of epic #1171.
π Problem Statement
The GlassWorm-style detector (#1150/PR #1169, plus #1172/#1173/#1174) covers how a worm spreads
(self_propagation), what it hides its payload with (unicode_steganography), and β pending
#1173 β what it's after (credential_targeting). It has no signal for a fourth common worm/dropper
behavior: making itself survive a reboot or a fresh shell session by registering itself in a
well-known auto-run location.
π― Objective
Add a signal that fires when source code writes to one of a bounded set of well-known auto-run
registration points:
- Shell profile files (
~/.bashrc,~/.zshrc,~/.profile) β specifically an append to these,
not just any reference to the filename crontab(viacrontab -piping, or direct writes to/etc/cron.d/,/var/spool/cron/)- systemd user unit files (
~/.config/systemd/user/*.service) - PowerShell
$PROFILE(append/write) - Windows registry
Run/RunOncekeys (HKCU\...\Run,reg add ... /v ... /d)
π οΈ Proposed Implementation
New THREAT_SIGNATURES entry (working name: persistence_registration) matching a write/append
call whose target path or key matches the bounded list above. Follow the same discipline as
self_propagation: the target must be the literal argument to a write/append call, not just
present somewhere nearby in the file, to keep false positives near zero (dotfile management tools,
shell-config generators, and systemd unit templating are all real, legitimate use cases that
reference these same paths).
β Acceptance Criteria
- Synthetic tests prove detection for at least: bash profile append, crontab write, and one of
systemd-unit/PowerShell-profile/registry-Run-key - False-positive guard tests: legitimate dotfile-management tooling (e.g. a script that
reads.bashrcto check its contents, or a templating tool generating a systemd unit file
as a build artifact rather than writing directly to the live path) must not fire - Verified against the full
language-cruciblecorpus: zero unintended hits before the
golden-master rebless - ReDoS timing sweep on the new pattern
Activity
squid-protocol commentedon Nov 18, 2026
Frozen 2026-11-18 (owner): Worms Armageddon is closed and its open work moved to Gap Atlas, mapped but not built. These signals need a malware corpus and a crucible that do not exist, and regex worm signals are a space where GitGalaxy has no measured edge yet. They may return as inputs to a release-vs-own-history study if that study pans out.