you directory has been breached!

18
©2011 Quest Software, Inc. All rights reserved. ©2011 Quest Software, Inc. All rights reserved. Dmitry Kagansky Chief Technology Officer, Federal May 30, 2012 Now what? You Directory Has Been Breached!

Upload: jerom

Post on 25-Feb-2016

70 views

Category:

Documents


0 download

DESCRIPTION

You Directory Has Been Breached!. Dmitry Kagansky. Chief Technology Officer, Federal. May 30, 2012. Now what?. Your Directory Has Been Breached. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: You Directory Has Been Breached!

©2011 Quest Software, Inc. All rights reserved.©2011 Quest Software, Inc. All rights reserved.

Dmitry Kagansky

Chief Technology Officer, Federal

May 30, 2012

Now what?

You Directory Has Been Breached!

Page 2: You Directory Has Been Breached!

2

©2011 Quest Software, Inc. All rights reserved.

Your Directory Has Been BreachedIn today's constantly hostile online environment, hacks and compromises are almost inevitable. When an attacker makes their way into your network, they can stay undetected for days and weeks. -- and the systems most threatened are the systems that are most critical; databases, email and Active Directory.

However, there are preventative measures you can take to decrease the chance of compromise, or remediate your situation if a breach occurs. Join Quest Software in a presentation on both preventative measures and remediation techniques to survive a network compromise.

Page 3: You Directory Has Been Breached!

3

©2011 Quest Software, Inc. All rights reserved.

Credit Where Credit Is Due• The next 4 slides were shamelessly taken from Scott

Culp’s presentation– Managing Risk in Today’s Cyber Threat Environment– Scott Culp, Principal Security Architect, Microsoft– Originally presented at the 2012 Microsoft Public Sector CIO Summit

Page 4: You Directory Has Been Breached!

4

©2011 Quest Software, Inc. All rights reserved.

Begin at the beginning

Targeting Phishing SQL Injection Persistence Pass The

Hash

How did it happen?

Most likely culprits:

Page 5: You Directory Has Been Breached!

5

©2011 Quest Software, Inc. All rights reserved.

PersistenceCommon Return Vectors

Valid Credentials

Zombie RATs Dupes

Passwords obtained in cleartext, keyloggers, databases, etc.

Passwords obtained by cracking hashes, especially from DCs

Remote Access Tools installed on compromised machines, with instructions to reactivate and phone home later

Users with a demonstrated propensity for extending unjustified trust

Page 6: You Directory Has Been Breached!

6

©2011 Quest Software, Inc. All rights reserved.

Pass The Hash

Domain Privileged Servers• Where the

power is

Line of Business Servers• Where the

assets are

Workstations• Where the

access is

Page 7: You Directory Has Been Breached!

7

©2011 Quest Software, Inc. All rights reserved.

Preventative Measures• If you’re confident you’re still “sterile,” here are things

you can easily do on an on-going basis to stay that way:• Know What Matters

• Focus on your key systems, users, data.

• Get Current, Stay Current• Deploy Windows 7, Office 2010, Acrobat Reader X, Java 6; keep them patched.

• Start Secure, Stay Secure• Configure security using SCM; maintain it & monitor it; independently test it.

• Isolate Key Credentials• Use Standard User for Workstations. Isolate privileged credentials.

• Employ the SDL• Employ the Security Development Lifecycle for in-house apps, especially web apps.

• But if you’re not confident, or you know you’ve been breached . . .

Page 8: You Directory Has Been Breached!

8

©2011 Quest Software, Inc. All rights reserved.

Steel yourself . . . This is not going to be pretty

• You have to migrate

• Yes, I said migrate

Page 9: You Directory Has Been Breached!

9

©2011 Quest Software, Inc. All rights reserved.

Why Are We Here?

“Once you realized your directory was ‘owned’ the only way you will feel secure again is to migrate your data to a new directory on new servers."

– Anonymous Customer, Sr. AD Architect

Page 10: You Directory Has Been Breached!

10

©2011 Quest Software, Inc. All rights reserved.

High Level Overview• Have a destination prepared

• Have as much moved over as possible– Users– Groups

• Prepare a Services Priority List

• Be ready to copy what cannot be moved ahead of time– Computers– Services– Resources

• Have tools at the ready

• You WILL have an outage

• Do NOT grant any rights to anyone without a thorough review process

Page 11: You Directory Has Been Breached!

11

©2011 Quest Software, Inc. All rights reserved.

Have a Destination Prepared• You can set up AD in a VM ahead of time

– create a new domain– Have only the single ‘Administrator’ user with any rights– Start to actively monitor this new instance

• Map all users– Create an “old to new” map – MS Excel, MS Access, CSV, etc.

– For convenience, add old & new SIDs to the map if you can

– Secure the map– Review the map on an on-going basis

• Copy all distribution groups– Group Membership is suspect, and should probably not be copied

• Copy all security groups– Group Membership is compromised, and must not be copied

Page 12: You Directory Has Been Breached!

12

©2011 Quest Software, Inc. All rights reserved.

Prepare the Services Priority List• Determine what is most important

– Involve the business owners

• Document “service interactions”– SQL, IIS and what level of privileges are needed for all apps

• Email may not be mentioned but assume it to be first priority

• Mobile devices (even Blackberries) should be last– Yes, I know people want their data, but this is a potential entry point

Page 13: You Directory Has Been Breached!

13

©2011 Quest Software, Inc. All rights reserved.

Have Tools Prepared• Many vendors have what you need however . . .

• No one (not even my employer) has a single package for this

• Be comfortable with PowerShell– If you don’t have any 3rd party tools, this will be the only way to go unless

you only have 20 users in your domain

• Everything that is necessary can be scripted

• Have the scripts ready

Page 14: You Directory Has Been Breached!

14

©2011 Quest Software, Inc. All rights reserved.

During the move• Copy what cannot be moved ahead of time

– Computers– Services– Resources

• All objects are suspect– Treat them the same as compromised user objects– Do not blindly add them to groups

• Look at directory sync tools– Microsoft– Quest

Page 15: You Directory Has Been Breached!

15

©2011 Quest Software, Inc. All rights reserved.

You WILL Have An Outage• Prepare your users - let them know

– They’ll need to reset their passwords– Some apps & services will not be available, especially after the initial move

• Size determines speed

• Risk determines speed

• A few days to a few weeks– It will take a day or two to copy everything over– It will take weeks to get everything back in place

• Security groups MUST go through a review process– Involve the business owners

Page 16: You Directory Has Been Breached!

16

©2011 Quest Software, Inc. All rights reserved.

Credit Where Credit Is Due• Slides 3 - 6 taken from Scott Culp’s presentation

– Managing Risk in Today’s Cyber Threat Environment– Scott Culp, Principal Security Architect, Microsoft– Originally presented at the 2012 Microsoft Public Sector CIO Summit

• There is a corresponding white paper out on June 4th – Robert Bobel ([email protected]) is the original co-author of the

white paper and much of this presentation is based on his original draft

Page 17: You Directory Has Been Breached!

17

©2011 Quest Software, Inc. All rights reserved.

Wrap-up• Contact Information

– Dmitry Kagansky– Email: [email protected]– Twitter: @dimikagi– Blog: http://www.federalcto.com/

• Supporting Whitepaper (Available June 4, 2012)– http://www.federalcto.com/quest/breached-directory.docx– http://tinyurl.com/re-establishAD

• AD Landing page– http://www.federalcto.com/2012/05/breached/

• These slides– http://www.federalcto.com/quest/breached-directory.pptx

Page 18: You Directory Has Been Breached!

©2011 Quest Software, Inc. All rights reserved.©2011 Quest Software, Inc. All rights reserved..