SlideShare a Scribd company logo
OSINT Footprinting




Using Twitter and Python
Who am I?
   Raymond Lilly

   @37point2

   Analyst at a Social Media/Customer Relations Management
    company

   Senior, Eastern Michigan University

   Information Assurance/Network Security
What are we talking about?
   OSINT gathering methods

   Research with implications in
       Intelligence

       Social Engineering

       Marketing
Intelligence
   What are people talking about?

   Intel vs Counter Intel

   Targeting concerns
          Individuals/Groups
          Geographic regions
          Time
          Topics
Social Engineering
Leaking information

   What do your co-workers/employees talk about during/after
    work?

   IT talking about new tech deployments?

   Any employees venting about internal issues?

   C levels discussing personal hobbies/travel plans?
Marketing
   Can you identify your customers?

   What are they talking about?/What other interests do they
    have?

   Can you profile them and use that to reach new potential
    customers?

   Find new markets?

   Reduce your customer assistance cost or increase customer
    satisfaction?
Fun Stuff
   New Job info

         What’s the corporate culture like?

         Does the company embrace new tech/ideas or shun
          them?

   Amplify the reach of your messages

   Find organizations/groups that are interested in the same
    things you are
Key Twitter Concepts
   Tweets – 140 characters

   Following
       Friends

       Followers
   Did you pick the user?
Followers



       A -> B
Friends



      B -> C
A -> B -> C
Twitter’s API
   https://dev.twitter.com/docs/api



   Authenticated vs. Unauthenticated

       How hard is it to get OAuth Tokens?



   REST

   Streaming
Tweepy!
   Python module for Twitter’s API



   https://github.com/tweepy/tweepy/

   Joshthecoder
GET status/user_timeline
   Takes a user_id or screen_name

   since_id

   count

   exclude_replies

   include_rts



   Tweepy.api.get_status(‘37point2’)
GET users/show
   user_id/screen_name

   include_entities
       ^-- Awesome!




   Tweepy.api.get_user(‘37point2’)
   "id": 286868576,

     "id_str": "286868576",

     "name": "37point2",

     "screen_name": "37point2",

     "location": "",

     "description": "Information Assurance student at Eastern Michigan University. rnIntel
    Analysis, Data Viz, Incident Response",

     "url": "http://www.linkedin.com/in/raymondlilly",

     "protected": false,

     "followers_count": 244,

     "friends_count": 992,

     "listed_count": 6,

     "created_at": "Sat Apr 23 21:25:44 +0000 2011",

     "utc_offset": -18000,

     "time_zone": "Eastern Time (US & Canada)",
"description": "Information Assurance
student at Eastern Michigan University.
rnIntel Analysis, Data Viz, Incident
Response",
OSINT using Twitter & Python
Method to the Madness
   Information Needed/Gathered

   Tools used



   Visualization



   Analysis
Echo Chamber
   Last 1000 Tweets of everyone followed

   Basic Word Count



   Wordle.net
OSINT using Twitter & Python
Tweets per Day
   Individual

       Last 3200 Tweets

   Community

       Last 1000 Tweets (#infosec – May 18-21)



   Plot Tweets over weekdays
OSINT using Twitter & Python
OSINT using Twitter & Python
Hashtags/Topics
   Last 3200 Tweets

       include_entities! #lazyhacker

       include_rts



   Google Visualization API

       Hashtags & HashtagsWithRetweets
OSINT using Twitter & Python
OSINT using Twitter & Python
Retweets/Replies
   Last 3200 Tweets

       include_entities

       include_rts!!!



   Retweets

   Replies

   Best time for a response?
OSINT using Twitter & Python
OSINT using Twitter & Python
OSINT using Twitter & Python
Interactions w/ Influence and
Topics
   Klout

       BOO!!!

           Changes algorithm daily

           What is the algorithm? /shrug

           Weights social media sites differently

       Useful

           Topics!!

           Score used as guideline
Model
   Last 3200 Tweets

   Include all the things!



   Add Klout score and topics
Formula for Influence
   Klout^2 * interactions



   50 vs 60

   2500 vs 3600
Time to get interactive!
Clients
   Last 3200 Tweets




   Total Counts

   Client usage over time
OSINT using Twitter & Python
More moving stuff!
Interactions & Topics
   Last 3200 Tweets

   include_entities



   Maltego CaseFile

       Community Edition
OSINT using Twitter & Python
OSINT using Twitter & Python
OSINT using Twitter & Python
Interesting Tools
   Tweetstats.com

   Twopcharts

   Klout

   Kred

   Socialmention



   NetworkX
Contact Info

   Raymond Lilly
   @37point2
   rlilly@emich.edu

More Related Content

PDF
Offensive OSINT
PPTX
Let’s hunt the target using OSINT
PDF
Open Source Intelligence (OSINT)
PDF
OSINT: Open Source Intelligence - Rohan Braganza
PDF
Cyber threat intelligence ppt
PDF
Ethelhub - Introducción a OSINT
PDF
Using MITRE PRE-ATTACK and ATTACK in Cybercrime Education and Research
Offensive OSINT
Let’s hunt the target using OSINT
Open Source Intelligence (OSINT)
OSINT: Open Source Intelligence - Rohan Braganza
Cyber threat intelligence ppt
Ethelhub - Introducción a OSINT
Using MITRE PRE-ATTACK and ATTACK in Cybercrime Education and Research

What's hot (20)

PDF
OSINT y hacking con buscadores #Palabradehacker
PPTX
Getting started with using the Dark Web for OSINT investigations
PDF
Cyber Threat Intelligence
PDF
ATT&CK Metaverse - Exploring the Limitations of Applying ATT&CK
PDF
Would you Rather Have Telemetry into 2 Attacks or 20? An Insight Into Highly ...
PPTX
Threat Hunting with Splunk
PPTX
Role of Forensic Triage In Cyber Security Trends 2021
PDF
Cyber Threat Intelligence - It's not just about the feeds
PDF
Mapping to MITRE ATT&CK: Enhancing Operations Through the Tracking of Interac...
PDF
The ATT&CK Latin American APT Playbook
PDF
MITRE ATT&CKcon 2018: Hunters ATT&CKing with the Data, Roberto Rodriguez, Spe...
PDF
TA505: A Study of High End Big Game Hunting in 2020
PDF
OSINT- Leveraging data into intelligence
PDF
Exploring how Students Map Social Engineering Techniques to the ATT&CK Framew...
PDF
Casos reales usando osint
PPTX
Putting MITRE ATT&CK into Action with What You Have, Where You Are
PDF
OSINT x UCCU Workshop on Open Source Intelligence
PDF
OSINT 2.0 - Past, present and future
PDF
Open source intelligence information gathering (OSINT)
PDF
Hunting for Privilege Escalation in Windows Environment
OSINT y hacking con buscadores #Palabradehacker
Getting started with using the Dark Web for OSINT investigations
Cyber Threat Intelligence
ATT&CK Metaverse - Exploring the Limitations of Applying ATT&CK
Would you Rather Have Telemetry into 2 Attacks or 20? An Insight Into Highly ...
Threat Hunting with Splunk
Role of Forensic Triage In Cyber Security Trends 2021
Cyber Threat Intelligence - It's not just about the feeds
Mapping to MITRE ATT&CK: Enhancing Operations Through the Tracking of Interac...
The ATT&CK Latin American APT Playbook
MITRE ATT&CKcon 2018: Hunters ATT&CKing with the Data, Roberto Rodriguez, Spe...
TA505: A Study of High End Big Game Hunting in 2020
OSINT- Leveraging data into intelligence
Exploring how Students Map Social Engineering Techniques to the ATT&CK Framew...
Casos reales usando osint
Putting MITRE ATT&CK into Action with What You Have, Where You Are
OSINT x UCCU Workshop on Open Source Intelligence
OSINT 2.0 - Past, present and future
Open source intelligence information gathering (OSINT)
Hunting for Privilege Escalation in Windows Environment
Ad

Viewers also liked (13)

PPTX
How to Use Open Source Intelligence (OSINT) in Investigations
PPTX
Blackmagic Open Source Intelligence OSINT
PPTX
Tools for Open Source Intelligence (OSINT)
PPTX
Jupyter Ascending: a practical hand guide to galactic scale, reproducible dat...
PDF
JupyterHub for Interactive Data Science Collaboration
PDF
Jupyter, A Platform for Data Science at Scale
PDF
Osint overview 26 mar 2015
PPTX
D3 in Jupyter : PyData NYC 2015
PDF
Your first TensorFlow programming with Jupyter
PDF
What you need to know about OSINT
PDF
OSINT for Attack and Defense
PDF
Osint 2ool-kit-on the-go-bag-o-tradecraft
PDF
Jupyter Kernel: How to Speak in Another Language
How to Use Open Source Intelligence (OSINT) in Investigations
Blackmagic Open Source Intelligence OSINT
Tools for Open Source Intelligence (OSINT)
Jupyter Ascending: a practical hand guide to galactic scale, reproducible dat...
JupyterHub for Interactive Data Science Collaboration
Jupyter, A Platform for Data Science at Scale
Osint overview 26 mar 2015
D3 in Jupyter : PyData NYC 2015
Your first TensorFlow programming with Jupyter
What you need to know about OSINT
OSINT for Attack and Defense
Osint 2ool-kit-on the-go-bag-o-tradecraft
Jupyter Kernel: How to Speak in Another Language
Ad

Similar to OSINT using Twitter & Python (20)

PDF
Unleashing Twitter Data for Fun and Insight
PDF
Unleashing twitter data for fun and insight
PPT
John Conroy
PPTX
Information Gathering Over Twitter
PDF
Sourcing with Social Media: Tips from a Corporate Sleuth by Sean Campbell
PPTX
#twitter101
PPTX
Twitter & Tweets
PDF
IRJET- Review Analyser with Bot
PPT
Twitter
PPTX
Social Media Data Collection & Analysis
PDF
The Art of Social Media Analysis with Twitter & Python-OSCON 2012
PDF
The Art of Social Media Analysis with Twitter & Python
PDF
Mining Social Web APIs with IPython Notebook (Strata 2013)
PPTX
How to start using Twitter
PPTX
Twitter_Sentiment_analysis.pptx
PDF
Twitter As Business Tool
KEY
TWIMPACT: Know your audience!
PDF
Twitter 101 for Business
PPT
Twitter for trainers webcast
PDF
Mining Social Web APIs with IPython Notebook (PyCon 2014)
Unleashing Twitter Data for Fun and Insight
Unleashing twitter data for fun and insight
John Conroy
Information Gathering Over Twitter
Sourcing with Social Media: Tips from a Corporate Sleuth by Sean Campbell
#twitter101
Twitter & Tweets
IRJET- Review Analyser with Bot
Twitter
Social Media Data Collection & Analysis
The Art of Social Media Analysis with Twitter & Python-OSCON 2012
The Art of Social Media Analysis with Twitter & Python
Mining Social Web APIs with IPython Notebook (Strata 2013)
How to start using Twitter
Twitter_Sentiment_analysis.pptx
Twitter As Business Tool
TWIMPACT: Know your audience!
Twitter 101 for Business
Twitter for trainers webcast
Mining Social Web APIs with IPython Notebook (PyCon 2014)

OSINT using Twitter & Python

  • 2. Who am I?  Raymond Lilly  @37point2  Analyst at a Social Media/Customer Relations Management company  Senior, Eastern Michigan University  Information Assurance/Network Security
  • 3. What are we talking about?  OSINT gathering methods  Research with implications in  Intelligence  Social Engineering  Marketing
  • 4. Intelligence  What are people talking about?  Intel vs Counter Intel  Targeting concerns Individuals/Groups Geographic regions Time Topics
  • 5. Social Engineering Leaking information  What do your co-workers/employees talk about during/after work?  IT talking about new tech deployments?  Any employees venting about internal issues?  C levels discussing personal hobbies/travel plans?
  • 6. Marketing  Can you identify your customers?  What are they talking about?/What other interests do they have?  Can you profile them and use that to reach new potential customers?  Find new markets?  Reduce your customer assistance cost or increase customer satisfaction?
  • 7. Fun Stuff  New Job info  What’s the corporate culture like?  Does the company embrace new tech/ideas or shun them?  Amplify the reach of your messages  Find organizations/groups that are interested in the same things you are
  • 8. Key Twitter Concepts  Tweets – 140 characters  Following  Friends  Followers  Did you pick the user?
  • 9. Followers A -> B
  • 10. Friends B -> C
  • 11. A -> B -> C
  • 12. Twitter’s API  https://dev.twitter.com/docs/api  Authenticated vs. Unauthenticated  How hard is it to get OAuth Tokens?  REST  Streaming
  • 13. Tweepy!  Python module for Twitter’s API  https://github.com/tweepy/tweepy/  Joshthecoder
  • 14. GET status/user_timeline  Takes a user_id or screen_name  since_id  count  exclude_replies  include_rts  Tweepy.api.get_status(‘37point2’)
  • 15. GET users/show  user_id/screen_name  include_entities  ^-- Awesome!  Tweepy.api.get_user(‘37point2’)
  • 16. "id": 286868576,  "id_str": "286868576",  "name": "37point2",  "screen_name": "37point2",  "location": "",  "description": "Information Assurance student at Eastern Michigan University. rnIntel Analysis, Data Viz, Incident Response",  "url": "http://www.linkedin.com/in/raymondlilly",  "protected": false,  "followers_count": 244,  "friends_count": 992,  "listed_count": 6,  "created_at": "Sat Apr 23 21:25:44 +0000 2011",  "utc_offset": -18000,  "time_zone": "Eastern Time (US & Canada)",
  • 17. "description": "Information Assurance student at Eastern Michigan University. rnIntel Analysis, Data Viz, Incident Response",
  • 19. Method to the Madness  Information Needed/Gathered  Tools used  Visualization  Analysis
  • 20. Echo Chamber  Last 1000 Tweets of everyone followed  Basic Word Count  Wordle.net
  • 22. Tweets per Day  Individual  Last 3200 Tweets  Community  Last 1000 Tweets (#infosec – May 18-21)  Plot Tweets over weekdays
  • 25. Hashtags/Topics  Last 3200 Tweets  include_entities! #lazyhacker  include_rts  Google Visualization API  Hashtags & HashtagsWithRetweets
  • 28. Retweets/Replies  Last 3200 Tweets  include_entities  include_rts!!!  Retweets  Replies  Best time for a response?
  • 32. Interactions w/ Influence and Topics  Klout  BOO!!!  Changes algorithm daily  What is the algorithm? /shrug  Weights social media sites differently  Useful  Topics!!  Score used as guideline
  • 33. Model  Last 3200 Tweets  Include all the things!  Add Klout score and topics
  • 34. Formula for Influence  Klout^2 * interactions  50 vs 60  2500 vs 3600
  • 35. Time to get interactive!
  • 36. Clients  Last 3200 Tweets  Total Counts  Client usage over time
  • 39. Interactions & Topics  Last 3200 Tweets  include_entities  Maltego CaseFile  Community Edition
  • 43. Interesting Tools  Tweetstats.com  Twopcharts  Klout  Kred  Socialmention  NetworkX
  • 44. Contact Info  Raymond Lilly  @37point2  rlilly@emich.edu