Shell Spawned by Celery Worker Process
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…
Description
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.
Detection logic
Detection requirements
- Platform
- ESXiLinuxmacOSNetwork Devices
The rule states no platform. This is derived from the ATT&CK technique it maps to.
- Log source product
- linux
- Log source category
- process_creation
Known benign triggers
- 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.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| docs.celeryq.dev/en/stable/userguide/tasks.html | Only this detection cites it |
| genai.owasp.org/llmrisk/llm01-prompt-injection/ | Only this detection cites it |
| labs.cloudsecurityalliance.org/research/csa-research-note-promptware-c2-agent-exploitation-20260406/ | Only this detection cites it |
| nvd.nist.gov/vuln/detail/CVE-2021-23727 | Only this detection cites it |
| owasp.org/www-project-top-10-for-large-language-model-applications/ | 3from 2 sources |
| security.snyk.io/vuln/SNYK-PYTHON-CELERY-2314953 | Only this detection cites it |
| snyk.io/blog/python-rce-vulnerability/ | Only this detection cites it |
| unit42.paloaltonetworks.com/ai-agent-prompt-injection/ | Only this detection cites it |
| www.microsoft.com/en-us/security/blog/2026/05/07/prompts-become-shells-rce-vulnerabilities-ai-agent-frameworks | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 904f6442-3b57-4b3f-987c-1559f58ce8d8
- Tagged by the source as
- attack.execution
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Oct 18, 2026
- Version
- 1