Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/1_DFIQ_Question.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ body:
A Question should be specific enough that it can be readily answered
and not easily divided into multiple parts (if it can be, it likely
should be multiple Questions). A single Question can be reused in
multiple different Facets.
multiple different Facets or Scenarios.

## Fields from the DFIQ Specification

Expand All @@ -26,9 +26,9 @@ body:
The required fields are marked, but filling out as many as you can now will make
creating the DFIQ YAML file easier later.
- type: input
id: display_name
id: name
attributes:
label: Display Name
label: Name
description: "The Question, in natural language. Example: _What files were downloaded using a web browser?_"
validations:
required: true
Expand All @@ -44,7 +44,7 @@ body:
attributes:
label: DFIQ Version
description: The [DFIQ Specification](https://dfiq.org/spec) version in the major.minor.patch scheme (probably leave this as-is).
value: "1.0.0"
value: "1.1.0"
validations:
required: true
- type: dropdown
Expand Down Expand Up @@ -77,8 +77,8 @@ body:
id: parent_ids
attributes:
label: Parent IDs
description: List of DFIQ Facet IDs that this Question belongs to. Optional.
placeholder: F1234, F5678
description: List of DFIQ Facet or Scenario IDs (or UUIDs) that this Question belongs to. Optional.
placeholder: F1234, S5678
validations:
required: false
- type: markdown
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/2_DFIQ_Facet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
# DFIQ: Facets


Facets are used for intermediate-level grouping in DFIQ. A particular Facet
Facets are used for optional intermediate-level grouping in DFIQ. A particular Facet
can be part of multiple different Scenarios and will contain multiple Questions.
A Facet breaks the larger Scenario into smaller logical pieces, but a Facet
is still too broad to answer directly; it must also be broken down (into Questions).
Expand All @@ -22,9 +22,9 @@ body:
The required fields are marked, but filling out as many as you can now will make
creating the DFIQ YAML file easier later.
- type: input
id: display_name
id: name
attributes:
label: Display Name
label: Name
description: "The Facet, in natural language. Example: _Are there signs of staging data for future exfiltration?_"
validations:
required: true
Expand All @@ -40,7 +40,7 @@ body:
attributes:
label: DFIQ Version
description: The [DFIQ Specification](https://dfiq.org/spec) version in the major.minor.patch scheme (probably leave this as-is).
value: "1.0.0"
value: "1.1.0"
validations:
required: true
- type: dropdown
Expand Down Expand Up @@ -73,7 +73,7 @@ body:
id: parent_ids
attributes:
label: Parent IDs
description: List of DFIQ Scenario IDs that this Facet belongs to. Optional.
description: List of DFIQ Scenario IDs (or UUIDs) that this Facet belongs to. Optional.
placeholder: S1234, S5678
validations:
required: false
Expand Down
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/3_DFIQ_Scenario.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ body:


A Scenario is the highest-level grouping in DFIQ. A Scenario is made of
one or more Facets (different "sides" of an investigation), which in
turn are made up of investigative Questions.
one or more Facets (different "sides" of an investigation) or directly
linked investigative Questions.


## Fields from the DFIQ Specification
Expand All @@ -21,9 +21,9 @@ body:
The required fields are marked, but filling out as many as you can now will make
creating the DFIQ YAML file easier later.
- type: input
id: display_name
id: name
attributes:
label: Display Name
label: Name
description: "A human-readable name for the Scenario. Example: _Data Exfiltration_"
validations:
required: true
Expand All @@ -42,7 +42,7 @@ body:
attributes:
label: DFIQ Version
description: The [DFIQ Specification](https://dfiq.org/spec) version in the major.minor.patch scheme (probably leave this as-is).
value: "1.0.0"
value: "1.1.0"
validations:
required: true
- type: dropdown
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/yamale.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
name: Validate DFIQ YAML

on:
[push]
on: [push, pull_request]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- name: Set up Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: 3.11
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry add yamale
- name: Validate Scenarios YAML
poetry install
- name: Validate DFIQ YAML
run: |
poetry run yamale -s utils/scenario_spec.yaml ./data/scenarios
poetry run yamale -s utils/facet_spec.yaml ./data/facets
poetry run yamale -s utils/question_spec.yaml ./data/questions
poetry run yamale -s utils/approach_spec.yaml ./data/approaches
poetry run yamale -s dfiq/utils/scenario_spec.yaml ./dfiq/data/scenarios
poetry run yamale -s dfiq/utils/facet_spec.yaml ./dfiq/data/facets
poetry run yamale -s dfiq/utils/question_spec.yaml ./dfiq/data/questions
- name: Run unit tests
run: poetry run python -m unittest discover -s tests -v
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

<img src="/site/docs/assets/dfiq-blue.png" width="100" alt="DFIQ Logo">

---
**Note:** This repository is currently under review for updates to align with DFIQ 1.1 and to ensure the website is up-to-date. (Last reviewed: 2026-03-10)
---

DFIQ is a collection of Digital Forensics Investigative Questions and the approaches to answering them.
The goal of the project is to build a comprehensive catalog of investigative knowledge to help drive
consistent, thorough, and explainable investigations.
Expand Down
2 changes: 1 addition & 1 deletion dfiq/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .dfiq import DFIQ, Scenario, Facet, Question, Approach

__all__ = ["DFIQ", "Scenario", "Facet", "Question", "Approach"]
__version__ = "1.0.1"
__version__ = "1.1.0"
__author__ = "Ryan Benson"
__email__ = "ryan@dfir.blog"
43 changes: 19 additions & 24 deletions dfiq/data/questions/Q1001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,25 @@ parent_ids:
- F1002
approaches:
- name: Detect browser downloads via change journal records
description: >-
description: |-
File downloads by some web browsers create a specific pattern of events on the
file system. We can use this to see browser downloads using NTFS change journal
(USN journal) records.

Chrome downloads on Windows create a specific pattern of events on the file system:

1. **Download starts with a `FILE CREATE` event to `.tmp` file; older Chrome
versions
have been observed creating four character file names (like `7DEE.tmp`)
1. **Download starts with a `FILE CREATE` event to `.tmp` file**; older Chrome
versions have been observed creating four character file names (like `7DEE.tmp`)
while newer versions use file names consistent with Version 4 UUIDs
(like `183011a0-f96c-4c98-b71b-ab8754fb0e0e.tmp`).
1. That `.tmp` file might be `RENAME`d to `Unconfirmed [6 digits].crdownload`.
1. If [2] `Unconfirmed...crdownload` `RENAME` didn't happen, the `.tmp` file
is
renamed to the eventual filename (with extension) with `.crdownload`
appended
at the end (like `cat.jpg.crdownload`). **In either case ([2] or [3]),
at
this point we have a file ending in .crdownload.**
1. If [2] `Unconfirmed...crdownload` `RENAME` didn't happen, the `.tmp` file is
renamed to the eventual filename (with extension) with `.crdownload` appended
at the end (like `cat.jpg.crdownload`). **In either case ([2] or [3]), at
this point we have a file ending in `.crdownload`.**
1. Once the download completes, the `.crdownload` suffix is removed via a
`USN_REASON_RENAME_OLD_NAME` event, leaving the downloaded file with its
final name.
final name.

Since [4] above captures the key information about the file download, we can search
change journal records for it.
Expand Down Expand Up @@ -96,23 +92,22 @@ approaches:
type: opensearch-query
value: data_type:"fs:ntfs:usn_change" {file_reference value} "USN_REASON_RENAME_NEW_NAME"
- name: Detect browser downloads via file system event logs
description: >-
description: |-
File downloads by some web browsers create a specific pattern of events on the
file system. We can use this to see browser downloads using file system logs (like
Santa).

Chrome downloads on macOS create a specific pattern of file system events:

1. **Download starts with a `WRITE` event to a temp file named like
`.com.google.Chrome.avXx0U`** (the suffix looks to be 6
letters/numbers). 1. That .com.google.Chrome... temp file might be `RENAME`d
to `Unconfirmed [6
digits].crdownload`.
1. If [2] `Unconfirmed...crdownload` `RENAME` didn't happen, the .com.google.
temp file is renamed to the eventual filename (with extension) with
`.crdownload` appended at the end (like `cat.jpg.crdownload`). **In
either
case ([2] or [3]), at this point we have a file ending in .crdownload.**
`.com.google.Chrome.avXx0U`** (the suffix looks to be 6 letters/numbers).
1. That `.com.google.Chrome...` temp file might be `RENAME`d to
`Unconfirmed [6 digits].crdownload`.
1. If [2] `Unconfirmed...crdownload` `RENAME` didn't happen, the
`.com.google.Chrome...` temp file is renamed to the eventual filename (with
extension) with `.crdownload` appended at the end (like `cat.jpg.crdownload`).
**In either case ([2] or [3]), at this point we have a file ending in
`.crdownload`.**
1. Once the download completes, the `.crdownload` suffix is removed via a
`RENAME` event, leaving the downloaded file with its final name.

Expand Down Expand Up @@ -151,7 +146,7 @@ approaches:
type: opensearch-query
value: data_type:"santa:file_system_event" action:RENAME file_path:"*\.crdownload"
- name: Collect download records from local browser artifacts (Plaso)
description: >-
description: |-
Parse download records from web browsers' own databases.

Most web browsers track file downloads (at least in non-Incognito/private sessions)
Expand Down Expand Up @@ -204,7 +199,7 @@ approaches:
type: pandas
value: query('data_type in ("chrome:history:file_downloaded", "safari:downloads:entry")')
- name: Collect download records from local browser artifacts (Hindsight)
description: >-
description: |-
Parse download records from web browsers' own databases.

Most web browsers track file downloads (at least in non-Incognito/private sessions)
Expand Down
8 changes: 4 additions & 4 deletions dfiq/data/questions/Q1018.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ parent_ids:
- F1004
approaches:
- name: Use Crowdstrike event search to link source processes to DNS queries
description: >-
description: |-
CrowdStrike records the source process ID (ContextProcessId) for DNSRequest event.

Crowdstrike is a detection platform, not a logging platform, so not all DNS requests
Expand Down Expand Up @@ -62,7 +62,7 @@ approaches:
event_simpleName=DnsRequest | fields ContextProcessId_decimal, DomainName] |
table _time, DomainName, ImageFileName
- name: Use Crowdstrike "Bulk Domains" to link source processes to DNS queries
description: >-
description: |-
CrowdStrike records the source process ID (ContextProcessId) for DNSRequest event.

Crowdstrike is a detection platform, not a logging platform, so not all DNS requests
Expand Down Expand Up @@ -98,7 +98,7 @@ approaches:
`PID`, `Process ID`, and `File Name` give the source process information for
the DNS query.
- name: Use Sysmon (Event ID 22) to link source processes to DNS queries (Splunk)
description: >-
description: |-
Sysmon Event ID 22 DnsQuery stores source process ID

DNS Query, event ID 22, records a DNS query being issued by a specific host and
Expand Down Expand Up @@ -133,7 +133,7 @@ approaches:
value: source="xmlwineventlog:microsoft-windows-sysmon/operational" EventCode=22
| table _time, host, process_id, process_path
- name: Use Sysmon (Event ID 22) to link source processes to DNS queries (Plaso)
description: >-
description: |-
Sysmon Event ID 22 DnsQuery stores source process ID

DNS Query, event ID 22, records a DNS query being issued by a specific host and
Expand Down
2 changes: 1 addition & 1 deletion dfiq/data/questions/Q1019.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ parent_ids:
- F1005
approaches:
- name: Collect process executions in Crowdstrike event search
description: >-
description: |-
CrowdStrike records process executions in ProcessRollup event.

CrowdStrike is a detection platform, not a logging platform, so not all ProcessRollup
Expand Down
4 changes: 2 additions & 2 deletions dfiq/data/questions/Q1020.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ parent_ids:
- F1029
approaches:
- name: Collect URL visit records from local browser artifacts (Plaso)
description: >-
description: |-
Parse URL visit records from web browsers' own databases.

Most web browsers track URL visits (at least in non-Incognito/private sessions)
Expand Down Expand Up @@ -84,7 +84,7 @@ approaches:
value: query('data_type in ("chrome:history:page_visited", "firefox:places:page_visited",
"safari:history:visit_sqlite")')
- name: Collect URL visit records from local browser artifacts (Hindsight)
description: >-
description: |-
Parse URL visit records from web browsers' own databases.

Most web browsers track URL visits (at least in non-Incognito/private sessions)
Expand Down
2 changes: 1 addition & 1 deletion dfiq/data/questions/Q1024.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ parent_ids:
- F1005
approaches:
- name: Search CrowdStrike logs for Incognito Chrome processes
description: >-
description: |-
CrowdStrike records the source process ID (ContextProcessId) for ProcessRollup
events.

Expand Down
4 changes: 2 additions & 2 deletions dfiq/data/questions/Q1036.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ parent_ids:
- F1027
approaches:
- name: Examine Windows Event Logs for PsExec executions
description: >-
description: |-
Parse the Windows Security Event Log and look for PsExec processes being created.

Windows systems can be set to log new process creation events to the Security
Expand Down Expand Up @@ -70,7 +70,7 @@ approaches:
value: data_type:"windows:evtx:record" event_identifier:4688 source_name:Microsoft-Windows-Security-Auditing
xml_string:"psexec.exe"
- name: Examine Windows Prefetch for evidence of PsExec usage
description: >-
description: |-
Parse Windows Prefetch files and look for PsExec.

Windows Prefetch files are designed to speed up application start times. To do
Expand Down
6 changes: 3 additions & 3 deletions dfiq/data/questions/Q1037.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ parent_ids:
- F1028
approaches:
- name: Examine Windows Event Logs for PsExeSvc Service Installations
description: >-
description: |-
Parse the Windows Security Event Log and look for the PsExeSvc service being installed.

Windows systems can be set to log new service installations to the System event
Expand Down Expand Up @@ -71,7 +71,7 @@ approaches:
value: data_type:"windows:evtx:record" event_identifier:7045 source_name:"Service
Control Manager" xml_string:"Name=\"ServiceName\">PSEXESVC"
- name: Examine Windows Prefetch for evidence of PsExeSvc
description: >-
description: |-
Parse Windows Prefetch files and look for PsExeSvc.

Windows Prefetch files are designed to speed up application start times. To do
Expand Down Expand Up @@ -112,7 +112,7 @@ approaches:
type: opensearch-query
value: data_type:"windows:prefetch:execution" AND executable:psexesvc\.exe
- name: Examine Windows Event Logs for PsExeSvc executions
description: >-
description: |-
Parse the Windows Security Event Log and look for PsExeSvc processes being created.

Windows systems can be set to log new process creation events to the Security
Expand Down
4 changes: 2 additions & 2 deletions dfiq/data/questions/Q1074.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ parent_ids:
- F1007
approaches:
- name: Examine Windows Event Logs for Audit Log cleared
description: >-
description: |-
Parse the Windows Security Event Log and look for "the audit log was cleared"
event.

Expand Down Expand Up @@ -66,7 +66,7 @@ approaches:
type: opensearch-query
value: data_type:"windows:evtx:record" event_identifier:1102 source_name:"Microsoft-Windows-Security-Auditing"
- name: Search CrowdStrike logs for indicator removal on host
description: >-
description: |-
CrowdStrike has built-in detections for "indicator removal on host" events.

Clearance/deletion of system logs would be recorded in CrowdStrike as a part of
Expand Down
Loading
Loading