Git LFS pointers: did you download the asset or its reference?
A downloaded file called survey.png contains three lines of text instead of a picture. Before treating it as a broken image—or as evidence that an image was removed—check whether you received a Git LFS pointer. That small reference and the asset it names are different objects.
For an ordinary LFS pointer, the oid identifies the expected asset content and size gives its byte length. Compare those fields with a separately obtained asset. Hashing the pointer itself gives a fingerprint of the reference, which normally differs from the asset digest written inside it.

Identify what arrived before opening it as an image
Keep the download unchanged and inspect a working copy as plain text. Record the repository, exact revision, file path and download method. A browser file view, a source archive and a checkout can provide different forms of an LFS-tracked file. GitHub allows repository owners to control whether LFS objects are included in generated source archives; a ZIP download alone does not settle which form you received. See GitHub’s explanation of LFS storage and archives.
A familiar filename extension describes what you expected to get. It does not identify the bytes now on disk. Read enough of the file to distinguish a pointer, actual content and a response such as an access-denied message. This inspection does not require running code from the repository.
Read the reference without mistaking it for a download address
The following is a constructed teaching pointer for a tiny CSV payload. It was generated for this exercise; it is not recovered from a real investigation.
version https://git-lfs.github.com/spec/v1
oid sha256:cc917bd3b979ae08ee9a96f1ee89d0ef0082c91730545e436a716ab42b5b1654
size 15
versionnames the pointer format. Its URL is a specification identifier, not the asset’s download location.oid sha256:…supplies the expected content digest. Retain all 64 hexadecimal characters.size 15describes the referenced payload’s length in bytes, not the length of these three lines.
The Git LFS pointer specification defines these fields and permits extension lines. The three-line example is a simple case, not a rule that every valid pointer must have exactly three lines. This guide concerns the ordinary pointer form without extensions that transform content; those require the corresponding LFS handling before interpreting a materialized file.
Two 15-byte downloads, only one matching payload
Imagine that a colleague has sent two candidate files for this pointer. One contains the UTF-8 bytes east-gate,open followed by one LF newline. The other contains Access denied. followed by one LF newline. Both are 15 bytes. The error text is deliberately the same length so that a size-only check will fail to distinguish them.
| Object in this exercise | Bytes | Matches pointer OID? | What you possess |
|---|---|---|---|
| Pointer text | 127 | No | A reference to expected content |
| CSV payload | 15 | Yes | Bytes matching that reference |
| Denial text | 15 | No | A response, not the expected CSV |
We checked these deliberately constructed bytes locally. You can reproduce the two candidate comparisons with Python; this snippet writes no files and makes no network requests:
from hashlib import sha256
payload = b"east-gate,open\n"
denial = b"Access denied.\n"
expected = sha256(payload).hexdigest()
for name, data in [("payload", payload), ("denial", denial)]:
print(name, len(data), sha256(data).hexdigest() == expected)
The output is payload 15 True and denial 15 False. Matching size is a useful preliminary check; the complete digest comparison is the decisive additional check here. A successful comparison ties the acquired bytes to this pointer’s expectation. It does not establish who created the CSV or whether its statement about the gate is true.
Retrieve the referenced revision, then preserve both records
Use the repository’s normal authorized asset download or LFS-enabled retrieval route for the exact revision you recorded. Keep the pointer before replacing anything. A later branch download may refer to a different object, so retain both revision identifiers if you compare versions. If the asset cannot be obtained, describe the failed retrieval and its time; do not change the finding to “the file never existed.”
Make separate entries for the reference and the received object:
| Reference entry | Acquisition entry |
|---|---|
| Repository, revision and path | Download route and collection time |
| Preserved pointer and its own fingerprint | Preserved candidate and its own fingerprint |
| Expected OID and expected byte length | Observed length and full digest comparison |
| What content is being referenced | Matching payload, other response or unresolved |
A useful unresolved finding is: “The reviewed revision contains an LFS pointer for this path. The preserved download is the pointer; the referenced payload has not been acquired.” After a successful comparison, report that the acquired bytes match the pointer instead. Neither result answers authorship.
Before using a repository file in a broader claim, resolve this one acquisition record. The file-integrity guide covers calculating a digest locally; the repository contribution guide addresses the separate question of who is credited with the work.
Author: OSINT Jet · Primary sources reviewed 24 November 2026
