pairs point of contact and incident response system · 2019-08-27 · pairs point of contact and...

48
PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer & Network Security, CISO, Columbia University Finding bad actors without looking at content

Upload: others

Post on 19-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

PaIRSPoint of contact and Incident

Response System

LOCKDOWN 2019July 17, 2019

Joel Rosenblatt, Director, Computer & Network Security, CISO, Columbia University

Finding bad actors without looking at content

Page 2: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Columbia Network Environment

• Large research university

• Decentralized management structure

• Over 250,000 network nodes

• Over 100,000 MAC addresses active on average

• Decentralized computer support

• No sniffing traffic or scanning machines allowed

• “Free Love” IP address assignments

• No university wide, corporate like, firewalls

• Approximately 120,000 active email addresses

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

2

Page 3: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

What is “Free Love”

• From http://www.educause.edu/ir/library/pdf/erm0266.pdf“Free Love” and Secured Services, by Vace Kundakci

“Free love” allowed all computers, whether public or private, wired or wireless, in residence halls, at the libraries, in faculty and staff offices, or anywhere else on campus to connect directly to the network, and thereby to the world, without further ado.

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

3

Page 4: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Port scanning

SSH Cracker

X11

Key logger

Enterprise Zone – University servers

Internal bad guy

Access lists

In and Outserver

Darknet

Free Love

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

4

Page 5: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

The Columbia Model - Assumptions

• There is no such thing as perfect security• There are more bad guys outside the University

than inside• Telling people what they can’t do at Columbia is

hard• We have big network pipes and lots of fast

hardware• We own the campus network• Security in layers works• We believe in privacy

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

5

Page 6: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

The Columbia Model - Philosophy

• A security system that can protect the rest of the world from Columbia University will also protect Columbia from the rest of the world

• We may have some control over the attackers, when they are the machines on our campus

• Columbia uses a ZERO-TRUST model

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

6

Page 7: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

What is PaIRS?

PaIRS consists of two separate parts

• Point of contact– A database that contains the person or persons

responsible for a range of IP addresses or domain in the columbia.edu realm

• Incident Response System– A system that monitors all data flows to and from

the Internet and processes them looking for patterns that represent incoming or outgoing attacks

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

7

Page 8: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Why is POC needed

• In a decentralized environment, different IT organizations own groups of assets.

• When evidence of a compromised machine is detected, you need to contact the right IT organization

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

8

Page 9: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

POC Management• IPs are either managed by departments or

Free Love

• Contacts can be associated with multiple departments

• Contact information is compared against LDAP nightly – a title or dept change generates alert

• Departments can have central contact email plus a list of contacts

• Departments are defined by a list of CIDR blocks or domain

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

9

Page 10: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

POC Database

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

10

Page 11: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Sample POC Record

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

11

Page 12: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Incident Response System

• Based totally on Netflow – we do not look at packet content by policy

• Bayesian in nature– Bayesian inference is statistical inference in which

evidence or observations are used to update or to newly infer the probability that a hypothesis may be true. Wikipedia

• Each flow is attributed to a IP address and then scored based on various behavior attributes

• Report Tolerance: 3 Capture Tolerance: 10 Current Equation: y = A + ( C * ( D + log base B x ))

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

12

Page 13: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

A=0, B=2, C=1, D=0

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

13

Page 14: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

List of behaviors

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

14

Page 15: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

Page 16: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

Page 17: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

Page 18: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

FORM USED TO ADD NEW BEHAVIORSAND

IGNORE (WHITE LIST) OF MACHINES

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

18

Page 19: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

19

Page 20: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

IRS – Netflow• We have 1 machine dedicated to Neflow collection

– /usr/bin/flow-capture -w /cflow/flows -V 5 -E900G -n 287 -N0 -p $PIDFILE 0/0/$PORTNUMBER

– Each flow file contains 5 minutes worth of flows – Data is stored on a NetApp, shared via NFS

• We have 2 machines (with 2 more “on demand”) to process the flow data – each machine can process 4 files in parallel

• A 65M flow file can be processed in about 4 minutes

• With full student loads, we see 100M+ files, with processing time of 6-7 minutes

• With our current configuration, we can handle 400M+ files

• Incidents are moved to our incident database, correlation is done by IP address

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

20

Page 21: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Incident Database

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

21

Page 22: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Hourly Database Processing

• Once an hour, the information in the database is processed

• The data for each IP address is correlated and scored

• Machines with a score of 10 and above are processed, below 3 are dropped and between 3 and 9.999 are carried over

• A hourly report is generated, with an email containing watched machines

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

22

Page 23: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Hourly Report

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

23

Page 24: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Hourly Report - continued

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

24

Page 25: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Watched Machine EmailThis is an automatically generated message from the PAIRS system.The following host(s) have not scored high enough to warrantautomatic processing. Please take a look.

?qf=Incident pageip=160.39.62.232hw=00A0D131801E

dyn-160-39-62-232.dyn.columbia.edu

09-aug-2009 14:47:46 | 09-aug-2009 14:47:46 | p2pBot47 1 8119

p2pBot47: 47 Octet UDP Transmission

SCORE: 3.00

?qf=Incident pageor=Barnard [email protected], [email protected]=160.39.111.126

r600-111-126.barnard.columbia.edu

09-aug-2009 12:20:00 | 09-aug-2009 14:50:00 | DroppedCNC 31 293

DroppedCNC: Machine attempted to connect to a C&C node but our routers dropped the traffic.SCORE: 3.00

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

25

Page 26: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Compromised Machine Processing

• IP addresses come in two flavors, Managed and Unmanaged (Free Love)

• Managed addresses are easy

– Look up address in POC database

– Send email to group that manages address

• Unmanaged IP addresses are Captured

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

26

Page 27: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Email sent to POC

Teacher's College - 1 Botted Host

?qf=Incident pageip=160.39.72.213

dyn-160-39-72-213.tc.columbia.edu

18-aug-2009 09:15:00 | 18-aug-2009 09:50:00 | C&C: 94.23.88.149:51987 8 115

C&C-94.23.88.149:51987: Machine is connecting to a command and control node and may be under remote controlSCORE: 39.23

18-Aug-2009 09:14:58 GMT-0400 160.39.72.213:1276 -> 94.23.88.149:51987 6 19218-Aug-2009 09:15:21 GMT-0400 160.39.72.213:1284 -> 94.23.88.149:51987 6 19218-Aug-2009 09:15:45 GMT-0400 160.39.72.213:1292 -> 94.23.88.149:51987 6 12818-Aug-2009 09:16:04 GMT-0400 160.39.72.213:1298 -> 94.23.88.149:51987 6 19218-Aug-2009 09:16:27 GMT-0400 160.39.72.213:1305 -> 94.23.88.149:51987 6 19218-Aug-2009 09:16:48 GMT-0400 160.39.72.213:1309 -> 94.23.88.149:51987 6 19218-Aug-2009 09:17:10 GMT-0400 160.39.72.213:1318 -> 94.23.88.149:51987 6 19218-Aug-2009 09:17:32 GMT-0400 160.39.72.213:1324 -> 94.23.88.149:51987 6 19218-Aug-2009 09:17:54 GMT-0400 160.39.72.213:1331 -> 94.23.88.149:51987 6 19218-Aug-2009 09:18:15 GMT-0400 160.39.72.213:1338 -> 94.23.88.149:51987 6 19218-Aug-2009 09:18:37 GMT-0400 160.39.72.213:1345 -> 94.23.88.149:51987 6 19218-Aug-2009 09:18:59 GMT-0400 160.39.72.213:1352 -> 94.23.88.149:51987 6 19218-Aug-2009 09:19:20 GMT-0400 160.39.72.213:1358 -> 94.23.88.149:51987 6 192

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

27

Page 28: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Free love machines

• To handle machines that do not have a designated IT group, for example, Student machines, we developed at Capture System

• This allows us to remove a system from the network and inform them as to why their system is no longer connecting to the internet

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

28

Page 29: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Capture System

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

29

Page 30: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Step 1 - Resolve MAC

• Using bad traffic timestamp, check for prior DHCP entry

– If next DHCP entry matches, pass to Mitigation

– If no DHCP, check if arp matches, if not, then pass information in an email to POC Security

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

30

Page 31: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

MAC Resolution – type 1

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

31

Page 32: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

MAC Resolution – type 2

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

32

Page 33: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Step 2 - Mitigation

• Capture MAC address called out by IP in Resolve step

• Assign ServiceNow ticket to Computer Security Captures group with status defined to “active”

• A process runs nightly to find captured MAC addresses not using DHCP (Hardcoded)

• A process is run to find MAC spoofers

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

33

Page 34: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Build your own Capture System

• Build non-routable campus wide Vlan

• Since everyone is required to use DHCP, offer non-routable addresses to captured MACs

• Fix DNS server on capture network to only offer address of capture WEB server

• Capture WEB server does all heavy lifting

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

34

Page 35: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Capture System Web Interface

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

35

Page 36: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

User Experience

• Bringing up a web browser on a captured machine will display the Network Access Suspended notice, it …– Informs the user that they are infected

– Informs the user that they must reformat

– Gives them an out if they are scanning machines on purpose (Stop Now!) or running HP printer software

– Points them to a “How to” on reformatting a machine

– Points them to a local vendor for the faint of heart

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

36

Page 37: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Reformat capture page

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

37

Page 38: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Techs in a Sec

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

38

Page 39: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

How to Rebuild Windows

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

39

Page 40: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Uncapture

• Once the machine is clean, the user brings up a web browser and clicks on the restore network access button

• The user is asked to authenticate and network access will be restored in about 2 hours – no checking is done

• If the user did not reformat, they will be recaptured – rinse & repeat

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

40

Page 41: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Additional PaIRS Features

• An ignore list exists to allow legitimate behaviors (i.e. a mail server)

• Traffic coming into Columbia is processed and scored – we generate about 500 emails a day to ISPs that have machines behaving badly

• A list of IPs used to attack us are collected every 15mins and placed in a border ACL

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

41

Page 42: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Block list

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

42

Page 43: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Pairs Daily Incident Summary

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

43

Page 44: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

“Please Stop” Email

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

44

Page 45: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Pairs “Thank you” note

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

45

Page 46: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Summary

• The PaIRS system has been running since 2005, not as neat and cool as now, but the basic concepts are well tested

• Future PaIRS enhancements will include a Machine learning component to look for low and slow behaviors

• Based on the number of reports received from outside sources about infected Columbia IPs, PaIRS keeps the Columbia network about 99% clean

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

46

Page 47: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Questions?

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

47

Page 48: PaIRS Point of contact and Incident Response System · 2019-08-27 · PaIRS Point of contact and Incident Response System LOCKDOWN 2019 July 17, 2019 Joel Rosenblatt, Director, Computer

Joel Rosenblatt

joel AT columbia.edu

212 854 3033

Copyright (c) 2019 The Trustees of Columbia University in the City of New York

48