Data carving is a forensic recovery technique that extracts usable files or artefacts from raw storage, memory, or unallocated space when normal file-system records are missing. It relies on known file signatures, structure patterns, and byte boundaries to reconstruct data without needing the original directory entries or metadata.
What Data Carving Does
Data carving is a recovery method used when the file system can no longer tell you what a file is called, where it starts, or which directory it belonged to. Instead of relying on metadata, investigators look for file signatures, internal structure, and byte patterns to recover usable content from raw storage or memory.
This makes data carving especially useful after deletion, corruption, partial overwrite, or deliberate attempts to remove file-system records. It is not a replacement for intact forensic acquisition, but a fallback technique for reconstructing artefacts that still exist in unallocated or otherwise unmanaged space.
Where Data Carving Fits in Digital Forensics
Carving sits alongside imaging, timeline analysis, and artefact review in a forensic workflow. It is most valuable when the examiner has preserved a raw image and needs to search beyond what the operating system can enumerate. The technique depends on recognising formats that have stable headers, footers, or internal layout, which is why some files can be recovered cleanly while others fragment or fail to reconstruct.
Because it works from content rather than metadata, carving can surface files that the file system no longer references. That also means recovered material may be incomplete, duplicated, or missing context, so the result is often an evidential artefact rather than a perfect restoration of the original file.
What Makes Carving Possible
Carving works because many file types have predictable byte-level patterns. A JPEG, PDF, archive, or document format may expose a recognisable header, and sometimes a footer or embedded length indicators that help delimit the object. Investigators use those anchors to identify candidate starts and ends, then rebuild data blocks into a coherent file.
The stronger the structure, the better the outcome. Fragmented files, compressed containers, encrypted data, and formats with weak signatures are harder to reconstruct because the tool or analyst has less reliable boundary information. Where file-system metadata is absent, the quality of the carve depends heavily on how the data was stored and whether overwritten sectors remain readable.
Limits and Evidence Value
Carved output should be treated carefully because reconstruction is inferential, not guaranteed. A recovered file can be genuine and still be incomplete, truncated, or assembled from adjacent bytes that only appear related. For that reason, examiners usually corroborate carved artefacts against timestamps, surrounding allocation state, application artefacts, and other case evidence.
Used well, carving adds evidential breadth, especially in deletion, incident response, and anti-forensics cases. Used poorly, it can create false confidence, so the analyst must distinguish between a reconstructed artefact and a file that was recovered with full original fidelity.
Risk and Threat Considerations
Data carving matters because deleted or unreferenced data often remains recoverable long after a user believes it is gone. That creates exposure for incident response, legal discovery, and privacy handling, especially when storage has not been securely wiped or when attackers assume deletion hides their activity.
Failure mechanism: File-system metadata can be removed, corrupted, or intentionally destroyed while the underlying bytes remain on disk or in memory, allowing recovery from raw sectors, slack space, or unallocated clusters.
Impact: Sensitive documents, logs, credentials, staging artefacts, or traces of malicious activity may remain accessible to a forensic examiner or attacker with low-level read access, even after ordinary deletion.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AU-11 — Audit Record Retention | Data carving often recovers evidential artefacts that logs and records should preserve. |
| MP-6 — Media Sanitization | Carving shows why deleted data can remain recoverable if media is not sanitized. | |
| Recommendation — Retain forensic logs and records long enough to support later recovery and investigation. Sanitize storage media to remove recoverable residual data before disposal or reuse. | ||
| CIS Controls v8 | CIS-11 — Data Recovery | Carving is a forensic recovery method that depends on preserving and recovering data from media. |
| Recommendation — Preserve and test recovery capabilities so deleted or damaged data can still be examined. | ||
| NIST CSF 2.0 | RC.RP-01 — Recovery Plan Executed | Carving supports recovery and investigation when normal file references are missing. |
| Recommendation — Use documented recovery procedures to restore or analyze data from raw storage when needed. | ||
| ISO/IEC 27001:2022 | A.8.10 — Information deletion | Carving highlights residual data exposure when deletion leaves recoverable bytes behind. |
| Recommendation — Apply deletion controls that remove data beyond the visible file-system entry. | ||
Practitioner Guidance
What to watch for: Carving is most useful when metadata-based recovery fails but the acquisition is still complete and unmodified. In practice, that means preserving raw images, documenting allocation state, and choosing carving tools that support the target file types rather than assuming a universal recovery method.
Practitioner note: Treat carved files as reconstructed evidence, not automatically authoritative originals. Correlate them with surrounding artefacts and, when the goal is secure disposal rather than recovery, use sanitisation methods that remove the underlying bytes rather than only the directory entry.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org