tracing your security telemetry with apache metron

28
Tracing Your Security Telemetry With Apache Metron Justin Leet Systems Architect June 29, 2016

Upload: hadoop-summit

Post on 16-Jan-2017

1.003 views

Category:

Technology


7 download

TRANSCRIPT

Page 1: Tracing your security telemetry with Apache Metron

Tracing Your Security Telemetry With Apache Metron

Justin LeetSystems ArchitectJune 29, 2016

Page 2: Tracing your security telemetry with Apache Metron

2 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

What is Apache Metron?

Page 3: Tracing your security telemetry with Apache Metron

3 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

What Apache Metron Does?

“Apache Metron provides a scalable advanced security analytics framework built with the Hadoop Community evolving from the Cisco OpenSOC Project.

A cyber security application framework that provides organizations the ability to detect cyber anomalies and enable organizations to rapidly respond to identified anomalies.”

Page 4: Tracing your security telemetry with Apache Metron

4 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Apache Metron TimelineSep 2014 •OpenSOC Beta

June 2015 •OpenSOC Community Edition

Dec 2015 •Metron enters Apache Incubator

April 2016 •Apache Metron 0.1

Now •Working towards 0.2 release

Page 5: Tracing your security telemetry with Apache Metron

5 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Who is Metron for?

Page 6: Tracing your security telemetry with Apache Metron

6 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Core Capabilities

Page 7: Tracing your security telemetry with Apache Metron

7 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Architecture

Page 8: Tracing your security telemetry with Apache Metron

8 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Streaming Parsing and Enrichment

Page 9: Tracing your security telemetry with Apache Metron

9 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Metron’s parsing bolt can be configured two ways– And outputs JSON

Grok Parser– Less work to implement– Regex-like syntax– Good for lower volumes of data

Java Parser– More work to implement– Good for higher volumes of data

Parsing

Page 10: Tracing your security telemetry with Apache Metron

10 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Enrichment / Threat Intel

Page 11: Tracing your security telemetry with Apache Metron

11 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Add additional information to raw source during streaming Adding it during streaming allows ML models to score in real time instead of

batch Primarily stored in HBase Several enrichments

– GeoIP– Host– Threat Intelligence

Enrichment

Page 12: Tracing your security telemetry with Apache Metron

12 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Occurs in the same Storm topology as enrichment

Very similar process and flow

Use a threat feed aggregator!– Soltra adapter is provided to read feed and stream into HBase– Flat File loader and Stix bulk loader available without threat feed aggregator

Threat Intel

Page 13: Tracing your security telemetry with Apache Metron

13 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Field Description

ip_src_addr Octet source IPip_dest_addr Octet destination IPip_src_port Integer source portip_dest_port Integer destination portprotocol String protocol (e.g. TCP)timestamp Sensor epoch timestampsource.type yaf, snort, etc.start_time Metron epoch timestampend_time Metron epoch timestamp

Metron JSON

Page 14: Tracing your security telemetry with Apache Metron

14 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Standalone Storm topology

Reads from Kafka

Writes packets to HDFS

Kibana panel forwards request to REST PCAP service– MR Job launched– Delivers results back to Kibana

PCAP

Page 15: Tracing your security telemetry with Apache Metron

15 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

PCAP

Page 16: Tracing your security telemetry with Apache Metron

16 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Tracing a Source Through Metron

Page 17: Tracing your security telemetry with Apache Metron

17 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Sensor to Parser

Page 18: Tracing your security telemetry with Apache Metron

18 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Caching proxy– Mostly useful as a source of easy to get and easily readable logs

Squid

1467125585.752 5288 127.0.0.1 TCP_MISS/200 32250 GET https://news.ycombinator.com/ - DIRECT/104.20.43.44 text/html

Time Elapsed Remote Host Code/Status Bytes Method URL rfc931 Peer Status/ Peer Host Type

1467125585.752 5288 127.0.0.1 TCP_MISS/200

32250 GET https://news.ycombinator.com/ - DIRECT/104.20.43.44 text/html

Page 19: Tracing your security telemetry with Apache Metron

19 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Squid - Grok

Time Elapsed Remote Host Code/Status Bytes Method URL rfc931 Peer Status/ Peer Host Type

1467125585.752 5288 127.0.0.1 TCP_MISS/200

32250 GET https://news.ycombinator.com/ - DIRECT/104.20.43.44 text/html

SQUID_DELIMITED %{NUMBER:timestamp}%{SPACE:UNWANTED} %{INT:elapsed}%{SPACE:UNWANTED}%{IPV4:ip_src_addr} %{WORD:action}/%{NUMBER:code} %{NUMBER:bytes} %{WORD:method} %{NOTSPACE:url} - %{WORD:UNWANTED}\/%{IPV4:ip_dst_addr} %{WORD:UNWANTED}\/%{WORD:UNWANTED}

Page 20: Tracing your security telemetry with Apache Metron

20 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Squid – Topology Definition

{  "parserClassName": "org.apache.metron.parsers.GrokParser",  "sensorTopic": "squid",  "parserConfig": {    "grokPath": "/apps/metron/patterns/squid",    "patternLabel": "SQUID_DELIMITED",    "timestampField": "timestamp"  },  "fieldTransformations" : [     {      "transformation" : "MTL"    ,"output" : [ "full_hostname", "domain_without_subdomains" ]    ,"config" : {                    "full_hostname" : "URL_TO_HOST(url)"                    ,"domain_without_subdomains" : "DOMAIN_REMOVE_SUBDOMAINS(full_hostname)"                    }     } ]}

Page 21: Tracing your security telemetry with Apache Metron

21 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Squid – Topology Result

Page 22: Tracing your security telemetry with Apache Metron

22 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Enrichment Topology

Page 23: Tracing your security telemetry with Apache Metron

23 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Loading some WHOIS derived data.– Not directly making WHOIS query, just using a CSV containing a few rows of data.

Squid – Enrichment Definition

{ "zkQuorum" : ”localhost:2181" ,"sensorToFieldList" : { "squid" : { "type" : "ENRICHMENT" ,"fieldToEnrichmentTypes" : { "domain_without_subdomains" : [ "whois" ] } } }}

Page 24: Tracing your security telemetry with Apache Metron

24 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Squid – Enrichment Result

Page 25: Tracing your security telemetry with Apache Metron

25 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Enrichment Topology

Page 26: Tracing your security telemetry with Apache Metron

26 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Loading a list of malicious domains– ZeuS tracker

Squid – Enrichment Definition

{ "zkQuorum": "localhost:2181", "sensorToFieldList": { "squid": { "type": "THREAT_INTEL", "fieldToEnrichmentTypes": { "url": ["zeusList”] } } }}

Page 27: Tracing your security telemetry with Apache Metron

27 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Squid – Threat Intel Result

Page 28: Tracing your security telemetry with Apache Metron

28 © Hortonworks Inc. 2011 – 2016. All Rights Reserved

Questions?Justin LeetSystems Architect

[email protected]@gmail.com