Sigma rule: Shell Spawned by Celery Worker Process

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d11440a0de05, updated 2026-10-17T00:00:00.000Z.

Rule

Title
Shell Spawned by Celery Worker Process
Status
experimental
Level
medium
Author
Jennifer Batina
Date
2026-10-17
File
rules/linux/process_creation/proc_creation_lnx_celery_worker_shell_spawn.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects a system shell interpreter being spawned directly by a Celery worker process.
This behavior indicates a Python background task execution framework is evaluating raw string input through a shell execution context,
which is highly indicative of successful command or prompt injection exploitation against an LLM agent task.

Log source

product
linux
category
process_creation

Detection

selection_img:
    Image|endswith:
        - '/ash'
        - '/bash'
        - '/busybox'
        - '/csh'
        - '/dash'
        - '/fish'
        - '/ksh'
        - '/sh'
        - '/tcsh'
        - '/zsh'
    ParentCommandLine|contains: 'celery'
selection_parent:
    - ParentImage|endswith:
          - '/python'
          - '/python3'
    - ParentImage|contains: '/python3.'
condition: all of selection_*

False positives (as the rule lists them)

  • Legacy or custom administrative tasks deliberately hardcoded with shell=True or os.system execution inside Celery task functions.
  • Media processing, deployment, or reporting pipelines that intentionally shell out to external tools (e.g. ffmpeg, git) from within a task.

Tags

  • attack.execution
  • attack.t1059.004

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_celery_worker_shell_spawn.yml

Sources and licences

  • SigmaHQ

    "Shell Spawned by Celery Worker Process" by Jennifer Batina (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_celery_worker_shell_spawn.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Shell Spawned by Celery Worker Process",
entity page, dataset version ref-d11440a0de05, updated 2026-10-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/904f6442-3b57-4b3f-987c-1559f58ce8d8 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 904f6442-3b57-4b3f-987c-1559f58ce8d8, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.