
Splunk as the target: reading the October 21 advisories from the SOC chair
index=_audit action=search provenance=scheduler info=completed
search="*| runshellscript*" OR search="*| script *"
There is something strange about writing a detection rule for the tool you write your detection rules in. On October 21, Splunk shipped six advisories at once: four for Enterprise, two for SOAR. The headlines went to the scores, two 9.9s in Enterprise, three across the board. The scores are not the interesting part. The two “critical” bugs in the hardening advisory get one line each, no vector, no exploitation details. What deserves a closer look are three lower-rated but far more concrete flaws, plus a fourth that was not even in the October 21 batch, because it has been exploited since June.
I run a SIEM. So when the SIEM is the vulnerable thing, I am not the detection engineer writing a rule, I am the admin who has to audit his own platform before someone else does it for him. That is the angle here: not “how to detect an attack against a customer’s Splunk,” but “what do I check on my own instances this Monday morning.”
The sidecar that keeps coming back
Let’s start with the flaw that is not in the October 21 advisory, because it is the one that matters most. Back in June, Splunk fixed CVE-2026-20253: a PostgreSQL service endpoint reachable without authentication, allowing an attacker to create or truncate arbitrary files and, by chaining, to write content and reach code execution as the Splunk service account. CISA added it to the KEV catalog on June 18, after Splunk’s PSIRT observed “limited” exploitation. I checked the feed: as of October 26, it is still the only Splunk CVE in KEV.
That PostgreSQL sidecar detail matters, because it explains the other three. Splunk Enterprise 10.x ships a whole set of sidecars, helper services that run next to splunkd. One of them, the “Storage” sidecar, runs a PostgreSQL instance managed by Patroni. It backs Edge Processor, OpAmp and SPL2 pipelines. And per the sidecar configuration documentation, on Splunk Enterprise it is on by default (disabled = false in the [postgres] stanza of server.conf); only Splunk Cloud turns it off by default. In other words, a PostgreSQL database and its orchestration API are running on your search heads, most likely without anyone asking for them.

On October 7, a new advisory added CVE-2026-76268 (9.8): Patroni’s REST API, on port 8008, requires no authentication for critical configuration operations. An unauthenticated user with network access to that port on a search head cluster member can trigger OS command execution. A public PoC followed days later. I won’t walk through the chain here, it has no place on a defensive blog, but the principle is familiar to anyone who has run PostgreSQL: once you control a cluster’s dynamic configuration, you control settings like archive_command, which is quite literally a command line the server runs.
That exact point is what I wanted to see for myself, on a PostgreSQL lab entirely my own, without touching Splunk. I spun up PostgreSQL 15, set an archive_command that launches a shell, and forced a WAL rotation to fire it.

The result is clean. The postgres process becomes the direct parent of a sh -c, which in turn runs whatever it was handed. Whether execution goes through archive_command on the server side or COPY ... FROM PROGRAM in a backend, the signature is the same: a PostgreSQL binary spawning a shell. And since execution runs as the account owning the service, on a Splunk box that is the splunk account firing the command. The very account that reads all your logs.
What it leaves on the host
That signature is exactly what you can watch for, and it does not depend on any single CVE: all four end up running a command through the sidecar. So I wrote a Sigma rule, process_creation category, linux product: a shell whose parent is the postgres or patroni binary.
title: Shell Spawned by Splunk PostgreSQL Sidecar Process
id: 6f3a1d22-7c4e-4b8a-9e31-2d5a8c1f90bb
status: experimental
description: |
Detects a shell process whose parent is the Splunk PostgreSQL/Patroni sidecar binary on a search head cluster member.
Several 2026 Splunk Enterprise vulnerabilities (CVE-2026-20253, CVE-2026-76268, CVE-2026-76298) end with operating-system command execution as the Splunk service account through this sidecar. This is a hunting rule: the PostgreSQL archiver legitimately runs archive_command through a shell, so tune against your own baseline.
references:
- https://advisory.splunk.com/advisories/SVD-2026-1007
- https://advisory.splunk.com/advisories/SVD-2026-0603
author: Chabnco (PurpleLog)
date: 2026-10-26
tags:
- attack.initial-access
- attack.t1190
- attack.execution
- attack.t1059.004
logsource:
category: process_creation
product: linux
detection:
selection_parent:
ParentImage|endswith:
- '/postgres'
- '/patroni'
selection_child:
Image|endswith:
- '/sh'
- '/bash'
- '/dash'
condition: selection_parent and selection_child
falsepositives:
- PostgreSQL archive_command, restore_command or backup jobs that legitimately call a shell
- Administrative maintenance scripts run under the sidecar
level: medium
I ran it through sigma check, then converted it to the Splunk backend to confirm it holds up.

Honestly, I would not deploy it as a hard alert. The medium level and experimental status are there for a reason: the PostgreSQL archiver legitimately spawns a shell on every WAL archival when archive_command is a command, and backup jobs do the same. On a Splunk box where the sidecar is enabled and in use, this is noisy. It is a hunting rule and an inventory starting point, not an off-the-shelf detector. What makes it usable is context: if you run neither Edge Processor, nor OpAmp, nor SPL2, the sidecar should never spawn a shell, and a single hit becomes worth a look.
Which leads to the real advice, which is not a rule but a line of config. The official workaround, repeated verbatim across the June and October advisories: if you do not use Edge Processor, OpAmp or SPL2 pipelines, turn the sidecar off.
# $SPLUNK_HOME/etc/system/local/server.conf
[postgres]
disabled = true
Splunk is explicit that you should not apply this if you use any of those three features, because it breaks them and can cascade to dependent processes. Search, indexing and dashboards are unaffected. For the large majority of deployments that never touch Edge Processor, this is the first thing to do: shrink the surface before you even talk about detection.
The password that leaks into logs
Now to the two Enterprise flaws that need an account, but an ordinary one. The first, CVE-2026-76298 (8.8), is a textbook case of what happens when a secret travels through a place you assume is harmless. The PostgreSQL sidecar derives its database superuser password from the search head cluster identifier. The catch: that identifier shows up in search job logs. A user who holds neither the admin nor the power role can therefore reconstruct the privileged database password and then run OS commands as the Splunk account on cluster members.
It is the same sidecar, reached a different way: no network access to the Patroni port needed, a plain internal account will do. And because the key is hard-coded into an identifier that ends up in logs, there is no rotating your way out. Only the patch fixes it. Same workaround as above: disable the sidecar if you don’t use it.
The second, CVE-2026-76291 (8.8), is the one that spoke to me most as an admin, because it touches a feature you enable without much thought. Splunk has a guardrail mechanism, the SPL safeguards for risky commands. When a search contains a command deemed risky, the UI shows a warning and asks you to confirm before running the query. The list is fixed and worth knowing by heart: collect, delete, dump, map, mcollect, meventcollect, outputcsv, outputlookup, run, runshellscript, script, sendalert, sendemail, tscollect. Enough there to overwrite data, exfiltrate, or run a script.
The flaw is that the scheduler did not apply those safeguards to scheduled searches. A user with the schedule_search capability could schedule a search containing one of those risky commands and run it without the guardrail that would have blocked it interactively. schedule_search is not an admin capability: by default the user role lacks it, but the power role has it, and plenty of teams hand it out widely so analysts can build their own alerts. In other words, the set of people able to abuse this is probably broader than you think.
The audit I’d do before any detection
For these last two, detection takes a back seat. What matters first is knowing who can do what. Two questions, in this order.
First question: who holds schedule_search? You can list it from Splunk, either through the role configuration or by reading authorize.conf. Good hygiene, which Splunk itself recommends, is to strip schedule_search and schedule_rtsearch from roles that don’t need them. If everyone has it “just in case,” now is the time to revisit that.
Second question: do any scheduled searches already contain risky commands? This is where the _audit index earns its keep. Search executions are tracked there, with the provenance field set to scheduler for a scheduled search, and the search text in the search field. A hunting query, to adapt to your environment:
index=_audit action=search provenance=scheduler info=completed
search IN ("*| runshellscript*", "*| script *", "*| delete*",
"*| outputlookup*", "*| sendalert*", "*| collect*")
| stats count min(_time) as first max(_time) as last
values(search) as search by user savedsearch_name
| convert ctime(first) ctime(last)
Let me be upfront, because the house rule is to be honest about this: I have no SPL parser on hand to run this query, I built it from the documented fields of the _audit index (action, provenance, savedsearch_name, user, search). The field names are right; the exact filters on the search text need tuning to how your analysts write their SPL. It is a starting point, not a production-validated rule.
Third reflex, for the sidecar: watch server.conf changes. Since Splunk 9, the _configtracker index records changes to .conf files, with old and new values. If someone re-enables the PostgreSQL sidecar after you turned it off, it leaves a trail:
index=_configtracker data.path=*server.conf
| spath output=stanza data.changes{}.stanza
| spath output=name data.changes{}.properties{}.name
| spath output=new_value data.changes{}.properties{}.new_value
| search stanza="postgres" name="disabled"
| table _time, host, name, new_value
Same caveat: query built from the documented _configtracker structure, not executed here. And a small access gotcha: by default only the admin role can search _audit and _configtracker, and you must name the index explicitly in the search. If your analysts see nothing, it is not that it is empty, it is that they can’t reach it.
What I take away
There is a classic blind spot in SOCs: you instrument the rest of the estate and forget to instrument the thing doing the instrumenting. Splunk often runs with elevated privileges, reads sensitive data from across the company, and exposes a web interface. It is a prime target, and attackers have figured that out, since CVE-2026-20253 has been exploited since June.
If I had to boil my morning on this down to three moves: turn the PostgreSQL sidecar off everywhere Edge Processor, OpAmp and SPL2 are unused; list who holds schedule_search and prune it; and confirm _audit and _configtracker are actually collected and reachable by the team. Detection comes after, and it comes mostly alongside the patch, not instead of it. For these flaws the patch exists (Enterprise 10.4.4, 10.2.8, 10.0.11, 9.4.16; SOAR 8.7.0), and none of the three new ones is known to be exploited as of October 23. The window to patch calmly is open. The kind of window you regret not using once the PoC turns into a mass scanner.
References
- Splunk SVD-2026-1007, Security Vulnerabilities in Splunk Enterprise - October 2026
- Splunk SVD-2026-1008, Security Hardening in Splunk Enterprise - October 2026
- Splunk SVD-2026-1011, Security Hardening in Splunk SOAR - October 2026
- Splunk SVD-2026-1001, Security Vulnerabilities in Splunk Enterprise - September/October 2026 (CVE-2026-76268)
- Splunk SVD-2026-0603, Unauthenticated Arbitrary File Creation in a PostgreSQL Sidecar Service Endpoint (CVE-2026-20253)
- CISA, Known Exploited Vulnerabilities Catalog
- Splunk Docs, SPL safeguards for risky commands
- Splunk Docs, Sidecar configuration settings
- Splunk Blog, Splunking Your *.conf Files (index _configtracker)