That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps...

42
That SIEM Won’t Will Hunt SIEM Summit 2019 John Stoner @stonerpsu SIEM

Transcript of That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps...

Page 1: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

That SIEM Won’t Will HuntSIEM Summit 2019

John Stoner

@stonerpsu

SIEM

Page 2: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

• 20+ years of cyber security experience

• Creator of SA-Investigator for Splunk

• Blogger on Hunting and SecOps

• Symantec→ArcSight→Splunk- I’ve Seen them all

• Loves The Smiths and all 80’s sadtimey music

Principal Security Strategist

@stonerpsu

# whoami > John StonerGCIA, GCIH, GCTI

Page 3: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Why Do We Hunt?

Page 4: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Symbiotic Relationship

Threat Hunters

• Operationalize Findings

Security Operations

• Identify Indicators to Hunt Against

Page 5: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Context is Key

Systems, users, and accounts provide contextual information that will aid the hunt

SIEM has this information

Page 6: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Systems

Page 7: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Users and Accounts

Page 8: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Connections and Relationships

Page 9: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Common Taxonomy - MITRE ATT&CK

Page 10: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s
Page 11: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Threat Intelligence

Threat Hunting

Security Operations

Page 12: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s
Page 13: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Using ATT&CK Techniques To Build Our Hunting Hypothesis

Adversaries will use PowerShell Empire to establish a foothold and carry out attacks

Page 14: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

How Might We Confirm or Refute Our Hypothesis?

Where can I learn more about PowerShell Empire?

Does PowerShell Empire have default settings that I could hunt for?

What do data flows look like between sources and destinations?

What user accounts are being used?

When did events occur?

Are we able to see the contents of the scripts PowerShell is running to gain greater understanding?

Page 15: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Indicator in the cert.sh File - GitHub

Page 16: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Using the SIEM to Find Indicators

Page 17: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Pivot to Destination

Page 18: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s
Page 19: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Pivot to External Threat Intelligence

Page 20: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Finding Adversary Infrastructure

Page 21: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Search for Existing Correlated Events

Page 22: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Pivot to Find More Details on an Artifact

Page 23: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Account Modifications

Page 24: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Login Activities

Page 25: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Pivot to the Service Account

Page 26: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Service Account – Account Creation

Page 27: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Service Account – Host Processes

Page 28: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Pivot to Process Details

Page 29: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s
Page 30: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Broaden Our Time Window

Page 31: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Additional Command Strings

Page 32: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Chaining of EventsParent Process IDs and Process IDs

Page 33: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Correlated Event

Account Creation x2

Authentication Activities

Host Processes

Process Commands

Network

Host

File/Process

Account

Page 34: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Concluding A Hunt…Were we able to confirm or refute our hypothesis?

What have we learned?

What does our attack picture look like?

What other techniques were referenced?

What should we operationalize?

Where are our gaps?

Page 35: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

PowerShell Empire

IP: 45.77.65.211

Hostname: wrk-btun

IP: 10.0.2.109

IP: 10.0.2.107

Hostname: Venus

IP: 10.0.1.100

IP: 10.0.1.101

Hostname: wrk-klagerf

Hostname: Mercury

SSL Issuer: C=US

SHA256:18C13D226F7E39F45F22DA35ACC288A8AF6BFF2

3CA1D85B9A3FD3E36E52397D0

Exes Run:ftp.exewhoami.exeschtasks.exe

Hostname: 45.77.65.211.vultr.com

User:frothly\service3

User:frothly\btun

Page 36: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Operationalize Your Findings

Develop Hypothesis

1

Hunt to Validate Hypothesis

2

Document Findings from Hunt

3

Iterate Findings into Security Operations (Process)

4

Create Alerts Based on Hunt to be More Proactive (SIEM)

5

Page 37: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

What Could We Operationalize?

Alert on encoded PowerShell

Alert when we see specific executables running in sequence

Alert on SSL Issuer

Detect new accounts created

Blacklist IP Address

Monitor User Agent String Usage

Monitor for URIs

Page 38: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s
Page 39: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

MITRE ATT&CK - Taedongganghttps://mitre.github.io/attack-navigator

Page 40: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Adversary Simulation

Identify Gaps Hunters Find but SIEM Does Not

Identify Gaps Where Hunters Are Blind

What Data Are We Lacking?

Can We Put Both Kinds of Findings Into Our SIEM?

Page 41: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Data Sets to Play With!!!

BOTS version 1https://www.splunk.com/blog/2018/05/10/boss-of-the-soc-scoring-server-questions-and-answers-and-dataset-open-sourced-and-ready-for-download.html

Dataset -http://explore.splunk.com/BOTS_1_0_datasets

Investigating with Splunk Companion App

• https://splunkbase.splunk.com/app/3985/

BOTS version 2https://www.splunk.com/blog/2019/04/18/boss-of-the-soc-2-0-dataset-questions-and-answers-open-sourced-and-ready-for-download.html

Dataset -https://events.splunk.com/BOTS_2_0_datasets

Advanced APT Hunting Companion App

https://splunkbase.splunk.com/app/4430/

• https://www.splunk.com/blog/2019/06/07/boss-of-the-soc-bots-advanced-apt-hunting-companion-app-now-available-on-splunkbase.html

Page 42: That SIEM Won’t Will Hunt - SANS Institute · for Splunk •Blogger on Hunting and SecOps •Symantec→ArcSight→Splunk - I’ve Seen them all •Loves The Smiths and all 80’s

Thank You! John Stoner

@stonerpsu