introducing (det) the data exfiltration toolkit

45
Introducing DET (Data Exfiltration Toolkit) Paul Amar - BSides Ljubjana - 09/03/2016

Upload: sensepost

Post on 14-Apr-2017

1.470 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Introducing (DET) the Data Exfiltration Toolkit

Introducing DET(Data Exfiltration Toolkit)

Paul Amar - BSides Ljubjana - 09/03/2016

Page 2: Introducing (DET) the Data Exfiltration Toolkit
Page 3: Introducing (DET) the Data Exfiltration Toolkit

100

Page 4: Introducing (DET) the Data Exfiltration Toolkit
Page 5: Introducing (DET) the Data Exfiltration Toolkit

General Approach

TCP

DNS

HTTP

ICMP

SMTP

Page 6: Introducing (DET) the Data Exfiltration Toolkit

General Approach

TCP

DNS

HTTP

ICMP

SMTP

Page 7: Introducing (DET) the Data Exfiltration Toolkit

General Approach

TCP

DNS

HTTP

ICMP

SMTP

Page 8: Introducing (DET) the Data Exfiltration Toolkit

General Approach

TCP

DNS

HTTP

ICMP

SMTP

Page 9: Introducing (DET) the Data Exfiltration Toolkit

General Approach

TCP

DNS

HTTP

ICMP

SMTP

Page 10: Introducing (DET) the Data Exfiltration Toolkit

General Approach

TCP

DNS

HTTP

ICMP

SMTP

Page 11: Introducing (DET) the Data Exfiltration Toolkit

HammerToss (July 2015)

Page 12: Introducing (DET) the Data Exfiltration Toolkit

What’s available today?

Page 13: Introducing (DET) the Data Exfiltration Toolkit

What’s available today?

And many more.. created almost everyday.

Not kidding.

Page 14: Introducing (DET) the Data Exfiltration Toolkit

Current state TCP

DNS

HTTP

ICMP

Twitter DMs

SMTP (eg. Gmail)

Page 15: Introducing (DET) the Data Exfiltration Toolkit

Introducing DET

Page 16: Introducing (DET) the Data Exfiltration Toolkit

Configuration file (JSON format)

Page 17: Introducing (DET) the Data Exfiltration Toolkit

File to exfiltrate

Page 18: Introducing (DET) the Data Exfiltration Toolkit

Folder to exfiltrate / multi-threaded

Page 19: Introducing (DET) the Data Exfiltration Toolkit

Plugin(s) to use

Page 20: Introducing (DET) the Data Exfiltration Toolkit

Plugin(s) to exclude

Page 21: Introducing (DET) the Data Exfiltration Toolkit

Server mode

Page 22: Introducing (DET) the Data Exfiltration Toolkit

Configuration file

List all your plugins and their configuration

Page 23: Introducing (DET) the Data Exfiltration Toolkit

Configuration file

Each plugin has its own configuration

(username, pwd, …)

Page 24: Introducing (DET) the Data Exfiltration Toolkit

Configuration file

Additional configuration (XOR Key, Sleeping time, …)

Page 25: Introducing (DET) the Data Exfiltration Toolkit

Let’s dig a bit (Client-side)

Page 26: Introducing (DET) the Data Exfiltration Toolkit

“Registration” phase 1/2

Page 27: Introducing (DET) the Data Exfiltration Toolkit

“Registration” phase 2/2

Page 28: Introducing (DET) the Data Exfiltration Toolkit

Sending the data 1/2

Page 29: Introducing (DET) the Data Exfiltration Toolkit

Sending the data 2/2

Page 30: Introducing (DET) the Data Exfiltration Toolkit

“End” phase 1/2

Page 31: Introducing (DET) the Data Exfiltration Toolkit

“End” phase 2/2

Page 32: Introducing (DET) the Data Exfiltration Toolkit

So in few words..

Page 33: Introducing (DET) the Data Exfiltration Toolkit
Page 34: Introducing (DET) the Data Exfiltration Toolkit
Page 35: Introducing (DET) the Data Exfiltration Toolkit
Page 36: Introducing (DET) the Data Exfiltration Toolkit

But wait! There’s moar.

Page 38: Introducing (DET) the Data Exfiltration Toolkit

Additional plugins (Tor Integration) 2/2

Page 39: Introducing (DET) the Data Exfiltration Toolkit

“Experimental” plugins

Page 40: Introducing (DET) the Data Exfiltration Toolkit
Page 41: Introducing (DET) the Data Exfiltration Toolkit

What’s next

- Port DET *entirely* to PowerShell (With Plugin based) (“Empire”-like)

- More plugins!

- Data obfuscation layer using Markov Chains

- https://github.com/bwall/markovobfuscate

Page 42: Introducing (DET) the Data Exfiltration Toolkit
Page 43: Introducing (DET) the Data Exfiltration Toolkit
Page 44: Introducing (DET) the Data Exfiltration Toolkit

InstallationGet/install it:

- git clone https://github.com/sensepost/DET

- pip install -r requirements --user (instal dependencies for the local user)

Client side:

- python det.py -f /etc/passwd -c ./config.json (or PS scripts)

Server side:

- python det.py -L -c ./config.json

Page 45: Introducing (DET) the Data Exfiltration Toolkit

sys.exit(0)

Paul Amar ([email protected]) / @PaulWebSec