sysinternals primer: gems aaron margosis principal consultant microsoft corporation sia311

25
Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA31 1

Upload: dorothy-armstrong

Post on 18-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Sysinternals Primer: Gems

Aaron MargosisPrincipal ConsultantMicrosoft Corporation

SIA311

Page 2: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Sysinternals Primer: GemsSession Objectives and Takeaways

Advanced tips for popular Sysinternals utilitiesLearn about some of the least known Sysinternals utilitiesBecome a bigger Windows internals nerdBecome better able to bore my non-nerd friends to deathGet my copy of the Sysinternals book signed by one of the authors

Page 3: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

The Sysinternals Administrator’s ReferenceThe official guide to the Sysinternals tools

Covers every tool, every feature, with tipsWritten by Mark Russinovich andAaron Margosis

Full chapters on the major tools:Process ExplorerProcess MonitorAutoruns

Other chapters by tool groupSecurity, process, AD, desktop, …

Book signings with Mark and Aaron

Wed. and Thurs., 11:30amTechEd bookstore

Mark will also be signing Zero Day and Windows Internals 6th

Ed Pt. 1

Page 4: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

topic

Procmon filtering tips…

Page 5: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Combining “Include” rules

Within a column: combined with “OR”

Between columns: combined with “AND”

Page 6: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

“Include” filter rules - Example

PID is 1512PID is 2408Path contains HKLMPath contains Zones

((PID is 1512) OR (PID is 2408)) AND((Path contains HKLM) OR (Path contains Zones))

Page 7: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Mixing “Process Name” and “PID” – FAIL

Process Name is cmd.exePID is 1512PID is 2408

(Process Name is cmd.exe)AND((PID is 1512) OR (PID is 2408))

Page 8: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Combining “Include” rules

Within a column: combined with “OR”

Between columns: combined with “AND”

Q: What if you want to limit within a column?

(Path Contains HKLM) AND (Path Contains Zones)

A: Exclude the events you don’t want

Page 9: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

demo

Simulating "AND" within a column filter

Page 10: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

topic

[TS] Sessions, Window Stations, Desktops, …

Page 11: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Before Terminal Services…

Page 12: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

With Terminal Services…

Page 13: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

demo

Working with interactive and non-interactive desktops

Page 14: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

demo

Exploring LSA Logon Sessions

Page 15: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

demo

DU (Disk Usage)and Streams and FindLinks

Page 16: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

SigCheck

usage: sigcheck [-a][-h][-i][-e][-n][[-s]|[-v]|[-m]][-q][-r][-u][-c catalog file] <file or directory> -a Show extended version information -c Look for signature in the specified catalog file -e Scan executable images only (regardless of their extension) -h Show file hashes -i Show catalog name and image signers -m Dump manifest -n Only show file version number -q Quiet (no banner) -r Check for certificate revocation -s Recurse subdirectories -u Show unsigned files only -v Csv output

Page 17: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

demo

A little LiveKd…

Page 18: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Sysinternals Resources

http://www.Sysinternals.comRedirects to technet.microsoft.com

Mark Russinovich’s blog:http://blogs.technet.com/MarkRussinovich

Blog posts and utilities by Aaron Margosishttp://blogs.msdn.com/aaron_margosishttp://blogs.technet.com/fdcc

Page 19: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Related Content

More about Pass the Hash and defending against itSIA200 - Cyber Security Defenses: What Works TodaySIA303 - Advanced Persistent Threats (APT): Understanding the New Era of Attacks!

Mark Russinovich’s TechEd sessionsAZR209 - Windows Azure Applications and WorkloadsAZR302 - Windows Azure InternalsSIA302 - Malware Hunting with the Sysinternals ToolsWCL301 - Case of the Unexplained 2012: Windows Troubleshooting with Mark Russinovich

Aaron Margosis’ other TechEd sessionSIA324 - Defense Against the Dark Ages: Your Old Web Apps Are Trying to Kill You

Page 20: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Track Resources

www.microsoft.com/twc

www.microsoft.com/security

www.microsoft.com/privacy

www.microsoft.com/reliability

Page 21: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Resources

Connect. Share. Discuss.

http://northamerica.msteched.com

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

TechNet

Resources for IT Professionals

http://microsoft.com/technet

Resources for Developers

http://microsoft.com/msdn

Page 22: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

Complete an evaluation on CommNet and enter to win!

Page 23: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

MS Tag

Scan the Tagto evaluate thissession now onmyTechEd Mobile

Page 24: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS

PRESENTATION.

Page 25: Sysinternals Primer: Gems Aaron Margosis Principal Consultant Microsoft Corporation SIA311