mulder-dfir 1.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mulder_dfir-1.4.0/.gitignore +47 -0
- mulder_dfir-1.4.0/LICENSE +201 -0
- mulder_dfir-1.4.0/PKG-INFO +237 -0
- mulder_dfir-1.4.0/README.md +170 -0
- mulder_dfir-1.4.0/pyproject.toml +185 -0
- mulder_dfir-1.4.0/src/mulder/__init__.py +3 -0
- mulder_dfir-1.4.0/src/mulder/assets/__init__.py +34 -0
- mulder_dfir-1.4.0/src/mulder/assets/assets.lock +47 -0
- mulder_dfir-1.4.0/src/mulder/assets/fetch.py +154 -0
- mulder_dfir-1.4.0/src/mulder/assets/install.py +1008 -0
- mulder_dfir-1.4.0/src/mulder/assets/lockgen.py +75 -0
- mulder_dfir-1.4.0/src/mulder/assets/manifest.py +431 -0
- mulder_dfir-1.4.0/src/mulder/assets/paths.py +160 -0
- mulder_dfir-1.4.0/src/mulder/assets/state.py +104 -0
- mulder_dfir-1.4.0/src/mulder/audit.py +323 -0
- mulder_dfir-1.4.0/src/mulder/cli.py +747 -0
- mulder_dfir-1.4.0/src/mulder/data/mcp.json +11 -0
- mulder_dfir-1.4.0/src/mulder/db.py +1441 -0
- mulder_dfir-1.4.0/src/mulder/extractors/__init__.py +8 -0
- mulder_dfir-1.4.0/src/mulder/extractors/classifier.py +319 -0
- mulder_dfir-1.4.0/src/mulder/extractors/disk.py +328 -0
- mulder_dfir-1.4.0/src/mulder/extractors/volatility.py +65 -0
- mulder_dfir-1.4.0/src/mulder/index/__init__.py +5 -0
- mulder_dfir-1.4.0/src/mulder/index/correlator.py +50 -0
- mulder_dfir-1.4.0/src/mulder/models.py +110 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/__init__.py +56 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/display.py +978 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/errors.py +43 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/evidence.py +411 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/gates.py +407 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/log_tailer.py +112 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/models.py +206 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/phases.py +246 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/__init__.py +44 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/catalog.md +63 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/cross_system_analyst.md +124 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/cross_system_executor.md +28 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/cross_system_planner.md +44 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/extract_analyst.md +222 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/extract_executor.md +80 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/extract_planner.md +206 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/narrative_analyst.md +127 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/narrative_executor.md +28 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/narrative_planner.md +64 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/prompts/report.md +108 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/proxy.py +278 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/roles.py +566 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/runner.py +847 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/session.py +670 -0
- mulder_dfir-1.4.0/src/mulder/orchestrator/types.py +324 -0
- mulder_dfir-1.4.0/src/mulder/patterns.py +182 -0
- mulder_dfir-1.4.0/src/mulder/py.typed +0 -0
- mulder_dfir-1.4.0/src/mulder/report/__init__.py +6 -0
- mulder_dfir-1.4.0/src/mulder/report/data/attack_tactics.json +1 -0
- mulder_dfir-1.4.0/src/mulder/report/ioc_export.py +352 -0
- mulder_dfir-1.4.0/src/mulder/report/navigator.py +132 -0
- mulder_dfir-1.4.0/src/mulder/report/redactor.py +66 -0
- mulder_dfir-1.4.0/src/mulder/report/renderer.py +1481 -0
- mulder_dfir-1.4.0/src/mulder/report/templates/report.html.j2 +1911 -0
- mulder_dfir-1.4.0/src/mulder/report/templates/report.md.j2 +216 -0
- mulder_dfir-1.4.0/src/mulder/server/__init__.py +10 -0
- mulder_dfir-1.4.0/src/mulder/server/app.py +661 -0
- mulder_dfir-1.4.0/src/mulder/server/data/tool_guide.json +638 -0
- mulder_dfir-1.4.0/src/mulder/server/extract_helpers.py +307 -0
- mulder_dfir-1.4.0/src/mulder/server/helpers.py +590 -0
- mulder_dfir-1.4.0/src/mulder/server/jobs.py +480 -0
- mulder_dfir-1.4.0/src/mulder/server/source_names.py +56 -0
- mulder_dfir-1.4.0/src/mulder/server/timeouts.py +81 -0
- mulder_dfir-1.4.0/src/mulder/server/tool_access.py +68 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/__init__.py +28 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/artifacts.py +1487 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/attack.py +218 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/binary.py +1225 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/bulk.py +87 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/case.py +623 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/chainsaw.py +596 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/__init__.py +11 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/core.py +464 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/execution.py +336 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/exfil.py +517 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/lateral.py +395 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/misc.py +885 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/persistence.py +308 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/composite/process.py +421 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/core.py +1425 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/documents.py +855 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/email.py +397 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/enrichment.py +610 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/__init__.py +15 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/app_files.py +361 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/carving.py +675 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/disk_pcap.py +488 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/evtx.py +604 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/misc.py +1456 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/pcap.py +1477 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/plaso.py +176 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/registry.py +598 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/registry_query.py +325 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/tsk.py +771 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/extract/volatility.py +749 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/eztools.py +202 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/findings.py +986 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/hayabusa.py +381 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/hindsight.py +166 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/jobs.py +571 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/mvt.py +254 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/phone.py +1390 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/plaso.py +285 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/review.py +537 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/tsk.py +660 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/yara.py +833 -0
- mulder_dfir-1.4.0/src/mulder/server/tools/zircolite.py +410 -0
- mulder_dfir-1.4.0/tests/__init__.py +0 -0
- mulder_dfir-1.4.0/tests/conftest.py +131 -0
- mulder_dfir-1.4.0/tests/test_app_files.py +398 -0
- mulder_dfir-1.4.0/tests/test_asset_messages.py +83 -0
- mulder_dfir-1.4.0/tests/test_asset_paths.py +116 -0
- mulder_dfir-1.4.0/tests/test_audit.py +185 -0
- mulder_dfir-1.4.0/tests/test_binary_resolution.py +158 -0
- mulder_dfir-1.4.0/tests/test_classifier.py +177 -0
- mulder_dfir-1.4.0/tests/test_cli.py +78 -0
- mulder_dfir-1.4.0/tests/test_cli_fatal_errors.py +133 -0
- mulder_dfir-1.4.0/tests/test_cli_workspace.py +80 -0
- mulder_dfir-1.4.0/tests/test_correlator.py +158 -0
- mulder_dfir-1.4.0/tests/test_cross_system_skip.py +133 -0
- mulder_dfir-1.4.0/tests/test_db.py +787 -0
- mulder_dfir-1.4.0/tests/test_disk_pcap.py +502 -0
- mulder_dfir-1.4.0/tests/test_display.py +149 -0
- mulder_dfir-1.4.0/tests/test_documents_dde.py +152 -0
- mulder_dfir-1.4.0/tests/test_extract_helpers.py +159 -0
- mulder_dfir-1.4.0/tests/test_ez_tools.py +82 -0
- mulder_dfir-1.4.0/tests/test_finalize_gates.py +614 -0
- mulder_dfir-1.4.0/tests/test_gates.py +196 -0
- mulder_dfir-1.4.0/tests/test_helpers.py +189 -0
- mulder_dfir-1.4.0/tests/test_interpreter_resolution.py +425 -0
- mulder_dfir-1.4.0/tests/test_ioc_export.py +159 -0
- mulder_dfir-1.4.0/tests/test_jobs.py +329 -0
- mulder_dfir-1.4.0/tests/test_manifest_parity.py +89 -0
- mulder_dfir-1.4.0/tests/test_model_config.py +183 -0
- mulder_dfir-1.4.0/tests/test_models.py +87 -0
- mulder_dfir-1.4.0/tests/test_navigator.py +140 -0
- mulder_dfir-1.4.0/tests/test_ntuser_hive_discovery.py +470 -0
- mulder_dfir-1.4.0/tests/test_orchestrator.py +609 -0
- mulder_dfir-1.4.0/tests/test_orchestrator_helpers.py +236 -0
- mulder_dfir-1.4.0/tests/test_patterns.py +166 -0
- mulder_dfir-1.4.0/tests/test_prompts.py +81 -0
- mulder_dfir-1.4.0/tests/test_proxy.py +155 -0
- mulder_dfir-1.4.0/tests/test_redactor.py +55 -0
- mulder_dfir-1.4.0/tests/test_registry_query.py +511 -0
- mulder_dfir-1.4.0/tests/test_report.py +306 -0
- mulder_dfir-1.4.0/tests/test_response_enrichment.py +252 -0
- mulder_dfir-1.4.0/tests/test_runner_fatal_errors.py +173 -0
- mulder_dfir-1.4.0/tests/test_security.py +92 -0
- mulder_dfir-1.4.0/tests/test_session_fatal_errors.py +368 -0
- mulder_dfir-1.4.0/tests/test_setup.py +536 -0
- mulder_dfir-1.4.0/tests/test_submit_finding.py +127 -0
- mulder_dfir-1.4.0/tests/test_timeouts.py +40 -0
- mulder_dfir-1.4.0/tests/test_tsk.py +479 -0
- mulder_dfir-1.4.0/tests/test_tsk_query.py +233 -0
- mulder_dfir-1.4.0/tests/test_types.py +124 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Project
|
|
2
|
+
reports/
|
|
3
|
+
|
|
4
|
+
# Python bytecode
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[codz]
|
|
7
|
+
*$py.class
|
|
8
|
+
*.so
|
|
9
|
+
|
|
10
|
+
# Distribution / packaging
|
|
11
|
+
build/
|
|
12
|
+
dist/
|
|
13
|
+
*.egg-info/
|
|
14
|
+
*.egg
|
|
15
|
+
|
|
16
|
+
# Virtual environments
|
|
17
|
+
.env
|
|
18
|
+
.envrc
|
|
19
|
+
.venv
|
|
20
|
+
env/
|
|
21
|
+
venv/
|
|
22
|
+
|
|
23
|
+
# Testing / coverage
|
|
24
|
+
htmlcov/
|
|
25
|
+
.tox/
|
|
26
|
+
.nox/
|
|
27
|
+
.coverage
|
|
28
|
+
.coverage.*
|
|
29
|
+
.pytest_cache/
|
|
30
|
+
coverage.xml
|
|
31
|
+
|
|
32
|
+
# Type checkers / linters
|
|
33
|
+
.mypy_cache/
|
|
34
|
+
.dmypy.json
|
|
35
|
+
dmypy.json
|
|
36
|
+
.ruff_cache/
|
|
37
|
+
.pytype/
|
|
38
|
+
.pyre/
|
|
39
|
+
|
|
40
|
+
# IDE
|
|
41
|
+
.cursorignore
|
|
42
|
+
.cursorindexingignore
|
|
43
|
+
|
|
44
|
+
# Logs
|
|
45
|
+
*.log
|
|
46
|
+
!examples/**/*.log
|
|
47
|
+
SPEC/
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: mulder-dfir
|
|
3
|
+
Version: 1.4.0
|
|
4
|
+
Summary: Autonomous digital-forensics investigation orchestrator and MCP server for the SANS SIFT Workstation
|
|
5
|
+
Project-URL: Homepage, https://github.com/calebevans/mulder
|
|
6
|
+
Project-URL: Source, https://github.com/calebevans/mulder
|
|
7
|
+
Project-URL: Documentation, https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md
|
|
8
|
+
Project-URL: Issues, https://github.com/calebevans/mulder/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/calebevans/mulder/releases
|
|
10
|
+
Project-URL: Example report, https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html
|
|
11
|
+
Author: Caleb Evans
|
|
12
|
+
License-Expression: Apache-2.0
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: dfir,forensics,incident-response,mcp,mitre-attack,model-context-protocol,security,sift,volatility
|
|
15
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: Information Technology
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: Intended Audience :: System Administrators
|
|
20
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
28
|
+
Classifier: Topic :: Security
|
|
29
|
+
Classifier: Topic :: System :: Systems Administration
|
|
30
|
+
Classifier: Typing :: Typed
|
|
31
|
+
Requires-Python: >=3.10
|
|
32
|
+
Requires-Dist: claude-agent-sdk>=0.2
|
|
33
|
+
Requires-Dist: click>=8.3
|
|
34
|
+
Requires-Dist: detect-secrets>=1.5
|
|
35
|
+
Requires-Dist: httpx>=0.27
|
|
36
|
+
Requires-Dist: jinja2>=3.1.6
|
|
37
|
+
Requires-Dist: markdown>=3.6
|
|
38
|
+
Requires-Dist: mcp>=1.27
|
|
39
|
+
Requires-Dist: oletools>=0.60
|
|
40
|
+
Requires-Dist: psutil>=5.9
|
|
41
|
+
Requires-Dist: pydantic>=2.12
|
|
42
|
+
Requires-Dist: python-evtx>=0.8.1
|
|
43
|
+
Requires-Dist: python-registry>=1.0
|
|
44
|
+
Requires-Dist: pyyaml>=6.0
|
|
45
|
+
Requires-Dist: rich>=15.0
|
|
46
|
+
Requires-Dist: sqlalchemy>=2.0
|
|
47
|
+
Requires-Dist: volatility3>=2.0
|
|
48
|
+
Provides-Extra: dev
|
|
49
|
+
Requires-Dist: mypy; extra == 'dev'
|
|
50
|
+
Requires-Dist: pre-commit; extra == 'dev'
|
|
51
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
52
|
+
Requires-Dist: pytest-asyncio; extra == 'dev'
|
|
53
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
54
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
55
|
+
Requires-Dist: twine; extra == 'dev'
|
|
56
|
+
Provides-Extra: forensics
|
|
57
|
+
Requires-Dist: colorama>=0.4.4; extra == 'forensics'
|
|
58
|
+
Requires-Dist: evtx>=0.6.2; extra == 'forensics'
|
|
59
|
+
Requires-Dist: orjson>=3.9.15; extra == 'forensics'
|
|
60
|
+
Requires-Dist: tqdm>=4.58.0; extra == 'forensics'
|
|
61
|
+
Requires-Dist: xxhash>=3.0; extra == 'forensics'
|
|
62
|
+
Provides-Extra: pdf
|
|
63
|
+
Requires-Dist: weasyprint>=60.0; extra == 'pdf'
|
|
64
|
+
Provides-Extra: stix
|
|
65
|
+
Requires-Dist: stix2>=3.0; extra == 'stix'
|
|
66
|
+
Description-Content-Type: text/markdown
|
|
67
|
+
|
|
68
|
+
<div align="center">
|
|
69
|
+
|
|
70
|
+
# mulder
|
|
71
|
+
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
Mulder takes a directory of forensic evidence (disk images, memory dumps, PCAPs, event logs) and runs a five-phase autonomous investigation with hard quality gates between each phase. It produces structured incident reports with MITRE ATT&CK mappings, IOC exports, and a full audit trail. An adversarial "Alternative Narrative" phase challenges every finding before the report is generated. All tool invocations go through typed MCP interfaces - never through a shell - and an append-only audit log validates every evidence citation at the API boundary, making findings with fabricated evidence citations structurally impossible to submit.
|
|
75
|
+
|
|
76
|
+
## Results
|
|
77
|
+
|
|
78
|
+
Four autonomous investigations against real forensic datasets, unmodified from tool output. Each case has an interactive HTML report on [GitHub Pages](https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html) (sidebar navigation, dark/light theme, audit trail). See the [examples index](https://github.com/calebevans/mulder/blob/main/examples/README.md) for all report links.
|
|
79
|
+
|
|
80
|
+
| Case | Systems | Evidence | Sources | Tool Calls | Findings | Runtime | Tokens | Report |
|
|
81
|
+
|------|---------|----------|---------|------------|----------|---------|--------|--------|
|
|
82
|
+
| [Rocba](https://github.com/calebevans/mulder/tree/main/examples/rocba/) | 1 | ~8 GB | 67 | 292 | 7 (1 high) | 66 min | 313K | [HTML](https://calebevans.github.io/mulder/examples/rocba/Rocba.report.html) |
|
|
83
|
+
| [SRL-2015](https://github.com/calebevans/mulder/tree/main/examples/srl-2015/) | 4 | ~30 GB | 159 | 610 | 29 (4 crit, 9 high) | 126 min | 300K | [HTML](https://calebevans.github.io/mulder/examples/srl-2015/SRL-2015.report.html) |
|
|
84
|
+
| [SRL-2018](https://github.com/calebevans/mulder/tree/main/examples/srl-2018/) | 11 | ~120 GB | 457 | 1,508 | 55 (11 crit, 19 high) | 336 min | 698K | [HTML](https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html) |
|
|
85
|
+
| [NIST Data Leakage](https://github.com/calebevans/mulder/tree/main/examples/ndlc/) | 4 | ~8 GB | 88 | 723 | 33 (15 high) | 102 min | 330K | [HTML](https://calebevans.github.io/mulder/examples/ndlc/ndlc.report.html) |
|
|
86
|
+
|
|
87
|
+
The NIST Data Leakage case has a [detailed accuracy report](https://github.com/calebevans/mulder/blob/main/examples/ndlc/ACCURACY-REPORT.md) validated against [published NIST ground truth](https://cfreds-archive.nist.gov/data_leakage_case/leakage-answers.pdf): 60% full match, 90% detection rate, 5% false positive rate. The single false positive involved incorrect causal attribution (blaming CCleaner for artifact destruction when the answer key confirms it was launched and closed without action).
|
|
88
|
+
|
|
89
|
+
## How It Works
|
|
90
|
+
|
|
91
|
+
<p align="center">
|
|
92
|
+
<img src="https://raw.githubusercontent.com/calebevans/mulder/main/docs/images/diagram.png" alt="Mulder Architecture and Security Boundaries" width="420">
|
|
93
|
+
</p>
|
|
94
|
+
|
|
95
|
+
Each investigation runs through five phases with quality gates between them. Phases 2-4 use a plan-and-execute pipeline with three specialized roles (planner, executor, analyst) that can optionally be assigned to different models for cost optimization.
|
|
96
|
+
|
|
97
|
+
1. **Catalog** - scan evidence directory, classify file types, identify distinct systems
|
|
98
|
+
2. **Extraction** - run applicable forensic tools per system, index results into FTS5 database
|
|
99
|
+
3. **Cross-System Analysis** - correlate events across systems, map MITRE ATT&CK techniques, deduplicate findings
|
|
100
|
+
4. **Alternative Narrative** - challenge the primary narrative with counter-evidence, test alternative hypotheses, audit for tool and evidence coverage gaps
|
|
101
|
+
5. **Report** - write the investigation narrative, generate Markdown/HTML reports, export IOCs and ATT&CK Navigator layers
|
|
102
|
+
|
|
103
|
+
Each gate validates structural criteria (minimum sources indexed, findings submitted, MITRE mappings present, audit tools invoked). Failed gates trigger retries with escalating turn budgets and gap-specific remediation instructions. See [Architecture](https://github.com/calebevans/mulder/blob/main/docs/architecture.md) for the full pipeline design.
|
|
104
|
+
|
|
105
|
+
## Key Design Decisions
|
|
106
|
+
|
|
107
|
+
**No shell access.** All 140+ tool invocations go through typed MCP interfaces with validated parameters. The agent never gets a shell. Every action is auditable and every parameter is constrained to its declared type.
|
|
108
|
+
|
|
109
|
+
**Anti-hallucination at the API boundary.** Every finding must cite `evidence_refs` that are real `tool_call_id` values from the append-only audit log. The MCP server validates these references at submission time and rejects findings that cite nonexistent tool calls. Timestamps are validated as ISO-8601 and auto-nullified when they appear fabricated. This is enforced architecturally, not by prompting.
|
|
110
|
+
|
|
111
|
+
**Adversarial self-review.** Phase 4 explicitly challenges the primary narrative before report generation. It formulates counter-hypotheses, searches for disconfirming evidence, and runs coverage audits to identify which tools were applicable but never invoked and which evidence sources were indexed but never cited.
|
|
112
|
+
|
|
113
|
+
**Token efficiency.** The SRL-2018 investigation (11 systems, 120 GB, 1,508 tool calls across 336 minutes) consumed 698K tokens. For cost optimization, the three pipeline roles (planner, executor, analyst) can be assigned to different models - routing mechanical tool-calling to a cheaper model while preserving reasoning quality for analysis.
|
|
114
|
+
|
|
115
|
+
## Quick Start
|
|
116
|
+
|
|
117
|
+
### Install natively (SIFT Workstation, Debian/Ubuntu)
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
curl -fsSL https://raw.githubusercontent.com/calebevans/mulder/main/install.sh | bash
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
One command. It prints what it will do, asks once, then installs the OS packages you are missing (via `apt`, asking for your sudo password), mulder itself (via `pipx`, no sudo), and the forensic data and helper tools (~2.1 GB, no sudo). On a stock SIFT Workstation the only OS package missing is `yara` — SIFT ships the `python3-yara` module but not the binary.
|
|
124
|
+
|
|
125
|
+
Prefer to run the steps yourself:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
sudo apt install git sleuthkit yara p7zip-full binutils
|
|
129
|
+
pipx install "mulder-dfir[forensics]"
|
|
130
|
+
mulder setup
|
|
131
|
+
mulder investigate /path/to/evidence my-case-id
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
`pipx` installs mulder into its own isolated virtualenv and puts the `mulder` command on your PATH; `uv tool install "mulder-dfir[forensics]"` works identically. The `forensics` extra pulls in Zircolite's runtime dependencies. If `mulder` is not found afterwards, open a new terminal — Ubuntu only adds `~/.local/bin` to `PATH` at login, and only if it already existed.
|
|
135
|
+
|
|
136
|
+
On first run mulder creates a working directory at `~/.mulder/workspace` (override with `--cwd` or `MULDER_CWD`) and writes a default `.mcp.json` into it. Case databases and reports go to `~/.mulder/cases` (override with `--db-dir`).
|
|
137
|
+
|
|
138
|
+
`mulder setup` downloads everything mulder owns - rule sets, signatures, and helper binaries - in one run (~2.2 GB, no `sudo`, refuses to run as root). It pins the same versions the container image uses. The rest of the forensic toolchain (Sleuth Kit, plaso, Zeek, `dotnet`) is your OS's job; SIFT already provides all of it except the `yara` binary above. See the [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md#native-install) for the full picture. The container remains available if you would rather not install anything at all.
|
|
139
|
+
|
|
140
|
+
### Run with Docker (everything preinstalled)
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
docker pull ghcr.io/calebevans/mulder:1.4.0
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
mkdir -p ~/mulder-cases
|
|
148
|
+
|
|
149
|
+
docker run -it --privileged \
|
|
150
|
+
-v /path/to/evidence:/evidence:ro \
|
|
151
|
+
-v ~/mulder-cases:/home/mulder/.mulder/cases \
|
|
152
|
+
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
|
|
153
|
+
ghcr.io/calebevans/mulder:1.4.0
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
mulder investigate /evidence my-case-id
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
For Vertex AI, Amazon Bedrock, non-Anthropic models via LiteLLM, and full CLI options, see the [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md).
|
|
161
|
+
|
|
162
|
+
### Use as an MCP server
|
|
163
|
+
|
|
164
|
+
Add to `claude_desktop_config.json` / `.mcp.json`:
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"mcpServers": {
|
|
169
|
+
"mulder": {
|
|
170
|
+
"type": "stdio",
|
|
171
|
+
"command": "mulder",
|
|
172
|
+
"args": ["serve"]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Without installing first, `uvx mulder-dfir serve` works too.
|
|
179
|
+
|
|
180
|
+
### Case Briefing (Optional)
|
|
181
|
+
|
|
182
|
+
Drop a `MULDER.md` file in your evidence directory to provide case context:
|
|
183
|
+
|
|
184
|
+
```markdown
|
|
185
|
+
## What We Know
|
|
186
|
+
- The network was breached on March 15
|
|
187
|
+
- Suspect account: jsmith
|
|
188
|
+
|
|
189
|
+
## What We're Looking For
|
|
190
|
+
- How did the attacker gain initial access?
|
|
191
|
+
- Was data exfiltrated?
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
The briefing is injected into every investigation phase, guiding tool selection, analysis focus, and report framing. See the [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md#case-briefing) for details.
|
|
195
|
+
|
|
196
|
+
## Forensic Tools
|
|
197
|
+
|
|
198
|
+
Mulder integrates 35+ open-source forensic tools exposed as 140+ typed MCP operations:
|
|
199
|
+
|
|
200
|
+
| Category | Tools |
|
|
201
|
+
|----------|-------|
|
|
202
|
+
| Memory | Volatility 3 (14 plugins) |
|
|
203
|
+
| Disk | Sleuthkit, Plaso, foremost, PhotoRec, Scalpel |
|
|
204
|
+
| Windows artifacts | EZ Tools (Prefetch, Amcache, ShimCache, MFT, USN Journal, Jump Lists, Shellbags, SRUM), RegRipper, Hayabusa (3,700+ Sigma rules), Chainsaw |
|
|
205
|
+
| Event logs | python-evtx, Zircolite |
|
|
206
|
+
| Network | tshark, Zeek, Suricata, tcpflow, tcpxtract |
|
|
207
|
+
| Malware | YARA, CAPA, FLOSS, ClamAV, radare2, Detect-It-Easy \* |
|
|
208
|
+
| Documents | oletools, PDF tools, pst-utils |
|
|
209
|
+
| Mobile | ALEAPP, iLEAPP, MVT |
|
|
210
|
+
| Other | bulk_extractor, binwalk, ExifTool, ssdeep, hashdeep, steghide, Hindsight |
|
|
211
|
+
|
|
212
|
+
\* Detect-It-Easy is supported but not bundled: its `.deb` pulls in ten `libqt5*` packages for a CLI that draws nothing. `run_detect_it_easy` uses it if `diec` is on `$PATH`, and reports it as missing otherwise. Packing is still flagged without it — `triage_binary` checks section entropy, RWX permissions, known packer section names and import-table shape.
|
|
213
|
+
|
|
214
|
+
Full API reference: [Tool Manifest](https://github.com/calebevans/mulder/blob/main/docs/tool-manifest.md)
|
|
215
|
+
|
|
216
|
+
## Output
|
|
217
|
+
|
|
218
|
+
Each investigation produces:
|
|
219
|
+
|
|
220
|
+
- **Markdown and HTML reports** - executive summary, attack timeline, findings with MITRE ATT&CK mappings, IOC tables, and audit trail ([example HTML reports](https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html))
|
|
221
|
+
- **Per-case SQLite database** - FTS5 full-text search across all indexed evidence
|
|
222
|
+
- **Append-only audit log** - JSONL recording every tool invocation with BLAKE2b output hashes
|
|
223
|
+
- **Optional exports** - STIX 2.1 IOC bundle, CSV IOC list, and MITRE ATT&CK Navigator layer via `mulder export-iocs` and `mulder export-navigator`
|
|
224
|
+
|
|
225
|
+
## Documentation
|
|
226
|
+
|
|
227
|
+
| Document | Description |
|
|
228
|
+
|----------|-------------|
|
|
229
|
+
| [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md) | Installation, providers, CLI reference, Docker configuration |
|
|
230
|
+
| [Architecture](https://github.com/calebevans/mulder/blob/main/docs/architecture.md) | System design, pipeline phases, quality gates, data flow |
|
|
231
|
+
| [Tool Manifest](https://github.com/calebevans/mulder/blob/main/docs/tool-manifest.md) | API reference for all MCP tools |
|
|
232
|
+
| [Adding Tools](https://github.com/calebevans/mulder/blob/main/docs/adding-tools.md) | Contributor guide for adding new forensic tools |
|
|
233
|
+
| [Glossary](https://github.com/calebevans/mulder/blob/main/docs/glossary.md) | Terminology and definitions |
|
|
234
|
+
|
|
235
|
+
## License
|
|
236
|
+
|
|
237
|
+
Apache-2.0
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# mulder
|
|
4
|
+
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
Mulder takes a directory of forensic evidence (disk images, memory dumps, PCAPs, event logs) and runs a five-phase autonomous investigation with hard quality gates between each phase. It produces structured incident reports with MITRE ATT&CK mappings, IOC exports, and a full audit trail. An adversarial "Alternative Narrative" phase challenges every finding before the report is generated. All tool invocations go through typed MCP interfaces - never through a shell - and an append-only audit log validates every evidence citation at the API boundary, making findings with fabricated evidence citations structurally impossible to submit.
|
|
8
|
+
|
|
9
|
+
## Results
|
|
10
|
+
|
|
11
|
+
Four autonomous investigations against real forensic datasets, unmodified from tool output. Each case has an interactive HTML report on [GitHub Pages](https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html) (sidebar navigation, dark/light theme, audit trail). See the [examples index](https://github.com/calebevans/mulder/blob/main/examples/README.md) for all report links.
|
|
12
|
+
|
|
13
|
+
| Case | Systems | Evidence | Sources | Tool Calls | Findings | Runtime | Tokens | Report |
|
|
14
|
+
|------|---------|----------|---------|------------|----------|---------|--------|--------|
|
|
15
|
+
| [Rocba](https://github.com/calebevans/mulder/tree/main/examples/rocba/) | 1 | ~8 GB | 67 | 292 | 7 (1 high) | 66 min | 313K | [HTML](https://calebevans.github.io/mulder/examples/rocba/Rocba.report.html) |
|
|
16
|
+
| [SRL-2015](https://github.com/calebevans/mulder/tree/main/examples/srl-2015/) | 4 | ~30 GB | 159 | 610 | 29 (4 crit, 9 high) | 126 min | 300K | [HTML](https://calebevans.github.io/mulder/examples/srl-2015/SRL-2015.report.html) |
|
|
17
|
+
| [SRL-2018](https://github.com/calebevans/mulder/tree/main/examples/srl-2018/) | 11 | ~120 GB | 457 | 1,508 | 55 (11 crit, 19 high) | 336 min | 698K | [HTML](https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html) |
|
|
18
|
+
| [NIST Data Leakage](https://github.com/calebevans/mulder/tree/main/examples/ndlc/) | 4 | ~8 GB | 88 | 723 | 33 (15 high) | 102 min | 330K | [HTML](https://calebevans.github.io/mulder/examples/ndlc/ndlc.report.html) |
|
|
19
|
+
|
|
20
|
+
The NIST Data Leakage case has a [detailed accuracy report](https://github.com/calebevans/mulder/blob/main/examples/ndlc/ACCURACY-REPORT.md) validated against [published NIST ground truth](https://cfreds-archive.nist.gov/data_leakage_case/leakage-answers.pdf): 60% full match, 90% detection rate, 5% false positive rate. The single false positive involved incorrect causal attribution (blaming CCleaner for artifact destruction when the answer key confirms it was launched and closed without action).
|
|
21
|
+
|
|
22
|
+
## How It Works
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<img src="https://raw.githubusercontent.com/calebevans/mulder/main/docs/images/diagram.png" alt="Mulder Architecture and Security Boundaries" width="420">
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
Each investigation runs through five phases with quality gates between them. Phases 2-4 use a plan-and-execute pipeline with three specialized roles (planner, executor, analyst) that can optionally be assigned to different models for cost optimization.
|
|
29
|
+
|
|
30
|
+
1. **Catalog** - scan evidence directory, classify file types, identify distinct systems
|
|
31
|
+
2. **Extraction** - run applicable forensic tools per system, index results into FTS5 database
|
|
32
|
+
3. **Cross-System Analysis** - correlate events across systems, map MITRE ATT&CK techniques, deduplicate findings
|
|
33
|
+
4. **Alternative Narrative** - challenge the primary narrative with counter-evidence, test alternative hypotheses, audit for tool and evidence coverage gaps
|
|
34
|
+
5. **Report** - write the investigation narrative, generate Markdown/HTML reports, export IOCs and ATT&CK Navigator layers
|
|
35
|
+
|
|
36
|
+
Each gate validates structural criteria (minimum sources indexed, findings submitted, MITRE mappings present, audit tools invoked). Failed gates trigger retries with escalating turn budgets and gap-specific remediation instructions. See [Architecture](https://github.com/calebevans/mulder/blob/main/docs/architecture.md) for the full pipeline design.
|
|
37
|
+
|
|
38
|
+
## Key Design Decisions
|
|
39
|
+
|
|
40
|
+
**No shell access.** All 140+ tool invocations go through typed MCP interfaces with validated parameters. The agent never gets a shell. Every action is auditable and every parameter is constrained to its declared type.
|
|
41
|
+
|
|
42
|
+
**Anti-hallucination at the API boundary.** Every finding must cite `evidence_refs` that are real `tool_call_id` values from the append-only audit log. The MCP server validates these references at submission time and rejects findings that cite nonexistent tool calls. Timestamps are validated as ISO-8601 and auto-nullified when they appear fabricated. This is enforced architecturally, not by prompting.
|
|
43
|
+
|
|
44
|
+
**Adversarial self-review.** Phase 4 explicitly challenges the primary narrative before report generation. It formulates counter-hypotheses, searches for disconfirming evidence, and runs coverage audits to identify which tools were applicable but never invoked and which evidence sources were indexed but never cited.
|
|
45
|
+
|
|
46
|
+
**Token efficiency.** The SRL-2018 investigation (11 systems, 120 GB, 1,508 tool calls across 336 minutes) consumed 698K tokens. For cost optimization, the three pipeline roles (planner, executor, analyst) can be assigned to different models - routing mechanical tool-calling to a cheaper model while preserving reasoning quality for analysis.
|
|
47
|
+
|
|
48
|
+
## Quick Start
|
|
49
|
+
|
|
50
|
+
### Install natively (SIFT Workstation, Debian/Ubuntu)
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
curl -fsSL https://raw.githubusercontent.com/calebevans/mulder/main/install.sh | bash
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
One command. It prints what it will do, asks once, then installs the OS packages you are missing (via `apt`, asking for your sudo password), mulder itself (via `pipx`, no sudo), and the forensic data and helper tools (~2.1 GB, no sudo). On a stock SIFT Workstation the only OS package missing is `yara` — SIFT ships the `python3-yara` module but not the binary.
|
|
57
|
+
|
|
58
|
+
Prefer to run the steps yourself:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
sudo apt install git sleuthkit yara p7zip-full binutils
|
|
62
|
+
pipx install "mulder-dfir[forensics]"
|
|
63
|
+
mulder setup
|
|
64
|
+
mulder investigate /path/to/evidence my-case-id
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`pipx` installs mulder into its own isolated virtualenv and puts the `mulder` command on your PATH; `uv tool install "mulder-dfir[forensics]"` works identically. The `forensics` extra pulls in Zircolite's runtime dependencies. If `mulder` is not found afterwards, open a new terminal — Ubuntu only adds `~/.local/bin` to `PATH` at login, and only if it already existed.
|
|
68
|
+
|
|
69
|
+
On first run mulder creates a working directory at `~/.mulder/workspace` (override with `--cwd` or `MULDER_CWD`) and writes a default `.mcp.json` into it. Case databases and reports go to `~/.mulder/cases` (override with `--db-dir`).
|
|
70
|
+
|
|
71
|
+
`mulder setup` downloads everything mulder owns - rule sets, signatures, and helper binaries - in one run (~2.2 GB, no `sudo`, refuses to run as root). It pins the same versions the container image uses. The rest of the forensic toolchain (Sleuth Kit, plaso, Zeek, `dotnet`) is your OS's job; SIFT already provides all of it except the `yara` binary above. See the [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md#native-install) for the full picture. The container remains available if you would rather not install anything at all.
|
|
72
|
+
|
|
73
|
+
### Run with Docker (everything preinstalled)
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
docker pull ghcr.io/calebevans/mulder:1.4.0
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
mkdir -p ~/mulder-cases
|
|
81
|
+
|
|
82
|
+
docker run -it --privileged \
|
|
83
|
+
-v /path/to/evidence:/evidence:ro \
|
|
84
|
+
-v ~/mulder-cases:/home/mulder/.mulder/cases \
|
|
85
|
+
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \
|
|
86
|
+
ghcr.io/calebevans/mulder:1.4.0
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
mulder investigate /evidence my-case-id
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
For Vertex AI, Amazon Bedrock, non-Anthropic models via LiteLLM, and full CLI options, see the [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md).
|
|
94
|
+
|
|
95
|
+
### Use as an MCP server
|
|
96
|
+
|
|
97
|
+
Add to `claude_desktop_config.json` / `.mcp.json`:
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"mcpServers": {
|
|
102
|
+
"mulder": {
|
|
103
|
+
"type": "stdio",
|
|
104
|
+
"command": "mulder",
|
|
105
|
+
"args": ["serve"]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Without installing first, `uvx mulder-dfir serve` works too.
|
|
112
|
+
|
|
113
|
+
### Case Briefing (Optional)
|
|
114
|
+
|
|
115
|
+
Drop a `MULDER.md` file in your evidence directory to provide case context:
|
|
116
|
+
|
|
117
|
+
```markdown
|
|
118
|
+
## What We Know
|
|
119
|
+
- The network was breached on March 15
|
|
120
|
+
- Suspect account: jsmith
|
|
121
|
+
|
|
122
|
+
## What We're Looking For
|
|
123
|
+
- How did the attacker gain initial access?
|
|
124
|
+
- Was data exfiltrated?
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
The briefing is injected into every investigation phase, guiding tool selection, analysis focus, and report framing. See the [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md#case-briefing) for details.
|
|
128
|
+
|
|
129
|
+
## Forensic Tools
|
|
130
|
+
|
|
131
|
+
Mulder integrates 35+ open-source forensic tools exposed as 140+ typed MCP operations:
|
|
132
|
+
|
|
133
|
+
| Category | Tools |
|
|
134
|
+
|----------|-------|
|
|
135
|
+
| Memory | Volatility 3 (14 plugins) |
|
|
136
|
+
| Disk | Sleuthkit, Plaso, foremost, PhotoRec, Scalpel |
|
|
137
|
+
| Windows artifacts | EZ Tools (Prefetch, Amcache, ShimCache, MFT, USN Journal, Jump Lists, Shellbags, SRUM), RegRipper, Hayabusa (3,700+ Sigma rules), Chainsaw |
|
|
138
|
+
| Event logs | python-evtx, Zircolite |
|
|
139
|
+
| Network | tshark, Zeek, Suricata, tcpflow, tcpxtract |
|
|
140
|
+
| Malware | YARA, CAPA, FLOSS, ClamAV, radare2, Detect-It-Easy \* |
|
|
141
|
+
| Documents | oletools, PDF tools, pst-utils |
|
|
142
|
+
| Mobile | ALEAPP, iLEAPP, MVT |
|
|
143
|
+
| Other | bulk_extractor, binwalk, ExifTool, ssdeep, hashdeep, steghide, Hindsight |
|
|
144
|
+
|
|
145
|
+
\* Detect-It-Easy is supported but not bundled: its `.deb` pulls in ten `libqt5*` packages for a CLI that draws nothing. `run_detect_it_easy` uses it if `diec` is on `$PATH`, and reports it as missing otherwise. Packing is still flagged without it — `triage_binary` checks section entropy, RWX permissions, known packer section names and import-table shape.
|
|
146
|
+
|
|
147
|
+
Full API reference: [Tool Manifest](https://github.com/calebevans/mulder/blob/main/docs/tool-manifest.md)
|
|
148
|
+
|
|
149
|
+
## Output
|
|
150
|
+
|
|
151
|
+
Each investigation produces:
|
|
152
|
+
|
|
153
|
+
- **Markdown and HTML reports** - executive summary, attack timeline, findings with MITRE ATT&CK mappings, IOC tables, and audit trail ([example HTML reports](https://calebevans.github.io/mulder/examples/srl-2018/SRL-2018.report.html))
|
|
154
|
+
- **Per-case SQLite database** - FTS5 full-text search across all indexed evidence
|
|
155
|
+
- **Append-only audit log** - JSONL recording every tool invocation with BLAKE2b output hashes
|
|
156
|
+
- **Optional exports** - STIX 2.1 IOC bundle, CSV IOC list, and MITRE ATT&CK Navigator layer via `mulder export-iocs` and `mulder export-navigator`
|
|
157
|
+
|
|
158
|
+
## Documentation
|
|
159
|
+
|
|
160
|
+
| Document | Description |
|
|
161
|
+
|----------|-------------|
|
|
162
|
+
| [Usage Guide](https://github.com/calebevans/mulder/blob/main/docs/usage-guide.md) | Installation, providers, CLI reference, Docker configuration |
|
|
163
|
+
| [Architecture](https://github.com/calebevans/mulder/blob/main/docs/architecture.md) | System design, pipeline phases, quality gates, data flow |
|
|
164
|
+
| [Tool Manifest](https://github.com/calebevans/mulder/blob/main/docs/tool-manifest.md) | API reference for all MCP tools |
|
|
165
|
+
| [Adding Tools](https://github.com/calebevans/mulder/blob/main/docs/adding-tools.md) | Contributor guide for adding new forensic tools |
|
|
166
|
+
| [Glossary](https://github.com/calebevans/mulder/blob/main/docs/glossary.md) | Terminology and definitions |
|
|
167
|
+
|
|
168
|
+
## License
|
|
169
|
+
|
|
170
|
+
Apache-2.0
|