Detection rules › Splunk

Splunk Authentication Token Exposure in Debug Log

Status
production
Severity
medium
Group by
host, index, sourcetype, token
Author
Rod Soto, Chase Franklin
Source
github.com/splunk/security_content

The following analytic identifies exposed authentication tokens in debug logs within Splunk Enterprise. It leverages logs from the splunkd component with a DEBUG log level, specifically searching for event messages that validate tokens. This activity is significant because exposed tokens can be exploited by attackers to gain unauthorized access to the Splunk environment. If confirmed malicious, this exposure could lead to unauthorized data access, privilege escalation, and potential compromise of the entire Splunk infrastructure. Monitoring and addressing this vulnerability is crucial for maintaining the security and integrity of the Splunk deployment.

Known false positives

  • Only applies to affected versions of Splunk Enterprise below 9.2.1, 9.1.4, and 9.0.9

MITRE ATT&CK coverage

TacticTechniques
Discovery

Rule body

name: Splunk Authentication Token Exposure in Debug Log
id: 9a67e749-d291-40dd-8376-d422e7ecf8b5
version: 9
creation_date: '2024-03-27'
modification_date: '2026-06-24'
author: Rod Soto, Chase Franklin
status: production
type: TTP
description: |-
    The following analytic identifies exposed authentication tokens in debug logs within Splunk Enterprise.
    It leverages logs from the `splunkd` component with a DEBUG log level, specifically searching for event messages that validate tokens. This activity is significant because exposed tokens can be exploited by attackers to gain unauthorized access to the Splunk environment.
    If confirmed malicious, this exposure could lead to unauthorized data access, privilege escalation, and potential compromise of the entire Splunk infrastructure.
    Monitoring and addressing this vulnerability is crucial for maintaining the security and integrity of the Splunk deployment.
data_source: []
search: |-
    `splunkd`
    component=JsonWebToken
    log_level=DEBUG
    eventtype="splunkd-log"
    event_message="Validating token:*"
    | rex "Validating token: (?<token>.*)\.$"
    | search token!=None
    | stats count min(_time) as firstTime
                  max(_time) as lastTime
                  values(log_level) as log_level
                  values(event_message) as event_message
      by index, sourcetype, host, token
    | `security_content_ctime(firstTime)`
    | `security_content_ctime(lastTime)`
    | `splunk_authentication_token_exposure_in_debug_log_filter`
how_to_implement: Requires access to internal Splunk indexes.
known_false_positives: Only applies to affected versions of Splunk Enterprise below 9.2.1, 9.1.4, and 9.0.9
references:
    - https://advisory.splunk.com/advisories/SVD-2024-0301
finding:
    title: Possible JsonWebToken exposure, please investigate affected $host$
    entity:
        field: host
        type: system
        score: 50
analytic_story:
    - Splunk Vulnerabilities
asset_type: Splunk Server
cve:
    - CVE-2024-29945
mitre_attack_id:
    - T1654
product:
    - Splunk Enterprise
    - Splunk Cloud
    - Splunk Enterprise Security
category: application
security_domain: endpoint

Stages and Predicates

Stage 1: search

`splunkd`
component=JsonWebToken
log_level=DEBUG
eventtype="splunkd-log"
event_message="Validating token:*"

Stage 2: rex

| rex "Validating token: (?<token>.*)\.$"

Stage 3: search

| search token!=None

Stage 4: stats

| stats count min(_time) as firstTime
              max(_time) as lastTime
              values(log_level) as log_level
              values(event_message) as event_message
  by index, sourcetype, host, token

Stage 5: search

| `security_content_ctime(firstTime)`

Stage 6: search

| `security_content_ctime(lastTime)`

Stage 7: search

| `splunk_authentication_token_exposure_in_debug_log_filter`

Indicators

These rows show field, operator, and value matches.