Detection rules › Splunk

IcedID Discovery Commands (EDR)

Group by
_time, host
Source
github.com/anvilogic-forge/armory

IcedID may automatically run several initial discovery commands that provided environmental information about the host, network, and domain. This use case looks for a combination of those commands commonly seen after IcedID is executed

MITRE ATT&CK coverage

References

Event coverage

Rule body yaml

id: '12911.18541'
title: IcedID Discovery Commands
description: IcedID may automatically run several initial discovery commands that
  provided environmental information about the host, network, and domain. This use
  case looks for a combination of those commands commonly seen after IcedID is executed.
  - Living Off the Land Binary and Scripts (LOLBAS) (LOLBIN)
logic_format: Splunk
logic: ' `get_endpoint_data` `get_endpoint_data_edr` ((event_type IN ("childproc","netconn","proc"))
  OR (TERM(ProcessRollup2) OR Type=Process) OR TERM(DeviceProcessEvents)) ("net.exe"
  OR "net1.exe" OR "ipconfig" OR "ipconfig.exe" OR "nltest" OR "nltest.exe" OR "systeminfo"
  OR "systeminfo.exe") | table _time, host, user signature_id, process, process_*,
  parent_* | bin span=60s | stats values(*) as * by _time, host | where match(process_name,
  "(?i)systeminfo.exe") and match(process_name, "(?i)net1?.exe") and match(process_name,
  "(?i)nltest.exe") and match(process_name, "(?i)ipconfig.exe") `hec_collect`'
techniques:
- discovery:permission groups discovery:domain groups
- discovery:network share discovery
- discovery:account discovery
- discovery:system information discovery
- collection:automated collection
technique_id:
- T1069.002
- T1135
- T1087
- T1082
- T1119
data_category:
- EDR Logs
references:
- https://thedfirreport.com/2022/04/25/quantum-ransomware/

Stages and Predicates

Stage 1: search

`get_endpoint_data` `get_endpoint_data_edr` ((event_type IN ("childproc","netconn","proc")) OR (TERM(ProcessRollup2) OR Type=Process) OR TERM(DeviceProcessEvents)) ("net.exe" OR "net1.exe" OR "ipconfig" OR "ipconfig.exe" OR "nltest" OR "nltest.exe" OR "systeminfo" OR "systeminfo.exe")

Stage 2: table

| table _time, host, user signature_id, process, process_*, parent_*

Stage 3: bucket

| bin span=60s

Stage 4: stats

| stats values(*) as * by _time, host

Stage 5: where

| where match(process_name, "(?i)systeminfo.exe") and match(process_name, "(?i)net1?.exe") and match(process_name, "(?i)nltest.exe") and match(process_name, "(?i)ipconfig.exe") `hec_collect`

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
event_typein
  • "childproc"
  • "netconn"
  • "proc"
process_namematch
  • "(?i)ipconfig.exe" corpus 3 (splunk 3)
  • "(?i)net1?.exe" corpus 3 (splunk 3)
  • "(?i)nltest.exe" corpus 3 (splunk 3)
  • "(?i)systeminfo.exe" corpus 3 (splunk 3)

Search terms

Bare-string tokens in the SPL search body. Splunk matches each token against _raw (the untyped raw event text) anywhere it appears, not against a specific field. These don't surface in the Indicators table because they aren't predicates on a known field.

StageTerm
1TERM
1ProcessRollup2
1TERM
1DeviceProcessEvents
1"net.exe"
1"net1.exe"
1"ipconfig"
1"ipconfig.exe"
1"nltest"
1"nltest.exe"
1"systeminfo"
1"systeminfo.exe"