66
A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009

A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

A fresh new look into Information Gathering V2

Christian MartorellaFIST Conference March 2009

Page 2: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Who am i ?Christian Martorella

Manager Auditoria S21sec

CISSP, CISA, CISM, OPST, OPSA, C|EH

OWASP WebSlayer Project Leader

OISSG, Board of Directors

FIST Conference, Presidente

Edge-Security.com

SOURCE Conferece, commitee

Page 3: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Information Gathering

“Denotes the collection of information before the attack. The idea is to collect as much information as possible about the target which may be valuable later.”

Page 4: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

OSINT: Open Source INTelligence

“Is an information processing discipline that involves finding, selecting, and acquiring information from publicly available sources and analyzing it to produce actionable intelligence.”

Page 5: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Types of I.G

Passive Active

Page 6: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

I.G what for?

Infraestructure:

Information for discovering new targets, to get a description of the hosts (NS,MX, AS,etc), shared resources, applications, software, etc.

People and organizations:

For performing brute force attacks on available services, Spear phishing, social engineering, investigations, analysis, background checks, information leaks, client side exploits

Page 7: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

How can we obtain this kind of info?

Page 8: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining info - Classic way

Zone Transfer (active)

Whois (passive)

Reverse Lookup (active)

BruteForce (active++)

Mail headers (active)

smtp (active++)

Search engines

PGP Key Servers

serversniff.net

Page 9: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

New sources for I.G ...

Page 10: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

WikiScanner

When you edit the wikipedia:

You can edit leaving your username

You can edit anonymous using your IP address

Page 11: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

WikiScanner

Company IP ranges

Anonymous Wikipedia edits, from interesting organizations

http://wikiscanner.virgil.gr/

Page 12: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

WikiScanner - IP ranges

Page 13: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

WikiScanner - Wikipedia edits

Page 14: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Poor Man Check UserProvide an ip for a wikipedia username

Page 15: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining user info - New sources

Social Networks (passive)

Metadata (passive)

Page 16: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining user info - New sources

Social networks

LinkedIn is an online network of more than 15 million experienced professionals from around the world, representing 150 industries.

Page 17: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining user info - New sources

Current JobPasts JobsEducation

Job descriptionEtc...

Page 18: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining user info - New sources

Page 19: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining user names from a company

Page 20: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining Emails from a company

Page 21: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Linkedin pwn

FAIL

Page 22: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining more data - New sources

Metadata: is data about data.

Is used to facilitate the understanding, use and management of data.

Page 23: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Obtaining more data - New sources - Metadata

Provides basic information such as the author of a work, the date of creation, links to any related works, etc.

Page 24: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata - Dublin Core (schema)

Content & about the Resource

Intellectual Property Electronic or Physical manifestation

Title Author or Creator Date

Subject Publisher Type

Description Contributor Format

Language Rights Identifier

Relation

Coverage

Page 25: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata example

Page 26: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata - example

software - Adobe ImageReadysize - 1501x391mimetype - image/png

logo-Ubuntu.png

software - www.inkscape.orgsize - 1501x379mimetype - image/png

logo-Kubuntu.png

:/

Page 27: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata - ImagesEXIF Exchangeable Image File Format

• GPS coordinates

• Time

• Camera type

• Serial number

• Sometimes unaltered original photo can be found in thumbnail Online exif viewer.

Page 28: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata - EXIF- Harry Pwner

Deathly EXIF?

Page 29: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Cat Schwartz - Tech TV

FAIL

Page 30: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata

Modification and retouched photos

Descriptions of photos

Plagios

Copy & paste

Page 31: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata

Ok, I understand metadata... so what?

Page 32: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil

Metagoofil is an information gathering tool designed for extracting metadata of public documents (pdf,doc,xls,ppt,etc) availables in the target/victim websites.

Page 33: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil

User namesWorkers names Server names

PathsSoftware

versions + Date

Mac Address

Page 34: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil

Document copy & paste

Authors

Edition time

Printer used

Comments

Revisions

Page 35: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofilsite:nasa.gov filetype:ppt

Page 36: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil

ppt 1

parsers /filtering

ppt 2

ppt 3

ppt n

Results.html

Downloaded files

Page 37: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil - results

Page 38: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil - results

Page 39: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil - results

Page 40: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil - results

Page 41: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil - results

Page 42: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil - results

Page 43: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil v2

Page 44: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metagoofil & Linkedin results

Now we have a lot of information, what can i do?

• User profiling

• Spear Phishing / Social Engineering

• Client side attacks

Page 45: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Using resultsUser profiling

john.doejdoej.doe

johndoejohndjohn.d

jddoejohn

• Dictionary creation John Doe

ATTACK!

Page 46: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Metadata - The Revisionist

Tool developed by Michal Zalewski, this tool will extract comments and “Track changes” from Word documents.

http://download.microsoft.com/download/3/4/9/349c2166-4d53-43f6-b1fd-970090e23216/PARTNER/MSFreeShop.doc

Page 47: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Target information:

Email account

Google Finance, Reuters, Linkedin, Website

People search:

Usercheck.com

Page 48: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Google Finance & Reuters

Page 49: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

People search

Page 50: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

People search

Page 51: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

People search

Page 52: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Usercheck.com

Page 53: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Using resultsPassword profiling

magicserra angel

necropotenceShivan dragon

elfbrainstorm

...

...

Dictionary creation: words from the different user sites

Brute forceATTACK

Page 54: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Microblogs

Microblogging

Small posts up to 140 characters

Page 55: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager
Page 56: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager
Page 57: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Bookmarks

FAIL

Page 58: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Kyle Doyle's Facebook profile makes it quite obvious he was not off work for a 'valid medical reason'

Phone in sick and treat himself to a day in bed.

FAIL

Page 59: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Was shown the door after posting that her job was 'boring' on her Facebook page

FAIL

Page 60: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

More than meet the eyes

Page 61: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Real life I.G example

Looking for a Housekeeper on Craiglist

3 interesting resumes came up:

Personal blog, saying that she is applying for menial jobs, and will quit as soon she sells some paintings

Local police, applicant arrested 2 years before for shoplifting

Myspace page, applicant drinking beer from a funnel

Page 62: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

ConclusionsClean your files before distribution

Web applications should clean files on upload (if it’s not needed)

Web applications should try to represent the information in a non parseable way :/

Be careful what you post/send, all stay online

Think twice what you post

Check the privacy configuration of your tools/sites

Page 63: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

References

www.edge-security.com

blog.s21sec.com

www.s21sec.com

carnal0wnage.blogspot.com

www.gnunet.org/libextractor

lcamtuf.coredump.cx/strikeout/www.paterva.com

http://sethgodin.typepad.com/seths_blog/2009/02/personal-branding-in-the-age-of-google.html

Page 64: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

References II

http://www.neuroproductions.be/twitter_friends_network_browser/laramies.blogspot.com

Page 65: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

?

Page 66: A fresh new look into Information Gathering V2...A fresh new look into Information Gathering V2 Christian Martorella FIST Conference March 2009 Who am i ? Christian Martorella Manager

Thank you for coming

[email protected]@edge-security.com

http://laramies.blogspot.comhttp://twitter.com/laramies