• No results found

Intelligence Driven Intrusion Detection

N/A
N/A
Protected

Academic year: 2021

Share "Intelligence Driven Intrusion Detection"

Copied!
29
0
0

Loading.... (view fulltext now)

Full text

(1)

Matthias Wübbeling: [email protected]

Arnold Sykosch: [email protected]

Friedrich-Wilhelms-Universität Bonn: Working Group IT Security Fraunhofer Institute for Communication, Information Processing and Ergonomics FKIE: Cyber Security Department

Intelligence Driven

Intrusion Detection

(2)

OVERVIEW

Threat Intelligence in a Nutshell

Exchange of TI

Utilization of TI

STIX2Suricata

STIX2GRR

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

2

(3)

Threat Intelligence in a Nutshell

What do you need TI for?

■ Identify emerging threats before being targeted by an attacker. ■ Share intelligence information of ongoing or finished attacks. ■ Common sense:

To survive, a gazelle must run faster than the slowest gazelle.

(image from http://quoteinvestigator.com)

■ „Common sense is not so common“ (unknown source). ■ How about this quote in the field of Internet attacks / APT?

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

3

(4)

Threat Intelligence in a Nutshell

How about the hunters and the hunted in the Internet age?

■ To survive: You have to be faster than the fastest attacker!

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

4

(5)

Threat Intelligence in a Nutshell

How about the hunters and the hunted in the Internet age?

■ To survive: You have to be faster than the fastest attacker!

■ Common goal: Being faster than 85%-99% of the attackers.

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

5

(6)

Exchange of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

6

2.-3. Juli 2015

Common data exchange format: XML

Existing standards for TI data:

■ OpenIOC

■ STIX/CybOX ■ OpenIOC

■ “OpenIOC is an extensible XML schema for the description of technical characteristics that identify a known threat, an attacker’s methodology, or other evidence of compromise. OpenIOC was created by MANDIANT” (www.openioc.org)

■ STIX/CybOX

■ Developed by MITRE.

■ At least as expressively as OpenIOC. ■ Therefore: => we use STIX/CybOX. ■ How to get Threat Intelligence?

■ Become part of a TI sharing community

(7)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

7

(8)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

8

(9)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX?

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

9

(10)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX? Not possible if you use security appliances.

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

10

(11)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX? Not possible if you use security appliances.

■ Beg the vendor or your appliance to implement STIX/CybOX?

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

11

(12)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX? Not possible if you use security appliances.

■ Beg the vendor or your appliance to implement STIX/CybOX? Sure you do! Will take a while.

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

12

(13)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX? Not possible if you use security appliances.

■ Beg the vendor or your appliance to implement STIX/CybOX? Sure you do! Will take a while.

■ Map STIX/CybOX information to the applications’/appliances’ configuration!

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

13

(14)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX? Not possible if you use security appliances.

■ Beg the vendor or your appliance to implement STIX/CybOX? Sure you do! Will take a while.

■ Map STIX/CybOX information to the applications’/appliances’ configuration!

Might be a good chance to get it now!

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

14

(15)

How to use Threat Intelligence to protect your infrastructure?

■ Have an employee consuming TI the whole day extracting the relevant information?

Better not!

■ Enable your security equipment to understand STIX/CybOX? Not possible if you use security appliances.

■ Beg the vendor or your appliance to implement STIX/CybOX? Sure you do! Will take a while.

■ Map STIX/CybOX information to the applications’/appliances’ configuration!

Might be a good chance to get it now!

■ We just started to map STIX to a Host and a Network IDS: Suricata (NIDS; same rule syntax as SNORT)

GRR Rapid Response (HIDS; “hunting for artifacts”)

Utilization of Threat Intelligence

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

15

(16)

STIX2Suricata

Goal: Generate Suricata rules based on STIX/CybOX TI.

■ 1st Step: Identify relevant data fields in STIX/CybOX.

■ 2nd Step: Mapping identified fields to Suricata rule elements.

■ 3rd Step: Implement tool for automated rule generation.

STIX/CybOX elements relevant for network intrustion detection systems:

■ Address, NetworkConnection, Packet, Port, Socket

■ ArchiveFile, DNSQuery, DNSRecord, DomainName, EmailMessage, File, Hostname, HTTPSession, Link, NetFlow, URI, X509Certificate

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

16

(17)

STIX2Suricata

Suricata rule syntax:

■ <Action> <Header> <Options>

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

17

(18)

STIX2Suricata

Suricata rule syntax:

■ <Action> <Header> <Options>

<Action>

■ Pass ■ Drop ■ Reject ■ Alert

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

18

(19)

STIX2Suricata

Suricata rule syntax:

■ <Action> <Header> <Options>

<Action>

■ Pass ■ Drop ■ Reject ■ Alert

<Header>

■ Protocol: (IP/UDP/TCP + some application layer protocols) ■ Source IP-Address

■ Source TCP/UDP-Port ■ Direction of traffic

■ Destination IP-Address ■ Destination TCP/UDP-Port

STIX2Suricata mapping for <Header> elements:

■ Address, NetworkConnection, Packet, Port, Socket

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

19

(20)

STIX2Suricata

<Header> mapping example:

■ STIX/Cybox data:

<indicator:Observable id="example:Observable-1c798262-a4cd-434d-a958-884d6980c459"> <cybox:Object id="example:Object-1980ce43-8e03-490b-863a-ea404d12242e">

<cybox:Properties xsi:type="AddressObject:AddressObjectType" category="ipv4-addr"> <AddressObject:Address_Value condition="Equals" apply_condition="ANY">

10.1.0.1##comma##10.2.0.2##comma##10.3.0.3 </AddressObject:Address_Value>

</cybox:Properties> </cybox:Object> </indicator:Observable>

■ Resulting Suricata rule:

alert ip [10.1.0.1, 10.2.0.2, 10.3.0.3] any <> any any (<Options>)

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

20

(21)

STIX2Suricata

Suricata rule syntax:

■ <Action> <Header> <Options>

<Options>

■ msg ■ sid ■ rev ■ gid ■ classtype ■ reference ■ priority ■ metadata ■ content

STIX2Suricata mapping for <Options> elements:

■ ArchiveFile, DNSQuery, DNSRecord, DomainName, EmailMessage, File, Hostname, HTTPSession, Link, NetFlow, URI, X509Certificate

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

21

(22)

STIX2Suricata

<Options> mapping example:

■ STIX/Cybox data: <EmailMessageObj:Header> <EmailMessageObj:From category="e-mail"> <AddressObj:Address_Value condition="StartsWith"> [email protected] </AddressObj:Address_Value> </EmailMessageObj:From> </EmailMessageObj:Header> … <cybox:Related_Objects> <cybox:Related_Object> <cybox:Properties xsi:type="FileObj:FileObjectType"> <FileObj:File_Extension>pdf</FileObj:File_Extension> <FileObj:Size_In_Bytes>87022</FileObj:Size_In_Bytes> </cybox:Properties> </cybox:Related_Object> </cybox:Related_Objects>

■ Resulting Suricata rule:

alert tcp any any <> any any (msg:"STIX2Suricata: Malicious Email"; flow:established; content:From: [email protected]; nocase; fileext:"pdf"; sid:513000; )

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

22

(23)

STIX2Suricata

Current development status:

■ Python prototype maps data relevant for NIDS to Suricata rules. ■ Integration into [large company name here] Threat Intelligence tool.

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

23

(24)

STIX2GRR

GRR Rapid Response (GRR)

■ “GRR is forensic framework focused on scalability enabling powerful analysis.” (https://github.com/google/grr)

■ A forensic framework is not a Host IDS !!!11 ?

■ But: It is possible to use GRR to remotely get the state of host systems.

Why GRR and not OSSEC or similar?

■ GRR is state based – as STIX/CybOX data is

GRR is hunt based

■ Define artifact to look for. ■ Select target hosts.

■ Start hunt.

■ Wait for “rapid responses”.

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

24

(25)

STIX2GRR

GRR Rapid Response (GRR)

■ GRR is highly extensible and written in python.

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

25

2.-3. Juli 2015

(26)

STIX2GRR

Mapable STIX/CybOX data fields:

■ WindowsDriver, ArchiveFile, File, ImageFile, PDFFile, UnixFile,

WindowsExecutableFile, WindowsFile, Mutex, Address, DomainName, DNSQuery, EmailMessage, HTTPSession, NetworkConnection,

SocketAddress, URI, Process, UnixProcess, WindowsProcess, WindowsRegistryKey

Goal: Generate hunts for given STIX/CybOX TI data:

■ 1st Step: Identify relevant data fields in STIX/CybOX.

■ 2nd Step: Mapping identified fields to artifacts.

■ 3rd Step: Implement tool for automated hunt generation (+ artifact support).

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

26

(27)

STIX2GRR

Current development status:

■ Python prototype maps data relevant for HIDS and creates hunts directly in GRR server system.

■ Integration into [large company name here] Threat Intelligence tool.

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

27

(28)

Conclusion

Identified relevant Objects in STIX/CybOX.

Created mapping for STIX/CybOX => (N|H)IDS.

Implemented prototype as proof-of-concept.

Integrated it into a TI management framework.

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

28

(29)

Questions?

Thank you very much for your attention

SPRING 10 // SIDAR // Gesellschaft für Informatik e.V.

29

2.-3. Juli 2015

Credits: Image „Lion and Gazelle“ from quoteinvestigator.com. Image „GRR hunt“ from github.com/google/grr

References

Related documents

3D three-dimensional heat radiation .minimalist design ,professional heat dispersion structure , inside and outside is interlinked by air duct , Greatly improve heat radiating

The information is supplied solely for industry reference and consideration, BiOWiSH Technologies assumes no responsibility for use or reliance thereon and do request that

Trained CHWs were able to work with patients to identify their personal preferences for care and treatment. CCAs and their ACP service were well-received by our patients and their

Electronics Engineering Technology Bachelor’s Degree Program Communication Skills. Heald College Course Title Course # DeVry University Course Title

In the 2014 edition, time series data for electricity, oil products, and coal products for 2005 to 2011 were re- vised based on newly available information.. This may lead to

1) We considered the basic requirements applicable to the performance of the friction clutch control. 2) We developed a mechanism of the friction clutch automatic control,

The ORNL extruder will provide a continuous supply of solid hydrogen or deuterium to the gun assembly, where a punch-type chambering mecha- nism forms cylindrical pellets ranging from

» This property is currently vacant with no direct access points, but a possible ingress/egress would be accessible directly from Long Lake Road. •