Recovering Deleted and Superseded Data from Raw Flash Filesystems in Embedded and IoT Devices
Consumer devices with flash storage rarely encrypt it, so deleted logs, credentials, and sensorrecords often stay readable long after a user believes they are gone. Flash cannot overwrite a page in place, so adeletion or an edit leaves the old content in an obsolete page until wear leveling and garbage collection reclaim itmuch later. The extraction tools used in firmware analysis rebuild only the live filesystem and discard these obsoleterecords, which is where the deleted history sits. This paper presents Revenant, a forensic tool that recovers deletedand superseded files from raw dumps of five flash filesystems, JFFS2, UBIFS, YAFFS, LittleFS, and SPIFFS, andties each recovered item to the metadata that survives, with a provenance record of its offset, state, confidence, andcryptographic hash. The tool was scored against an exact deletion log on eighty controlled images, forty built by thereference LittleFS implementation and forty more across specification conformant JFFS2 and UBIFS node logs,SPIFFS images from a reference generator, and YAFFS object header logs. It recovered every deleted andsuperseded version that still physically survived on the medium, at every level of later writing from a fresh deletionthrough to eight hundred following operations, while a conventional live extractor recovered none of them on thesame images. Recovered content was byte exact for all 1043 high confidence items, and a recovered path wascorrect in at least 90 percent of the cases where any path had survived. The main constraint is that these recoveryrates rest on controlled benches with synthetic deletion histories, because a real seized device carries no ground truthto measure against, and YAFFS content reassembly is left to later work since it depends on out of band page datathat a plain image may not carry
Authors
- Syed Tayyab Hussain (ORCID: https://orcid.org/0009-0008-4199-1580)
Institutions
- Arden University (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-28
- DOI
- https://doi.org/10.5281/zenodo.24613042
- Primary Topic
- Digital and Cyber Forensics
- Type
- preprint