National Cyber Warfare Foundation (NCWF)login

DFIR-ORC for forensic artefact collection on Windows systems


0 user ratings
2026-11-01 13:29:26
milo
Red Team (CNA)
"DFIR-ORC

DFIR-ORC is a C++ forensic artefact collection framework from the French ANSSI, built to acquire evidence from Windows hosts during authorized incident response engagements.








ToolDFIR-ORC/dfir-orc — forensics artefact collection tool for systems running Microsoft Windows, maintained by ANSSI
CategoryDigital forensics and incident response (DFIR) collection
Primary UseAcquiring forensic artefacts (files, registry, system data) from Windows hosts during authorized incident response, via a self-contained DFIR-ORC.exe capsule with embedded XML configuration
Safe UseDeployment on systems you own or are contractually authorized to investigate — CSIRT incident response, internal forensic triage, and lab-based research
Telemetry NoteAs a collection agent it reads system artefacts and writes output archives; its execution, embedded config and output locations are visible to EDR and host auditing, making its activity fully attributable on monitored systems

DFIR-ORC is a forensics artefact collection tool for systems running Microsoft Windows, and its provenance is one of its most interesting properties: the project is managed by ANSSI, the French Cybersecurity Agency, and carries badges classifying it as an official external ANSSI open-source project under the LGPL-2.1+ license. This is not a hobbyist utility but state-agency tooling released publicly, with roughly 450 stars on GitHub, a C++ codebase, and active release/10.3 and release/10.4 branches under continuous build workflows. The repository topics — collection, dfir, incident-response — describe exactly the niche it occupies: the acquisition phase of incident response, where a responder needs to pull a defined set of artefacts from a compromised or suspicious Windows host quickly, reproducibly, and with minimal footprint.


The architecture, as revealed by the README's build pipeline, is more sophisticated than a simple script. The source tree builds per-architecture binaries — the default platforms are x64-xp and x86-xp, with x64 and x86 presets also available — and then a component called OrcCapsule bundles the per-platform DFIR-ORC_.exe artifacts into a single self-selecting DFIR-ORC.exe. That capsule design means one executable can be carried to an unknown host and will select the right binary at runtime, which matters in real incidents where you rarely know in advance whether you will face a 32-bit or 64-bit system, or a legacy Windows XP-era machine.


The second architectural pillar is configuration embedding through a tool called ToolEmbed. When the build script is invoked with -ToolEmbed pointing at a configuration directory, the XML configuration and tools from that directory are injected into the capsule, producing DFIR-ORC-ready.exe. This is a significant operational detail for responders: the collection scope — which files, registry keys and system locations to acquire — is defined declaratively in XML and baked into the binary ahead of deployment. The result is a deterministic collector where every run of the same capsule acquires the same artefact set, which is exactly what forensic defensibility and reproducibility require.


The build experience is driven by a single PowerShell script, Build-Orc.ps1, which orchestrates the full pipeline: configure, build, package with OrcCapsule, then optionally embed configuration with ToolEmbed. The script exposes pragmatic knobs — -BuildConfig accepts Debug, MinSizeRel, or RelWithDebInfo (defaulting to MinSizeRel, a sensible choice for a size-conscious field binary), -Platform selects target presets, -BuildDir controls artifact placement, and -ConfigureOnly or -BuildOnly allow partial runs. A notable flag is -FastFind, which additionally builds and packages FastFind.exe, an auxiliary search-oriented binary that ships alongside the main collector.


The toolchain requirements are worth noting for anyone planning to build from source rather than trust distributed binaries. You need Visual Studio 2022 through 2026 with the *Desktop development with C++* workload — and, due to a vcpkg limitation, the English language pack only — plus PowerShell 5.1 or higher. The README also suggests provisioning a clean Windows 11 build environment via Hyper-V Quick Create from an evaluation image, which is good hygiene: building forensic collectors in a pristine VM reduces the risk of a compromised toolchain silently tainting the binaries you will later run on evidence systems.


Dependency management goes through vcpkg as a submodule, and the README documents a genuinely thorough offline build path — a strong signal of the intended audience. The procedure mirrors the vcpkg downloads directory, clones git --mirror copies of both dfir-orc and microsoft/vcpkg, transfers the mirror to the air-gapped machine, and rebuilds either from an internal git server or directly from the local filesystem with url.insteadOf rewrites for the submodule. That ANSSI bothered to document this level of isolation tells you the tool is expected to be built and run inside CSIRT environments where internet-facing build machines are not acceptable.


A basic invocation of the build is simply git clone --recursive https://github.com/dfir-orc/dfir-orc.git followed by Build-Orc.ps1, which produces DFIR-ORC.exe under \. For an embedded configuration, Build-Orc.ps1 -ToolEmbed .\config yields DFIR-ORC-ready.exe. The manual build path shows the underlying mechanics explicitly: separate cmake --preset configure and build steps per platform, then OrcCapsule.exe capsule add to combine the per-arch binaries with --output and --force. Configuration can also be embedded post-build by running the capsule's ToolEmbed command with /embed= and /out= parameters pointing at your config directory and output executable.


The README advises building both 32-bit and 64-bit versions for maximum compatibility before deployment, which aligns with the capsule philosophy. There is also a deprecated build.cmd-based configuration flow still documented, a reminder that the project has been through multiple generations — the current 10.x release series with maintained long-running branches indicates sustained stewardship rather than abandonware. Full deployment and configuration details live in separate documentation at dfir-orc.github.io, and the README correctly defers to it rather than duplicating runbooks.


An unusual and interesting acknowledgment appears at the bottom of the README: DFIR ORC discloses Microsoft source code with Microsoft's permission. This is characteristic of the Windows internals knowledge embedded in the tool — effective artefact collection on Windows requires understanding of NTFS structures, the registry, and system locations that is hard to acquire without reference implementations. It also signals a level of institutional legitimacy that most community forensic tools cannot claim.


From a defensive perspective, DFIR-ORC is worth understanding even if you never respond to incidents. A collector that reads registry hives, file system metadata and configured artefact locations will generate characteristic EDR telemetry: process execution of a signed-but-unfamiliar binary, bulk file reads, and archive writes to the configured output location. Because the configuration is embedded via ToolEmbed, blue teams can hash and inventory specific DFIR-ORC-ready.exe builds and treat them as known-good responder tooling, distinguishing legitimate collection from an attacker mimicking it. The LGPL-2.1+ license permits inspection and adaptation, though the DFIR ORC name and logos remain ANSSI property requiring express approval for use — a detail worth respecting if you fork the project for internal CSIRT purposes.



Official project repository for DFIR-ORC/dfir-orc.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/11/dfir-orc-for-forensic-artefact.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.