+ All Categories
Home > Documents > FACEBOOK OSINT - Hack In The Box Security -...

FACEBOOK OSINT - Hack In The Box Security -...

Date post: 13-Feb-2018
Category:
Upload: lycong
View: 219 times
Download: 5 times
Share this document with a friend
42
FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan Werrett 17 October 2013 | HITB2013KUL Thursday, 17 October 13
Transcript
Page 1: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FACEBOOK OSINTITS FASTER THAN SPEED DATING

Keith LeeJonathan Werrett

17 October 2013 | HITB2013KUL

Thursday, 17 October 13

Page 2: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

Managing Consultant, SpiderLabs, Hong [email protected]@werrett

Jonathan Werrett

Security Analyst, SpiderLabs, [email protected]://github.com/milo2012/osintstalker@keith55

Keith Lee

INTRODUCTION

2

Thursday, 17 October 13

Page 3: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

AGENDA‣ Background / Motivation

‣ Introduction to GeoStalker and FBStalker tools

‣ Problem they solves

‣ GeoStalker in-depth

‣ FBStalker in-depth

‣ What you can do to protect yourself

3

Thursday, 17 October 13

Page 4: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

MOTIVATIONSpend our days on “Penetration tests”

Web apps and networks

Day-in day-out

4

Thursday, 17 October 13

Page 5: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

MOTIVATIONSpend our days on “Penetration tests”

Web apps and networks

Day-in day-out

4

Thursday, 17 October 13

Page 6: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

Some times we get a real pentest

Set specific targets

Gain access any way you can

...

5

BUT WAIT

Thursday, 17 October 13

Page 7: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

Some times we get a real pentest

Set specific targets

Gain access any way you can

...

5

Red team, Physical Security, PhishingOpen Source Intelligence

BUT WAIT

Thursday, 17 October 13

Page 8: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

CompanyName

Physical Address

Google Maps

GeocodedLat / Lon

Wigle.netWireless DB

NetworkNames

MACAddresses

Premise Details

CompanyDomains

Whois /IP Allocations

LinkedIn

Twitter

Facebook TargetProfiles

Friends

Age of friendship

No. checkinstogether

No. comments

No. tags

Checkins

PlacesVisited

Photos

Tagged w/ ppl

BackgroundEducation

VisitedPrevious Jobs

Likes

Instagram

Photos

OSINT

6

Thursday, 17 October 13

Page 9: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKERTakes‣ Location (address or coordinates)

Retrieves location data from‣ Wigle.net (Wireless DB)

‣ Instagram

‣ Twitter

‣ Foursquare

‣ Flickr

Provides‣ Wireless access points near-by

‣ Photos taken at that location

‣ Social media accounts of people who’ve visited

7

FBSTALKERTakes‣ Facebook profile user

Uses Graph Search to reverse‣ Friends

‣ Likes

‣ Check-ins

‣ Comments

Provides‣ Social engineering targets

‣ Associates of those targets

‣ Times online

‣ Interests, commonly visited places

Thursday, 17 October 13

Page 10: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

PhishingTargets?

LinkedIn,Facebook

PhysicalAddress

GeocodeLat / Lon

Twitter, Instagram,4sq, Flickr

Staff

Interests

Associates

EXAMPLE OBJECTIVES

8

PremiseRecon?

GoogleSearch

GoogleMaps

GeocodeLat / Lon

Twitter, Instagram,4sq, Flickr

Staff

Photos

Entry Points

Facilities

Thursday, 17 October 13

Page 11: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

EXAMPLES FROM ENGAGEMENTS

9

Thursday, 17 October 13

Page 12: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

EXAMPLES FROM ENGAGEMENTS

FB Apps ‣ Indicate phishing target uses mac‣ Ditch our Windows based payloads for OSX

9

Thursday, 17 October 13

Page 13: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

EXAMPLES FROM ENGAGEMENTS

FB Apps ‣ Indicate phishing target uses mac‣ Ditch our Windows based payloads for OSX

9

FB Friends ‣ Identify targets wife ‣ Wife runs Pilates studio‣ Spear phish wife based on Pilates

Thursday, 17 October 13

Page 14: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

EXAMPLES FROM ENGAGEMENTS

FB Apps ‣ Indicate phishing target uses mac‣ Ditch our Windows based payloads for OSX

9

FB Friends ‣ Identify targets wife ‣ Wife runs Pilates studio‣ Spear phish wife based on Pilates

Instagram Photos‣ Client was a power utility‣ Staff target found via on photos from facilities

Thursday, 17 October 13

Page 15: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - INTRO

10

Queries sources‣ Wigle.net (Wireless DB)

‣ Instagram

‣ Twitter

‣ Foursquare

‣ Flickr

Provides‣ Wireless devices

‣ Photos

‣ Social network accounts

‣ Searches social network accounts for ‘like’ names

Requires‣ Address

‣ Latitude / Longitude Coordinates

Thursday, 17 October 13

Page 16: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

geoStalker

GeolocationData Source

FlickrWigle.net

UserID

Youtube Google+Instagram FacebookLinkedinGoogle Search

Twitter FoursquareInstagram

GEOSTALKER - APPLICATION FLOW

11

Thursday, 17 October 13

Page 17: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

DEMOGEOSTALKER

12

Thursday, 17 October 13

Page 18: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - INPUT

13

Thursday, 17 October 13

Page 19: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - RUNNING

14

Thursday, 17 October 13

Page 20: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - RUNNING

15

Thursday, 17 October 13

Page 21: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - RUNNING

16

Thursday, 17 October 13

Page 22: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - RUNNING

17

Thursday, 17 October 13

Page 23: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - FOURSQUARE

18

Thursday, 17 October 13

Page 24: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - INSTAGRAM

19

Thursday, 17 October 13

Page 25: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - FLICKR

20

Thursday, 17 October 13

Page 26: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - HTML OUTPUT

21

Thursday, 17 October 13

Page 27: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - MALTEGO EXPORT

22

Thursday, 17 October 13

Page 28: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - LIMITATIONS

Single threaded

Query by GPS location or address only

23

Thursday, 17 October 13

Page 29: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

GEOSTALKER - FUTURE VERSIONS

Multithreaded - Run faster!

Extend Maltego Mgtx export

Allow to disable specific datasource

24

Thursday, 17 October 13

Page 30: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTAKLER - INTRORequires‣ Profile Name

25

Graph Search to find‣ Friends

‣ Likes

‣ Check-ins

‣ Comments

Provides‣ Reverse engineered friend list

‣ Strength of associations

‣ Regular posting time

(wake time?)

Thursday, 17 October 13

Page 31: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - LOCKDOWN VS NON-LOCKDOWN Lockdown Profile

‣ Unable to see the list of friends

‣ Reverse engineer the list of friends from likes and tags

Open Profile‣ Analyze all friends of target and determine how two individuals are

connected or know each other.‣ Work place

‣ School

‣ Common interests

‣ Common friends

‣ Places that two individuals like

26

Thursday, 17 October 13

Page 32: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

Facebook Graph

Places Friend Xand Y been to

Places Friend Xand Y likes

Movies Friend Xand Y likes

Places Friend Xand Y worked at

Pages that Friend X and Y likes

Music that FriendX and Y likes

Movies like byFriend X and Y

Groups that Friend Xand Y are in

Restaurants thatFriend X and Y likes

Cafes that FriendX and Y likes

Photos that Friend Xand Y are tagged in

TV shows liked byFriend X and Y

Books liked byFriend X and Y

Sports liked byFriend X and Y

Photos that FriendX and Y likes

Games that FriendX and Y plays

Pages that FriendX and Y likes

Favorite interests ofFriend X and Y

FACEBOOK GRAPH KEYWORDSUNDERSTAND HOW 2 INDIVIDUALS ARE CONNECTED / RELATED

271

Thursday, 17 October 13

Page 33: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - GRAPH SEARCH EXAMPLE

28

Thursday, 17 October 13

Page 34: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - GRAPH SEARCH EXAMPLE

29

Thursday, 17 October 13

Page 35: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

DEMOFBSTALKER

30

Thursday, 17 October 13

Page 36: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - INPUT

31

Thursday, 17 October 13

Page 37: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - RUNNING

32

Thursday, 17 October 13

Page 38: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - MALTEGO EXPORT

33

Thursday, 17 October 13

Page 39: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - PROBLEMS

Facebook Graph API is limited

PhantomJS had some issues with Facebook site

Had to use Chromedriver

Single threaded

34

Thursday, 17 October 13

Page 40: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

FBSTALKER - FUTURE WORK‣ Runs 100% headless

‣ Monitor changes / activities of user’s FB profile.

‣ Allow name as input instead of userid

‣ Point system for Association strength‣ Photo Tags

‣ Check-ins

‣ Comments

‣ Post / Photo Likes

35

Thursday, 17 October 13

Page 41: FACEBOOK OSINT - Hack In The Box Security - HITBconference.hitb.org/hitbsecconf2013kul/materials/D2T3 - Keith Lee... · FACEBOOK OSINT ITS FASTER THAN SPEED DATING Keith Lee Jonathan

HOW TO PROTECT YOURSELFTurn off ‘location’ setting in social networking apps

Tighten Facebook privacy settings

36

Thursday, 17 October 13


Recommended