DFTK — Digital Forensics Toolkit
DFTK is a Python toolkit for evidence-preserving digital-forensics operations. It provides structured results for files, archives, mobile artifacts, databases, captures, browser data, email, host artifacts, and timelines.
中文说明见 README.zh-CN.md.
Install
pip install dftk
Optional integrations:
pip install "dftk[email]" # DKIM / SPF / DNS
pip install "dftk[ssh]" # read-only SSH inventory
pip install "dftk[windows]" # Registry / EVTX parsers
pip install "dftk[yara]" # YARA rule scanning
pip install "dftk[mcp]" # local MCP server
pip install "dftk[all]" # all optional Python integrations
The core package has no mandatory third-party runtime dependencies. E01 filesystem
traversal additionally requires pyewf / libewf bindings and pytsk3.
Start here
# Discover available capabilities
dftk list
# Build an Agent-ready intake manifest and next-step plan
dftk run evidence.intake --params '{"path":"/evidence/acquisition"}'
# Inspect one capability before running it
dftk describe artifact.inspect
# Analyze an artifact
dftk run artifact.inspect --params '{"path":"sample.apk"}'
# Save related observations in a case
dftk case --workspace /cases/intake new --name intake
dftk case --workspace /cases/intake run <case_id> artifact.inspect --params '{"path":"sample.apk"}'
dftk case --workspace /cases/intake export <case_id> --format md
Each run returns an Observation with a status, facts, evidence, warnings, and
errors. unsupported, error, and blocked describe limitations or failures;
they are not negative findings.
Agent and MCP use
For Agent use, the recommended entry point is this DFTK repository: give its URL to the Agent. It installs DFTK first, then runs a single bounded bootstrap that fetches the matching complete DFTK-skill bundle and emits a reviewable MCP configuration fragment:
dftk agent setup --root /evidence/acquisition --workspace /cases/intake --install-skill
See INSTALL_AGENT.md for the paste-ready instruction and AGENT_INTEGRATION.md for the complete operating loop.
DFTK includes a local stdio MCP server. Keep acquired evidence read-only and use a separate writable case workspace:
pip install "dftk[mcp]"
dftk mcp --root /evidence/acquisition --workspace /cases/intake --check
dftk mcp --root /evidence/acquisition --workspace /cases/intake
The server defaults to READ_ONLY with network access disabled. Its launch options
define the evidence root, safety ceiling, network access, and timeout. See the
MCP guide for configuration and policy details.
For an existing host configuration, install the matching Skill bundle directly:
dftk skill --install # auto-detect the current Agent host; portable fallback: agents
# Inspect all supported target paths before a broad installation:
dftk skill --install --target all --dry-run
Documentation
- User guide — CLI, Python API, cases, observations, and audit logs.
- MCP guide — local server policy and host configuration.
- Capability map — domains and capability groups.
- Architecture — registry, evidence contract, and runtime boundaries.
- Safety policy — execution levels, network gates, and source-evidence protection.
- Toolchain deployment — external forensic binaries.
- Development guide — setup, tests, and contribution workflow.
- Documentation policy — ownership, generated data, and translation rules.
Project facts
- Distribution:
dftk; Python package:dftk; CLI:dftk. - Python: CPython 3.10+.
- License: Apache-2.0.
- Maintainer: DyNooob · DigiForensics.
DFTK supports lawful, authorized examination of evidence. It is a technical toolkit, not legal advice.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dftk-3.4.0.tar.gz.
File metadata
- Download URL: dftk-3.4.0.tar.gz
- Upload date:
- Size: 178.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acdb63cf7a9c74c1e2ee71993106b24a8888b0ac713c4d29020d80fb03b1a14e
|
|
| MD5 |
9fbde10e0e93d0713232f8b7856657d6
|
|
| BLAKE2b-256 |
969f5f5e58d9ce19799a2cee08b01f22206da9097b6297334c8566f61683dc6d
|
Provenance
The following attestation bundles were made for dftk-3.4.0.tar.gz:
Publisher:
publish.yml on DigiForensics/DFTK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dftk-3.4.0.tar.gz -
Subject digest:
acdb63cf7a9c74c1e2ee71993106b24a8888b0ac713c4d29020d80fb03b1a14e - Sigstore transparency entry: 2541831898
- Sigstore integration time:
-
Permalink:
DigiForensics/DFTK@0793036bddba04ff233e987d9cc6aecafc1ab330 -
Branch / Tag:
refs/tags/v3.4.0 - Owner: https://github.com/DigiForensics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0793036bddba04ff233e987d9cc6aecafc1ab330 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dftk-3.4.0-py3-none-any.whl.
File metadata
- Download URL: dftk-3.4.0-py3-none-any.whl
- Upload date:
- Size: 150.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e92e09e375e9b5a2d554b41ddcc12d96ff53358fd0ebb7e431e4459604feca74
|
|
| MD5 |
47cb025c3e3763d3575b14eff76a2dd8
|
|
| BLAKE2b-256 |
f5837880a73384b378810b14613d349a83cf715a665ed2452a0ff5db0cf0640c
|
Provenance
The following attestation bundles were made for dftk-3.4.0-py3-none-any.whl:
Publisher:
publish.yml on DigiForensics/DFTK
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dftk-3.4.0-py3-none-any.whl -
Subject digest:
e92e09e375e9b5a2d554b41ddcc12d96ff53358fd0ebb7e431e4459604feca74 - Sigstore transparency entry: 2541832703
- Sigstore integration time:
-
Permalink:
DigiForensics/DFTK@0793036bddba04ff233e987d9cc6aecafc1ab330 -
Branch / Tag:
refs/tags/v3.4.0 - Owner: https://github.com/DigiForensics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0793036bddba04ff233e987d9cc6aecafc1ab330 -
Trigger Event:
push
-
Statement type: