Skip to content

New signal: persistence / auto-run registration (surviving a reboot)Β #1175

Open

Description

@squid-protocol

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 (via crontab - 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/RunOnce keys (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 .bashrc to 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-crucible corpus: zero unintended hits before the
    golden-master rebless
  • ReDoS timing sweep on the new pattern

Activity

  1. added
    enhancement
    appsec
    supply-chain
    on Aug 9, 2026
  2. added
    scope:frontier
    needs:corpus
    needs:crucible
    on Oct 16, 2026
  3. squid-protocol commented on Nov 18, 2026

    @squid-protocol
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appsecenhancementneeds:corpusneeds:cruciblepriority: mediumscope:frontiersupply-chain

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions