Quick Start
Build your first forensic disk image in under 5 minutes.
1. Clone the Repository
2. Get the Docker Image
Pull the published image (amd64 + arm64) and tag it diskforge:
docker pull ghcr.io/jknyght9/diskforge:latest
docker tag ghcr.io/jknyght9/diskforge:latest diskforge
Or build it from the checkout:
Release tags are published too, e.g. ghcr.io/jknyght9/diskforge:1.3.0. Pin one to rebuild a scenario with the exact toolchain it was made with.
3. Add Source Files
Place files you want to embed in disk images in the files/ directory:
These files are mounted into the container at /files/ and referenced in your manifest with paths like /files/*.
4. Create a Manifest
Create a manifest.json defining your disk layout:
{
"schema_version": "1.0",
"disks": [
{
"name": "my-first-disk",
"type": "GPT",
"size": "512M",
"partitions": [
{
"number": 1,
"type": "primary",
"filesystem": "fat32",
"label": "EVIDENCE",
"size": "500M",
"populate": {
"add_files": [{ "source": "/files/*", "target": "/" }],
"delete_files": ["/text1.txt"]
}
}
]
}
]
}
5. Build the Image
docker run --rm --privileged \
-v "$(pwd)/manifest.json:/manifests/manifest.json" \
-v "$(pwd)/files:/files" \
-v "$(pwd)/output:/output" \
diskforge /manifests/manifest.json
6. Verify the Output
Your disk image is in output/my-first-disk.img. Analyze it with Sleuth Kit:
GUID Partition Table (EFI)
Offset Sector: 0
Units are in 512-byte sectors
Slot Start End Length Description
000: Meta 0000000000 0000000000 0000000001 Safety Table
001: ------- 0000000000 0000002047 0000002048 Unallocated
002: Meta 0000000001 0000000001 0000000001 GPT Header
003: Meta 0000000002 0000000033 0000000032 Partition Table
004: 000 0000002048 0001026047 0001024000 primary
Scenarios
For real-world training scenarios (multi-disk, encrypted evidence, capstone exercises), keep scenario files in a separate private repository alongside DiskForge:
current/
├── diskforge/ # Public tool (this repo)
└── diskforge-scenarios/ # Private scenarios
├── is4483-capstone/
│ ├── manifest.json
│ ├── files/
│ └── output/
└── my-scenario/
├── manifest.json
├── files/
└── output/
Build a scenario from the diskforge directory:
SCENARIO=../diskforge-scenarios/my-scenario
docker run --rm --privileged \
-v "$(pwd -P)/$SCENARIO/output:/output" \
-v "$(pwd -P)/$SCENARIO/manifest.json:/manifests/manifest.json" \
-v "$(pwd -P)/$SCENARIO/files:/files" \
diskforge /manifests/manifest.json
This keeps answer keys, evidence files, and passphrases private while the tool stays public.
Next Steps
- Manifest Reference — full manifest field documentation
- Encryption Guide — add LUKS or VeraCrypt encryption
- Examples — browse complete example manifests