Threat Intelligence and OSINT Basics, Explained
If you are reading this, you have probably seen "threat intel", "IOC" and "OSINT" in job descriptions and security reports, and you want to know exactly what they mean and how they fit together.
By the end you will be able to explain the difference between threat data and threat intelligence, name the main kinds and levels of threat intelligence, describe the intelligence cycle, use the Pyramid of Pain to judge how useful an indicator is, explain what OSINT is, list the main public sources and what each one reveals, follow a safe method for collecting and verifying it, and state the legal and ethical rules.
The post has two parts. Part 1 is threat intelligence. Part 2 is OSINT, which is one of the main sources that feeds threat intelligence.
Part 1: Threat intelligence
1. What threat intelligence is
Threat, actor and threat information
NIST's guide to threat information sharing (SP 800-150) defines a cyber threat as:
"any circumstance or event with the potential to adversely impact organizational operations (including mission, functions, image, or reputation), organizational assets, individuals, other organizations, or the Nation through an information system via unauthorized access, destruction, disclosure, or modification of information, and/or denial of service."
The people or groups behind threats are called threat actors (Threats and Vulnerabilities shows how NIST classifies threat sources). Threat information is "any information related to a threat that might help an organization protect itself against a threat or detect the activities of an actor."
Information becomes intelligence when it has context
The same document defines threat intelligence as threat information "that has been aggregated, transformed, analyzed, interpreted, or enriched to provide the necessary context for decision-making processes." (NIST SP 800-150, also in the NIST glossary)
An example makes the difference clear:
| Example | Is it intelligence? | |
|---|---|---|
| Raw data | 203.0.113.45 appeared in a list |
No: it is just an address |
| Threat information | That address is a known command server | Partly: it is a fact, but what do you do with it? |
| Threat intelligence | That address was used by a group targeting online shops like ours; it appeared in our logs on Tuesday; here is how the group usually gets in and what to look for next | Yes: it is analyzed, relevant and tells you what to do |
(203.0.113.45 is a reserved documentation address, used here only as an example.)
A common way to say it: intelligence is information that is relevant, analyzed and actionable. A long list of bad addresses with no explanation is a feed, not intelligence.
Why organizations use it
NIST describes the idea in one line: it allows "one organization's detection to become another's prevention." Its guide lists these benefits of sharing and using threat information:
- Shared situational awareness: everyone in a community learns from what any one member sees.
- Improved security posture: you understand the threat environment and can act on it.
- Knowledge maturation: unrelated observations from different organizations can be combined to reveal patterns.
- Greater defensive agility: actors change their methods, and organizations that share information learn about those changes sooner.
2. What threat information looks like
NIST SP 800-150 (section 2.1) lists the major types:
| Type | What it is | Example from the guide |
|---|---|---|
| Indicators | "Technical artifacts or observables that suggest that an attack is imminent or is currently underway or that a compromise may have already occurred" | An IP address of a suspected command server, a suspicious domain, a URL, a file hash, the subject line of a malicious email |
| Tactics, techniques and procedures (TTPs) | How an actor behaves. Tactics are high-level, techniques more detailed, procedures most detailed | A tendency to use a certain malware variant, tool, delivery method (phishing, watering hole) or exploit |
| Security alerts | Short, usually human-readable notices about vulnerabilities, exploits and other issues (advisories, bulletins) | Notices from US-CERT, ISACs, the National Vulnerability Database, vendors |
| Threat intelligence reports | Prose documents describing TTPs, actors, targeted systems and other context | A report on a campaign against the finance sector |
| Tool configurations | Recommendations for setting up tools that use threat information | Instructions for writing detection signatures, firewall rules, or web filter configurations |
An indicator of compromise (IOC) is the first row: evidence that a compromise may be happening or may have happened (NIST SP 800-61r3).
Tactics, techniques and procedures are the language of MITRE ATT&CK, the catalogue you met in the privilege escalation post.
3. Levels of threat intelligence
Threat intelligence is usually divided by who uses it and for what. Most sources describe three levels, and some add a fourth technical one (Wikipedia):
| Level | Focus | Typical user | Example |
|---|---|---|---|
| Tactical | Specific technical indicators: IP addresses, domain names, file hashes, malware signatures | SOC analysts, tool administrators | Block these domains; search the logs for this hash |
| Operational | Adversary behaviour and campaigns: TTPs, motivations, how a campaign works | Incident responders, threat hunters | Look for this sequence of behaviours across our systems |
| Strategic | Business risk and the wider threat landscape, in non-technical language | Executives, board members | Invest in multi-factor authentication because the sector is being targeted by credential theft |
Some organizations add technical threat analytics, deeper technical analysis that supports the SOC.
An illustration of one event at three levels: a phishing campaign hits online shops. Tactically, you get the sender domains and links to block. Operationally, you learn how the group follows up after a victim clicks. Strategically, leadership decides to prioritize phishing-resistant sign-in across the company.
4. The Pyramid of Pain: not all indicators are equal
Security analyst David Bianco created the Pyramid of Pain to show how much trouble it causes an attacker when defenders can detect and block each kind of indicator (original post).
From the bottom (easy for the attacker) to the top (hard):
| Level | What it is | How hard it is for an attacker to change |
|---|---|---|
| Hash values | Fingerprints of specific malicious files | Very easy: changing any part of a file gives a completely different hash |
| IP addresses | Servers the attacker uses | Easy, especially with proxies or anonymizing services |
| Domain names | Names the attacker uses | A bit harder: they must be registered and paid for, but new ones can work within a day or two |
| Network and host artifacts | Observable traces left by the activity, such as distinctive User-Agent strings, URL patterns, registry keys | Annoying: the attacker has to retool |
| Tools | The software the attacker uses | Hard: they must find, build or buy replacements |
| TTPs | The attacker's behaviour and methods | Hardest: they must learn new ways of working |
What this means in practice
- Hash, IP and domain indicators are precise but short-lived. They are good for quickly catching a known threat but easy for the attacker to swap.
- Detecting behaviour (TTPs) is harder but lasts. If you can detect "a normal user account suddenly creating a scheduled task that runs as SYSTEM", it does not matter which tool or address the attacker used.
- Old indicators go stale. An address that was malicious last year may belong to someone harmless today. Blocking stale indicators produces the false alarms described in the false positives post, so indicators need an age and a review date.
5. The intelligence cycle
Intelligence work follows a repeating loop. These are the stages, as used in intelligence practice (Wikipedia: Intelligence cycle):
| Stage | What happens | Security example |
|---|---|---|
| 1. Direction (planning) | A decision-maker states what they need to know | "Which threats are targeting small online shops, and are we exposed?" |
| 2. Collection | Gather data from chosen sources | Logs, reports, public sources (OSINT), feeds, partners |
| 3. Processing | Clean, translate, organize, judge relevance and reliability | Remove duplicates, check dates, discard unreliable items |
| 4. Analysis | Find the meaning, patterns and implications | "This group uses stolen passwords to sign in; our shop has no MFA on admin accounts" |
| 5. Dissemination | Deliver the product to those who need it, in a form they can use | A one-page brief for management; a list of detections for the SOC |
| 6. Feedback | Users say whether it helped, and new requirements are set | "We also need to know about suppliers" |
The cycle is a loop: feedback becomes the next direction. The most common failure is starting at collection without a clear question, which produces piles of data and no answer.
6. Where threat intelligence comes from
| Source type | Examples |
|---|---|
| Internal | Your own logs and alerts. NIST lists router, firewall, Wi-Fi, remote-access and DHCP logs among the internal sources an organization should inventory, since they hold IP addresses, domain names, timestamps and ports |
| Open sources (OSINT) | Public websites, reports, social media, technical databases (Part 2) |
| Government | Advisories and alerts. The CISA Known Exploited Vulnerabilities catalogue is "the authoritative source of vulnerabilities that have been exploited in the wild" |
| Information sharing communities | ISACs (Information Sharing and Analysis Centers) are sector-based organizations (finance and healthcare are examples) that serve as "a central resource for gathering information on cyber and related threats to critical infrastructure" |
| Commercial providers | Paid feeds and reports |
| Community platforms | Open projects such as MISP, an open-source platform for collecting, storing, distributing and sharing cyber security indicators and threat information |
| Analysis services | VirusTotal checks files, URLs, domains and IPs against "over 70 antivirus scanners and URL/domain blocklisting services" |
Sharing standards
So that tools and organizations can exchange threat information automatically, there are common formats:
- STIX (Structured Threat Information Expression) is "a language and serialization format used to exchange cyber threat intelligence."
- TAXII (Trusted Automated Exchange of Intelligence Information) is "an application layer protocol for the communication of cyber threat information."
Think of STIX as the language and TAXII as the delivery truck. CISA's Automated Indicator Sharing service uses them to exchange indicators in real time between organizations (CISA AIS).
Sharing rules: the Traffic Light Protocol
Shared intelligence is often sensitive. The Traffic Light Protocol (TLP) from FIRST tells the recipient how far they may pass it on. Version 2.0 labels (FIRST):
| Label | Who may receive it |
|---|---|
| TLP:RED | The named recipients only. No further disclosure |
| TLP:AMBER+STRICT | Within the recipient's own organization only |
| TLP:AMBER | The recipient's organization and its clients, on a need-to-know basis |
| TLP:GREEN | Peers and partners within the community, but not through public channels |
| TLP:CLEAR | No limit on disclosure (subject to normal copyright) |
The source is responsible for making sure recipients understand the label, so when you receive labelled information, follow it.
7. Using threat intelligence well
Where it is applied
- Detection: feed indicators into security tools, and write detections for behaviours (TTPs).
- Alert triage: check whether an address or file in an alert is known, to help decide if it is a true or false positive.
- Threat hunting: use known TTPs to search for activity that alerts did not catch.
- Vulnerability priority: vulnerabilities known to be exploited deserve attention first.
- Realistic testing: in the TIBER-EU framework for red team testing, a threat intelligence provider produces a report with realistic attack scenarios, and the red team uses it to run a test that mimics real threat actors (see the red, blue and purple teams post).
Check quality before you act
NIST warns that before acting on threat information, an organization needs "to confirm that the information is correct, that the threat is relevant, and that the risks of using or not using the information... are well understood." Ask of every item:
- Where did it come from? Is the source reliable?
- Is it confirmed by another independent source?
- How old is it? Is it still valid?
- Is it relevant to our systems, sector and technology?
- What is the risk of acting (a false alarm, blocking something legitimate) and the risk of not acting?
Common problems
| Problem | Why it matters |
|---|---|
| Feeds without context | A pile of indicators creates noise and false positives, not insight |
| Stale indicators | Addresses and domains change hands |
| Relevance ignored | A threat to hospitals may not matter to a small shop |
| Over-sharing | NIST notes that sharing security logs or scan results "could expose the protective or detective capabilities of the organization", so use handling rules |
Part 2: OSINT
8. What OSINT is
OSINT stands for Open-Source Intelligence. The US Department of Homeland Security describes it as intelligence derived from publicly available information, collected and disseminated promptly to address specific intelligence needs. NATO describes it as intelligence obtained from publicly available information and other unclassified data with limited public distribution or access (Wikipedia).
Two points matter:
- "Open" means legally and publicly available, not "hacked" or "leaked privately". OSINT does not mean breaking into anything.
- Information only becomes intelligence once it is collected for a purpose, checked and analyzed. A search result is raw material.
How OSINT relates to threat intelligence
OSINT is a way of collecting information. Threat intelligence is a finished product that uses many sources, including OSINT. OSINT can feed the collection stage of the intelligence cycle, but OSINT on its own is not automatically threat intelligence.
Types of open sources
The standard categories are: media (news, radio, TV); the internet (blogs, social media, video platforms); public government data (reports, budgets, websites); professional and academic publications; commercial data (such as satellite imagery); and "grey literature" such as technical reports, patents and newsletters.
9. Why OSINT matters in security
OSINT is used from both sides.
Attackers use it for reconnaissance
In MITRE ATT&CK, Reconnaissance is the first tactic: "The adversary is trying to gather information they can use to plan future operations" (TA0043). Open-source techniques include:
- Search Open Websites/Domains (T1593): social media, search engines, code repositories (T1593).
- Search Open Technical Databases (T1596): passive DNS, WHOIS, digital certificates, CDNs and scan databases (T1596).
- Gathering victim identity, network and organization information (T1589 to T1591) such as email addresses, employee names, domains and business relationships.
Defenders use it to see what attackers can see
If you can find your own exposed information, so can an attacker. Typical defensive uses: discover your external attack surface (domains, subdomains, services reachable from the internet); find leaked credentials or secrets in public code; spot look-alike domains impersonating your brand; learn about new threats from public reports.
MITRE's guidance for these reconnaissance techniques is revealing:
- Public reconnaissance "cannot be easily mitigated with preventive controls" because it happens outside your systems, and it can be very hard to detect because it "may have a very high occurrence and associated false positive rate."
- So the practical defence is reducing what you expose: "avoid publishing sensitive information such as credentials and API keys" to public repositories, and "scan public code repositories for exposed credentials" before committing.
Passive and active
Passive collection uses information already published, without touching the target's systems. Active reconnaissance interacts directly with the target. MITRE defines Active Scanning as probing "victim infrastructure via network traffic, as opposed to other forms of reconnaissance that do not involve direct interaction" (T1595). Active scanning is observable by the target and needs authorization (as the scope and rules of engagement in the red team post explain). OSINT in the strict sense stays passive.
10. Common public sources and what they reveal
| Source | What it gives you | Example use |
|---|---|---|
| Search engines | Pages, documents, mentions | Google supports operators: "exact phrase", site:domain.com, filetype:pdf, -word to exclude, and before: / after: dates. No space after the colon |
| Organization websites, documents and job posts | Products, partners, staff roles, technologies in use | Public files can contain metadata such as author names |
| Social media and professional networks | People, roles, relationships, posts | Understanding who works where (handle with care, see section 13) |
| WHOIS and DNS | Domain registration data; records for the domain; historical (passive) DNS | Who registered a domain, which servers it uses |
| Certificate Transparency logs | Public, "append-only" logs of issued TLS certificates. Used for "domain discovery" and detecting misused certificates (certificate.transparency.dev) | Finding subdomains that have had certificates issued. A search site that uses these logs is crt.sh |
| Internet scan data | Shodan is "a search engine for Internet-connected devices" that collects banner data (service type, version, welcome messages) | Seeing which of your services are exposed and what they say about themselves |
| Code repositories | Public source code | Finding accidentally published passwords, API keys or internal hostnames |
| Web archives | The Internet Archive's Wayback Machine keeps older versions of web pages | Seeing a page that has since been changed or removed |
| Breach notification | Have I Been Pwned lets people check whether their details appear in known data breaches | Checking your organization's email addresses for exposure |
| Reputation services | VirusTotal examines files, URLs, domains and IPs | Checking whether a suspicious link or file is known as malicious |
| Directories of tools | The OSINT Framework is a curated collection of free resources, labelled by whether they need installing (T), Google dorks (D), registration (R) or manual URL editing (M) | Finding a tool for a particular type of search |
| Automation tools | theHarvester gathers hostnames, subdomains, emails and other data from public sources for "the early reconnaissance stage of an authorized security assessment" | Mapping a domain you are authorized to assess. Its authors say to run it only against targets you own or have explicit permission to test |
11. A simple OSINT method
- Define the question. What exactly do you need to know, and why? (This is the direction stage.) A narrow question avoids endless searching.
- Collect passively and record everything. For every finding, note the source, the exact link, and the date and time you saw it. Take screenshots or save archived copies, because pages change or disappear.
- Verify. Open sources can contain deliberately false information. Confirm each important point with at least one independent source, check dates, and ask who published it and why.
- Analyze. Connect the facts. Keep facts (what the sources say) separate from inference (what you think they mean), and say how confident you are.
- Report. Deliver what the decision-maker needs, with sources, in plain language.
- Review. Use feedback to refine the next question.
Questions to ask about any piece of information
| Question | Why |
|---|---|
| Who published it? | Reliability |
| Is it first-hand or repeated from elsewhere? | Many copies of one claim are still one claim |
| When was it published or updated? | Old data may be wrong now |
| Can I confirm it independently? | Protects against false information |
| Could it have been planted? | Open sources can be manipulated |
| Does it answer my question? | Avoids collecting for its own sake |
12. Try it safely
Practise on your own domain, your own accounts, or a domain that is explicitly built for examples. For instance:
whois example.com # registration data for a domain
dig +short NS example.com # which name servers handle the domain
dig +short MX example.com # which mail servers handle the domain
macOS includes whois and dig. On Debian or Ubuntu install them with sudo apt install whois bind9-dnsutils, on Fedora with sudo dnf install whois bind-utils. On Windows, use WSL (see Linux Fundamentals) or an online lookup.
In a browser, using only things you own or are authorized to review:
- Search the Certificate Transparency logs (for example on crt.sh) for your own domain and see which subdomains have had certificates issued.
- Use Google with
site:yourdomain.com filetype:pdfto see which documents of yours are public. - Look at your own pages on the Wayback Machine.
- Check your own email address on Have I Been Pwned.
- Search public code repositories for your own organization's name and look for anything that should not be public.
Each of these shows you what an outsider can learn about you.
13. Legal, ethical and safety rules
"Public" does not mean "anything goes."
| Rule | Why |
|---|---|
| Stay with genuinely public information. Do not log in to accounts that are not yours, bypass paywalls or access controls, or use leaked private data | Accessing systems without permission is illegal, and is hacking rather than OSINT |
| Do not interact deceptively. Do not befriend, message or trick people to get information | That is social engineering, not OSINT, and needs explicit authorization in a security test |
| Collect only what you need, and protect it. Be careful with personal information | Privacy laws apply, and they vary by country and by platform; check the rules and the site's terms before collecting personal data |
| Do not target private individuals. Avoid stalking, doxxing or harassment | It harms real people and may be a crime |
| Do not touch the target's systems without authorization. Active scanning needs written permission and agreed scope | See rules of engagement in the red team post |
| Protect yourself. Keep investigation accounts and devices separate from personal ones, and avoid revealing your identity or interest | Your own safety and the integrity of the work |
| Do not trust, verify. Treat all open information as unverified until checked | Disinformation exists |
| Respect handling labels. Follow TLP markings on shared intelligence | Breaking them damages trust |
Professional standards exist. For example, the Berkeley Protocol on Digital Open Source Investigations, developed by the UC Berkeley Human Rights Center with the UN Human Rights Office, sets out principles for gathering, analyzing and preserving digital open-source information "in a professional, legal and ethical manner," including measures to protect the safety of investigators, witnesses and victims (OHCHR). It was written for human rights and international justice investigations, but its principles apply widely.
14. Common mistakes
| Myth | The facts |
|---|---|
| "Threat intel is a list of bad IPs" | Indicators are one type. Intelligence needs analysis and context |
| "More feeds mean better protection" | Unfiltered feeds create noise and false positives |
| "A hash or IP match is the best detection" | Those are the easiest for an attacker to change (Pyramid of Pain) |
| "OSINT is hacking" | OSINT uses only publicly available information. Breaking in is not OSINT |
| "If it is public, I can do anything with it" | Privacy law, platform rules and ethics still apply |
| "If I found it online, it is true" | Open sources can be wrong or planted. Verify |
| "OSINT is only for attackers" | Defenders use it to find their own exposure |
| "Threat intel is only for large companies" | A small organization benefits too, especially from free sources and relevant, actionable items |
Closing
Threat intelligence turns raw data about threats into something you can act on: information that is analyzed, relevant and in context. OSINT is one way to collect that information, using only what is publicly available.
Keep these points:
- Data is not intelligence. Intelligence is analyzed, relevant and actionable.
- Three levels: tactical (indicators), operational (behaviour and campaigns), strategic (business risk).
- Pyramid of Pain: hashes, IPs and domains are easy to change; behaviour (TTPs) is hard. Prefer lasting detections, and retire stale indicators.
- The intelligence cycle is a loop that starts with a question and ends with feedback.
- OSINT is passive and public. Record sources, verify independently, and separate fact from inference.
- See what attackers see. The best defence against public reconnaissance is exposing less.
- Stay legal and ethical. Public does not mean unrestricted.
If you can take a single piece of news about an attack, say which level of intelligence it supports, what you would collect to confirm it, and what you would change as a result, you have the basics.