Account or Group Discovery via Built-In Tools

edit

Adversaries may use built-in applications to get a listing of local system or domain accounts and groups.

Rule type: eql

Rule indices:

  • logs-endpoint.events.*

Severity: low

Risk score: 21

Runs every: 60m

Searches indices from: now-119m (Date Math format, see also Additional look-back time)

Maximum alerts per execution: 100

References: None

Tags:

  • Domain: Endpoint
  • OS: Linux
  • OS: macOS
  • Use Case: Threat Detection
  • Tactic: Discovery
  • Rule Type: BBR

Version: 1

Rule authors:

  • Elastic

Rule license: Elastic License v2

Rule query

edit
process where event.type== "start" and event.action == "exec" and
  ( (process.name: ("groups","id"))
    or (process.name : "dscl" and process.args : ("/Active Directory/*", "/Users*", "/Groups*"))
    or (process.name: "dscacheutil" and process.args:("user", "group"))
    or process.args:("/etc/passwd", "/etc/master.passwd", "/etc/sudoers")
    or (process.name: "getent" and process.args:("passwd", "group"))
  )

Framework: MITRE ATT&CKTM