Skip to main content

DFTK — Digital Forensics Toolkit

CI License Python PyPI

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

Sequence hunting: timeline.hunt_sequences correlates ordered events by shared entity fields, retaining source hashes, locators, and explicit coverage limits. See the sequence hunting guide for a runnable example.

Project facts

  • One registry, 128 tools (124 READ_ONLY, 4 STATEFUL) — 113 primitives plus 15 recipes.

  • 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.

Metadata

Release files for dftk 3.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dftk 3.6.1
File Size Uploaded Provenance Actions
dftk-3.6.1.tar.gz 438.7 kB With provenance Details for dftk-3.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dftk 3.6.1
File Interpreter ABI Platform Actions
dftk-3.6.1-py3-none-any.whl Python 3 none any Details for dftk-3.6.1-py3-none-any.whl

Total release size: 745.8 kB

Release files / dftk-3.6.1.tar.gz

Download URL dftk-3.6.1.tar.gz
Size 438.7 kB
Tags Source
SHA-256 checksum
How to use checksums
07b6ee9e8be443fd219e1180f784a678b155d50ee08e3c4aa3ebe5aa3543aff0
BLAKE2b-256 checksum
How to use checksums
51fe597d989ccbd88ea98a3c57b048387bf132951c5acb77f0c111006bea3a40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / dftk-3.6.1-py3-none-any.whl

Download URL dftk-3.6.1-py3-none-any.whl
Size 307.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49480869fcbedc517254c16a19087074fbfab359a24489f84b3a8e40f3da5ee5
BLAKE2b-256 checksum
How to use checksums
25aecf3c94b9d6eca4f3a9633b6d1fa4187c5b8de5c0745c19f1dd237918aacf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for dftk 3.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dftk-3.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page