Skip to content

Splunk HEC - Detect

ID: splunk-hec-detect

Severity: info

Author: idealphase

Tags: tech,splunk,hec,detect

Splunk HCE (HTTP Event Collector (HEC)) was detected.

id: splunk-hec-detect
info:
name: Splunk HEC - Detect
author: idealphase
severity: info
description: |
Splunk HCE (HTTP Event Collector (HEC)) was detected.
reference:
- https://dev.splunk.com/enterprise/docs/devtools/httpeventcollector/
- https://community.splunk.com/t5/Getting-Data-In/How-to-check-if-an-HEC-is-up-or-not-before-posting-any-data-to/td-p/417404
metadata:
verified: true
max-request: 1
tags: tech,splunk,hec,detect
http:
- method: GET
path:
- "{{BaseURL}}/services/collector/health"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_any(body, "text\":\"HEC is healthy\",\"code")'
- 'contains(header, "application/json")'
condition: and
# digest: 4a0a00473045022100ab992065f4d1815e0ca4340966b0bbcabad9e701481502d80ebbaa061a45e83602207bd6465c56af693323f56ac84b8aa9a4c50646b4185d453ab02340a70207ef6c:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/technologies/splunkhec-detect.yaml"

View on Github