Skip to main content

Getting started

exhume_indexer creates a searchable SQLite index from an evidence folder or a filesystem inside a disk image. With --extract-artefacts, it also finds supported artefacts, parses their contents and builds a timeline. For supported encrypted applications, it discovers the files needed for recovery and asks for credentials when necessary.

This guide takes you from a first run to reviewing the results. Start with the folder example, or go directly to disk images.

Evidence folder or image
↓
File inventory
↓
Find artefacts → Prepare encrypted inputs → Run parsers
↓
Analysis index + timeline + report

1. Get a recovery-capable build​

These instructions describe the 0.6.0 indexer workflow. Check your executable:

exhume_indexer --version
exhume_indexer --help

Its help must include --retry-recovery and --credential-file. Earlier releases may lack these options even if ordinary indexing works.

Use a release binary​

Download the archive for your operating system and architecture from the Exhume Toolkit releases. Extract the whole archive, keeping any lib directory beside the executable. Read its RUNTIME.md for platform requirements and confirmation that SQLCipher is included.

The commands below assume exhume_indexer is on your PATH. Otherwise use its full path, ./exhume_indexer on Linux/macOS, or .\exhume_indexer.exe in PowerShell.

Build with Cargo​

Building requires Rust 1.92 or later and a native C toolchain. Linux builds also need OpenSSL development files and pkg-config. Windows builds use the MSVC toolchain and the OpenSSL build prerequisites, including Perl.

cargo install exhume_indexer --version 0.6.0 --locked --features sqlcipher
Before the release is published

If 0.6.0 is not yet available on crates.io or in the release archives, build the current Exhume source checkout. From its exhume directory, run cargo build --release -p exhume_indexer --features sqlcipher. On Windows, use --features sqlcipher-vendored-openssl instead. The executable is written to target/release/.

SQLCipher is a build feature, not a CLI flag. It enables encrypted SQLite parsing, including Signal Desktop. A build without it can still index files and parse unencrypted artefacts, but cannot finish encrypted Signal database recovery.

2. Index an extracted folder​

Replace the source path with your evidence folder. Keep the output directory outside that folder. In this example, case/index.sqlite is a new analysis database created by the indexer; it is separate from any application database in the evidence.

mkdir -p ./case
exhume_indexer \
--body "/evidence/export" \
--database ./case/index.sqlite \
--extract-artefacts \
--json-report \
--no-progress --log-level warn \
> ./case/first-run.json

The important options are:

OptionWhat it does
--bodySelects the source folder or disk image.
--databaseSelects the analysis index to create or update.
--extract-artefactsFinds supported artefacts, prepares encrypted inputs, runs parsers and populates timeline data.
--json-reportWrites the final machine-readable report to standard output. Logs and password prompts use standard error.
--no-progress --log-level warnHides progress bars and routine informational logs. Warnings remain visible.

For a file inventory alone, omit --extract-artefacts. Add --identify-files if you also want signature-based file types; it is an additional pass and is not required for path-based artefact discovery.

When recovery needs a password, the CLI prompts without displaying what you type. You can defer it with Ctrl+D on Linux/macOS. To skip all prompts, add --no-recovery-input; the report keeps unresolved targets available for retry. An extracted application database alone may be insufficient: recovery also needs its configuration and the relevant acquired user credential-store files.

3. Read the result​

Open case/first-run.json in a text editor. Start with these fields:

FieldMeaning
statusOverall outcome: for example, complete or completed_with_issues.
partition_idThe indexer's identifier for this folder or partition. Keep it for retries.
indexed_pathsNumber of filesystem paths indexed.
walkFilesystem coverage and read/discovery issues.
phase_issuesIssues from identification, parsing and other analysis phases.
recovery.jobsEach encrypted-application target, its status and its input requirements. An empty list means no recovery target was discovered.

For an encrypted Signal profile, a job with status: "needs_input" means that the profile was found but needs credentials. A job with status: "complete" means its parser output was published. A job can be complete while the overall run reports issues elsewhere. Check both levels before judging the result.

The process exit code helps automation:

CodeMeaning
0Run completed without reported issues.
2Run finished with issues or incomplete coverage. Argument errors also use this code; those print usage instead of a final report.
130Run was cancelled.
1Command failed before normal completion; inspect standard error.

In a shell, inspect $? immediately after the command; in PowerShell, inspect $LASTEXITCODE. Do not discard the report just because the code is 2: usable results may already be present.

Index a disk image​

An image needs two extra values: where the filesystem starts and how many sectors it occupies. First inspect its partitions with exhume_partitions:

exhume_partitions --body "/evidence/disk.qcow2" --format auto

Choose the partition that contains the user data, then copy its First Byte Address to --offset and Size (Sectors) to --size.

ArgumentUnit
--offsetBytes from the start of the logical disk.
--sizeSectors, using the image's sector size.

For example, only if your partition output gives these values:

mkdir -p ./case
exhume_indexer \
--body "/evidence/disk.qcow2" \
--format auto \
--offset 0x100000 --size 0x400000 \
--database ./case/index.sqlite \
--extract-artefacts \
--json-report \
--no-progress --log-level warn \
> ./case/first-run.json

Decimal and 0x hexadecimal numbers are accepted. Do not substitute a partition number or a sector address for a byte offset. For PowerShell, use the same arguments with backtick line continuations and the UTF-8 output pipeline shown in the folder example.

The report's partition_id is a row identifier in your analysis index, not a GPT/MBR partition number. A first run creates it automatically. --evidence-id defaults to 1; set another value when managing several evidence sources in one index.

Resume recovery when you have the password​

Use the same source and analysis database, plus the partition_id from the first report. The example below assumes that identifier is 1:

exhume_indexer \
--body "/evidence/disk.qcow2" \
--database ./case/index.sqlite \
--partition-id 1 \
--retry-recovery

The CLI retries unresolved targets and prompts for missing credentials. It reuses the inventory, loads saved partition geometry and reads the required evidence files again. It does not walk the entire filesystem again. Folder sources use the same retry command with their folder path in --body.

You do not need to copy long recovery IDs for this interactive workflow. For a specific target, password-file automation, raw database keys or a full explanation of the recovery options, continue with Encrypted application recovery.

Review the index​

Open case/index.sqlite with a SQLite viewer or the sqlite3 command-line tool. These tables hold the main results:

TableContents
system_filesFile inventory, source paths, identifiers and filesystem metadata.
artifactsCatalogue matches and their parser names.
artifact_objectsParsed records as JSON and searchable text.
timeline_eventsFilesystem and parser-derived events.
artifact_attachment_refsAttachment metadata and references to acquired files.
index_runs, index_issuesProcessing history and coverage/analysis issues.
recovery_jobs, recovery_attempts, recovery_diagnosticsRecovery state and attempt diagnostics.

For example, list the kinds of parsed records:

SELECT parser, kind, COUNT(*) AS records
FROM artifact_objects
GROUP BY parser, kind
ORDER BY parser, kind;

Find attachment references that resolved to an acquired file:

SELECT parser, kind, file_name, resolved_absolute_path
FROM artifact_attachment_refs
WHERE resolved_file_id IS NOT NULL;

An attachment reference is not a decrypted media export. The indexer records metadata and file links; supported media can then be recovered on demand by Thanatology. The standalone exhume_artefacts CLI also supports asset dumping for supported parsers with --dump-dir.

Rerun or retry?​

Use --retry-recovery when only encrypted-application recovery needs another attempt. A successful or partial attempt replaces that target's published records, timeline and references atomically. A failed attempt keeps its previous publication.

Use a full indexing command with --partition-id when you intend to rebuild an existing partition's inventory and analysis. A successful inventory replacement clears its derived results so they can be rebuilt. Include --extract-artefacts again if you want parsed records. A failed or cancelled inventory walk keeps the previous inventory. Omitting --partition-id creates a new logical partition row.

For all options, run exhume_indexer --help. Use the recovery guide for decryption and troubleshooting, or the library guide to embed the indexer in Rust.

How it fits together​

EXHUME / ARCHITECTURE

Exhume Indexer architecture

Follow the inputs, explore capabilities and open related module docs.

  1. Evidence inputs
    InputDisk image / partition

    A forensic container with the selected filesystem offset and size.

    InputExtracted folder

    A directory of evidence files, accessed directly on the host.

  2. Module & capabilities
    Rust library + CLIexhume_indexer

    Build a persistent filesystem and artefact processing pipeline.

    SQLite indexFile signaturesArtefact matchesParser objectsTimeline eventsAttachment refs

    File identification and artefact extraction are optional processing passes.

  3. Direct Exhume dependencies
    Exhume dependencyexhume_filesystem

    One API to browse, read & export files

    Exhume dependencyexhume_artefacts

    Parse OS & application artefacts

    Exhume dependencyexhume_body

    Format-independent evidence access

Solid arrows show inputs. Dashed arrows point to dependencies.View the full toolkit ↗

Evidence inputs: Disk image / partition, Extracted folder. Build a persistent filesystem and artefact processing pipeline. Direct Exhume dependencies: exhume_filesystem, exhume_artefacts, exhume_body.

Exhume Indexer architecture