HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate...

41
Phishing: Going from Recon to Creds Hackcon 2016 Edition Adam Compton

Transcript of HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate...

Page 1: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Phishing:GoingfromRecontoCredsHackcon2016EditionAdamCompton

Page 2: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Agenda

●TalkaLittleAboutMyself●WhatisPhishing?●AStandardPhishingProcess● SpeedPhishingDemo

https://github.com/tatanus/SPF

Page 3: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

AdamCompton

Father- 5yrsHusband-16yrsSecurityResearcher- 16yrsProgrammer- 34yrsHillbilly- 39yrs

@tatanushttps://github.com/tatanushttp://blog.seedsofepiphany.com/

[email protected][email protected]

https://github.com/tatanus/SPF

Page 4: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

WhatisPhishing?

"theattempttoacquiresensitiveinformation...bymasqueradingasatrustworthyentityinanelectroniccommunication."- Wikipedia(Phishing)

https://github.com/tatanus/SPF

Page 5: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

WhyPhish?

PotentialhighreturnoninvestmentMaybeeasiestwayonanetworkItworks!Peoplewanttobehelpful.

https://github.com/tatanus/SPF

Page 6: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

GoingBacktothe90s

“AOHell includesa''fisher''thatallowsausertoposeasanAOLofficialandasknewmembersforpasswordsorcredit-cardnumbers.”- SanJoseMercury1995

https://github.com/tatanus/SPF

Page 7: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing
Page 8: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Whatkindofsensitiveinfo?

CredentialsCreditCardsIdentity- PIIHealthInformationBitcoinWalletsSteamAccounts

https://github.com/tatanus/SPF

Page 9: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

TypesofPhishingAttacks

Attack Magnitude Targeting

Phishing Many General

SpearPhishing 10s- 100s Group,Company

Whaling One Executive

https://github.com/tatanus/SPF

Page 10: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

StandardPhishingProcess

https://github.com/tatanus/SPF

Page 11: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Thelistoftargetsandanyotherinfothatwillhelp

Findthroughcompanysite,googlesearches,andevensocialmedia

Listmaybeprovidedbycustomer

https://github.com/tatanus/SPF

Page 12: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

ReconTools

https://github.com/tatanus/SPF

Page 13: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Settingupweb,dns and/ormailservers

Createaconvincingscenario,writetheemail

Testtheentireprocess!

Thismaybeyouronlychancetofixissues

https://github.com/tatanus/SPF

Page 14: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

CredentialHarvesting =>LoginInformation

ExploitingClient =>MetasploitSessions

Thisstepisbasedonscopeofwork

https://github.com/tatanus/SPF

Page 15: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

AttackTools- SetuptoPostCompromise

https://github.com/tatanus/SPF

Page 16: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Everyone’sFavoritePart!AtMinimum:•DescribetheAttackScenario•Targets•CollectedCredentialsorCompromisedSystemsIncludeStatistics

https://github.com/tatanus/SPF

Page 17: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Iamlazy- Canwemakethiseveneasier?

Yes...Automation!

ProgramAPIs•BeEF RESTFul API•Recon-cli•SET- seautomateParseCommandlineToolOutputPython,Perl,&Bash

https://github.com/tatanus/SPF

Page 18: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SpeedPhishingFramework- SPF

Automatescommontasksneededtoperformaphishingexercise

WritteninPython

Minimalexternaldependencies

https://github.com/tatanus/SPF

Page 19: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

CurrentFeatures

HarvestsEmailAddressSetups&HostsWebsitesSendsphishingemailstotargetsRecordsCreds andKeystrokesCreatesVERYSimpleReport

https://github.com/tatanus/SPF

Page 20: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- UsageStatement/Options

https://github.com/tatanus/SPF

Page 21: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- ConfigFile

https://github.com/tatanus/SPF

Page 22: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- StandardPhishingProcess

https://github.com/tatanus/SPF

Page 23: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- Reconnaissance

Searchesonlinesearchengineslike:◦Google,Bing,andDuckDuckGo

CanuseexternaltoolssuchastheHarvester

https://github.com/tatanus/SPF

Page 24: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- IdentifyingPotentialTargets

https://github.com/tatanus/SPF

Page 25: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- SetupandDeploy

Built-inwebserverbasedonTwistedpythonlibrary

Templated samplewebsiteswithaccompanyingemailtemplates

Abilitytodynamicallycloneadditionalloginportalsasneeded

https://github.com/tatanus/SPF

Page 26: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- LoadingWebSites

https://github.com/tatanus/SPF

Page 27: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- WebSites

https://github.com/tatanus/SPF

Page 28: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- SendingEmails

Cansimulatesendingofemails

Sendsemailsinaroundrobinstylealternatingacrossallphishingsites

Sendsemailsvia3rdpartySMTPserverorbyconnectingdirectlytothetarget'smailserver

https://github.com/tatanus/SPF

Page 29: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- SendingEmails

Page 30: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- CollectResponses&PostExploitation

LogsallaccesstothewebsitesLogsallformsubmissionsLogsallkeystrokes

Hasabilitytopillageemailaccounts

https://github.com/tatanus/SPF

Page 31: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- CollectingResults

https://github.com/tatanus/SPF

Page 32: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Reports

SavesalldataandactivitylogstoassessmentspecificdirectorystructureGeneratessimpleHTMLreport

https://github.com/tatanus/SPF

Page 33: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPF- SimpleReport

Page 34: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Advanced/ExperimentalFeatures

CompanyProfiler◦ Identifywhichifanytemplatesshouldbeused◦ Dynamicallygeneratenew"target-specific"phishing sitesPillage◦ Verifycredentials◦ Downloadattachments◦ Searchfor"SSN,password, login,etc…)

https://github.com/tatanus/SPF

Page 35: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

SPFDemo

Weshallallnowpraytothedemogods

https://github.com/tatanus/SPF

Page 36: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

FutureWork/Features

MoreexternaltoolsBetterProfiling/PillagingFancyReportsIncorporateSSL(possiblyviahttps://letsencrypt.org/).

Suggestions?

https://github.com/tatanus/SPF

Page 37: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

AHUGEThankYouto:

Recon-ng- TimTomes(lanmaster53)BeEF - WadeAlcorntheHarvester - ChristianMartorellaSocialEngineeringToolkit- DaveKennedyMorningCatch- RaphaelMudge

https://github.com/tatanus/SPF

Page 38: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Defense

Preparation◦UserAwareness&PeriodicTesting

Detection&Analysis◦Alerts,MailProxies

Containment,EradicationandRecovery◦Haveaplanthatisreadyandtested

https://github.com/tatanus/SPF

Page 39: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

Defense

Preparation◦UserAwareness&PeriodicTesting

Detection&Analysis◦Alerts,MailProxies

Containment,EradicationandRecovery◦Haveaplanthatisreadyandtested

https://github.com/tatanus/SPF

Page 40: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

ThankYou!

Page 41: HackCon - Phishing- Going from Recon to Creds - Adam Compton...SPF -Sending Emails Can simulate sending of emails Sends emails in a round robin style alternating across all phishing

411

AdamCompton@tatanushttps://github.com/tatanushttp://blog.seedsofepiphany.com/[email protected][email protected]

https://github.com/tatanus/SPF