CI test harness for detection rules against `Atomic Red Team`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- github-actions, go
- 领域
- ci-cd, security, testing-qa
调研方向
Start by reading the Fibratus alert log output and the atomic-red-team fork's technique IDs, then design the atomic-ID-to-rule mapping file the issue proposes. Build Fibratus from master and run a single atomic to confirm the log records a matching alert. Done means a push-triggered workflow runs selected atomics, reports coverage, and fails below a threshold. The open design choices (threshold, retry policy, the AV question) need maintainer input first.
由索引模型根据 Issue 内容生成。
描述
Motivation
Fibratus's detection rules currently have no automated, continuous validation against real attack technique execution. As a Detection-as-Code practice, rules should be tested the same way code is, automatically, on every change, with a measurable pass/fail signal rather than validated ad hoc. This also surfaces rule regressions early: a refactor to the rules engine or an event schema change could silently break existing detections without anyone noticing until a real incident.
Expectation
A GitHub Actions workflow that, on every push to master, builds and runs the latest Fibratus, executes a curated set of Atomic Red Team techniques (including new atomics specific to process injection and privilege escalation not yet covered upstream), checks which techniques triggered a matching Fibratus alert, and reports coverage, failing the build if coverage drops below a defined threshold.
Proposal
- Atomics source. Use the fork at rabbitstack/atomic-red-team rather than upstream redcanaryco/atomic-red-team, since new atomics need to be authored there to cover process injection and privilege escalation techniques not currently present upstream
- Workflow trigger. Run on every push to
master - Pipeline steps
- Build Fibratus from the latest master
- Install it. Check for the operational status of the Fibratus service
- Clone the rabbitstack/atomic-red-team fork
- Execute the selected/tagged atomics relevant to the covered techniques, with jitter between executions (randomized delay) so techniques don't fire all at once, avoiding event bursts that could mask timing-sensitive detections or overwhelm the pipeline
- Parse the Fibratus log file for generated alerts after the run
- Match fired alerts against the executed atomics/techniques (by technique ID) to compute a coverage percentage
- Generate a report summarizing matched vs. unmatched rules and overall coverage %
- Fail the workflow if coverage falls below a configured threshold
- Upload the test harness results (report, raw Fibratus logs, per-technique pass/fail) as GitHub Actions artifacts
Additional context
- Per-technique mapping file. Maintain an explicit mapping between atomic test IDs (or MITRE ATT&CK technique/sub-technique IDs) and the Fibratus rule(s) expected to fire, so the harness knows which alert should correspond to which atomic rather than just checking "did any alert fire"
- False-positive tracking, not just coverage. Alongside true-positive coverage %, consider tracking whether benign/unrelated activity during the run triggers unexpected alerts, to catch overly broad rules
- Flaky/timing-sensitive atomics. Some atomics may require retries or longer observation windows before the corresponding event surfaces (e.g. async telemetry, delayed persistence triggers). Consider a per-technique timeout/retry policy rather than a single fixed wait
- Historical trend, not just pass/fail. Persisting coverage % over time (e.g. as a badge or trend chart from uploaded artifacts) would make regressions visible even when they don't cross the failure threshold
- Windows Defender/AV interference. Defender or other AV on the runner could intercept/quarantine atomics before Fibratus ever observes them
- 主要语言
- Go
- 星标
- 2.6k
- 派生
- 222
- 平均合并
- 16 小时 23 分钟
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rabbitstack/fibratus 的其他 Issue
-
Service crashes on Windows Server 2016: "panic: sub-authority index out of range" in RidToString未关闭type: bug
难度 2/5 1-3 小时 新手友好度 82/100
rabbitstack/fibratus#761 · 1 条评论 ·
维护者通常 1 天内回复
-
CI: the test job has been red since September, and TestFsProcessor looks like a real mmap regression未关闭ci
难度 4/5 3-5 天 新手友好度 22/100
rabbitstack/fibratus#754 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
scope: hardering type: enhancement
难度 5/5 一周以上 新手友好度 15/100
rabbitstack/fibratus#713 ·
维护者通常 1 天内回复
-
needs: config scope: events/telemetry type: feature
难度 4/5 3-5 天 新手友好度 35/100
rabbitstack/fibratus#710 ·
维护者通常 1 天内回复
-
needs: config scope: events/telemetry type: feature
难度 4/5 3-5 天 新手友好度 30/100
rabbitstack/fibratus#708 ·
维护者通常 1 天内回复
查看 rabbitstack/fibratus 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
nebari-dev/llm-serving-pack#270 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
area/controller
难度 2/5 1-3 小时 新手友好度 70/100
volcano-sh/kthena#2109 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
unbound-force/replicator#193 ·
维护者通常 2 天内回复