Hack Like a Pro: Digital Forensics for the Aspiring Hacker, Part 16 (Extracting EXIF Data from Image Files)

Digital Forensics for the Aspiring Hacker, Part 16 (Extracting EXIF Data from Image Files)

Welcome back, my greenhorn hackers!

In many cases when a computer, phone, or mobile device is seized for evidence, the system will have graphic images that might be used as evidence. Obviously, in some cases these graphic images may be the evidence such as in child pornography cases. In other situations, the graphic images may tell us something about where and when the suspect was somewhere specific.

Most digital devices "stamp" information on these graphic images that can tell us a lot about the who, what, when, and where the pictures were taken. This information is known as EXIF data and can very often be useful to the forensic investigator.


Exchangeable image file format (EXIF) is a standard set by the digital camera industry to identify formats for digital images and sound files. This information includes camera settings, time, date, shutter speed, exposure, whether a flash was used, compression, the name of the camera, and other information critical to viewing and editing the image in image-editing software. This information can also be useful to the forensic investigator.

Originally developed for JPG and JPEG file formats, some other formats use EXIF data as well, but this data is not available for PNG and GIF image file types.

Graphic Image Types

There are numerous graphic formats. These include:

  • PSD
  • JPEG
  • BMP
  • TIFF
  • PNG
  • GIF
  • BPG
  • JFIF
  • and many, many more

There are numerous application that can extract this EXIF data from graphic files. Nearly everyone of the major forensic suites (EnCase, FTK, Oxygen, etc.) has this capability built in. For this lab, we will be using a simple, Windows-based tool called ExifReader (free).

Step 1: Install Exifreader

Once you have downloaded ExifReader, click on the executable and it will open a clean and simple GUI like that below.

Now, simply click on the "Open" button and browse to the pictures on the system or media. JPEG and JPG contain the most information, so let's use those.

Step 2: Open a Picture File

When you open the picture file with ExifReader, it will load the picture into the thumbnail to the left and display the EXIF data to the right down the page.

Note that the picture on the suspect's computer was made with a Samsung phone, Model SCH-I535, and was taken on March 15th, 2014 at 11:04 a.m.

There is numerous other information in the EXIF data, but most is related to the technical specs of the camera and photography. Most of this is of limited value to the forensic investigator.

If the device had GPS enabled when the picture was taken, we would know the exact GPS coordinates of where the picture was taken.

Step 3: Extract EXIF from Another Photo

Let's try another picture. Once again, this will be a JPG file. When we open it, unfortunately the thumbnail does not appear. This happens with more than a few pictures, but the EXIF data is still displayed, even if the thumbnail doesn't.

As you can see below, it tells us that the picture was taken by a Nikon camera, model E3100, on February 18th, 2007

Step 4: Extracting GPS Data

In this picture, we will look to see if we can extract the GPS data for the location of where the picture was taken.

When we extract the EXIF data from this picture, we find out it was taken with an Apple iPhone 4s on August 25th, 2011 at 9:27:36 a.m.

Near the bottom of the EXIF data we can find the GPS information, expressed in latitude and longitude, as this Apple iPhone had location services enabled. We can now take this data from the EXIF and put it into Google Maps or other mapping application to find the exact location where this picture was taken.

Google Maps reveals that this suspect took this picture in Yosemite National Park in California, USA.

When forensic investigators have graphic image files to work with, very often they can find useful information about the file and the suspect in the EXIF data. This information includes the camera manufacturer and type, the time the photo was taken, and maybe even the location where the photo was taken, all potentially useful information in a digital forensic investigation.

Keep coming back, my greenhorn hackers, as we explore digital forensics to keep you safe!

Just updated your iPhone? You'll find new features for Podcasts, News, Books, and TV, as well as important security improvements and fresh wallpapers. Find out what's new and changed on your iPhone with the iOS 17.5 update.


Forensic is a valuable skill that every hacker should acquire it, thanks for your hard work OTW.

Thanks Towy! I'm glad you appreciate this series.

When i first came on null-byte my first stop was on the forensics section.

Question. I have strong suspicion my boss has been remotely hacking into my Macbook air laptop. I am on his wi-fi and i discover the program VM Fusion running on my computer after lunch. Is this possible? Could he extract incriminating evidence from my laptop? Is there ANY forensic evidence i could use against this as proof?

Thanks a lot OTW. I have one question not completely pertaining to this subject.

If microsoft knows about Veil-Evasion and its payloads, even detectable by AV's such as McAfee, why don't they incorporate it into windows defender?


Anon_HQ6 (Had to use two underscores because of italics --)

Also, thanks for the Awesome article


thank you it is great

thanks OTW for this awesome series.

Can you please upload a series about networking fundamental skill , intermediate skills and intangible skills. I know there is another series but sorry to say that one is not completed.

Share Your Thoughts

  • Hot
  • Latest