OSINT in cyber security: how attackers and defenders use it
OSINT in cyber security means using public information to understand how an organisation could be attacked. Attackers use it first, to plan phishing emails and find weak spots. Defenders use exactly the same view of their own organisation, so they can fix those weak spots before anyone else finds them. This guide explains both sides for beginners and ends with a self-audit you can run on your own small business, shop or college club in about an hour.
What OSINT in cyber security is
OSINT stands for open-source intelligence: answering a question with information that anyone can lawfully see, such as websites, public records, search results and social media posts. In cyber security the question is usually "what can an outsider learn about this organisation's people and systems without breaking in?"
Security people call that early stage reconnaissance, or recon: quietly gathering facts before acting. MITRE ATT&CK, a widely used public catalogue of attacker behaviour, lists Reconnaissance as the first tactic, and one of its techniques is literally called "Search Open Websites/Domains".
Two more terms you will see often:
- Attack surface: everything an organisation exposes to the internet, such as websites, subdomains, email servers, login pages, cloud storage and the public profiles of its staff.
- Footprint: the trail of information an organisation leaves online, on purpose or by accident.
OSINT doesn't involve logging in where you aren't allowed, guessing passwords or scanning other people's systems. The moment you touch a system you don't own, it stops being open-source research. If you want the legal side in detail, read about whether OSINT is legal before you practise.
Why it matters, even for small organisations
Most successful attacks don't start with clever code. They start with something an attacker read in public: a staff list, an email format, an old test website nobody remembered, or a password that was exposed in a data breach years ago.
Small organisations are not too small to matter. A coaching centre, a family shop with a website or a college fest team handles payments, student details and logins. They rarely have a security team, which makes the forgotten corners more likely and the attacker's job easier.
The good news is that defenders have one big advantage: they know what is supposed to be there. If you see a subdomain or a file you don't recognise, that alone is a finding.
How attackers use public information
Here is the attacker's side, explained so you can recognise it. None of it requires anything more than a browser.
Mapping systems
An attacker lists the organisation's domains and subdomains, looks for old or test websites, and checks which services each server shows to the internet. A forgotten test. or old. subdomain often runs outdated software that nobody patches.
Mapping people
Company pages, job ads and professional profiles reveal names, job titles, who reports to whom and the email format (for example, firstname.lastname@). Job ads also reveal which software the organisation uses.
Building a pretext
A pretext is a believable story that makes a fake message look real. "Hi, this is Priya from accounts, the vendor invoice we discussed at Monday's meeting is attached" works far better when the attacker knows Priya's name, the vendor and that Mondays have a team meeting. That is called spear phishing: phishing aimed at specific people using details about them.
Reusing exposed passwords
When a website is breached, lists of email addresses and passwords sometimes end up circulating. Attackers try those combinations on other services, betting that people reuse passwords. This is called credential stuffing.
How defenders use the same view
The defensive version is simple to describe: look at yourself the way an attacker would, then fix what you find. The diagram below puts the two side by side.

Certificate transparency logs: find your forgotten subdomains
Every website that uses HTTPS has a certificate, a small file that proves the site is who it says it is. Public certificate authorities write every certificate they issue into public lists called certificate transparency logs, so mistakes and fake certificates can be spotted. Browsers such as Chrome expect certificates to appear in these logs.
A side effect is useful for defenders: the logs list every hostname a certificate was issued for, including subdomains you may have forgotten. The free site crt.sh searches these logs. Type your domain and press Search, or type %.yourdomain.com to match every subdomain.

How to read it: Not Before and Not After are the dates a certificate is valid. Common Name and Matching Identities show the hostnames it covers. An entry like *.example.com is a wildcard that covers any subdomain, so it doesn't tell you which ones exist; named entries do. crt.sh is popular and sometimes slow or briefly unavailable, so try again a minute later if it fails.
Internet scanners: see what your own server shows
Services such as Shodan constantly scan the internet and record which services each public IP address answers on, such as a web server, a remote login or a camera's web page. For a defender, the useful question is: "What does Shodan show for my office's or my server's public IP?" As of December 2026, Shodan needs a free account for most filtered searches, and the free account shows limited results.
The rule is strict: search only addresses you own or manage. Looking at a public listing is not the same as connecting to the device, and you never log in to, test or interact with a system that isn't yours.
Search engines: files you published by mistake
Search operators let you check your own website for files that shouldn't be public, such as an internal price list or a spreadsheet of registrations. Combining operators like site: and filetype: for research is called Google dorks. For a self-check, keep it to your own domain: site:yourdomain.com filetype:pdf, then the same with xlsx and docx.
If any search, on your site or anyone else's, shows personal data that was exposed by mistake, don't open, download or share it. Tell the site's owner, or report it to CERT-In, India's national cyber security agency, at incident@cert-in.org.in.
Breach alerts: check your own email addresses
Have I Been Pwned tells you whether an email address appeared in a known data breach. It shows the breach names, never the passwords. Organisations can verify that they own a domain and search all its addresses at once; as of December 2026 that domain search is free while a domain has 10 or fewer breached addresses, with paid plans above that. Google Password Manager's Password Checkup does a similar check for passwords saved in your Google account.
What staff share
Finally, look at your own website and official pages as a stranger would. Is there a full staff list with direct emails? A photo of an office screen, a whiteboard or an ID badge? An org chart that shows exactly who approves payments? None of this is wrong to publish in itself, but each item makes a pretext easier.
Worked example: a one-hour self-audit for a small organisation
Imagine you help run the website of a college club, which uses a domain like yourclub.example. Here is the audit, step by step, with what you'd do about each finding.

- Subdomains (15 minutes). Search
%.yourclub.exampleon crt.sh. Say you findfest2024.yourclub.example, a registration site from an old event. If it still loads, it may run old software and hold old registrations. Action: export anything you must keep, then take it down. - Exposed services (10 minutes). If the club has its own server, check its public IP on Shodan. You should only see what you expect, usually a web server. A remote login or a database open to the internet is a finding for whoever manages the server.
- Files (10 minutes). Search
site:yourclub.example filetype:pdf, then spreadsheets and documents. A members' list with phone numbers is a finding: remove it and ask Google to drop the old copy through Search Console if you manage the site there. - Breaches (10 minutes). Check the club's shared email addresses on Have I Been Pwned. For any hit, change that password, make it unique and turn on two-step verification.
- What people share (15 minutes). Read the club's pages and posts as a stranger. Replace personal phone numbers with a shared contact address, and blur screens or badges in photos.
Write every finding down with who will fix it and by when. Repeat the audit every few months, and after any big event or website change.
Common mistakes
- Checking someone else's organisation. A self-audit is only for systems you own or have written permission to assess. Doing it to others, even "to help", can break the law and their trust.
- Going from looking to touching. Reading a Shodan listing is research. Trying the login page it shows is unauthorised access.
- Treating one tool as complete. crt.sh only shows hostnames that had certificates. A subdomain without HTTPS won't appear there.
- Panicking over wildcards and old entries. An expired certificate for a subdomain that no longer exists is history, not a live risk. Check whether the hostname still loads before acting.
- Fixing nothing. An audit that ends in a list nobody acts on doesn't make anything safer.
Exercise: practise on example.com
example.com is a domain reserved for documentation, so it's a safe place to practise reading results. Search it on crt.sh and answer three questions: how many different hostnames appear in the Common Name column on the first screen, what the most recent Not After date is, and which entries are wildcards. Then do the same for your own domain, if you have one, and compare the list with the subdomains you know about.
For more neutral practice material and browser-based tools for files and photos, see our OSINT tools page.
Frequently asked questions
What is OSINT in cyber security?
It's using public information to see how an organisation could be targeted. Attackers use it for reconnaissance before phishing or break-ins; defenders use the same sources on their own organisation to find and fix weak spots first.
Is it legal to check my own company with OSINT tools?
Looking at public information about systems you own or manage is the normal defensive use. Checking other organisations, or interacting with their systems, is a different matter. This guide is not legal advice; if you work for a company, get written approval from whoever is responsible for its IT before you start.
Do I need to know coding to do this?
No. Everything in the self-audit works in a browser: crt.sh, Shodan's website, search operators and Have I Been Pwned. Scripting helps later, when you repeat the same checks on many domains.
What should I do if I find something serious?
If it's yours, fix it or tell whoever manages it, and change any affected passwords. If it belongs to someone else, don't open or share it: tell the owner or report it to CERT-In. If money was lost to fraud in India, call the 1930 helpline and file a complaint on cybercrime.gov.in.
One search tip a week, plus our new guides: follow dedigger on WhatsApp.
