rsigma
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesersigma
rsigma
Use rsigma to run Sigma rules. Author the YAML with the sigma-rules skill (). This skill covers the toolchain: command names, when to call MCP versus the CLI, and which command fits the job.
npx skills add timescale/sigma-rules -g -yFlag tables and option lists live at rsigma.io. Read them when you need a flag. Do not invent flags, and do not quote lint or auto-fix counts. The linting guide is the catalogue.
使用 rsigma 运行 Sigma 规则。使用 sigma-rules skill 编写 YAML()。该 skill 涵盖整个工具链:命令名称、何时调用 MCP 而非 CLI,以及适合具体任务的命令。
npx skills add timescale/sigma-rules -g -yCommand names
命令名称
The CLI is noun-led. These old top-level forms do not exist:
| Do not run | Run instead |
|---|---|
| |
| |
| |
| |
Groups:
| Group | Use it for |
|---|---|
| Evaluate events, explain a miss, classify schemas, and run or inspect the daemon ( |
| Lint, validate, draft, tune, test exemplars, backtest, and reverse-convert |
| Convert rules to a query ( |
| See how a pipeline rewrites a rule ( |
| Serve the toolchain to an agent ( |
| Scaffold and inspect |
engine daemonpipeline resolvedaemonmcp servemcprsigma --featuresFull tree: CLI reference.
CLI 采用名词优先的命名方式。以下旧的顶层形式已不存在:
| 不要运行 | 改为运行 |
|---|---|
| |
| |
| |
| |
命令组:
| 命令组 | 用途 |
|---|---|
| 评估事件、解释未命中原因、对 schema 进行分类,以及运行或检查 daemon( |
| lint、validate、起草、调优、测试 exemplars、回测以及反向转换规则 |
| 将规则转换为查询( |
| 查看 pipeline 如何重写规则( |
| 向 Agent 提供工具链( |
| 生成并检查 |
engine daemonpipeline resolvedaemonmcp servemcprsigma --features完整命令树:CLI 参考。
Prefer MCP when it is connected
已连接时优先使用 MCP
If is already connected, call its tools. They return JSON (, findings, matches) and you do not scrape CLI text. If it is not connected, use the CLI commands in workflows.md.
rsigma mcp serveokStart a local server only when the user wants the agent wired up:
bash
rsigma mcp serve --rules-dir rules/Always pass . Without it, path arguments are unconfined, cannot write, and refuses to start.
--rules-dirfix_rules--httpPoint at a running daemon when the task is live triage (incidents, silences, dispositions). Those tools stay off until that URL is set. Writes stay behind . Details: MCP server guide.
--daemon-url--allow-operate-writes如果 已经连接,请调用其工具。这些工具会返回 JSON(、findings、matches),无需抓取 CLI 文本。如果尚未连接,请使用 workflows.md 中的 CLI 命令。
rsigma mcp serveok仅当用户希望接入 Agent 时,才启动本地 server:
bash
rsigma mcp serve --rules-dir rules/始终传入 。如果不传,路径参数将不受限制, 无法写入,并且 会拒绝启动。
--rules-dirfix_rules--http在实时分诊(incidents、silences、dispositions)场景下,将 指向正在运行的 daemon。设置该 URL 前,这些工具将保持禁用。写操作仍受 控制。详情:MCP server 指南。
--daemon-url--allow-operate-writesWhich command
如何选择命令
- One-shot check against a file or a few events: . A long-running process with reload, metrics, and sinks:
engine eval.engine daemon - A rule from exemplar events (optional baseline, or for a temporal correlation):
--groups. A rule the user already described in words: write the YAML with sigma-rules, then lint and evaluate it here.rule draft - A noisy rule with known false positives and true positives that must still fire: .
rule tune - Embedded :
rsigma.exemplars. A separate corpus and expectations file:rule test.rule backtest - Why a rule missed: . How a pipeline rewrote fields:
engine explain.pipeline diff
The write-lint-evaluate-convert loop, with the MCP tool beside each CLI command, is in workflows.md.
- 对文件或少量事件执行一次性检查:。用于包含 reload、metrics 和 sinks 的长期运行进程:
engine eval。engine daemon - 根据 exemplar events 起草规则(可选 baseline,或为 temporal correlation 使用 ):
--groups。对于用户已经用文字描述的规则:使用 sigma-rules 编写 YAML,然后在此处进行 lint 和评估。rule draft - 已知 false positives 和 true positives、且仍必须触发的噪声规则:。
rule tune - 嵌入在 中的 exemplars:
rsigma.exemplars。独立的 corpus 和 expectations 文件:rule test。rule backtest - 规则未命中的原因:。pipeline 重写字段的方式:
engine explain。pipeline diff
完整的写入—lint—评估—转换循环,以及每个 CLI 命令对应的 MCP 工具,请参阅 workflows.md。
Convert
转换
Native targets run inside rsigma. Anything else is delegated to an installed sigma-cli.
bash
rsigma backend targets
rsigma backend convert -t postgres rules/
rsigma backend convert -t splunk rules/Native targets are (, ), , and , plus a backend-neutral target that is not a deployment backend. is the live list. Delegated conversion needs on (override with ). The Docker image has no Python, so delegation is a local-binary feature. On MCP, delegates only when the server was started with . Builtin pipeline names (, , ) are not translated for delegated targets. Pass a sigma-cli pipeline name or a YAML path.
postgrespostgresqlpglynxdbfibratustestbackend targetssigmaPATHRSIGMA_SIGMA_CLIconvert_rules--allow-sigma-cliecs_windowsfibratus_windowssysmonSee backend convert and sigma-cli delegation.
原生 targets 在 rsigma 内运行。其他 targets 均委托给已安装的 sigma-cli。
bash
rsigma backend targets
rsigma backend convert -t postgres rules/
rsigma backend convert -t splunk rules/原生 targets 包括 (、)、 和 ,以及与 backend 无关、不能作为部署 backend 的 target。 会显示实时列表。委托转换要求 位于 中(可通过 覆盖)。Docker 镜像不包含 Python,因此 delegation 需要本地二进制文件。在 MCP 上,只有 server 使用 启动时, 才会执行 delegation。对于 delegated targets,内置 pipeline 名称(、、)不会被转换。请传入 sigma-cli pipeline 名称或 YAML 路径。
postgrespostgresqlpglynxdbfibratustestbackend targetssigmaPATHRSIGMA_SIGMA_CLI--allow-sigma-cliconvert_rulesecs_windowsfibratus_windowssysmon