adriannoes/awesome-agentic-ai/acquiring-disk-image-with-dd-and-dcfldd
Claude Code and agent skill by adriannoes/awesome-agentic-ai
- community
Checking that the SKILL.md file is still in the repository.
Create forensically sound bit-for-bit disk images using dd and dcfldd
Install
npx vskill@latest install adriannoes/awesome-agentic-ai/acquiring-disk-image-with-dd-and-dcflddSKILL.md
Acquiring Disk Image with dd and dcfldd
When to Use
- When you need to create a forensic copy of a suspect drive for investigation
- During incident response when preserving volatile disk evidence before analysis
- When law enforcement or legal proceedings require a verified bit-for-bit copy
- Before performing any destructive analysis on a storage device
- When acquiring images from physical drives, USB devices, or memory cards
Prerequisites
- Linux-based forensic workstation (SIFT, Kali, or any Linux distro)
dd(pre-installed on all Linux systems) ordcfldd(enhanced forensic version)- Write-blocker hardware or software write-blocking configured
- Destination drive with sufficient storage (larger than source)
- Root/sudo privileges on the forensic workstation
- SHA-256 or MD5 hashing utilities (
sha256sum,md5sum)
Workflow
Step 1: Identify the Target Device and Enable Write Protection
Step 2: Prepare the Destination and Document the Source
Step 3: Acquire the Image Using dd
Step 4: Acquire Using dcfldd (Preferred Forensic Method)
Step 5: Verify Image Integrity
Step 6: Document the Acquisition Process
Key Concepts
| Concept | Description | |
|---|---|---|
| Bit-for-bit copy | Exact replica of source including unallocated space and slack space | |
| Write blocker | Hardware or software mechanism preventing writes to evidence media | |
| Hash verification | Cryptographic hash comparing source and image to prove integrity | |
| Block size (bs) | Transfer chunk size affecting speed; 4096 or 64K typical for forensics | |
| conv=noerror,sync | Continue on read errors and pad with zeros to maintain offset alignment | |
| Chain of custody | Documented trail proving evidence has not been tampered with | |
| Split imaging | Breaking large images into smaller files for storage and transport | |
| Raw/dd format | Bit-for-bit image format without metadata container overhead |
Tools & Systems
| Tool | Purpose | |
|---|---|---|
| dd | Standard Unix disk duplication utility for raw imaging | |
| dcfldd | DoD Computer Forensics Laboratory enhanced version of dd with hashing | |
| dc3dd | Another forensic dd variant from the DoD Cyber Crime Center | |
| sha256sum | SHA-256 hash calculation for integrity verification | |
| blockdev | Linux command to set block device read-only mode | |
| hdparm | Drive identification and parameter reporting | |
| smartctl | S.M.A.R.T. data retrieval for drive health and identification | |
| lsblk | Block device enumeration and identification |
Common Scenarios
Scenario 1: Acquiring a Suspect Laptop Hard Drive Connect the drive via a Tableau T35u hardware write-blocker, identify as /dev/sdb, use dcfldd with SHA-256 hashing, split into 4GB segments for DVD archival, verify hashes match, document in case notes.
Scenario 2: Imaging a USB Flash Drive from a Compromised Workstation Use software write-blocking with blockdev --setro, acquire with dcfldd including MD5 and SHA-256 dual hashing, image is small enough for single file, verify and store on encrypted case drive.
Scenario 3: Remote Acquisition Over Network Use dd piped through netcat or ssh for remote acquisition: ssh root@remote "dd if=/dev/sda bs=4096" | dd of=remote_image.dd bs=4096, hash both ends independently to verify transfer integrity.
Scenario 4: Acquiring from a Failing Drive Use ddrescue first to recover readable sectors, then use dd with conv=noerror,sync to fill gaps with zeros, document which sectors were unreadable in the error log.
Output Format
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcursor-claude-codex/skills/anthropic-cybersecurity-skills/skills/acquiring-disk-image-with-dd-and-dcfldd/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 18
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adriannoes/awesome-agentic-ai/acquiring-disk-image-with-dd-and-dcfldd)