Hyrje
File carving is the technique of reconstructing files directly from raw disk sectors, ignoring file-system metadata.
Teoria
When a file is deleted on most file systems, the data blocks are marked as free but not immediately overwritten. A simple delete followed by imaging the disk is enough to recover a lot of content — scalpel, foremost and photorec all scan the image for file signatures (magic bytes) at the start of each cluster and reconstruct files whose sectors are still sequentially stored. Modern file systems and SSDs with TRIM make this harder because the drive actively erases freed blocks.
Fragmented files are harder because the carver does not know the order of clusters. Advanced carvers like bulk_extractor perform entropy analysis and reconstruct JPEGs and PDFs even with mild fragmentation. For databases and virtual machine disk images embedded inside a larger image, nested carving may be needed to pull out individual records.
In practice, full carving of a modern 1 TB drive can take hours and produce gigabytes of false positives. Experienced analysts carve selectively — targeting a specific file type, a particular time range, or a cluster of unallocated space near a known indicator of compromise — rather than carving the entire image. It is a slow, careful process that often yields the decisive artifact in an investigation.
Mjetet
Mjete:
- PhotoRec / TestDisk — carving + partition recovery.
- Scalpel, Foremost — file carving klasik.
- bulk_extractor — ekstraktim i artefakteve (email, URL, kredit karta).
Praktika
File carving nga një imazh:
mkdir out
photorec /cmd disk.img fileopt,everything,enable,search
foremost -i disk.img -o out/ Ushtrime
- Fshi 10 fotografi nga një USB, riformato, dhe pastaj provo t'i rikuperosh me PhotoRec.
- Shpjego kufizimet e carving-ut në file-a të fragmentuar.
Burime
- Forensics Wiki — File Carving.
- bulk_extractor GitHub.
Vlerësimet dhe komentet
Kyçu për të lënë një vlerësim.
Ende pa komente. Bëhu i pari!
Diskutime
Ende pa diskutime. Hap një temë të re