Please enable JavaScript to use CodeHS

$ case open --topic osint

What Is OSINT?Open-source intelligence explained

OSINT means finding answers in information that anyone can see: websites, maps, news, and public posts. One clue alone says very little. Put a few together and they can reveal a lot. Learn how investigators think, practice on a fictional case, and then check what your own posts give away.

Cybersecurity ~12 min Middle / High school
The basics

What is OSINT?

OSINT stands for open-source intelligence. It means answering a question by collecting and studying information that anyone can legally find. In simple terms, OSINT is detective work using public clues.

The word "intelligence" here does not mean being smart. It means useful information that helps someone make a decision. And "open source" does not mean open-source software. It means the source is open: public, free to look at, and not secret.

Public sources include things like:

  • news articles
  • public social posts
  • photos and videos
  • maps and street views
  • company websites
  • public records
  • search engines
  • online forums

Think of it like a jigsaw puzzle where the pieces are scattered all over the internet. No single piece shows the picture. An OSINT investigator finds the pieces, checks that they are real, and fits them together.

OSINT is not hacking. It never means breaking into accounts, guessing passwords, or tricking someone into sharing private information. If you need to break a rule or a lock to see something, it is not open source, and it is not OSINT.

OSINT started long before the internet. During World War II, the United States set up teams to study foreign radio broadcasts and newspapers for useful clues. Today the same idea works on a much bigger scale, because people and companies share so much online.


Good guys

Who uses OSINT ethically?

Lots of people use OSINT to do real good. Here are four common groups.

Journalists and fact-checkers

When a photo goes viral, they check if it is real. They match buildings, signs, and shadows to maps to find where and when it was taken. Groups like Bellingcat are well known for this kind of work.

// verify the story

Security defenders

Before an attacker can study a company, its own security team does it first. They look for leaked passwords, staff details that could be used in a scam, and forgotten websites, then fix the problems.

// find holes first

Investigators

Police, lawyers, and fraud teams use public information to research scams and crimes. Volunteers in some events even help search for missing people using only public clues, under strict rules.

// follow the evidence

CTF players

In capture the flag (CTF) contests, students solve puzzles built for practice. An OSINT challenge might ask, "What city was this made-up photo taken in?" The answer is the flag.

// learn safely

Notice what these groups have in common. They have a clear, fair reason. They follow rules. And they protect people instead of hurting them. Sadly, attackers use the same skills too. Scammers research their targets before sending a fake message. That kind of trick is called social engineering, and OSINT is often its first step. Learning how OSINT works is the best way to defend against it.


Try it

How small clues add up

The most important idea in OSINT is aggregation. That means combining small pieces of information until they point to something bigger. A sports jersey tells you almost nothing. A jersey plus a town landmark plus a school hashtag can tell you exactly where someone goes to school.

Below is a post from Skye Marlowe, a made-up student from a made-up town. Click each suspicious detail in the photo, the caption, and the timestamp. Watch the red strings connect clues to conclusions. There are six clues to find.

investigation_board.case 0/6 clues · 0/4 facts
Practice only: Skye, Port Alder, and every detail here are fictional. Never do this to a real person.
skye.m_12Public account
PORT ALDER BUS OTTERS 12

Happy 3rd birthday to my best bud !! Party hat stayed on for 2 whole seconds. Gotta catch the bus now

214 likes
Fact 1 · Town? ? ?The water tower has the town's name painted on it. Landmarks like this are classic location clues.
Fact 2 · School? ? ?"Otters" sounds like a team name, and #PAMSspirit looks like a school hashtag. P-A-M-S in Port Alder? Probably Port Alder Middle School.
Fact 3 · Pet's name? ? ?"What was your first pet's name?" is a common security question. Now a stranger knows the answer.
Fact 4 · Routine? ? ?A backpack, a bus stop, and a Monday 7:41 AM timestamp hint at when Skye leaves home on school days.
> case loaded. click a detail to log it as a clue.

Case closed. One happy birthday post revealed Skye's town, school, pet's name, and morning routine. None of it seemed private on its own. How could Skye share the same moment more safely?

  • Make the account private, so only real friends see posts.
  • Crop or blur landmarks, school logos, and jersey names.
  • Post after the event instead of live, and skip routine details like "catching the bus."
  • Never use a pet's name, or anything else you post, as a password or security answer.

Each clue was harmless alone. Together, they created a map to Skye's life. This is why people who stalk or dox others love "boring" posts. Photos can also hide extra data. A file can carry metadata, which is information about the file, like the time it was taken and sometimes GPS location. Many big social apps remove this when you post, but not every app or sharing method does. Learn more in What Your Photos Reveal.


The process

The OSINT cycle

Good investigators do not just search randomly. They follow a loop called the intelligence cycle. Different books name the steps a little differently, but the idea is the same: plan, gather, organize, think, and report. Then the answers lead to new questions, and the loop starts again.

Step through the cycle below. The example follows a CTF player solving a practice challenge.

osint_cycle.sh
the OSINT cycle


                    

The most skipped step is checking. The internet is full of fake photos, old posts shared as new, and accounts pretending to be someone else. A real investigator tries to confirm each clue with a second, separate source before trusting it.


Read this twice

Ethics and the law

Just because information is public does not mean it is okay to use it any way you want. Ethics are the rules about what is right and fair. In OSINT, ethics matter as much as skill. These rules are not optional:

  1. Never stalk, dox, or harass anyone.Tracking a person, posting their private details, or using clues to scare them can cause real harm. It can also be a crime.
  2. Only practice on targets built for practice.Use CTF challenges, fictional cases like Skye's, or your own accounts. Not classmates, teachers, celebrities, or strangers.
  3. Never cross from looking into breaking in.Guessing passwords, using leaked logins, or getting into accounts is not OSINT. In the United States, laws like the Computer Fraud and Abuse Act make unauthorized access a crime, and many countries have similar laws.
  4. Don't trick people.Making fake accounts to befriend someone or messaging them to pull out information is social engineering, not research.
  5. If you find something worrying, tell a trusted adult.Don't investigate on your own. Report threats or dangerous situations to a parent, teacher, the platform, or the police.

Okay

  • Solving an OSINT CTF challenge
  • Checking if a viral photo is real
  • Searching your own name to clean up
  • Researching a company for a school report

Not okay

  • Finding where a classmate lives
  • Unmasking an anonymous account for fun
  • Posting someone's school or address
  • Guessing a friend's security answers

Defense

Audit your own footprint

Your digital footprint is the trail of information you leave online. The best way to use OSINT skills is on yourself. Look at your accounts the way a stranger would, then close the gaps.

Check every statement that is true for you. Nothing you check is saved or sent anywhere. The score is a rough, made-up guide to help you decide what to fix first, not a real measurement.

footprint_audit.txt

    Exposure level

    Low

    0 of 10 risks checked

      A 10-minute self-check

      • Search yourself. Look up your full name, your usernames, and your name plus your town. Use a private browser window so results are not personalized.
      • Check privacy settings on every app. Who can see your posts, your friends list, and your tagged photos?
      • Scrub your bio. Remove your school, grade, city, and birthday.
      • Look at photos before posting. Scan the background for street signs, house numbers, school logos, and name tags.
      • Delete old accounts you no longer use. They still share whatever you posted years ago.

      Level up

      Practice the right way: OSINT CTFs

      If this kind of puzzle is fun for you, try an OSINT CTF. In a capture the flag competition, each challenge hides an answer called a flag. In the OSINT category, you might be asked to:

      • Name the city in a photo by matching a landmark on a map.
      • Find the date a fictional company's website changed.
      • Follow a made-up character's username across a few fake profiles.
      • Figure out which direction the sun was shining from to estimate the time of day.

      These challenges are built for practice, so the "targets" are fictional or agree to be part of it. Many student contests, like picoCTF, include beginner-friendly puzzles. Always read the rules first. Most say exactly what you may and may not search.

      OSINT skills also lead to real jobs. Threat intelligence analysts, security researchers, fraud investigators, and fact-checking journalists all use them every day. Explore more paths in Cybersecurity Careers. Underneath these jobs are computer science skills: knowing how the web works, how data is stored, and even how to write small programs that sort through lots of information quickly.

      Beginner skill to build today: look at any photo and list ten details in the background. Then ask, "What could each one tell a stranger?" That habit makes you a better investigator and a safer poster.


      Glossary

      Key terms

      OSINT
      Open-source intelligence: answers found by collecting and studying public information.
      Open source
      In OSINT, a source that is public and legal to view. Not the same as open-source software.
      Aggregation
      Combining many small clues until they reveal something bigger.
      Intelligence cycle
      The loop of planning, collecting, processing, analyzing, and reporting.
      Metadata
      Data about a file, like when a photo was taken or the location where it was taken.
      Geolocation
      Figuring out where a photo or video was taken from clues in it.
      Verification
      Checking that a clue is real, usually by finding a second, separate source.
      Doxxing
      Posting someone's private details, like their address, to expose or harm them.
      Digital footprint
      The trail of information you leave online.
      CTF / flag
      Capture the flag: a security contest where each puzzle hides an answer called a flag.

      FAQ

      Quick answers

      What is OSINT?

      OSINT stands for open-source intelligence. It means answering a question by collecting and analyzing information that anyone can legally find, like websites, news articles, public social media posts, maps, and public records. Open source here means publicly available, not open-source software.

      Is OSINT legal?

      Looking at public information is generally legal, but what you do with it matters. Breaking into accounts, tricking people into giving up information, stalking, harassing, or posting someone's private details (doxxing) can be illegal and is always harmful. Only practice on capture the flag challenges and fictional targets that are made for practice.

      Who uses OSINT?

      Journalists use it to check whether photos and videos are real. Security teams use it to see what attackers could learn about their company. Investigators use it to research fraud and help find missing people. Students and hobbyists practice it in capture the flag (CTF) competitions.

      What is an OSINT CTF?

      An OSINT CTF is a capture the flag challenge where you use public clues to find a hidden answer, called a flag. For example, you might figure out the city in a made-up photo or the name of a fictional company. The targets are built for practice, so you can learn the skills safely and legally.

      How do I start learning OSINT as a beginner?

      Start by practicing careful observation: describe everything in a photo, then ask what each detail could tell you. Learn advanced search tricks, map tools, and how to verify sources. Then try beginner OSINT challenges in student CTF competitions, and only ever investigate targets that are made for practice.

      How can I protect myself from OSINT?

      Search your own name and usernames to see what is public. Make accounts private, remove your school, city, and birthday from public bios, post location tags after you leave instead of live, and do not use your pet's name or other public facts as security answers or passwords.


      Check yourself

      Quick quiz

      1. In "open-source intelligence," what does "open source" mean?

      2. Why can a "boring" post reveal so much?

      3. Which of these is an ethical way to practice OSINT?

      4. In the OSINT cycle, what should you do before trusting a clue?

      Keep learning

      Keep learning

      Think like a defender

      OSINT is one tool in cybersecurity. CodeHS courses teach the whole toolkit, from how the internet moves data to how defenders spot and stop attacks, plus the programming skills that make investigators faster.

      Part of the Cybersecurity Skills and Careers tutorial series.