tools for cloud examination - osdfcon...thomas chopitea incident responder dftimewolf core developer...

48
Tools for Cloud Examination "Tilt your head back and look up to the sky"

Upload: others

Post on 22-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Tools for Cloud Examination

"Tilt your head back and look up to the sky"

Page 2: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

The Storytellers

Daniel White

● Incident responder● Plaso core developer ● Based in Zurich, Switzerland

Thomas Chopitea

● Incident responder● dfTimewolf core developer ● Based in Zurich, Switzerland● @tomchop_

Page 3: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

This is a story

Page 4: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Cast of Characters

The Dean

The dean of the school, who also dabbles into sysadmin stuff.

Benjamin Chang

Recently graduated cloud expert. Has to set up the cloud infrastructure for Greendale’s new class on IoT A/C systems.

Page 5: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Cast of Characters

Ahmed

Experienced incident responder, has responded to previous incidents at Greendale.

Rosa

New addition to the team, has great attention to detail and is a very quick learner

Page 6: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Cloud Alerts

Page 7: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

💸 Billing Alert! 💸

Page 8: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

💸 Billing Alert! 💸

Page 9: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Building a response

Page 10: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Setting up a response environment

What Ahmed wants:

● A Timesketch instance ready to ingest plaso files● A Turbinia instance ready to process cloud evidence● A bunch of Turbinia workers ready to run jobs● dfTimewolf set up and ready to go

Page 12: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Starting the forensics

Stackdriver logs

Page 13: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

dfTimewolf for Stackdriver

● Let’s have a look at who created those VMs● dfTimewolf can help!

○ Recipe running a prebuilt filter Stackdriver logs on actions taken on GCE instances (VMs)

● Our target project is greendale-iot-cloud

$ dftimewolf stackdriver_gce_ts greendale-iot-cloud <start_date>

<end_date> <justification>

Page 14: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Mining for Glory

Page 15: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Don't put keys in source control

Page 16: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Going further

Page 17: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Something a bit weird

Page 18: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Something a bit weird

Page 19: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Something a bit weird

Page 20: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Something a bit weird

Page 21: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Something a bit weird

Page 22: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Gathering More Evidence

Page 23: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Forensics in the cloudplz copy disk jenkins

new disk ID: jenkins-copy

plz forensicate disk jenkins-copy

here’s jenkins-copy.plaso

plz timeline jenkins-copy.plaso

store jenkins.plaso

Page 24: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Forensics to the cloud

Page 25: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

So what happened?

Page 26: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

What we know:

● Instances were created and started mining cryptocurrency, alerting Ben.● While digging, Rosa found some other, unrelated, strange activity... and

decided to dig deeper.

Forensic evidence that CFA has so far:

● API logs from Cloud (Stackdriver)● The Jenkins VM disk timeline (dftimewolf’d in the Cloud)● Ben’s workstation timeline (GIFT’ed to CFA)

Page 27: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Working backwards: Activity

Page 28: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Working backwards: Activity

Page 29: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Working backwards: Folder

<SOME SCREENSHOT OF ACTIVITY IN THE UNISTORE FOLDER HERE>

Page 30: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Working Backwards: Malware

<SOME SCREENSHOT OF THE NVTELEMETRY BACKDOOR>

Page 31: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Working Backwards: Phishing

<SOME SCREENSHOT OF THE PHISHING EVENTS HERE>

Page 32: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean
Page 33: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Base 64 decrypted payload

Page 34: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Greendale explains

Page 35: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Bioreactor

Page 36: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Greendale explains

Page 37: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Looking for git

Page 38: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Looking for git

Page 39: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Committing to evil

Page 40: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

October 17, 2019 10:40:46 UTC

0x5da8452e == 1571308846

Page 41: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean
Page 42: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Closing Credits

Page 43: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Forseti

● https://forsetisecurity.org/● Collection of community-driven, open-source

tools to help you improve the security of your Google Cloud Platform (GCP) environments

● Apache License v2

Page 44: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

dfTimewolf

● https://github.com/log2timeline/dftimewolf● Orchestration between different tools and APIs● Apache License v2

Page 45: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Turbinia/Plaso

● https://github.com/google/turbinia● Forensics orchestration in the cloud● Apache License v2

● https://github.com/log2timeline/plaso● Recursively parses and extracts timestamp

information from files● Apache License v2

Page 46: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

GIFT Stick

● https://github.com/google/GiftStick ● Bootable OS that copies disks/firmware to the cloud● Apache License v2

(demo featuring our in-house hand model)

💻➡☁

Page 47: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Timesketch

● https://github.com/google/timesketch● https://demo.timesketch.org● Visual timeline analysis tool● [email protected]● Apache License v2

Page 48: Tools for Cloud Examination - OSDFCon...Thomas Chopitea Incident responder dfTimewolf core developer Based in Zurich, Switzerland @tomchop_ This is a story Cast of Characters The Dean

Links and Contact

● Plaso○ https://github.com/log2timeline/plaso

● Forseti○ https://forsetisecurity.org/

● Slack Channel○ https://github.com/open-source-dfir/slack

● dfTimewolf○ https://github.com/log2timeline/dftimewolf

● Turbinia○ https://github.com/google/turbinia

● Timesketch○ https://github.com/google/timesketch

● GIFT○ https://github.com/google/GiftStick

💻➡☁