Skip to content

Manifest Reference

The manifest is a JSON file that defines one or more disk images to build. Each disk specifies its partition table type, size, partitions, encryption, and file population rules.


Top-Level Structure

{
  "schema_version": "1.0",
  "disks": [ ... ]
}
Field Type Required Description
schema_version string No Manifest version (currently "1.0")
disks array Yes Array of disk definitions

Disk Object

{
  "name": "disk-name",
  "type": "GPT",
  "size": "512M",
  "label": "MyDisk",
  "bootable": true,
  "encrypt": { ... },
  "partitions": [ ... ]
}
Field Type Required Description
name string Yes Image filename (produces {name}.img)
type string Yes Partition table type: "MBR", "GPT", or "RAW"
size string Yes Disk size (e.g. "512M", "32G", "1.44M")
label string No Disk label
bootable boolean No Mark disk as bootable (writes MBR boot code for MBR disks)
boot_code string No Path to custom boot code binary (max 446 bytes, MBR only)
encrypt object No Disk-level encryption (VeraCrypt only)
filesystem string RAW only Filesystem type (required for RAW disks)
populate object RAW only File population rules (for RAW disks)
partitions array MBR/GPT Array of partition definitions
inject array No Data to inject into unallocated space (see Injection)
watermark object No AI analysis notice in the partition gap and unallocated space (see AI Analysis Watermark)

Boot Code

When bootable: true on an MBR disk, DiskForge writes a generic boot stub that prints "Non-system disk or disk error" to the first 446 bytes. You can override this with a custom binary via boot_code.


RAW Disk (Superfloppy)

A RAW disk has no partition table — the filesystem is written directly to the device. This is common for floppy images, simple USB drives, and some forensic scenarios.

{
  "name": "floppy",
  "type": "RAW",
  "size": "1.44M",
  "filesystem": "fat32",
  "label": "FLOPPY",
  "populate": {
    "add_files": [{ "source": "/files/*", "target": "/" }]
  }
}

RAW disks have no partitions array. The filesystem, label, and populate fields go directly on the disk object.


Partition Object

{
  "number": 1,
  "type": "primary",
  "filesystem": "ext4",
  "label": "DATA",
  "size": "500M",
  "bootable": true,
  "encrypt": { ... },
  "populate": { ... }
}
Field Type Required Description
number integer Yes Partition number (1-based)
type string Yes "primary" or "extended" (MBR only)
filesystem string Yes Filesystem type (see Supported Filesystems)
label string No Filesystem/partition label
size string Yes Partition size (e.g. "100M", "50G")
bootable boolean No Mark partition as bootable
encrypt object No Partition-level encryption (LUKS only)
populate object No File population rules
countermeasure object or array No Hide directory entries (see Countermeasures)

Extended Partitions (MBR Only)

Extended partitions contain nested logical partitions:

{
  "number": 4,
  "type": "extended",
  "filesystem": "",
  "size": "200M",
  "partitions": [
    {
      "number": 5,
      "type": "primary",
      "filesystem": "ext3",
      "label": "LOGICAL1",
      "size": "200M"
    }
  ]
}

Note

Extended partitions cannot have encryption applied directly. Encrypt the logical partitions inside them instead.


Encryption Object

See the Encryption Guide for detailed configuration.

"encrypt": {
  "type": "luks",
  "version": "1",
  "passphrase": "secret123"
}
Field Type Required Description
type string Yes "luks"
version string No "1" (default) or "2"
passphrase string Yes Decryption passphrase
"encrypt": {
  "type": "veracrypt",
  "passphrase": "secret123"
}
Field Type Required Description
type string Yes "veracrypt"
passphrase string Yes Decryption passphrase

Populate Object

The populate block controls file operations on a partition. Operations execute in order: template → add → copy → move → delete.

"populate": {
  "template": "windows10",
  "add_files": [ ... ],
  "copy_files": [ ... ],
  "move_files": [ ... ],
  "delete_files": [ ... ]
}

template

Apply an OS directory structure template before adding files. Templates create directories and stub files that mimic a real operating system layout. See OS Templates for details.

"template": "windows10"

Available templates: windows10, windowsxp, linux, macos

Tip

Templates are applied first, so add_files can target template directories. For example, place EVTX logs into /Windows/System32/winevt/Logs after applying the windows10 template.

add_files

Copy files from the host (/files/ mount) into the partition.

"add_files": [
  { "source": "/files/*", "target": "/" },
  { "source": "/files/images/*", "target": "/Pictures" }
]
Field Type Description
source string Glob pattern for source files (host path)
target string Target directory inside the partition

Tip

The source field supports glob patterns. /files/* matches all files and directories in /files/. Nested patterns like /files/**/*.jpg work too.

copy_files

Duplicate files within the partition.

"copy_files": [
  { "source": "/document.docx", "target": "/backup/document.docx" }
]

move_files

Relocate files within the partition.

"move_files": [
  { "source": "/temp/report.pdf", "target": "/final/report.pdf" }
]

delete_files

Remove files or directories. Supports wildcards.

"delete_files": [
  "/text1.txt",
  "/temp/*"
]

Forensic Training Tip

Deleted files leave recoverable artifacts on the filesystem. Use delete_files to create recovery exercises for students — the files were written to disk before deletion.