From 2b07d2d43888560be7b636845f16b3dbb9125f10 Mon Sep 17 00:00:00 2001 From: "Florian Amette (F4K)" <50982737+florianamette@users.noreply.github.com> Date: Sun, 8 Nov 2026 12:26:45 -0500 Subject: [PATCH 1/2] Describe running the content suites from a sibling edr-agent checkout The README now explains how to run the sigma/yara/ioc content suites from an edr-agent checkout cloned next to this one, which is what CI does. References to documentation outside the public repos are dropped. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud Signed-off-by: Florian Amette (F4K) <50982737+florianamette@users.noreply.github.com> --- .github/workflows/content.yml | 4 ++-- README.md | 18 ++++++++++++++---- sigma/README.md | 4 ++-- yara/lab/synthaea_lab_payload.yar | 2 +- 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/workflows/content.yml b/.github/workflows/content.yml index e6c6e43..53bc477 100644 --- a/.github/workflows/content.yml +++ b/.github/workflows/content.yml @@ -16,8 +16,8 @@ jobs: runs-on: ubuntu-latest env: CARGO_TERM_COLOR: always - # The engines live in the agent repo: lay out the umbrella (rules/ + agent/) and - # make a missing sibling fail instead of skipping the content suites. + # The engines live in the agent repo: check both public repos out side by side + # (rules/ + agent/) and make a missing sibling fail instead of skipping the content suites. SYNTHAEA_ROOT: ${{ github.workspace }} SYNTHAEA_REQUIRE_SIBLINGS: "1" defaults: diff --git a/README.md b/README.md index bfca65e..5bf7139 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,20 @@ Detection content shipped to agents, kept separate from engine code so it can ship on its own cadence (canary rings). To be migrated/curated from `old/rules` after review. -Part of the Synthaea umbrella ([synthaea-lab/edr](https://github.com/synthaea-lab/edr)), -checked out at `/rules`. The engines that validate this content live in the -agent repo; from the umbrella, `just test rules` runs the sigma/yara/ioc content suites -against this checkout (CI does the same: `.github/workflows/content.yml`). +Part of Synthaea, alongside the public `edr-agent`, `edr-server` and `edr-ml` repositories. +The engines that validate this content live in `edr-agent`. To run the content suites, +clone it next to this repository (`agent/` and `rules/` side by side, or point +`SYNTHAEA_ROOT` at their parent) and, from `agent/`: + +```sh +cargo test -p sigma --test content +cargo test -p yara --test content +cargo test -p intel --test content +``` + +Each suite loads this whole tree through the real engine: every rule must compile and fire +on its crafted matching sample. `SYNTHAEA_REQUIRE_SIBLINGS=1` makes a missing `rules/` +checkout fail instead of skipping. CI does the same: `.github/workflows/content.yml`. | Path | Purpose | | --- | --- | diff --git a/sigma/README.md b/sigma/README.md index a0d36d3..23349ef 100644 --- a/sigma/README.md +++ b/sigma/README.md @@ -4,8 +4,8 @@ Sigma rules evaluated on-device by the `sigma` engine crate. Layout: one directo platform, descriptive file names (the directory carries the platform, so no `lnx_`/ `win_` infix): `linux/base64_pipe_shell.yml`, `windows/powershell_encoded.yml`. A host loads **only the directories its platform runs** (`SigmaEngine::load_dir_for`, #980): Linux -`linux/`, Windows `windows/`, macOS `macos/` **and `linux/`** (the Unix-family rules; a choice, see -`docs/detection/sigma.md`). A rule in `macos/` never runs on a Linux host, and a rule outside the three +`linux/`, Windows `windows/`, macOS `macos/` **and `linux/`** (the Unix-family rules, by choice). +A rule in `macos/` never runs on a Linux host, and a rule outside the three directories runs nowhere. The content tests load the whole tree. Every rule must stay inside the engine's supported subset (`crates/sigma` docs) — the diff --git a/yara/lab/synthaea_lab_payload.yar b/yara/lab/synthaea_lab_payload.yar index 4c03676..0800a9f 100644 --- a/yara/lab/synthaea_lab_payload.yar +++ b/yara/lab/synthaea_lab_payload.yar @@ -1,4 +1,4 @@ -// Lab-only marker rule: the benign payloads dropped by lab/scenarios embed this +// Lab-only marker rule: the benign payloads dropped by the lab scenarios embed this // marker so YARA detection can be validated end to end without real malware. // Category `lab` ships to lab/dev agents only once per-ring content targeting exists. rule synthaea_lab_payload { From 0e96d002bc7f3ba56e9980c78260212d237a9b88 Mon Sep 17 00:00:00 2001 From: "Florian Amette (F4K)" <50982737+florianamette@users.noreply.github.com> Date: Sun, 8 Nov 2026 12:41:27 -0500 Subject: [PATCH 2/2] Use the renamed public repository names Sibling checkouts, CI and docs now name synthaea-lab/agent, server, ml and rules. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01AuFi2XQ6ctHQ1eNQ4Fz8ud Signed-off-by: Florian Amette (F4K) <50982737+florianamette@users.noreply.github.com> --- .github/workflows/content.yml | 2 +- README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/content.yml b/.github/workflows/content.yml index 53bc477..8bb6c97 100644 --- a/.github/workflows/content.yml +++ b/.github/workflows/content.yml @@ -30,7 +30,7 @@ jobs: persist-credentials: false - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - repository: synthaea-lab/edr-agent + repository: synthaea-lab/agent path: agent persist-credentials: false - uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable branch diff --git a/README.md b/README.md index 5bf7139..eced0bd 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@ Detection content shipped to agents, kept separate from engine code so it can ship on its own cadence (canary rings). To be migrated/curated from `old/rules` after review. -Part of Synthaea, alongside the public `edr-agent`, `edr-server` and `edr-ml` repositories. -The engines that validate this content live in `edr-agent`. To run the content suites, -clone it next to this repository (`agent/` and `rules/` side by side, or point -`SYNTHAEA_ROOT` at their parent) and, from `agent/`: +Part of Synthaea, alongside the public synthaea-lab/agent, synthaea-lab/server and +synthaea-lab/ml repositories. The engines that validate this content live in +synthaea-lab/agent. To run the content suites, check it out next to this repo as `agent/` +(this one as `rules/`, or point `SYNTHAEA_ROOT` at their parent) and, from `agent/`: ```sh cargo test -p sigma --test content