how an intelligent assistant can augment the soc … · how an intelligent assistant can augment...

38
SIRI FOR THE SOC HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour

Upload: others

Post on 20-May-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

SIRI FOR THE SOCHOW AN INTELLIGENT ASSISTANT CAN AUGMENT

THE SOC TEAM

SANS SOC Summit 2017

Bobby Filar, Rich Seymour

Page 2: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

BOBBY FILAR

Data Scientist

Background in NLP

@filar

[email protected]

RICH SEYMOUR

Data Scientist

Background in HPC

@rseymour

[email protected]

2

WHO ARE WE?

Page 3: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Our Initial Problem

Evented data on endpoints

Event based data is Big Data problem

• Big data == big problems

How do we solve it?

Confidential and Proprietary 3

Page 4: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

User-Centric Design Study

GOAL: Capture team dynamics and worker roles within security organization to identify challenges common across security teams

4

User Group Team Type Environment Collection Method

A Traditional SOC Day-to-day use User interviews

B Novice Training Team Mock Scenario Side-by-side

monitoring &

interviews

C Internal Red vs. Blue Mock Scenario Retrospective

D Trad. SOC & Consulting group Day-to-day use User testing

Page 5: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Findings: Security Worker Roles

5

Tier 1 User Have little to no prior experience

(average of 1 year) in the cyber security space. First line of defense in a Security Operations Center.

Main responsibility is to initially triage alerts and determine if escalation (to higher tiered) is required.

Primarily rely on a platform’s GUI.

Tier 3 User Intimately understand network and

platform architecture.

Seen as domain experts on the SOC team and more comfortable working through the command line.

Investigates escalated alerts, and determine root causes and extent to remediate problems.

Forensic Investigator Expert in EDR platforms and

sophisticated investigation tools

Uses command line and scripting

languages to bypass UI and collect

large data feeds using 3rd party APIs.

Page 6: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Findings: Day in Life of a Security Analyst

Data

Deluge

Lack of

Context

Repetitive

Processes

Searching not

Analyzing

Lack of

Expertise

Lack of

Time

6

Page 7: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Example: EDR Alert

Alert Type: Suspicious Binary

Alert Created: Feb 11, 2017

Severity: High

Confidence: 73%

File Path: C:\Temp\aaa.exe

File Size: 45700

MD5: 5d41402abc4b2a76b9719d911017c592

File Created: Feb 11, 2017

What do you do when there are 100s of these each day?

7

Page 8: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Example: EDR Alert

Lacks context

• Is it actually bad?

• Is it anywhere else?

• Did it talk to the network?

Lacks connectivity

• Is this alert tied to any others?

Pivot on single IOC

• Hash

• Filename

• IP address

Alert Type: Suspicious Binary

Alert Created: Feb 11, 2017

Severity: High

Confidence: 73%

File Path: C:\Temp\aaa.exe

File Size: 45700

MD5: 5d41402abc4b2a76b9719d911017c592

File Created: Feb 11, 2017

What do you do when there are 100s of these each day?

8

Page 9: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Additional Findings

More than search

AUTOMATE ALL THE THINGS!!1!1!

• Attack Timeline

• Process Lineage

• Custom Workflows

• Hunts

∙ Malicious Powershell

∙ C2 Beaconing

• Netflow Activity

Collaboration

9

Page 10: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Core Problems

10

Insufficient Resources

• Onboarding &

training new hires

• Limited time to

review alerts and

incidents

Lack of easy-to-use

automated tools

• Difficult for non-

programmers to use

• Easy for programmers

to mess up!

Security platforms are just

difficult to use!

• Forces conformity

• Requires level of

expertise to extract value

Page 11: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Solution

A Bot is an application that assists in the automation of tasks

• Mimics human conversation

• Natural Language Understanding determines user intent

Imagine an assistant that provides ability to:

• Ask questions

• Execute workflows

• Educate users

• Recommend next steps

Hello, how can I help

you?

11

Page 12: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Bot 101

Page 13: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Managing Expectations

vs.

13

Page 14: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

A.I. Almost Intelligent

A user has a goal in mind, the bot

needs to take that intention and turn

it into action with the right variables

assigned.

At worst a bot is an interactive form

At best a bot can predict what you

need and help guide you

14

Page 15: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Click-Through vs. Conversational Interfaces

15

+ 6 more steps

vs

I’d like to order a cheese pizza.

Great! What size pizza would

you like?

Medium

Okay. I have an order for a

medium cheese pizza. Is that

all?

Yes. That is all.

Page 16: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Evolution of (Security) Bots

16

Page 17: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Evolution of (Security) Bots

Bash and Cron (and Perl) automating

IRC bots (Nickserv & Chanserv)

Hubot

SecurityBot

Demisto

Twitter Bots

17

Page 18: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Bot Development Kits (BDKs)

The rise of bots is largely due to an increase in BDKs

Companies like Chatfuel, Wit.ai, and API.ai

• Provide simple UI for development

• Closed-domain, Rule-based, goal-oriented bots

• No programming skills required

How popular have these frameworks become?

• Wit.ai purchased by Facebook (Jan 2015)

• API.ai purchased by Google (Sep 2016)

Major companies pushing out frameworks too!

• Microsoft Bot Framework

• Amazon Alexa Skills Kit

18

Page 19: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Bot Architecture

Rule-based & machine learning

• Dependent on amount of training

data

• NLP/ML is used behind the scenes,

but not forced upon developer

Construct a dialogue tree designed to

complete a task

• Each branch represents question the

user must answer to progress

19

Page 20: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Bot Workflow

Session

Identity

Dialogue Script

Context

Intents

Entities

Action

20

Page 21: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Context & Intent

Context (teal)

• Current state

• Steers conversation

• Ensures all req’d parameters are

collected to perform Action

Intent (red)

• Maps Utterance (blue) specific

Action

• What does the user want?

21

Page 22: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Entities

Entities are parameters needed to satisfy Intents and execute Actions.

Entities can be anything

• File hash

• IP address

• Cities

Permutations of an entity allow for diversity of vocabulary

• Regular Expressions

• Synonyms22

Page 23: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Training Data

Few bot developers have necessary

training data

BDKs provide access to Domains or

pre-defined Knowledge packages:

• Reservations

• Small Talk

• Weather

Packages include common intents and

entities to train your bot

BDKs log user interactions to constantly

update training set

23

Page 24: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

NLP 101 Direct Matching (No ML)

VB NNS IN NNP IN NNP IN NNP

if utterance contains show_vb AND processes_nns:

Utterance

Tokenization

Parts-of-

Speech

Tagging (POS)

Named Entity

Recognition

(NER) Hash Endpoints Date

SHOW_PROCESS(md5, “windows endpoints”, “since Monday”)

Perform Action

24

Show processes for 1234123412341234 on Windows endpoints since Monday

Show processes for 1234123412341234 on Windows endpoints since Monday

Show processes for 1234123412341234 on Windows endpoints since Monday

Show processes for 1234123412341234 on Windows endpoints since Monday

Page 25: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

NLP 101 ML-Based

Utterance

Tokenization

Named Entity

Recognition

(NER)

0 1 1 0 1 0 1 0 1 1 0 0 1Bag-of-Words

(Feature Vector)

SHOW_PROCESS

SHOW_NETWORK

SHOW_REGISTRY

Intent

Classification SHOW_PROCESS(hash, endpoint_type, date)

Perform Action

Show processes for 1234123412341234 on Windows endpoints since Monday

Show processes for 1234123412341234 on Windows endpoints since Monday

Show processes for 1234123412341234 on Windows endpoints since Monday

Hash Endpoints Date

SHOW_PROCESS(md5, “windows endpoints”, “since Monday”)25

Page 26: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Actions

Actions are the outcome of an

intent w/ the necessary

parameters.

Actions can be anything

• A response

• A knowledge base lookup

• Script execution

• Automation (do this daily)

26

Page 27: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Bots for Everyone

Bots don’t have to be super

complex AI

Build them any way you like

You can run them anywhere

Automate custom scripts and

workflows or tie into larger

platforms

27

Page 28: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Case Study:

Artemis

Page 29: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Design Goal

The challenge is building a feature that

augments one part of the user base,

but doesn’t hinder the other.

29

Steve Jobs (probably)

Page 30: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Architecture (Simplified)

30

Hello, how can I help

you?

Platform

Page 31: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Natural Language vs Query Language

31

Query LanguageSELECT * FROM TABLE process_event WHERE

process_name == “odinaff.exe”;

Natural LanguageShow me process event data for odinaff.exe

Page 32: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Interaction Types

Turn-based Conversation

User: Search processes

Artemis: Okay. Please provide a hash or filename

User: odinaff.exe

Artemis: Got it. Which endpoints would you like to target?

User: Windows 10 machines.

Artemis: Okay. Would you like to launch this search?

User: Yes

32

Page 33: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Interaction Types

Goal-oriented Conversation

User: Show me process event data for odinaff.exe on all Windows 10 endpoints

Artemis: Okay.

33

Page 34: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Interaction Types

API-Driven Investigations

curl 'api/v1/event_search' -H "Content-Type: application/json" -H

'authorization: <api_key> --insecure --data-binary

'{"intent":"search_process",

"parameters": {

"process_name":"odinaff.exe",

"filepath": "C:\\Temp\\*.exe"

}

}'

34

Page 35: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Search Space

Process File Users Network Registry

Endpoint Event Data

MalwareScore PersistenceCredential

Dumping

Permission

Theft

Adversary

Evasion

Endgame Prevention & Detection Data

35

Page 36: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

TRADITIONAL INVESTIGATION

1. Narrow scope to limited endpoints

2. Understand adversary TTPs

3. Gather events from limited endpoints

4. Analyze events from for signs of TTPs

5. Discover suspicious activity

6. Decode obfuscated commands

7. Pinpoint powershell activity

8. Expand scope to next set of endpoints

9. Repeat…

ENDGAME ARTEMIS

“Find powershell activity”

Powershell Misuse Investigation

Automatically discovers and

analyzes malicious activity across

your global enterprise in minutes

36

Page 37: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Demo Time!

Page 38: HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC … · HOW AN INTELLIGENT ASSISTANT CAN AUGMENT THE SOC TEAM SANS SOC Summit 2017 Bobby Filar, Rich Seymour. BOBBY FILAR ... Evented

Thank YouContact:

[email protected] @filar

[email protected] @rseymour