Look for HTTP requests carrying Shellshock function-definition payloads in user agents, headers or parameters, then confirm whether the server spawned unexpected shell processes. Pair web logs with process, audit and network telemetry to spot command execution or outbound connections after the request. Repeated crafted headers from the same source usually indicate scanning or exploitation attempts.
What Shellshock logs usually reveal first
Detection starts with the request itself. Shellshock attempts often hide a function definition followed by a shell command inside a user agent, header, cookie, or query parameter, so the first job is to search web access logs for unusually long or oddly formatted inputs, especially where the same payload repeats across many paths.
Because the attack is delivered through normal HTTP fields, a single web log line is not always enough to prove compromise. The useful signal is the combination of a suspicious request with a server-side effect, such as a child shell process, a new outbound connection, or a command that should not appear in normal request handling.
How to confirm execution on the Linux host
Once a candidate request is identified, confirm whether the web service spawned a shell or invoked unexpected utilities. Process telemetry, audit logs, EDR, journald, and network connection records are the fastest ways to separate harmless probing from a successful exploit attempt.
On Linux, the strongest confirmation is a process tree that links the web server to /bin/sh or another shell and then to follow-on commands such as downloaders, recon utilities, or outbound callbacks. If you have file integrity or command auditing in place, check for newly created scripts, temporary files, cron changes, or environment variable abuse that followed the request.
Linux Detection and Response Guide is the most useful internal reference when you need to correlate web logs with host telemetry, audit data, and containment steps on Linux systems.
Which detections matter most in practice
High-value detections focus on patterns, not just signatures. Look for repeated crafted headers from one source, requests that trigger commands outside normal application behaviour, and any post-request outbound traffic to unfamiliar hosts. Those three signals together usually matter more than any single payload match.
For investigation efficiency, treat scanning and exploitation as a continuum. Repeated payloads against many endpoints suggest reconnaissance, while a smaller number of requests followed by process creation, file writes, or network egress suggests a likely successful attempt that deserves immediate host-level review.
Build detections that join web, process, and network data so a request can be evaluated in context. A payload match without host activity may be a probe, but a payload match plus shell creation or egress is the pattern that should drive escalation and containment.
Zero-Day and Exploited Vulnerabilities Guide helps frame how to prioritise signals when a vulnerability is actively targeted and you need to separate mass probing from confirmed exploitation.
Vulnerability Management Guide is useful when Shellshock detection is part of a broader exposure review, because confirmed attempts should feed prioritisation, validation, and remediation tracking.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1190 — Exploit Public-Facing Application | Shellshock attempts arrive through exposed web entry points and aim to trigger command execution. |
| T1059.004 — Unix Shell | Shellshock exploitation commonly results in unexpected shell invocation on Linux hosts. | |
| Recommendation — Map suspicious web requests to T1190 and hunt for post-request command execution and egress. Correlate web requests with Unix shell process creation and follow-on commands. | ||
| NIST CSF 2.0 | DE.CM-01 — Networks and network services are monitored to detect potential cybersecurity events | Detection depends on web, host and network telemetry working together. |
| DE.AE-02 — Potentially adverse events are analyzed to better understand associated activities | Shellshock alerts require triage of payloads, process effects and outbound activity. | |
| Recommendation — Monitor web, process and network telemetry for request-linked exploitation indicators. Analyze payload matches alongside host effects to separate scans from exploitation. | ||
| NIST SP 800-53 Rev 5 | AU-2 — Event Logging | Detection needs web, audit and host events captured with enough detail to correlate activity. |
| SI-4 — System Monitoring | Monitoring should surface suspicious request handling, shell spawning and outbound callbacks. | |
| Recommendation — Log request headers, process events and network activity needed for correlation. Tune monitoring to alert on request-driven shells and anomalous post-request connections. | ||
Practitioner Guidance
What to prioritise: Start with systems that expose CGI, legacy scripts, or internet-facing Linux services where Shellshock-style payloads have the highest chance of reaching a vulnerable parser. Then correlate those requests with process creation and outbound connections before spending time on low-value log noise.
What to verify: Confirm that your logging actually captures the full request headers and that host telemetry is retained long enough to match request time to process start time. If you cannot connect the web request to a host event, detection quality is probably weaker than it looks.
Common mistake: Treating a payload string match as sufficient proof of compromise is the most common error. The practical test is whether the server behaved like a shell was executed, not whether the request merely looked malicious.
Practitioner takeaway: The most reliable Shellshock detection is correlation, not signature matching alone, so optimise for request-to-process-to-network timelines rather than isolated log indicators.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org