Offensive OSINT mindset to
defend your Organization
Chandrapal Badshah
About Me
Chandrapal Badshah
Security Researcher
Open Source Enthusiast
Twitter : @bnchandrapal
Website : badshah.io
Story time ...
Fiction ?
https://hackerone.com/reports/397527
What is Open Source Intelligence ?
What is OSINT ?
“An art of collecting publicly available data and deriving
useful information from it”
The OSINT Mindset
The OSINT Mindset
Consists of 3 phases in general:
Data
aggregation
Deriving
intelligence
Storing the data
& intel
The OSINT Mindset
Consists of 3 phases in general:
Data
aggregation
Deriving
intelligence
Storing the data
& intel
The OSINT Mindset
Consists of 3 phases in general:
Data
aggregation
Deriving
intelligence
Storing the data
& intel
The OSINT Mindset
Consists of 3 phases in general:
Data
aggregation
Deriving
intelligence
Storing the data
& intel
Three questions to ask yourself ?
What do you know about the organization ?
What do you technically know about the organization ?
Did you checkout the employees of the organization ?
What do you know about the organization ?
What do you know about the organization ?
● What does it sell - a product / service / something else ?
● How does the company make profit ?
● Board of Directors & Investors
● Acquisitions and Partnerships
● Job openings
● Supply chain / vendors
Sources
● Company website
● Blogs
● LinkedIn
● Newspapers
● Third party review blogs
● Crunchbase
Example : Job openings
Impact : Breaches on Acquisitions might affect you
https://www.infosecurity-magazine.com/news/paypal-acquired-company-suffered/
Impact : Supply Chain Attacks
What do you technically know about the
organization ?
Domains and subdomains
Virustotal
Domains and subdomains
Virustotal
SecurityTrails
Domains and subdomains
Virustotal
SecurityTrails
Rapid7’s FDNS
Domains and subdomains
Virustotal
SecurityTrails
Rapid7’s FDNS
Google Certificate Transparency
Logs
Digital Assets
Subdomain takeovers
Exposed databases
Software with default and weak passwords
Impact : Digital Assets
IP addresses & open ports
● Shodan
IP addresses & open ports
● Shodan
● Software running on non standard ports
Did you checkout the employees of the
organization ?
Email addresses
hunter.io - allows to get email address patterns
Email addresses
hunter.io - allows to get email address patterns
HaveIBeenPwned
Online coding platforms
Online code platforms:
● GitHub
● Gitlab
● Bitbucket
Online code compiling platforms:
● Repl.it
Online content sharing
● Pastebin & other pastie sites
● Public GitHub gists / Gitlab snippets
● Google docs / sheets with public shareable link
● Trello boards
Password Reuse
How can we protect organization using OSINT ?
Understand what’s in your control and what’s not
Digital assets
What the organization posts online
Security & Organizational policies
Understand what’s in your control and what’s not
Digital assets
What the organization posts online
Security & Organizational policies
Employees’ personal online accounts
How to tackle (un)intentional data leaks ?
Continuous Monitoring
Monitor for keywords on about your organization on online platforms
● Google alerts
● Tools like Real Time Scrapper & DataSploit
● Third party monitoring services
Continuous Monitoring
Monitor for keywords on about your organization on online platforms
● Google alerts
● Tools like Real Time Scrapper & DataSploit
● Third party monitoring services
Monitor if employee’s email is found in a data breach
● HaveIBeenPwned FREE notification service
How to proactively defend your organization ?
Never Reuse Passwords
Evangelize the use of password managers
Never Reuse Passwords
This breach
could have
never happened
Vulnerability Management
● Allows you to know your network
○ Network
○ DNS records
○ Open Ports
○ Software / Technology stack used
● Vulnerable software
○ Dependency Check
Vulnerability Management
This could have
been prevented
Thank You
Any Questions ?

OSINT mindset to protect your organization - Null monthly meet version

Editor's Notes

  • #4 It was getting dark and our hacker hero was tired of looking at multiple online code repositories. Before he closes his 30 tabbed browser, he stumbled upon an unusual repository. What intrigued him was that the code repo had less code, but lots of releases. After downloading, decompiling and hours of debugging, he found the slack token of the target organization. Using the slack token, he was able to get messages from most of the Slack channels of the target organization.
  • #12 This has happened even to one of the best companies among us
  • #14 Data could be scattered on multiple places or could get it in a single place Is not confined to a bunch of tools which call them the best OSINT tool
  • #21 Let us forget the organizations we work with for some time
  • #22 http://www.mca.gov.in/mcafoportal/checkCompanyName.do
  • #26 https://www.tripwire.com/state-of-security/featured/operation-shadowhammer-hackers-planted-malware-code-video-games/
  • #33 Exactis
  • #34 Shodan - allows to monitor upto 16 IPs
  • #35 Shodan - allows to monitor upto 16 IPs
  • #37 hunter.io - get the email format. Is it {firstname}.{lastname}@company.com or {firstname}@company.com. If you find the pattern, with the help of LinkedIn you could actually get all emails of employees HIBP - was this email leaked in some previous breach ? If yes, can we get the credentials from the breach ?
  • #38 hunter.io - get the email format. Is it {firstname}.{lastname}@company.com or {firstname}@company.com. If you find the pattern, with the help of LinkedIn you could actually get all emails of employees HIBP - was this email leaked in some previous breach ? If yes, can we get the credentials from the breach ?
  • #40 If you find the info, contact the website to take down the info
  • #46 https://github.com/NaveenRudra/RTS https://github.com/DataSploit/datasploit
  • #47 https://github.com/NaveenRudra/RTS https://github.com/DataSploit/datasploit
  • #51 Know yourself Since you can look into your digital assets, make sure it is configured properly Remove DNS records when no longer used Think like an attacker Always think how the public information could be used against your company Proper compartmentation Without proper compartmentation, attackers are able to leverage information from one compromised account to access another related account. Vulnerability Management A good vuln mgmt covers all assets. Vuln mgmt tools will find easily exploitable vulns Employee awareness You cannot control the employees’ personal online accounts All you can do is give provide general awareness of how posting company data online / reusing passwords could be tragic ---- Have different accounts for different env HaveIBeenPwned - free updates --- Devils advocate (policies, Data Loss Prevention)