Location, media and metadata · Lesson 3 of 4
Media provenance: camera, screenshot, received, edited or generated
11 min read
Finding a picture on a phone is easy. The harder question is how it got there: was it taken with this phone's camera, captured from the screen, received from someone else, edited, or generated by software? The answer often decides a case, because a camera original places the device at the scene of capture, while a received copy only shows that someone sent it. This lesson shows how to collect provenance indicators from the file, the media database and the file system, how messaging apps change the media they carry, and what Content Credentials and AI watermarks can and cannot tell you. It builds on lesson 6.2.
Provenance as competing hypotheses
No single field proves where an image came from. Metadata can be stripped, rewritten or copied, and databases record what the operating system was told. Work instead with competing hypotheses, as introduced in lesson 1.1, and ask which one the combined indicators support. For most items there are five candidates:
- Camera original. Captured by a camera app on this device.
- Screen capture. A screenshot or screen recording made on this device.
- Received or imported. Arrived through a messaging app, browser download, AirDrop, Nearby Share, cloud sync or a computer.
- Edited. Any of the above, changed afterward by the Photos app, a gallery app or a third-party editor.
- Generated or AI-modified. Created by an image generator, or altered with generative tools.
The categories combine: a received image can be edited, and an AI-edited photo started as a camera original. A photo of a computer screen is a camera original, not a screenshot, and the difference matters in the course case.
Indicators in the file
EXIF and file structure
Camera originals carry a rich, consistent set of metadata. An iPhone photo typically has Make (Apple), Model (such as iPhone 14), Software (the iOS version), LensModel, exposure and focal length values, Apple maker notes and, if the Camera app had location permission, GPS tags. Its pixel dimensions match a camera mode, such as 4032 × 3024 for a standard 12-megapixel photo, and it is HEIC or JPEG depending on the Formats setting.
Screen captures look different. On iOS, screenshots are saved as PNG by default, with no camera fields, no GPS and pixel dimensions equal to the screen resolution: 1170 × 2532 on an iPhone 14. iOS 26 added an optional HDR format for screen captures (Settings › General › Screen Capture). HDR screenshots are saved as HEIF files with the .HEIC extension, still at screen resolution and without camera fields, so do not rely on the extension alone. Android screenshots are PNG or JPEG depending on the manufacturer, also without camera fields.
Received images usually carry little or nothing. Most messaging apps re-encode photos before sending: they resize the image, compress it again and drop most metadata. A 2023 study of messaging apps found, for example, that a 4032 × 3024 photo sent with WhatsApp's default quality arrived as 1600 × 1200 on both Android and iOS. Telegram and Signal produced other characteristic sizes, and options such as high-quality or original-size sending changed the result. Apps change these settings over time, so test the version in your case. Sending a picture as a document usually transfers the original file unchanged.
Edited images often carry a Software field naming the editor, XMP history, or dimensions no camera mode produces.
File names and folders
File names are weak indicators on their own but useful in combination:
- iOS names camera photos, screenshots and saved images alike with the IMG_nnnn pattern in DCIM/100APPLE, so the name does not distinguish them. The name an item had before import may survive in ZADDITIONALASSETATTRIBUTES.ZORIGINALFILENAME.
- Samsung camera photos are typically named by local capture time, such as 20260310_143207.jpg in DCIM/Camera; screenshots go to DCIM/Screenshots with names beginning Screenshot_ that include the date, time and often the app shown on screen.
- WhatsApp on current Android versions stores received images under /data/media/0/Android/media/com.whatsapp/WhatsApp/Media/WhatsApp Images/ with names such as IMG-20260311-WA0003.jpg, and copies of sent images in a Sent subfolder; older versions used /sdcard/WhatsApp/Media/. Research on WhatsApp stickers, which use the same IMG-style pattern with an STK prefix, found that the date is the day of receipt by the device clock and the number is a daily counter. Treat the same reading of image names as a working assumption to test.
Patterns differ between manufacturers and app versions; confirm them on a test device with the same software.
Indicators in the media database
Photos.sqlite on iOS
Photos.sqlite records how each asset entered the library. The value meanings below come from community testing, mainly the queries Scott Koenig built into iLEAPP; Apple does not document them, and some are still marked as under test. Report the stored value with its source.
| Column | Values seen | What it suggests |
|---|---|---|
| ZASSET.ZKINDSUBTYPE | 0 still photo, 2 Live Photo, 10 screenshot, 103 screen recording | Capture type |
| ZASSET.ZISDETECTEDSCREENSHOT | 1 detected screenshot (under test) | Capture type |
| ZADDITIONALASSETATTRIBUTES.ZIMPORTEDBY | 1 native back camera, 2 native front camera, 3 or 6 third-party app, 9 native app | Source of import |
| ZADDITIONALASSETATTRIBUTES.ZIMPORTEDBYBUNDLEIDENTIFIER and ZIMPORTEDBYDISPLAYNAME | An app's bundle identifier and name | Which app saved it |
| ZADDITIONALASSETATTRIBUTES.ZDATECREATEDSOURCE | 1 local asset with EXIF, 3 local asset without EXIF | Origin of the creation date |
| ZEXTENDEDATTRIBUTES.ZCAMERAMAKE, ZCAMERAMODEL | Copied from EXIF | Capture device |
| ZEXTENDEDATTRIBUTES.ZGENERATIVEAITYPE | iOS 18 and later; community working labels, still under test: 1 Image Playground, 2 Clean Up in Photos | Possible Apple Intelligence involvement, to be tested |
A photo saved from a messaging app on iOS typically shows a third-party ZIMPORTEDBY value and that app's bundle identifier, such as net.whatsapp.WhatsApp, and no camera make or model, because the app removed them before sending. A camera original shows the native camera value and camera make and model.
MediaStore on Android
In MediaStore's files table, owner_package_name names the app that contributed the item: the camera app for camera originals, a system package for screenshots, and the messaging app for media it wrote. The column may be empty when ownership cannot be determined, and a gallery rescan or a restore can change it. relative_path shows the folder, and a missing datetaken can indicate that the file carried no capture time of its own.
Messaging apps break the hash chain
Because messaging apps re-encode media, the copy a recipient holds will almost never have the same hash as the sender's original. Do not report "no match" on that basis. Instead:
- Compare the transmitted files. Messaging databases often store a hash of the file that was actually sent; WhatsApp on Android, for example, keeps a Base64-encoded SHA-256 media hash in msgstore.db (lesson 5.2). The sender's outgoing copy and the recipient's received copy can match each other even when neither matches the camera original.
- Compare content. Visual comparison and perceptual hashes, which measure image similarity rather than exact bytes, can link a re-encoded copy to its original. Report them as similarity, not identity.
- Compare context. Message timestamps, captions and thumbnails in the chat database connect a file to a conversation.
Content Credentials and AI indicators
C2PA Content Credentials
The Coalition for Content Provenance and Authenticity (C2PA) publishes an open standard, marketed as Content Credentials, for attaching signed provenance data to media. The specification is revised regularly (version 2.2 appeared in May 2025 and later versions have followed), so cite the version you relied on. A C2PA manifest, stored in a JUMBF container inside the file, holds assertions about how the asset was created and edited, a cryptographic hash binding them to the content, and a signature from the device or software that made them. Validation checks the signature, the certificate chain and whether the content still matches the hash. The open-source c2patool reads and validates manifests.
Phone adoption is recent and uneven. Google's Pixel 10 phones attach Content Credentials to every JPEG photo taken with Pixel Camera. They sign them with per-image keys held in the phone's secure hardware and time-stamp them on the device, and Google Photos adds credentials when such images are edited. Samsung introduced Content Credentials with the Galaxy S25 and later extended them, through a Gallery update, to older Galaxy devices running One UI 7 or later. They are attached to images created or edited with Galaxy AI tools, not to every photo.
Read the results carefully:
- A valid manifest shows who signed the claims and that the content has not changed since signing. It does not show that the scene is real or that the signer's statements are true; the specification itself avoids judging whether provenance data is "good" or "bad".
- A manifest that fails validation shows only that one of the checks failed. The cause may be a change to the content after signing, perhaps an innocent one, or a problem with the signing credential: not on the validator's trust list, expired or revoked. Report the exact status codes the validator returned and the trust list it used.
- A missing manifest usually proves nothing, because most messaging apps, screenshots and devices strip or never write one. It becomes informative only where one would be expected, for example on a file presented as an unmodified camera original from a device and app version that always sign their captures.
Other AI indicators
- IPTC Digital Source Type. The IPTC metadata standard defines values such as trainedAlgorithmicMedia for AI-generated content and compositeSynthetic for images that combine AI and camera elements, written in XMP or in a C2PA manifest.
- Apple Intelligence. Clean Up in Photos has been reported to write "Modified with Clean Up" to the EXIF credit field since iOS 18.1. Starting with iOS 27.2, Apple adds an invisible SynthID watermark to images created or edited with Clean Up, Extend, Spatial Reframing, Image Playground and Image Wand; images edited earlier do not carry it unless edited again.
- Watermark detectors such as Google's SynthID detector return a probabilistic result. Treat it as one indicator and report its tool, version and output exactly.
Re-encoding or a screenshot removes all of these, so their absence does not show that an image is camera-made. For deeper authentication work, SWGDE's Best Practices for Image Authentication (18-I-001) describes structured analysis, independent review and the need to avoid overstating results.
Applying this to the Corvane case
The three images in Lena's Photos.sqlite have ZKINDSUBTYPE 0, ZIMPORTEDBY 1 (native back camera), make Apple and model iPhone 14, HEIC format at 4032 × 3024, and GPS tags near the office. Their content shows a laptop screen at an angle, with a visible bezel and moiré patterns. Every indicator supports the hypothesis that they are camera originals taken with this phone, photographing a screen, and none supports a screenshot, which would be a PNG at 1170 × 2532 with ZKINDSUBTYPE 10.
The three images on Victor's Galaxy phone are JPEGs at 1600 × 1200 with no camera make or model and no GPS, named IMG-20260311-WA0001.jpg to IMG-20260311-WA0003.jpg in the WhatsApp Images folder, with owner_package_name com.whatsapp. This is what images received through WhatsApp at its default quality look like, and not what camera originals or screenshots from this phone look like. WhatsApp itself writes received images to this folder, where the gallery displays them, so these records show a download by the app, not a deliberate save by Victor.
Their hashes differ from Lena's originals. Three things can link the received copies to the files Lena sent: the media hash in Victor's msgstore.db, which ties each file on his phone to its message row; the message ID in the one row recovered on Lena's phone, which is compared with the key_id on Victor's (lessons 5.2 and 5.5); and a visual comparison with her camera originals. The recovered row gives a media reference, not a hash, so no media hashes are compared between the two phones. Only the first image has a recovered record on the iPhone; for the other two the link rests on content and context, and the report says so.
Exam focus: Be able to list the file, database and file system indicators that separate camera originals, screenshots, received media, edited images and AI-generated content, and explain why one indicator is never enough. Know that messaging apps re-encode media and break hash matching, and what a valid, failed or missing C2PA manifest does and does not show.
Practice questions
Check your understanding. These questions do not count towards the exam.
Sign in to save your progress and continue where you left off. It is free. Sign in