Bunker LabsResearch facility

  • 11 divisions
  • 55 experiments
  • 8 working
  • 0 validated
  • 0 archived

BL-01-05 Research dossier · Division 01, Digital Intelligence

Embedded data discovery

  • Stage 3 Experimental implementation
  • Version 0.2
  • Updated

Open File Carver Working, experimental, not validated.

Lifecycle: stage 3 of 6

  1. 1 Research concept (passed)
  2. 2 Proof of concept (passed)
  3. 3 Experimental implementation (current stage)
  4. 4 Public testing (not reached)
  5. 5 Validation and optimization (not reached)
  6. 6 Graduation or archival (not reached)

Dossier

Purpose
Find data tucked inside a file. First, files of known formats embedded anywhere in it, each checked and ready to save (the File Carver, working now). Then what is not a known format: appended blocks, unreferenced regions and payloads past the logical end.
The finish line
Find everything the established desktop forensic tools find (binwalk for firmware, PhotoRec and foremost for recovery, bulk_extractor for data inside data, the usual steganalysis tools), in a browser, on files of many gigabytes, with nothing uploaded, and prove it on the public forensic test sets investigators use.
Road to the limit
  1. 1Known files DoneSignature carving of 17 kinds of file, each checked as far as its format allows and ready to save.
  2. 2What the file does not account for DoneParse the file's own structure and mark every byte it explains; the leftovers are the finds (data after a JPEG's end marker, a PNG's IEND or a PDF's %%EOF, a ZIP's trailing bytes, a program's overlay, gaps between boxes). Shown as a byte map of the whole file.
  3. 3Islands NextAn entropy graph of the whole file and randomness tests: encrypted or compressed islands in ordinary data, text inside binaries, Base64 blobs inside text files, decoded and scanned again; compressed told apart from encrypted.
  4. 4Inside the layers PlannedUnpack as it goes (ZIP, gzip, PDF streams, Office, e-mail) and scan inside, shown as a tree; polyglots (one file that is validly two formats).
  5. 5Every format PlannedThe byte map driven by File Inspector's hundreds of format parsers, so any format the site understands can show what it does not account for.
  6. 6Earlier versions PlannedWhat people think they deleted: earlier revisions inside PDFs, Office tracked changes, hidden text and comments, old fast-saved Word content, camera maker notes.
  7. 7Firmware PlannedRouter and camera firmware: SquashFS, CramFS, uImage, LZMA, XZ, zstd and device trees, unpacked into browsable file systems.
  8. 8Disk images and deleted files PlannedRecovery from FAT, NTFS, ext4, ISO and raw images: unallocated space, file slack, and fragmented files put back together.
  9. 9Hidden in plain sight PlannedSteganography detection: pixel low bits, JPEG coefficient tricks, audio echo hiding, zero-width and whitespace text, look-alike letters (with BL-07-01).
  10. 10What is leaking PlannedA sweep of any file or image for e-mail addresses, URLs, GPS positions, card-like numbers, keys and tokens: what a file gives away, for checking your own.
  11. 11Speed PlannedEvery CPU core and the graphics card (BL-06-01) for scans at gigabytes a second; 100 GB images streamed in slices.
  12. 12Proof PlannedHead to head with binwalk, PhotoRec, foremost and bulk_extractor on the DFRWS carving challenges and NIST CFReDS images, in four browsers, with found, missed and false finds published. This earns "validated".
  13. 13Graduation PlannedA flagship tool, and "contains hidden files" shown by UB Intelligence when a file is dropped.
Methodology
  1. Built (File Carver): read the file in 8 MB slices in a Web Worker, never whole, and look for the signatures of 17 kinds of file: ZIP (and the Office, Java, Android and EPUB files built on it), PNG, JPEG, GIF, BMP, PDF, gzip, 7-Zip, RAR 4 and 5, MP3 (ID3) and other MPEG audio, RIFF (WAV, AVI, WebP), Ogg, ISO media (MP4, MOV, HEIF, AVIF), ELF and Windows PE programs, and SQLite.
  2. Built: check every hit as far as its format allows, and drop the ones that fail: every PNG chunk CRC, ZIP local headers against the central directory, JPEG markers from SOI to EOI, gzip inflated with the site’s own decompressor (from Bunker X-Ray) and its CRC compared, 7-Zip and RAR header CRCs, Ogg page CRCs, RIFF and MP4 structure walked to the end. Each find gets one of three results (checked, damaged or cut, header only) with the reason, and can be saved: its bytes are cut out of the file in the browser.
  3. Built (phase 2, the byte map): every find stops at its format’s own end, so the union of the finds is what is accounted for; every region nothing accounts for (before, between and after the finds) is listed, and the known hiding places inside five formats are walked: space no ZIP entry or directory record points to and the ZIP comment, gaps between a Windows program’s sections, the space between a BMP’s header and its pixels (and after them, inside its stated size), private PNG chunks (well-known ones such as C2PA Content Credentials are named) and MP4 free/skip boxes. Each region gets its entropy, printable and zero shares, a best guess (text, padding, compressed or encrypted, binary) and its first bytes, and can be saved; the page draws it all as a coloured bar.
  4. Check (built in): a test file made in the browser with known files at known offsets, scanned in small slices; and seven small files with data planted at known places (appended to a PNG, a private PNG chunk, between two ZIP entries, between a BMP header and its pixels, after a program’s last section, in an MP4 free box) plus a clean PNG that must show nothing. Planned (phase 12): real sample sets with planted data, counting found, missed and false finds.
Browser
A current browser with Web Workers (all current desktop and mobile browsers).
Hardware
Any. Memory use stays around one 8 MB slice plus what a single check needs (at most 32 MB for gzip).
Known limitations
  • The byte map walks the inside of five formats so far (ZIP, Windows programs, BMP, PNG, MP4); for the others only data before, between and after the finds is seen. Data hidden inside fields a format allows (metadata, comments, unused bits) is for later phases.
  • Nothing is unpacked: a file stored compressed inside a ZIP, a PDF stream or a gzip stream cannot be seen. Bunker X-Ray unpacks layers; this page only finds what is stored as it is.
  • Formats with no end marker or checksum can only be sized from their headers (“header only”). Data appended after a Windows program’s last section is not counted as part of it.
  • Short signatures (MZ, BM, MPEG frame headers) turn up by chance in ordinary data. Strict checks drop those hits, but a rare false find is possible, and a clean result does not prove that nothing is hidden.
  • Data hidden in the least significant bits of pixels or samples is a different problem; see BL-07-01.
The honest walls
  • Well-encrypted data looks exactly like random bytes: the page can say a region is indistinguishable from encrypted data, never that it is hidden data.
  • Steganography detection is a probability, not proof; a clean result never proves a file is clean.
  • A browser cannot hold a 100 GB image in memory; reading in slices gets around that, at the cost of some checks that need random access across the whole image.
Resource usage
Measured on the developer’s PC in Microsoft Edge (2026-11-30): about 180 to 220 MB a second (a 291 MB file in 1.3 s, a 30.7 MB file in 0.2 s). Memory: one 8 MB slice, a 256 KB read window for the checks, and up to 32 MB more while a gzip stream is inflated.
Validation
Not validated yet. The built-in Check passed on 2026-11-30, in Microsoft Edge on the developer’s Windows PC: a 61.3 KB test file made in the browser, holding 17 files of different kinds plus a PNG stored inside its ZIP, was scanned in 4 KB slices. All 18 were found at their exact offsets and sizes with byte-identical content, the PNG was reported inside the ZIP, and nothing else was found. It was also run on real files: 291 MB of random bytes with one PNG planted near the end (only that PNG was found; 40 chance signature hits were rejected), an Android package, a Word document and a 30.7 MB WebAssembly file. It has not yet been tested on a set of real files with planted data, or in other browsers.
Where data is processed
In your browser. The file is read on your device, in slices, and never uploaded; a saved find is cut out of it in the browser. Nothing is stored.

Journal

  1. v0.2, phase 2 of the road to the limit: the byte map. Every byte now has an owner (the file itself, an embedded file, padding, or nothing), with the hiding places inside ZIP, Windows programs, BMP, PNG and MP4 walked. Check extended with seven planted-data files and a clean control: all found exactly. On a real image it found 23.1 KB of C2PA Content Credentials in a PNG chunk. The ZIP check now follows the central directory past gaps between entries, as archive programs do.

  2. File Carver v0.1 built: a sliced scan in a Web Worker for 17 kinds of embedded file, a format check for every hit, saving of any find, and a built-in Check with a test file made in the browser.

Builds on

Existing tools this project starts from. They are foundations, not the experiment.