mukul975/anthropic-cybersecurity-skills/performing-file-carving-with-foremost
Claude Code and agent skill by mukul975/anthropic-cybersecurity-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Recovers files from disk images and unallocated space using Foremost's
Install
npx vskill@latest install mukul975/anthropic-cybersecurity-skills/performing-file-carving-with-foremostSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as mukul975/anthropic-cybersecurity-skills/performing-file-carving-with-foremost.
Performing File Carving with Foremost
When to Use
- When recovering files from unallocated disk space or corrupted file systems
- For extracting evidence from formatted or wiped storage media
- When file system metadata is unavailable but raw data sectors contain evidence
- During investigations requiring recovery of specific file types from raw images
- As a complement to file system-based recovery for maximum evidence extraction
Prerequisites
- Foremost installed on forensic workstation
- Forensic disk image in raw (dd) format
- Sufficient output storage (potentially larger than source)
- Custom foremost.conf for specialized file types (optional)
- Understanding of file signatures (magic bytes) for target file types
- Scalpel as an alternative for performance-critical carving
Workflow
Step 1: Install and Configure Foremost
Step 2: Run Foremost Against the Disk Image
Step 3: Use Scalpel for High-Performance Carving
Step 4: Process and Validate Carved Files
Step 5: Examine and Catalog Evidence Files
Key Concepts
| Concept | Description | |
|---|---|---|
| File carving | Recovering files by searching for known header/footer byte sequences in raw data | |
| File signature | Unique byte pattern at the start (header) or end (footer) identifying a file type | |
| Unallocated space | Disk sectors not assigned to any file; primary target for carving | |
| Fragmentation | When file data is stored in non-contiguous sectors, complicating carving | |
| Header-footer carving | Extracting data between known file start and end signatures | |
| False positives | Carved data matching file signatures but containing corrupt or unrelated content | |
| Slack space | Unused bytes at the end of a file's last allocated cluster | |
| Sector alignment | Files typically start at sector boundaries, improving carving accuracy |
Tools & Systems
| Tool | Purpose | |
|---|---|---|
| Foremost | Original header-footer file carving tool developed for US Air Force OSI | |
| Scalpel | High-performance file carver with configurable signatures | |
| PhotoRec | Signature-based file recovery supporting 300+ formats | |
| bulk_extractor | Extracts features (emails, URLs, credit cards) from raw data | |
| blkls | Sleuth Kit tool extracting unallocated space from disk images | |
| mmls | Partition table display for identifying carving targets | |
| ExifTool | Metadata extraction from carved image and document files | |
| hashdeep | Recursive hash computation for carved file cataloging |
Common Scenarios
Scenario 1: Recovering Deleted Evidence Documents Run Foremost targeting doc, pdf, xlsx formats against the unallocated space extracted with blkls, validate carved documents, search content for case-relevant keywords, catalog and hash all recoverable documents, present as evidence.
Scenario 2: Image Recovery from Formatted Media Carve JPEG, PNG, GIF, BMP from a formatted USB drive image, extract EXIF metadata including GPS coordinates and camera information, generate thumbnails for rapid visual review, identify evidence-relevant images, document recovery chain.
Scenario 3: Email Recovery from Damaged PST Use custom foremost.conf with PST and EML signatures, carve email artifacts from damaged Outlook data file, attempt to open carved PST fragments in a viewer, extract individual EML messages, search for relevant communications.
Scenario 4: Database Recovery for Financial Investigation Configure Foremost to carve SQLite databases from unallocated space, recover application databases that were deleted, query recovered databases for financial records, cross-reference with known transaction data, document findings for prosecution.
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 repositoryCheckingskills/performing-file-carving-with-foremost/SKILL.md
Popularity
- Repository stars
- 15,077
- Repository forks
- 1,794
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
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/mukul975/anthropic-cybersecurity-skills/performing-file-carving-with-foremost)