BRIMOR LABS LIVE RESPONSE COLLECTION or

119
Brian Moran Digital Strategy Consultant - BriMor Labs Millersville, Maryland 28 OCTOBER 2015 BRIMOR LABS LIVE RESPONSE COLLECTION or… How to Leverage Incident Response Experience for FREE!!

Transcript of BRIMOR LABS LIVE RESPONSE COLLECTION or

Page 1: BRIMOR LABS LIVE RESPONSE COLLECTION or

BrianMoranDigitalStrategyConsultant-BriMorLabs

Millersville,Maryland

28OCTOBER2015

BRIMORLABSLIVERESPONSECOLLECTION

or…

HowtoLeverageIncidentResponseExperienceforFREE!!

Page 2: BRIMOR LABS LIVE RESPONSE COLLECTION or

ABriefListofTopics

•  Glanceintothelifeofanincidentresponder•  “CanIdothisbeNer,faster,stronger?”–  (Allright,notstronger.Justinaneasierway.)

•  OverviewofLiveResponseCollecXon•  QuesXons/Comments

BriMorLabs-2015

Page 3: BRIMOR LABS LIVE RESPONSE COLLECTION or

TheIntroductoryIntroducXon•  Hello,mynameisBrianMoran– HiBrian!

•  13+yearsAirForceAcXveDuty–  10yearsmobileexploitaXon/DFIRexperience

•  Co-winner:UnofficialForensic4CastAwards2012--BestPhotoshopofLeeWhieield

•  Workedhere….

BriMorLabs-2015

Page 4: BRIMOR LABS LIVE RESPONSE COLLECTION or

TheIntroductoryIntroducXon

BriMorLabs-2015

Page 5: BRIMOR LABS LIVE RESPONSE COLLECTION or

TheLifeofanIncidentResponder

•  DigitalForensics/IncidentResponse(DFIR)ishowIdecidedtopaythebills.

•  FirstruleofincidentresponseisalwaysexpecttheEXACToppositeofwhataclienttellsyou

BriMorLabs-2015

Page 6: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

•  Forexample,clientstypicallyseeIncidentResponderslikethis

Page 7: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

Page 8: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

•  Orthis

Page 9: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

Page 10: BRIMOR LABS LIVE RESPONSE COLLECTION or

TheLifeofanIncidentResponder

•  SoweareimmediatelyheldtohighexpectaXons.

BriMorLabs-2015

Page 11: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheClientisalwaysright*

•  Howtheclientmakestheirnetworkinfrastructuresound.

*fromacertainpointofview

Page 12: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

Page 13: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

•  Actualundoctoredphotoofnetworkinfrastructure

Page 14: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

Page 15: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

•  ThisleadstomostDFIRprofessionalsfeelinglikethis.

Page 16: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

TheLifeofanIncidentResponder

Page 17: BRIMOR LABS LIVE RESPONSE COLLECTION or

Don’tbelievemarkeXnghype

•  “Oh,wespent$$$on$Vendorproduct,sowearesafe”

•  Any“tool”,regardlessoftheprice,issXlla“tool”

BriMorLabs-2015

Page 18: BRIMOR LABS LIVE RESPONSE COLLECTION or

SimplyPut:Doingthis

BriMorLabs-2015

Page 19: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 20: BRIMOR LABS LIVE RESPONSE COLLECTION or

Doesnotequalthis:

BriMorLabs-2015

Page 21: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 22: BRIMOR LABS LIVE RESPONSE COLLECTION or

Useone…don’tbeone!

BriMorLabs-2015

Page 23: BRIMOR LABS LIVE RESPONSE COLLECTION or

Useone…don’tbeone!

BriMorLabs-2015

Page 24: BRIMOR LABS LIVE RESPONSE COLLECTION or

Remember,aNackersareclevertooAKA“Hidinginplainsight”

•  Haveyoucheckedlatelytomakesurenothingelseisinthatyourexpensivecybersecuritytoolfolder?

BriMorLabs-2015

Page 25: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 26: BRIMOR LABS LIVE RESPONSE COLLECTION or

Remember,aNackersareclevertooAKA“Hidinginplainsight”

BriMorLabs-2015

– FolderisprobablywhitelistedfromsecurityapplicaXonscans…whichisperfectformalwarestaging

– CouldalsobeaNackerswithasenseofhumorJ

Page 27: BRIMOR LABS LIVE RESPONSE COLLECTION or

Whatdowewanttocollect?

•  Asmuchdataaspossibletohelpfigureouttheissue

•  Whatis“normal”?Whatisnot“normal”•  Wheredowestart?

•  Whatisyourincidentresponseprocess?

BriMorLabs-2015

Page 28: BRIMOR LABS LIVE RESPONSE COLLECTION or

Whattocollect?•  Logsareagreatresource–  Youdohaveloggingenabled,right?J

•  AcXvenetworkconnecXons•  Memory•  CommonareasandtechniquesthataNackers/badactorscommonlyuse– Autoruns– %TEMP%–  Rootdirectory– Atjobs(yup.SXlleffecXve!)

BriMorLabs-2015

Page 29: BRIMOR LABS LIVE RESPONSE COLLECTION or

CanWeBuildThis?YesWeCan!•  ManyXmeswehavetocollectdatafrommulXplesystems,asquicklyaswecan

•  Sometoolsexisttodothis,butIwantedsomethingthatwas–  Repeatable–  Portable–  Customizable–  Easytouse

– Andmostimportantly….FREE!!! BriMorLabs-2015

Page 30: BRIMOR LABS LIVE RESPONSE COLLECTION or

LiveResponseCollecXon•  Asingle,downloadable.zipfilethatcanberunfromany

locaXon–  AdministraXveprivilegesallowsmorecollecXonofdata,butnotnecessary

•  MajoroperaXngsystemsarecurrentlycovered–  Windows(XP,Vista,7,8,10,Server2003,2008,2012)–  OSX–  Unix/Linux

•  DevelopmentonallplaeormsisalwaysconXnuing•  hNps://www.brimorlabs.com/Tools/LiveResponse.zip

BriMorLabs-2015

Page 31: BRIMOR LABS LIVE RESPONSE COLLECTION or

*nixLiveResponse

•  Collectsvariousdatafrom*nixsystems,including:– Loggedinusersonthesystem– Runningprocessesonthesystem– Loadedkernelextensions– Memoryusageofrunningprocesses–  .bash_history(peruser)– currentnetworkconnecXons

BriMorLabs-2015

Page 32: BRIMOR LABS LIVE RESPONSE COLLECTION or

*nixLiveResponse(cont.)

BriMorLabs-2015

•  Exampleofoutputfrom“lsof_network_connecXons.txt”

Page 33: BRIMOR LABS LIVE RESPONSE COLLECTION or

OSXLiveResponse

•  InformaXonaboutOSXLiveResponse,including:– Loadedkernelextensions–  .bash_history(foreachuser)– WificonnecXons– User/SystemLaunchAgents– User/SystemLaunchDaemons– ApplicaXonLogInItems

•  ***Moreupdatescomingbeforetheendtheyear!!

BriMorLabs-2015

Page 34: BRIMOR LABS LIVE RESPONSE COLLECTION or

OSXLiveResponse(cont.)

BriMorLabs-2015

•  Exampleofoutputfrom“DNS_ConfiguraXon.txt”

Page 35: BRIMOR LABS LIVE RESPONSE COLLECTION or

WindowsLiveResponse

•  CollecXonofbuilt-insystemcommandsandfreelyavailabletools– Automatedmemorydump,gatewayARPcorrelaXon,networkconnecXons,registryentries,Sysinternals,etc.

•  TheexecutablepresentsaneasytounderstandGUI,soANYONEcanuseit!

BriMorLabs-2015

Page 36: BRIMOR LABS LIVE RESPONSE COLLECTION or

WindowsLiveResponse

•  SixopXonstochoosefrom:– Complete•  runsComplete_Windows_Live_Response.bat

– MemoryDump•  runsMemory_Dump_Windows_Live_Response.bat

– Triage•  runsTriage_Windows_Live_Response.bat

BriMorLabs-2015

Page 37: BRIMOR LABS LIVE RESPONSE COLLECTION or

WindowsLiveResponse(cont.)•  SixopXonstochoosefrom:–  SecureComplete

•  runsSecure-Complete_Windows_Live_Response.bat–  SecureMemoryDump

•  runsSecure-Memory_Dump_Windows_Live_Response.bat–  SecureTriage

•  runsSecure-Triage_Windows_Live_Response.bat

•  GUIisjustanHTMLapplicaXon,soyoucancustomizethebatchscripts(notthenames)andtheGUIwillsXllwork!

BriMorLabs-2015

Page 38: BRIMOR LABS LIVE RESPONSE COLLECTION or

WindowsLiveResponse(cont.)

BriMorLabs-2015

Page 39: BRIMOR LABS LIVE RESPONSE COLLECTION or

CompleteopXon•  Completeperformsthefollowingitems:

–  MemoryDump(usingBelkasouRAMCapture)–  VolaXledata(usingvarietyoftools)–  Diskimaging(usingFTKcommandline)

•  Diskimagingimagesallmounteddrives,withtheexcepXonofnetworkshares–  Imageswillonlybecreatediftoolisrunfromanexternal(non-OS)drive(ieCan’trunitfromC:)

–  AlsoperformsdesXnaXonfreespacecheckpriortoeachimagingiteraXon

Processing2medependsonnumberandsizeofdrives

BriMorLabs-2015

Page 40: BRIMOR LABS LIVE RESPONSE COLLECTION or

MemoryDumpopXon

•  Memorydumpperformsthefollowingitems:– MemoryDump(usingBelkasouRAMCapture)– VolaXledata(usingvarietyoftools)

•  Memorydumpcanbecreatedusingothertoolstoo,butIpreferBelkasouRAMCapture

Processing2medependsonsizeofmemory(15-30minutesusually)

BriMorLabs-2015

Page 41: BRIMOR LABS LIVE RESPONSE COLLECTION or

TriageopXon

•  Triageperformsthefollowingitems:– VolaXledata(usingvarietyoftools)

•  UsesacombinaXonofbuilt-inWindowscommandsandthirdpartytoolstogatherdata

Processing2medependsonamountofdatatobecollected(5-15minutesusually)

BriMorLabs-2015

Page 42: BRIMOR LABS LIVE RESPONSE COLLECTION or

“Secure”opXons

•  SecureopXonisusedwhenyouwanttoprotectcollecteddata(Complete,MemoryDump,Triage)–  Randomlygenerated16characterpassword– Uses7ziptocompressandencryptthedata–  Sdeleteusedtosecurelydeletedata–makesdatarecoveryverydifficult(*Iwillneversayimpossible)

Remembertocopythepassword.Withoutthepassword,bruteforcingthedataistheonlywayin!

BriMorLabs-2015

Page 43: BRIMOR LABS LIVE RESPONSE COLLECTION or

WindowsLRCfolderstructure

•  ThefolderstructurehaschangedtogiveusersminimalpresentaXon– Thisalsomakesfindingthecollecteddataeasier

BriMorLabs-2015

Page 44: BRIMOR LABS LIVE RESPONSE COLLECTION or

WindowsLRCfolderstructure

BriMorLabs-2015

Page 45: BRIMOR LABS LIVE RESPONSE COLLECTION or

Windows_Live_Response/Scripts

•  ThisfoldercontainsallsixversionsofthescriptsthatarerunbytheLiveResponseCollecXon– Youcaneditthecontentsofthescriptsandruncertaintools(oraddtools)aslongasyoufollowthestructureanddonotchangethenameofthescript!

BriMorLabs-2015

Page 46: BRIMOR LABS LIVE RESPONSE COLLECTION or

Windows_Live_Response/Scripts

BriMorLabs-2015

Page 47: BRIMOR LABS LIVE RESPONSE COLLECTION or

Windows_Live_Response/Scripts/WindowsModules

•  Thisfoldercontainsallofthe“modules”uXlizedbythebatchscripts–  Sincetheysharesomuchcode,onlyhavingtomaintainoneiteminsteadofsixismucheasier

– MakescustomizaXonofLRCforyourownenvironmentevenEASIER!!

–  BlogpostonwriXngyourownmodule:hNp://www.brimorlabsblog.com/2015/09/introducing-windows-live-response.html

BriMorLabs-2015

Page 48: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 49: BRIMOR LABS LIVE RESPONSE COLLECTION or

Windows_Live_Response/Tools

•  Thisiswhereallofthethirdpartytoolsaresaved.– Thefile“Windows_Complete_Tool_List.xslx”listsalloftools,downloadableURL,anddatethetoolwasupdated

– Youcanaddyourowntools,butifyoudo,remembertoupdatethescript(s)accordingly!

BriMorLabs-2015

Page 50: BRIMOR LABS LIVE RESPONSE COLLECTION or

LiveResponseCollecXonWindowsoutput

•  ANemptedtogiveuserguidanceasmuchaspossible–  Ifsomethingmaytakeawhile,thescriptprintsanicemessagetothescreen

– Triestobeas“polite”aspossible!

BriMorLabs-2015

Page 51: BRIMOR LABS LIVE RESPONSE COLLECTION or

LiveResponseCollecXonWindowsoutput

Page 52: BRIMOR LABS LIVE RESPONSE COLLECTION or

Scriptoutput•  Scriptsavesdatatoafolderwiththecomputernameanddate/Xmestampunderthefolderfromwherethescriptwasrun

•  Twofoldersandtwotextfiles–  “ForensicImages”–  “LiveResponseData”– COMPUTERNAME_YYYYMMDD_HHMMSS_File_Hashes.txt

– COMPUTERNAME_YYYYMMDD_HHMMSS_Process_Details.txt

BriMorLabs-2015

Page 53: BRIMOR LABS LIVE RESPONSE COLLECTION or

Scriptoutput

BriMorLabs-2015

Page 54: BRIMOR LABS LIVE RESPONSE COLLECTION or

COMPUTERNAME_YYYYMMDD_HHMMSS_File_Hashes.txt

•  TextfilecontainingtheMD5andSHA256ofeverycollected/generatedfileandthefullpathtothatfile– Excludes“DiskImage”folder– Butdoesincludememorydump,ifcreated

BriMorLabs-2015

Page 55: BRIMOR LABS LIVE RESPONSE COLLECTION or

COMPUTERNAME_YYYYMMDD_HHMMSS_File_Hashes.txt

BriMorLabs-2015

Page 56: BRIMOR LABS LIVE RESPONSE COLLECTION or

COMPUTERNAME_YYYYMMDD_HHMMSS_Processing_Details.txt

•  “Logging”textfilecontainingeachcommandthatwasrunbythescriptand(ifpresent)anyerrormessagesfromrunningthatcommand

BriMorLabs-2015

Page 57: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 58: BRIMOR LABS LIVE RESPONSE COLLECTION or

“ForensicImages”folder

•  LocaXonwhereforensicimagesarestored

– “DiskImage”–locaXonofdiskimagescreatedbythescript(ormanually)

– “Memory”–locaXonofmemorydumpscreatedbythescript(ormanually)

BriMorLabs-2015

Page 59: BRIMOR LABS LIVE RESPONSE COLLECTION or

“ForensicImages”folder

BriMorLabs-2015

Page 60: BRIMOR LABS LIVE RESPONSE COLLECTION or

“ForensicImages/DiskImage”folder

•  The“Complete”opXonwillstorecreatedimage(s)inthisfolder– UsesAccessData’sFTKImagercommandlinetocreateanE01image,withacompressionlevelof“4”andfragmentsizeof4096M(4GB)

–  Built-incheckstoprohibitautomatedimagingoftheOSdrivetoitself

–  ImagesALLmounteddrives(exceptnetworkshares)•  WillnotimagethedesXnaXondrive

–  Built-incheckstoensuredesXnaXondrivehasenoughfreespaceforimage

BriMorLabs-2015

Page 61: BRIMOR LABS LIVE RESPONSE COLLECTION or

“ForensicImages/DiskImage”folder

•  Thissystemhada“C”and“E”drivethatwasimaged

BriMorLabs-2015

Page 62: BRIMOR LABS LIVE RESPONSE COLLECTION or

“ForensicImages/Memory”folder

•  The“Complete”and“MemoryDump”opXonwillstorecreatedmemorydumpinthisfolder– UsesBelkasou’sRamCapturetocreateamemorydump–  Filename:“COMPUTERNAME_YYYYMMDD_HHMMSS_mem.dmp”

•  Youcancustomizeanduseothertoolsifyoulike,butI’vehadthebestexperiencewithBelkasou

BriMorLabs-2015

Page 63: BRIMOR LABS LIVE RESPONSE COLLECTION or

“LiveResponseData”folder

•  Containsatotaloffivesubfolders

– “BasicInfo”–VarioustypesofsystemInformaXon– “CopiedFiles”–Filescopiedfromthesystem– “NetworkInfo”–NetworkinformaXonaboutthesystem

– “PersistenceMechanisms”–Waysthatitemscanpersistonthesystem(coughcoughmalware)

– “UserInfo”–UserinformaXon

BriMorLabs-2015

Page 64: BRIMOR LABS LIVE RESPONSE COLLECTION or

“LiveResponseData”folder

BriMorLabs-2015

Page 65: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

“LiveResponseData\BasicInfo”folder

•  ContainsprimarilysysteminformaXon,including:– AlternateDatastreams– Hashesoffilesin%Temp%(UserandSystem)andSystem32folder

– LastAcXvityView– PsLoglist– RunningProcesses– PossibleUnicodefiles/directories

Page 66: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

“LiveResponseData\BasicInfo”folder

Page 67: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

“LiveResponseData\CopiedFiles”folder

•  Containsfilescopiedfromthesystem,including:– Webbrowser(InternetExplorer,Firefox,Chrome)–  EventLogs–  Logfile– MFT–  Prefetch–  RegistryHives– USNJrnl

NOTE:Filescopiedintofolderassociatedwiththetypeoffilethatwascopied

Page 68: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

“LiveResponseData\CopiedFiles”folder

Page 69: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

“LiveResponseData\NetworkInfo”folder

•  ContainsprimarilynetworkrelatedinformaXonincluding:– ARP– Cports–  InternetSezngs– Netstat– RouXngtable

Page 70: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

“LiveResponseData\NetworkInfo”folder

Page 71: BRIMOR LABS LIVE RESPONSE COLLECTION or

“LiveResponseData\PersistenceMechanisms”folder

•  ContainsinformaXonrelatedtopersistencemechanismsonthesystemincluding:– Autoruns–  Loadeddrivers–  Scheduledtasks

NOTE:MoreoNenthannot,ifyouhaveaninfectedsystem,youwillfindtheevidenceinhere

BriMorLabs-2015

Page 72: BRIMOR LABS LIVE RESPONSE COLLECTION or

“LiveResponseData\PersistenceMechanisms”folder

BriMorLabs-2015

Page 73: BRIMOR LABS LIVE RESPONSE COLLECTION or

“LiveResponseData\UserInfo”folder

•  ContainsinformaXonrelatedtousersofthesystem,including:– Logons– LisXngofusers– CurrentUser

BriMorLabs-2015

Page 74: BRIMOR LABS LIVE RESPONSE COLLECTION or

Whatyouseeiswhatyouget

•  Scriptoutputisplain-textorhtml.NouniqueobfuscaXonaNemptsorproprietaryfileformats– Memorydump,diskimage(s),andcopiedfilesareobviousexcepXons

•  Canwrite/createyourownparsingmechanism

BriMorLabs-2015

Page 75: BRIMOR LABS LIVE RESPONSE COLLECTION or

Examplesofgathereddata

•  ZeroAccessandPOSRAMscraperpresentinCurrentVersion\Runoutputfromautoruns

BriMorLabs-2015

Page 76: BRIMOR LABS LIVE RESPONSE COLLECTION or

Examplesofgathereddata

BriMorLabs-2015

Page 77: BRIMOR LABS LIVE RESPONSE COLLECTION or

Examplesofgathereddata

•  Poweliksmalwarepresentinautorunsoutput– MalwareisstoredenXrelyinregistrykey,itdoesnot“writeitselftodisk”inatypicalfashion

BriMorLabs-2015

Page 78: BRIMOR LABS LIVE RESPONSE COLLECTION or

Examplesofgathereddata

BriMorLabs-2015

Page 79: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Ausercomplainstheirsystemisrunningslow

•  ITadminruns“Complete”versionoftheLiveResponseCollecXon…justincase

•  Events(sortof)occurinrealXme

BriMorLabs-2015

Page 80: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Firststopis“autorunsc.txt”file.Strangeentrynotedunderthe“CurrentVersion\Run”path.

BriMorLabs-2015

Page 81: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  “msofficeservice”kindofseemslegiXmate•  Hmm..maybenot,sincethecompanyis“GoogleLabs”

BriMorLabs-2015

Page 82: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Sincewehavethehashes,letsdoaquickGooglesearch

BriMorLabs-2015

Page 83: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

•  Filedetectedasmaliciousbyvirustotal– 23/45backin2012

Page 84: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

Page 85: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

•  Sincewehavethediskimage,let’scheckoutthefolderwheretheexecutableresides

Page 86: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  WecanmounttheimageusingFTKImagerLite(includedintheLiveResponseCollecXon)

•  Browseto“Windows_Live_Response\Tools\FTK_Imager_Lite_3.1.1”andrun“FTKImager.exe”

BriMorLabs-2015

Page 87: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

BriMorLabs-2015

Page 88: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Select“File”

BriMorLabs-2015

Page 89: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Select“AddEvidenceItem”

BriMorLabs-2015

Page 90: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  SelectSourceboxpopsup

BriMorLabs-2015

Page 91: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

BriMorLabs-2015

Page 92: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

•  Select“ImageFile”

Page 93: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

Page 94: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

•  Click“Next>”

Page 95: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

Page 96: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  SelectFileboxpopsup

BriMorLabs-2015

Page 97: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

BriMorLabs-2015

Page 98: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Click“Browse”andbrowsetosourcepath– BesuretoselectE01file,notE01.txtfile

BriMorLabs-2015

Page 99: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

BriMorLabs-2015

Page 100: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

•  Click“Finish”

Page 101: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

Page 102: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

•  Navigatetopathofinterest

•  “C:\Users\Win7-BML\AppData\Local\msoffice”

Page 103: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudy

Page 104: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Twofiles– msofficeservice.exe– winrnfsl32.dll

•  Maybethedllisneededbytheexe.WecanlookatitinthehexeditorpaneinFTKImager

BriMorLabs-2015

Page 105: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

BriMorLabs-2015

Page 106: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  Uhoh!!ThatlooksalotlikealogfilewindowXtlesandkeystrokes!!

– HINT:Itisexactlythat

BriMorLabs-2015

Page 107: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

•  NicelyformaNedkeyloggerfile

BriMorLabs-2015

Page 108: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

BriMorLabs-2015

Page 109: BRIMOR LABS LIVE RESPONSE COLLECTION or

ShortCaseStudy

– BonuspointsforyouifyoucantellwhatIwasdoingonthelastentry!

BriMorLabs-2015

Page 110: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ShortCaseStudySummary

•  WeidenXfiedastrangefilethankstotheoutputofautoruns

•  Searchingforthehashdeterminedthefilewasmalicious

•  Aquickcheckofthefolderrevealsnotonlyisthefilemalicious,itisactuallyakeylogger

Page 111: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 112: BRIMOR LABS LIVE RESPONSE COLLECTION or

BONUS:CanusebuatapatoaccomplishVirusTotallookups

•  buatapaisasmallPythonscript(basedheavilyonBrianBaskin’snoriben)toparseautorun.csvfilesgeneratedbyautoruns–  Pointscriptatautorunscsvfileandletitrun

– ANemptstofindVirusTotalhits,strangeUnicodecharactersinpaths,andentriessimilartopowileks

•  hNp://www.brimorlabsblog.com/2015/08/publicly-announcing-buatapa.html

BriMorLabs-2015

Page 113: BRIMOR LABS LIVE RESPONSE COLLECTION or

buatapaconsoleoutputexample

BriMorLabs-2015

Page 114: BRIMOR LABS LIVE RESPONSE COLLECTION or

buatapatextoutputexample

BriMorLabs-2015

Page 115: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

ChecklistsforeachOS!

•  AchecklistisincludedforeachoperaXngsystem– CreatesstarXngplacefor“what”tocollect

•  Youcanputyourcompanylogoatthetop…

•  …AndyounowhaveanincidentresponsecollecXonplanforeachoperaXngsystem!

Page 116: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 117: BRIMOR LABS LIVE RESPONSE COLLECTION or

BriMorLabs-2015

Page 118: BRIMOR LABS LIVE RESPONSE COLLECTION or

Whyfree?!?!•  BecauseitsavesyourbusinessXme,money,andresources!

•  How?–  IniXaldatagatheringcanhelpyourevealproblemswithouttheneedforexternalconsulXng

–  Ifyouwantexternalhelp,providingalreadygathereddatacanexpediteincidentresponselifecycle

–  Scriptscollectdatafrom“common”areasincidentresponders/digitalforensicanalystslookatfirst

–  IfscriptscanhelpDFIRconsultantremotelydiagnoseissueremotely,noneedtopaytravel,lodging,incidentals,etc.costs

BriMorLabs-2015

Page 119: BRIMOR LABS LIVE RESPONSE COLLECTION or

QuesXons?

ContactUs!Email:[email protected]

Phone:443.834.8280Website:www.brimorlabs.comBlog:www.brimorlabsblog.com

TwiNer:@BriMorLabs

@brianjmoran

BriMorLabs-2015