Photo Metadata: EXIF as a Flag Storage
Photo metadata analysis is the most rewarding vector in CTF OSINT. If a task involves a photograph, the first step is to extract the EXIF data before any other manipulations. According to the CTF OSINT reference (ctf.support): "Before uploading, always check the image locally with exiftool —flags and coordinates are often left in the metadata." It sounds simple, but the number of people who upload photos to Google Lens first and only then think about EXIF is consistently surprising.
Exiftool: Basic CTF Techniques
exiftool is the standard for extracting metadata from images. It reads EXIF, IPTC, XMP, and dozens of other formats from JPEG, PNG, TIFF, and other file types. In the context of OSINT, this is the first tool you should install and learn how to use.
Where exactly are flags hidden in a photo's EXIF data?
EXIF field What are we looking for? Frequency in CTF
Comment / UserComment Direct flag text or tooltip High
ImageDescription Encoded flag (Base64, hex) Average
Artist / Author Username or profile link Average
GPS Position Coordinates of the place whose name is part of the flag High
Software / Creator Tool Hint in the program name Low
XMP-dc
escription Extended metadata, hidden text Average
GPS coordinates and hidden comments
GPS coordinates in EXIF are a classic feature of OSINT photo geolocation tasks. Smartphone cameras record coordinates in metadata by default. In CTFs, organizers either leave the actual coordinates (and the task requires identifying the location) or substitute them—the coordinates lead to an object whose name is part of the answer.
GPS EXIF format - degrees, minutes, seconds (DMS): for example, 55 deg 45' 21.00" N, 37 deg 37' 02.00" ETo work with maps, convert to decimal format and paste into Google Maps. Most online converters do this in a second.
A trap I've fallen into more than once: exiftool shows coordinates, you find a point on the map, write down the city name—and it's the wrong answer. The organizers have swapped the coordinates, pointing to a specific building (museum, monument, bridge), whose name must be used as a key to decipher another part of the task. Always check not just where the point is, but what exactly is located at those coordinates. Zoom in as far as it will go.
Additional reception: team strings challenge_photo.jpgExtracts all text strings from a binary file. Sometimes the flag is not written through standard EXIF fields, but simply as a text string appended to the end of the file. exiftool won't show this, but strings— will show. This is at the intersection of OSINT and forensics, but in CTF, the boundaries between the categories are blurred.
Photo geolocation and reverse image search
Not every CTF photo contains metadata. Social networks like Twitter/X, Facebook, and Instagram remove EXIF data upon upload. If the metadata is empty, proceed to visual analysis and reverse image search.
Reverse image search: three engines, three results
Reverse image search is the process of uploading an image to a search engine to find the original or similar images. Three main engines produce fundamentally different results, and all three should be used:
Engine Strong point When to use
Google Lens Recognition of objects and text on signs First step, universal tool
Yandex Images Facial recognition, CIS and Eastern European content When there are people or Cyrillic characters in the photo
Only one Exact matches, chronology of the image's appearance When you need to find the original source of a publication
A practical tip: don't upload the entire photo. If the image contains a store sign, logo, or distinctive object, crop that portion and search for it separately using Google Lens. According to the CTF OSINT reference: "Isolate distinctive elements (shop signs, building facades) and search via Google Lens for better results than full-scene search." A cropped portion almost always yields more accurate results than a full scene.
Visual cues to determine location
When there are no EXIF or reverse image search matches, visual content analysis remains. A systematic checklist for photo geolocation:
The language on signs and pointers—Cyrillic, Latin, Arabic script—narrows the geography to a region.
Road signs and markings - sign shape, color scheme, direction of vehicle traffic
Architecture – post-Soviet panel houses, European buildings, typical Asian buildings
Vegetation and relief - palm trees limit the choice to the tropics, birches to temperate latitudes
Car license plates - the format of the number clearly identifies the country
The direction of the shadows - combined with the approximate time of shooting helps determine the latitude
To verify coordinates based on shadows, SunCalc is used—it shows the sun's position anywhere in the world for any date and time. In CTFs, this is helpful when photos have long shadows and the EXIF date is present (even if the GPS is removed, the date may remain). For searching by infrastructure elements, OpenRailwayMap is used for railways and OpenInfraMap is used for energy facilities. It sounds exotic, but these resources have saved me more than once in GeoGuessr-like CTF tasks.
Another less obvious trick: if a photo contains reflected or mirrored text (like a sign reflected in a puddle or glass), flip the image horizontally and read the text. Searching for a fragment of text in quotation marks on Google often leads to a specific address.
A step-by-step breakdown: a typical OSINT task from start to flag
Let's look at a specific chain of actions using the example task: "Find the flag associated with user dr4gonfly99." The starting point is just the username.
Step 1: Enter your username. Launch python3 sherlock dr4gonfly99Let's say the results show accounts on GitHub, Reddit, and Steam. We also check with WhatsMyName.app—it also finds Flickr. We open each profile manually, ignoring platforms that Sherlock marks as found but where the profile is actually missing (false positives).
Step 2: Analyze the profiles. The GitHub repository is empty, but the bio contains an email address: [email protected] Reddit, there are two posts in a geographic subreddit. On Steam, there's an avatar with a street photo. On Flickr, there are three photos with descriptions.
Step 3: Check your email. Run it through [email protected] holehe, registration is confirmed on several platforms, including Flickr (already found) and WordPress. Go to WordPress and find a blog with one post that contains a link to a "favorite place."
Step 4: Extract EXIF. Download photos from Flickr and launch exiftool photo.jpgIn the GPS Position field, there are coordinates of Berlin. In the UserComment field, there are flag{0s1nt_m4st3r_2025}.
Step 5: Verify. The coordinates match the geography of the Reddit posts. The flag has been found.
The entire chain: username → GitHub (email) → holehe (WordPress + Flickr) → EXIF (flag + coordinates). Four steps, three tools, zero hacking. This is practical OSINT for CTFs.
Common OSINT Task Traps and How to Avoid Them
While solving OSINT CTF tasks, I've compiled a list of pitfalls I've either fallen into or observed in others:
Substituted metadata. Organizers intentionally insert false GPS coordinates into EXIF files, pointing to the ocean or the North Pole. If the coordinates appear absurd, it's a clue: the real answer lies not in the metadata, but in the visual content of the photo. Sometimes the substitution is more subtle—the coordinates point to a real location, but this isn't the final answer, just an intermediate step.
Dead accounts. The username exists on the platform, but the profile is empty or deleted. Wayback Machine ( web.archive.org) can show a saved copy of the profile before deletion. Google's cache is also worth checking: cache:URL_профиляwill show the last indexed version of the page. Organizers sometimes deliberately delete the profile after creating the task, hoping that the participant will remember to check the archives.
Flag in a non-standard EXIF field. Don't limit yourself to the Comment and GPS fields. Use exiftool -a -u -g1 image.jpg— This command will show absolutely all fields, including unknown and custom ones. The flag can be in Photoshop
ocumentNotes, IPTC:Caption-Abstract, or any custom XMP field.
False positives from automated reporting. Sherlock says "account found," but when you click through, you're presented with a 404 page or someone else's profile with a matching URL pattern. Every link in the automated report should be visually inspected. Relying on green checkmarks in the terminal is a waste of time.
Encoded flags. The flag is in the metadata, but in Base64, hex, or ROT13. A string like ZmxhZ3t0ZXN0fQ==- this is Base64 from flag{test}Learn to recognize encoding formats visually: Base64 contains =At the end, hex consists of the characters 0-9 and af, and ROT13 looks like gibberish text in Latin.
Social media platforms strip EXIF. Twitter/X, Facebook, and Instagram remove metadata when images are uploaded. If an assignment references a photo on a social media platform, search for the original through the Wayback Machine, alternative hosting services, or other platforms that don't remove EXIF (Flickr, Google Photos, direct link).
Attached files. In more complex tasks, a ZIP or other file may be hidden within a JPEG (steganography). This is beyond the scope of pure OSINT and closer to forensics, but a basic check won't hurt. binwalk challenge_photo.jpgwill show if there is anything extra inside.
Three rules that save time:
Always start with EXIF. Even if the task looks like geolocation, first exiftoolFive seconds of verification saves twenty minutes of manual analysis.
Keep notes. Write down every account, email, and lead you find. In a time-limited CTF, it's impossible to return to a missed detail without taking notes.
Run multiple tools in parallel. Sherlock can't find it? Maigret and WhatsMyName can. Google empty? Yandex will show it. One tool is never enough.
Most CTF players I speak with treat OSINT as "easy"—no reverse engineering, no exploit writing. That's a trap. In fact, OSINT tasks take up the most time at competitions. Not because they're technically complex, but because participants approach them without a system. They fire up Sherlock, get twenty results, open each one, get lost in a dozen tabs, and an hour later realize they missed a clue in the very first profile.
Photo metadata analysis is the most rewarding vector in CTF OSINT. If a task involves a photograph, the first step is to extract the EXIF data before any other manipulations. According to the CTF OSINT reference (ctf.support): "Before uploading, always check the image locally with exiftool —flags and coordinates are often left in the metadata." It sounds simple, but the number of people who upload photos to Google Lens first and only then think about EXIF is consistently surprising.
Exiftool: Basic CTF Techniques
exiftool is the standard for extracting metadata from images. It reads EXIF, IPTC, XMP, and dozens of other formats from JPEG, PNG, TIFF, and other file types. In the context of OSINT, this is the first tool you should install and learn how to use.
Where exactly are flags hidden in a photo's EXIF data?
EXIF field What are we looking for? Frequency in CTF
Comment / UserComment Direct flag text or tooltip High
ImageDescription Encoded flag (Base64, hex) Average
Artist / Author Username or profile link Average
GPS Position Coordinates of the place whose name is part of the flag High
Software / Creator Tool Hint in the program name Low
XMP-dc
GPS coordinates and hidden comments
GPS coordinates in EXIF are a classic feature of OSINT photo geolocation tasks. Smartphone cameras record coordinates in metadata by default. In CTFs, organizers either leave the actual coordinates (and the task requires identifying the location) or substitute them—the coordinates lead to an object whose name is part of the answer.
GPS EXIF format - degrees, minutes, seconds (DMS): for example, 55 deg 45' 21.00" N, 37 deg 37' 02.00" ETo work with maps, convert to decimal format and paste into Google Maps. Most online converters do this in a second.
A trap I've fallen into more than once: exiftool shows coordinates, you find a point on the map, write down the city name—and it's the wrong answer. The organizers have swapped the coordinates, pointing to a specific building (museum, monument, bridge), whose name must be used as a key to decipher another part of the task. Always check not just where the point is, but what exactly is located at those coordinates. Zoom in as far as it will go.
Additional reception: team strings challenge_photo.jpgExtracts all text strings from a binary file. Sometimes the flag is not written through standard EXIF fields, but simply as a text string appended to the end of the file. exiftool won't show this, but strings— will show. This is at the intersection of OSINT and forensics, but in CTF, the boundaries between the categories are blurred.
Photo geolocation and reverse image search
Not every CTF photo contains metadata. Social networks like Twitter/X, Facebook, and Instagram remove EXIF data upon upload. If the metadata is empty, proceed to visual analysis and reverse image search.
Reverse image search: three engines, three results
Reverse image search is the process of uploading an image to a search engine to find the original or similar images. Three main engines produce fundamentally different results, and all three should be used:
Engine Strong point When to use
Google Lens Recognition of objects and text on signs First step, universal tool
Yandex Images Facial recognition, CIS and Eastern European content When there are people or Cyrillic characters in the photo
Only one Exact matches, chronology of the image's appearance When you need to find the original source of a publication
A practical tip: don't upload the entire photo. If the image contains a store sign, logo, or distinctive object, crop that portion and search for it separately using Google Lens. According to the CTF OSINT reference: "Isolate distinctive elements (shop signs, building facades) and search via Google Lens for better results than full-scene search." A cropped portion almost always yields more accurate results than a full scene.
Visual cues to determine location
When there are no EXIF or reverse image search matches, visual content analysis remains. A systematic checklist for photo geolocation:
The language on signs and pointers—Cyrillic, Latin, Arabic script—narrows the geography to a region.
Road signs and markings - sign shape, color scheme, direction of vehicle traffic
Architecture – post-Soviet panel houses, European buildings, typical Asian buildings
Vegetation and relief - palm trees limit the choice to the tropics, birches to temperate latitudes
Car license plates - the format of the number clearly identifies the country
The direction of the shadows - combined with the approximate time of shooting helps determine the latitude
To verify coordinates based on shadows, SunCalc is used—it shows the sun's position anywhere in the world for any date and time. In CTFs, this is helpful when photos have long shadows and the EXIF date is present (even if the GPS is removed, the date may remain). For searching by infrastructure elements, OpenRailwayMap is used for railways and OpenInfraMap is used for energy facilities. It sounds exotic, but these resources have saved me more than once in GeoGuessr-like CTF tasks.
Another less obvious trick: if a photo contains reflected or mirrored text (like a sign reflected in a puddle or glass), flip the image horizontally and read the text. Searching for a fragment of text in quotation marks on Google often leads to a specific address.
A step-by-step breakdown: a typical OSINT task from start to flag
Let's look at a specific chain of actions using the example task: "Find the flag associated with user dr4gonfly99." The starting point is just the username.
Step 1: Enter your username. Launch python3 sherlock dr4gonfly99Let's say the results show accounts on GitHub, Reddit, and Steam. We also check with WhatsMyName.app—it also finds Flickr. We open each profile manually, ignoring platforms that Sherlock marks as found but where the profile is actually missing (false positives).
Step 2: Analyze the profiles. The GitHub repository is empty, but the bio contains an email address: [email protected] Reddit, there are two posts in a geographic subreddit. On Steam, there's an avatar with a street photo. On Flickr, there are three photos with descriptions.
Step 3: Check your email. Run it through [email protected] holehe, registration is confirmed on several platforms, including Flickr (already found) and WordPress. Go to WordPress and find a blog with one post that contains a link to a "favorite place."
Step 4: Extract EXIF. Download photos from Flickr and launch exiftool photo.jpgIn the GPS Position field, there are coordinates of Berlin. In the UserComment field, there are flag{0s1nt_m4st3r_2025}.
Step 5: Verify. The coordinates match the geography of the Reddit posts. The flag has been found.
The entire chain: username → GitHub (email) → holehe (WordPress + Flickr) → EXIF (flag + coordinates). Four steps, three tools, zero hacking. This is practical OSINT for CTFs.
Common OSINT Task Traps and How to Avoid Them
While solving OSINT CTF tasks, I've compiled a list of pitfalls I've either fallen into or observed in others:
Substituted metadata. Organizers intentionally insert false GPS coordinates into EXIF files, pointing to the ocean or the North Pole. If the coordinates appear absurd, it's a clue: the real answer lies not in the metadata, but in the visual content of the photo. Sometimes the substitution is more subtle—the coordinates point to a real location, but this isn't the final answer, just an intermediate step.
Dead accounts. The username exists on the platform, but the profile is empty or deleted. Wayback Machine ( web.archive.org) can show a saved copy of the profile before deletion. Google's cache is also worth checking: cache:URL_профиляwill show the last indexed version of the page. Organizers sometimes deliberately delete the profile after creating the task, hoping that the participant will remember to check the archives.
Flag in a non-standard EXIF field. Don't limit yourself to the Comment and GPS fields. Use exiftool -a -u -g1 image.jpg— This command will show absolutely all fields, including unknown and custom ones. The flag can be in Photoshop
False positives from automated reporting. Sherlock says "account found," but when you click through, you're presented with a 404 page or someone else's profile with a matching URL pattern. Every link in the automated report should be visually inspected. Relying on green checkmarks in the terminal is a waste of time.
Encoded flags. The flag is in the metadata, but in Base64, hex, or ROT13. A string like ZmxhZ3t0ZXN0fQ==- this is Base64 from flag{test}Learn to recognize encoding formats visually: Base64 contains =At the end, hex consists of the characters 0-9 and af, and ROT13 looks like gibberish text in Latin.
Social media platforms strip EXIF. Twitter/X, Facebook, and Instagram remove metadata when images are uploaded. If an assignment references a photo on a social media platform, search for the original through the Wayback Machine, alternative hosting services, or other platforms that don't remove EXIF (Flickr, Google Photos, direct link).
Attached files. In more complex tasks, a ZIP or other file may be hidden within a JPEG (steganography). This is beyond the scope of pure OSINT and closer to forensics, but a basic check won't hurt. binwalk challenge_photo.jpgwill show if there is anything extra inside.
Three rules that save time:
Always start with EXIF. Even if the task looks like geolocation, first exiftoolFive seconds of verification saves twenty minutes of manual analysis.
Keep notes. Write down every account, email, and lead you find. In a time-limited CTF, it's impossible to return to a missed detail without taking notes.
Run multiple tools in parallel. Sherlock can't find it? Maigret and WhatsMyName can. Google empty? Yandex will show it. One tool is never enough.
Most CTF players I speak with treat OSINT as "easy"—no reverse engineering, no exploit writing. That's a trap. In fact, OSINT tasks take up the most time at competitions. Not because they're technically complex, but because participants approach them without a system. They fire up Sherlock, get twenty results, open each one, get lost in a dozen tabs, and an hour later realize they missed a clue in the very first profile.