Skip to content

Splunk

Splunk is a SIEM and log platform (Splunk Enterprise or Splunk Cloud Platform), with Enterprise Security for notable events.

  • What DRACO uses: Notable events, fired alerts or saved search results (and optional raw events); Enterprise Security notables for incident sync.
  • What for: Detections, hunts and the ID directory on SIEM alerts, notable sync with status and disposition.

Add it in Connectors > Add connector: pick Splunk, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.

Parts

Part What DRACO uses Access Permissions
Logs Splunk Enterprise Security notables, Splunk alerts read A role draco_reader with the capability search only (no admin capability), allowed the indexes it reads (notable and risk, or those of the alerts and searches).
A service user draco with only that role, and an authentication token for it (or its user name and password).
Incidents Splunk Enterprise Security read A role with the search capability that may search the notable index
Two-way sync: the edit_notable_events capability (for example the ess_analyst role)

Requirements

  • Splunk Enterprise 9.x or Splunk Cloud Platform; for notables and the incident connector, Splunk Enterprise Security 7 or later.
  • A Splunk admin to create the role, the user and the token.
  • Splunk Cloud Platform: REST API access for DRACO's address (see step 5).

Logs

DRACO connects to Splunk Enterprise and Splunk Cloud Platform, with or without Splunk Enterprise Security (ES):

What DRACO connector Splunk side
ES notable events as DRACO alerts Data source Splunk Enterprise Security notables (splunk_notables) index=notable (or the notable macro)
Splunk alerts without ES Data source Splunk alerts (splunk_alerts) the fired alerts of the alert manager, or the rows of one saved search
Raw events (optional, off by default) the same data sources, Also pull raw events a search you write
ES notables as DRACO incidents, status synced both ways Incident connector Splunk Enterprise Security (splunk_es) notable macro, incident_review_lookup, notable_update

Every call goes to the Splunk REST API (the management port, 8089) over HTTPS.

Client setup (Splunk admin)

  1. Role. In Splunk Web open Settings > Roles > New Role and name it draco_reader. Capabilities: search only (on Inheritance select nothing). No admin capability is needed, and the role never changes Splunk: two-way status sync uses a second user.
  2. Indexes. On the role's Indexes tab allow notable and risk (ES), the indexes your alerts and saved searches read (Splunk alerts), and the indexes of the raw events search if you turn it on. Share each alert and saved search DRACO reads with the role (its Permissions: the app or All apps, Read for draco_reader): private alerts are not seen.
  3. User. Settings > Users > New User: a service account draco with only the draco_reader role.
  4. Token. Settings > Tokens > Token Settings > Enable Token Authentication (once per deployment). Then New Token: user draco, audience DRACO, an expiration (for example +180d). Copy the token: it is shown once. A user name and password (Basic credential) also work, but tokens are preferred: they expire and can be revoked alone.
  5. REST API URL.

    Deployment URL
    Splunk Enterprise (self-managed) https://<search head>:8089 (the ES search head when you use ES)
    Splunk Cloud Platform https://<stack>.splunkcloud.com:8089

    Splunk Cloud Platform closes port 8089 by default: add DRACO's address to Settings > Server settings > IP allow list > Search head API access. An Enterprise Security premium search head is not covered by that page: use the Admin Config Service with search head targeting, or a Splunk Support case. Your DRACO operator gives you the address.

    Splunk Free (no users, roles or tokens) and a Splunk Cloud Platform free trial (no REST API) cannot be used.

  6. Certificate (self-managed). Splunk's management port uses a self-signed certificate by default. Paste the CA certificate that signed it in CA certificate (PEM): for the default certificate it is $SPLUNK_HOME/etc/auth/cacert.pem on the search head. Better: install a certificate of your own CA or a public CA on port 8089.

Transport rules

  • The REST API URL must be https://. Plain http:// is accepted only towards a private address (10.x, 172.16-31.x, 192.168.x, a single-label host name): never over the internet.
  • Certificates are verified. Verify the certificate can be turned off only for a Splunk on a private address; for a public address paste the CA certificate instead.
  • A Splunk on your private network is reachable only when your DRACO operator has enabled access to private networks for data sources (on-premise installations).

Add a data source

  1. Connectors > Add connector, pick Splunk and tick Logs under Collectors: the Splunk Enterprise Security notables type (with ES) or Splunk alerts (without ES). The wizard repeats the steps above.
  2. Enter the REST API URL, and the CA certificate for a self-managed Splunk. Splunk Web URL is optional (for the links on alerts; by default https://<host>:8000/en-US, or https://<stack>.splunkcloud.com/en-US for Splunk Cloud).
  3. Create (or pick) a Token credential with the token (or a Basic credential).
  4. Splunk alerts: pick Alerts from: fired_alerts (every triggered alert; only alerts with the Add to Triggered Alerts action are listed, until they expire, 24 hours by default) or saved_search with the saved search's exact name.
  5. Test: DRACO signs in, shows the signed-in user and its roles, detects Enterprise Security (the SplunkEnterpriseSecuritySuite or SA-ThreatIntelligence app) and reads a sample of the look-back window (24 hours by default). The notables source refuses a Splunk without ES. The source is created only after a passing test.

When ES is found, the test also says so and whether the role already has edit_notable_events: add a Splunk ES incident connector for two-way status sync.

What DRACO collects

Record Columns
Notable (xdr.kind alert) class Detection Finding; severity from urgency (else severity); host from dest_nt_host, dest_dns, dest (else the source, or the risk object of a system); actor_user from user / src_user (or the risk object of a user); src_ip; dst_ip; url the notable in Incident Review; message "High Splunk ES notable "" on ()"
Fired alert severity from the alert's severity (5 high, 6 critical, 4 medium, 3 low); url the search job of the firing
Saved search row severity from urgency or severity of the row; host, user and addresses from the CIM fields
Raw event (xdr.kind log) host, user, message the _raw text (cut at 32 KB)

Every Splunk field stays in the fields (rule_name, search_name, security_domain, risk_score, orig_sourcetype, drilldown_search...). DRACO adds xdr: kind, vendor_id (the notable's event_id, the alert's search id, or a hash of a row), status, severity, host, user, ip, tactics and techniques (ATT&CK ids from annotations.mitre_attack and its tactics), console_url.

Readable IDs (ID directory): dest → dest_nt_host and src → src_nt_host (address or FQDN → Windows host name), ES asset ids (dest_asset_id, src_asset_id) → host name, user_id → user, the notable's rule_id → its rule title (or correlation search name), a fired alert's search id → the alert name.

Raw events (optional)

Turn on Also pull raw events (high volume) and write a search, for example index=wineventlog EventCode=4625 | fields _time _indextime host user src EventCode. The time range comes from DRACO. The search must return events with their _indextime (no stats or table at the end, and keep _indextime if you use fields): a busy window can then continue on the next run.

Volume

Raw events copy Splunk data into DRACO: storage, retention and your ingest quota grow with them. Narrow the search to the indexes, events and fields you need. Raw events per run (5,000 by default, at most 50,000) is a hard cap: a busier window continues on the next run.

Searches that write or execute (delete, collect, outputlookup, sendemail, script, rest, map...) are refused: DRACO only reads.

Latency and cost

  • Polls every 5 minutes. Notables and raw events are read by the time Splunk indexed them (_indextime), so events that arrive late (a forwarder that was offline, a batch upload) are still read, as long as their own time (_time) is at most 7 days older than when they were indexed. Each record keeps its own _time. Events already stored are skipped.
  • Fired alerts and saved search rows are read by _time with a 10-minute overlap for late indexing.
  • Up to 2,000 alerts per run (Alerts per run); a busier window continues on the next run where this one stopped.
  • 429 and 503 answers are retried after Retry-After (three times, at most 30 seconds each), then the next run continues.
  • Each poll runs one or two searches on your search head (sorted by time, capped). Splunk Cloud counts them against the search concurrency of the role; keep the poll interval at 5 minutes or more.

Built-in rules (draco-splunk)

Rule When
Splunk ES: high or critical notable event (recommended) a notable with urgency high or critical
Splunk ES: medium notable event the same for medium (off by default)
Splunk: high or critical alert (recommended) a fired alert or saved-search row with severity high or critical
Splunk ES: risk threshold exceeded for a user or system (recommended) a risk-based alerting notable (risk score or ATT&CK tactic threshold exceeded), any urgency
Splunk ES: security tool or log tampering notable (recommended) a notable about disabled antivirus, EDR or Sysmon, cleared logs or a changed audit policy, any urgency
Splunk ES: recurring malware or outbreak notable (recommended) a notable for recurring infection, many infected hosts, an outbreak or ransomware
Splunk ES: privileged account created or granted (recommended) a notable for a new privileged account or new administrator rights
Splunk ES: threat intelligence match (recommended) a threat-domain notable with urgency medium or higher
Splunk ES: notable for a privileged account a medium or higher notable whose user name looks privileged; off by default: account naming differs, duplicate it as a custom rule with your naming convention
Splunk ES: several correlation searches on one system (recommended) three or more different correlation searches for one system within two hours
Splunk ES: one user in notables on several systems medium or higher notables for one user on three or more systems within two hours (off by default)

One DRACO alert per Splunk alert: the rules that read single notables or alerts group by the link (url) and deduplicate for seven days. Open in vendor console on the alert opens the notable in Incident Review (or the search job).

With the Splunk Enterprise Security incident connector too. One notable event gives one DRACO incident. While an incident connector of Splunk Enterprise Security is active, the rule's alert is kept but joins the connector's incident for the same notable event instead of opening a second incident; if the rule fires before the connector's next sync, the alert waits in Alerts and joins the incident when it is imported. Fired alerts and saved-search rows (splunk_alerts) are not notables and are grouped as usual.

The correlation rules count distinct correlation searches and notables and raise their own DRACO alerts.

Hunts, dashboard and Sigma

  • Threat hunting > Library: Splunk ES: users and systems with the most notables, tampering and log clearing, threat intelligence matches and access domain notables by search.
  • Dashboards > Add prebuilt > Splunk: notables and alerts by severity over time and by ATT&CK tactic, top systems and users, the correlation searches firing most and the latest high notables.
  • Sigma import: rules with logsource: {product: splunk} read this source with the CIM names (dest, user, src_ip, dest_ip, action); other Splunk fields keep their names.

Incidents

Imports Enterprise Security notables as DRACO incidents and keeps their status and disposition in sync; how sync works for every vendor is in Incident connectors.

  1. Already set up the Splunk log source? Reuse its draco_reader role, draco user and token (and its credential). Otherwise, in Splunk Web (admin) create the role draco_reader with search and the notable and risk indexes, and a service user draco with only that role.
  2. Settings > Tokens: enable token authentication and create a token for that user (shown once).
  3. In DRACO enter the REST API URL (https://<search head>:8089, or https://<stack>.splunkcloud.com:8089 with DRACO's address on the search head API access allow list; your DRACO operator gives you the address), the CA certificate of a self-managed Splunk, and a Token credential. Mapping tables and details: Splunk.

Incident connector (two-way status sync)

With Enterprise Security, add the Incidents part to the Splunk connector (Add a part on its page, or tick Incidents under Collectors when you add it): one DRACO incident per notable event, with its urgency, ATT&CK annotations, destination and user, and its status and disposition from Incident Review (the Splunk owner is a user name, not an email, so it does not become the DRACO assignee).

  1. Import: the same draco_reader role, draco user and token as above (search and the notable index). Two-way sync: a second role draco_sync that inherits draco_reader and ess_analyst (Splunk requires edit_notable_events together with the ess_analyst role), a user draco_sync with only that role and its own token, pasted on the wizard's Write access step. An owner DRACO sets needs can_own_notable_events.
  2. Enter the REST API URL (and the CA certificate), optionally an owner that updated notables get (for example the draco user), and pick the credential.
  3. Test: DRACO checks that ES is installed, reads the notables of the look-back window and, for two-way sync, reads the user's capabilities (/services/authentication/current-context) without changing anything: a missing edit_notable_events is named.

Splunk to DRACO. Each sync reads the notables created since the last run and the notables reviewed since the last run (incident_review_lookup, then the notables with their current state from the notable macro, up to 90 days back). A status, owner or disposition changed in Incident Review reaches DRACO on the next sync.

DRACO to Splunk. A status or disposition changed in DRACO is written with POST /services/notable_update (ruleUIDs, status, disposition, comment, and newOwner when an owner is set).

Table Default
Status from Splunk Unassigned and New → new, In Progress → in progress, Pending → pending, Resolved → resolved, Closed → closed
Status to Splunk in progress → In Progress (2), pending → Pending (3), resolved → Resolved (4), closed → Closed (5)
Disposition from Splunk True Positive → true positive, Benign Positive → benign, False Positive (incorrect analytic logic, inaccurate data) → false positive, Undetermined → undetermined
Disposition to Splunk true positive → disposition:1, benign → disposition:2, false positive → disposition:3, undetermined → disposition:6
Severity the urgency as is

The status ids are those of a default ES install (0 Unassigned, 1 New, 2 In Progress, 3 Pending, 4 Resolved, 5 Closed). Custom statuses arrive under their label and can be mapped on the connector page. The conflict rules and loop protection are those of every incident connector.

If you turn on several parts

When you connect Splunk once and tick several parts, the wizard shows one guide for all of them: what to check first, the access to create once, one list of permissions that names the part each one is for, the extra steps of each part, and one test that checks every part on its own. Turning a part on later shows only what it adds.

The data source and the Enterprise Security incident connector share the draco_reader role, the draco user and its token: create them once. Two-way status sync adds edit_notable_events, on the identity used for writing.

Troubleshooting

Last error Fix
Splunk refused the credentials (HTTP 401) ... token authentication is off Enable token authentication (Settings > Tokens > Token Settings), or create a new token: it expired or was disabled.
Splunk denied the request (HTTP 403): the user needs ... Add the capability or index named to the role.
Splunk's certificate is not trusted (SSLError) Paste the CA certificate of port 8089, or install a certificate of a trusted CA.
Cannot reach Splunk at ... Check the URL and port 8089; Splunk Cloud: add DRACO's address to the search head API access allow list.
Splunk Enterprise Security is not installed on this Splunk Point the URL at the ES search head, or use the Splunk alerts source.
No notable event in the look-back window Allow the notable index on the role (Splunk returns no error for an index the role cannot read).
Splunk refused the notable update The status id does not exist (custom statuses) or the user cannot change it: check the mapping and the role's edit_notable_events.