Builtin Pipelines
Builtin Pipelines
For the supported ECS, CIM, OCSF eval, Falcon, and UDM schemas and categories, see Canonicalizing Pipelines.
RSigma embeds four ready-to-use processing pipelines in the binary so common Windows and Linux ECS deployments work with no external YAML file. Reference them by name from any subcommand that accepts -p:
rsigma engine eval -r rules/ -p ecs_windows -e @events.ndjson
rsigma engine eval -r rules/ -p ecs_linux -e @linux-events.ndjson
rsigma engine daemon -r rules/ -p sysmon
rsigma backend convert rules/ -t fibratus -p fibratus_windows
rsigma backend convert rules/ -t postgres -p ecs_windows
Builtins are baked at compile time. Updating their content means upgrading rsigma; they are not file-watched, do not appear under --reload, and cannot be tweaked at runtime. Copy the YAML out to a local file (sources below) if you need to customize.
The builtin registry is the source of truth (ecs_windows, ecs_linux, fibratus_windows, sysmon via builtin_names()). Extra YAML files may live under crates/rsigma-eval/pipelines/ without being builtins; load those by path with -p path/to/file.yml. Shipped path-only examples: gcp_audit.yml (GCP audit data. prefix strip), cim_events.yml (Sigma to Splunk CIM for the portable five categories), ocsf_events.yml (Sigma to OCSF live JSON for eval; not Detection Finding output), and falcon_windows.yml (Sigma to CrowdStrike Falcon sensor JSON on Windows).
Added in v0.27.0 The same directory also ships udm_events.yml (Sigma to Google SecOps UDM nested JSON for eval).
Unreleased
ecs_windows
Maps generic Sigma/Sysmon field names to Elastic Common Schema (ECS) as produced by Winlogbeat and Elastic Agent. Derived from pySigma-backend-elasticsearch’s ecs_windows pipeline.
rsigma engine eval -r rules/ -p ecs_windows \
-e '{"process.command_line": "whoami", "winlog.channel": "Microsoft-Windows-Sysmon/Operational"}'
Priority: 20. Source: pipelines/ecs_windows.yml.
What it maps
Each transformation is gated by rule_conditions: logsource.category so only the relevant logsource categories receive each rename.
| Category | Sigma fields → ECS fields |
|---|---|
process_creation (Sysmon Event ID 1) |
CommandLine → process.command_line, Image → process.executable, OriginalFileName → process.pe.original_file_name, CurrentDirectory → process.working_directory, ProcessGuid → process.entity_id, ProcessId → process.pid, ParentProcessGuid → process.parent.entity_id, ParentProcessId → process.parent.pid, ParentImage → process.parent.executable, ParentCommandLine → process.parent.command_line, User → user.name, IntegrityLevel → winlog.event_data.IntegrityLevel, Hashes → winlog.event_data.Hashes, Company → process.pe.company, Description → process.pe.description, Product → process.pe.product, FileVersion → process.pe.file_version |
network_connection (Sysmon Event ID 3) |
SourceIp → source.ip, SourceHostname → source.domain, SourcePort → source.port, DestinationIp → destination.ip, DestinationHostname → destination.domain, DestinationPort → destination.port, DestinationPortName → network.protocol, Protocol → network.transport, Image → process.executable, User → user.name, ProcessId → process.pid |
image_load (Sysmon Event ID 7) |
ImageLoaded → file.path, Image → process.executable, Signed/SignatureStatus/Signature → file.code_signature.*, Imphash → file.pe.imphash, Company/Description/Product/FileVersion/OriginalFileName → file.pe.* |
file_event (Sysmon Event ID 11) |
TargetFilename → file.path, Image → process.executable, User → user.name |
registry_event (Sysmon Event ID 12/13/14) |
TargetObject → registry.path, Details/EventType → winlog.event_data.*, Image → process.executable |
dns_query (Sysmon Event ID 22) |
QueryName → dns.question.name, QueryStatus → sysmon.dns.status, Image → process.executable |
pipe_created (Sysmon Event ID 17/18) |
PipeName → file.name, Image → process.executable |
driver_load (Sysmon Event ID 6) |
ImageLoaded → file.path, Signed/SignatureStatus/Signature/Imphash → file.code_signature.* and file.pe.* |
create_remote_thread (Sysmon Event ID 8) |
SourceImage → process.executable, SourceProcessId → process.pid, TargetImage/TargetProcessId/StartFunction → winlog.event_data.* |
process_access (Sysmon Event ID 10) |
SourceImage → process.executable, SourceProcessId → process.pid, TargetImage/TargetProcessId/GrantedAccess/CallTrace → winlog.event_data.* |
| any Windows rule | EventID → event.code, Channel → winlog.channel, Provider_Name → winlog.provider_name, ComputerName → winlog.computer_name |
Pair with the right input
ecs_windows assumes the agent has already flattened the Windows events into ECS shape. It does NOT flatten raw .evtx records (those are nested under Event.System.* and Event.EventData.*). For raw .evtx files, use dotted-path rules or write a custom flattening pipeline. See Input Formats: EVTX.
ecs_linux
Maps Sigma field names to Elastic Common Schema for product: linux rules when your events are already ECS-shaped (for example Filebeat or Elastic Agent on Linux). Aligned with the overlapping blocks in ecs_windows.
rsigma engine eval -r rules/ -p ecs_linux -e @linux-events.ndjson
Priority: 20. Source: pipelines/ecs_linux.yml.
What it maps
Each transformation is gated by rule_conditions with product: linux and a category. Only the rows below are in the file. Windows-only optional fields from ecs_windows (for example IntegrityLevel, Hashes, QueryStatus to sysmon.dns.status) are not mapped on Linux by design.
| Category | Sigma fields to ECS fields |
|---|---|
process_creation |
CommandLine to process.command_line, Image to process.executable, OriginalFileName to process.pe.original_file_name, CurrentDirectory to process.working_directory, ProcessGuid to process.entity_id, ProcessId to process.pid, ParentProcessGuid to process.parent.entity_id, ParentProcessId to process.parent.pid, ParentImage to process.parent.executable, ParentCommandLine to process.parent.command_line, User to user.name, Company to process.pe.company, Description to process.pe.description, Product to process.pe.product, FileVersion to process.pe.file_version |
network_connection |
SourceIp to source.ip, SourceHostname to source.domain, SourcePort to source.port, DestinationIp to destination.ip, DestinationHostname to destination.domain, DestinationPort to destination.port, DestinationPortName to network.protocol, Protocol to network.transport, Image to process.executable, User to user.name, ProcessId to process.pid |
image_load |
ImageLoaded to file.path, Image to process.executable, Signed / SignatureStatus / Signature to file.code_signature.*, Imphash to file.pe.imphash, Company / Description / Product / FileVersion / OriginalFileName to file.pe.* |
file_event |
TargetFilename to file.path, Image to process.executable, User to user.name |
dns_query |
QueryName to dns.question.name, Image to process.executable |
Pair with the right input
Use with JSON or NDJSON where fields match ECS paths. This pipeline does not flatten raw audit envelopes; normalize first or extend the YAML for your shape.
fibratus_windows
Maps Sigma Windows logsource categories and PascalCase fields onto Fibratus kernel-event names and the lowercase-dotted Fibratus vocabulary (ps.exe, ps.cmdline, file.path, net.dip, …). Use it when converting Windows rules to Fibratus YAML so the output matches upstream Fibratus rules-library style.
rsigma backend convert -t fibratus -p fibratus_windows rules/windows/process_creation/
Priority: 20. Source: pipelines/fibratus_windows.yml.
What it does
field_name_mappingrenames Sigma fields to Fibratus attributes per category (process_creation,network_connection,file_event,image_load,registry_*,dns_query,pipe_created,create_remote_thread, and related).add_conditioninjectsevt.namediscriminators (for exampleCreateProcess,Connect) so Fibratus can short-circuit on the event name before the rest of the body.- Field notes follow Fibratus 3.0.0: on
CreateProcess,ps.*describes the created (child) process andps.parent.*the parent; cross-process targets useevt.arg[...].
Pair with backend convert -t fibratus and the Fibratus backend reference.
sysmon
Adds EventID routing conditions so logsource-scoped rules (e.g. category: process_creation) match the corresponding Sysmon event types when evaluating raw Sysmon JSON. Derived from pySigma-pipeline-sysmon.
rsigma engine eval -r rules/ -p sysmon \
-e '{"EventID": 1, "Image": "cmd.exe", "CommandLine": "whoami"}'
Priority: 10. Source: pipelines/sysmon.yml.
What it adds
Each transformation is add_condition with a matching rule_conditions: logsource.category. The injected condition combines with the rule’s own selection via AND.
| Logsource category | Injected condition |
|---|---|
process_creation |
EventID: 1 |
file_change |
EventID: 2 |
network_connection |
EventID: 3 |
sysmon_status |
EventID: [4, 16] |
process_termination |
EventID: 5 |
driver_load |
EventID: 6 |
image_load |
EventID: 7 |
create_remote_thread |
EventID: 8 |
raw_access_thread |
EventID: 9 |
process_access |
EventID: 10 |
file_event |
EventID: 11 |
registry_event |
EventID: [12, 13, 14] |
registry_add |
EventID: 12 |
registry_delete |
EventID: 12 |
registry_set |
EventID: 13 |
registry_rename |
EventID: 14 |
create_stream_hash |
EventID: 15 |
pipe_created |
EventID: [17, 18] |
wmi_event |
EventID: [19, 20, 21] |
dns_query |
EventID: 22 |
file_delete |
EventID: 23 |
clipboard_capture |
EventID: 24 |
process_tampering |
EventID: 25 |
file_delete_detected |
EventID: 26 |
file_block_executable |
EventID: 27 |
file_block_shredding |
EventID: 28 |
file_executable_detected |
EventID: 29 |
sysmon_error |
EventID: 255 |
After the routing conditions, a final change_logsource rewrites every Windows rule to product: windows, service: sysmon so downstream backends can use the unified logsource.
That rewrite is also the routing decision itself, in a form a consumer can read: rather than re-deriving which channel a process_creation rule belongs to, read logsource.service off the transformed rule. Use Engine::rules() after loading, or transform_collection when you need the rule without loading it. A custom pipeline that routes by add_condition alone leaves the logsource untouched, so mirror this closing transformation if anything downstream keys off service.
When it does NOT help
sysmon assumes events already have a flat EventID field. It does not flatten the nested EVTX shape. For raw .evtx input, either:
- Reference fields by their dotted EVTX path (
Event.System.EventID: 1) directly in the rule, or - Write a pipeline that
field_name_mapping-renamesEvent.System.EventIDtoEventIDbeforesysmonruns (higherpriority:).
Chaining builtins with file pipelines
Builtin and file pipelines compose by priority: (lower runs first). A typical Windows ECS deployment:
rsigma engine daemon -r rules/ \
-p sysmon \
-p ecs_windows \
-p /etc/rsigma/pipelines/org-overrides.yml
sysmon (priority 10) adds the EventID conditions first; ecs_windows (priority 20) renames the field names to ECS; finally the org overrides at, say, priority 50 add per-tenant table routing.
On Linux ECS events (no Sysmon routing), chain the Linux ECS builtin:
rsigma engine daemon -r rules/ \
-p ecs_linux
cim_events (path-only)
Maps Sysmon-style Sigma field names to Splunk CIM fields on normalized events (Endpoint, Network Traffic, Network Resolution). Covers the same five portable categories as ecs_linux.
Added in v0.27.0
rsigma engine eval -r rules/ \
-p crates/rsigma-eval/pipelines/cim_events.yml \
-e '{"dest_ip":"93.184.216.34","dest_port":443,"transport":"tcp"}'
Priority: 20. Source: pipelines/cim_events.yml.
| Category | Sigma fields to CIM fields |
|---|---|
process_creation |
CommandLine to process, Image to process_path, ProcessId to process_id, User to user, ParentCommandLine to parent_process, ParentImage to parent_process_path, ParentProcessId to parent_process_id |
network_connection |
SourceIp to src_ip, SourceHostname to src, SourcePort to src_port, DestinationIp to dest_ip, DestinationHostname to dest, DestinationPort to dest_port, DestinationPortName to app, Protocol to transport, User to user |
file_event |
TargetFilename to file_path, Image to image, User to user |
image_load |
ImageLoaded to loaded_file, Image to process_path, User to user |
dns_query |
QueryName to query |
ocsf_events (path-only)
Maps Sysmon-style Sigma fields to OCSF attribute paths on live input JSON for the five portable categories. Use with events that already carry OCSF nesting (process.cmd_line, src_endpoint.ip, and similar). This pipeline rewrites rules at evaluation time; it does not serialize daemon output as OCSF (?format=ocsf), and it is not the Postgres conversion YAML under rsigma-convert/pipelines/ocsf_postgres.yml.
rsigma engine eval -r rules/ \
-p crates/rsigma-eval/pipelines/ocsf_events.yml \
-e '{"class_uid":1007,"process":{"cmd_line":"whoami","file":{"path":"/bin/bash"}}}'
Priority: 20. Source: pipelines/ocsf_events.yml.
| Category | Sigma fields to OCSF paths |
|---|---|
process_creation |
CommandLine to process.cmd_line, Image to process.file.path, ProcessId to process.pid, User to process.user.name, ParentCommandLine to process.parent_process.cmd_line, ParentImage to process.parent_process.file.path, ParentProcessId to process.parent_process.pid |
network_connection |
SourceIp to src_endpoint.ip, SourcePort to src_endpoint.port, DestinationIp to dst_endpoint.ip, DestinationPort to dst_endpoint.port, Protocol to connection_info.protocol_name, Image to actor.process.file.path, User to actor.user.name |
file_event |
TargetFilename to file.path, Image to actor.process.file.path, User to actor.user.name |
image_load |
ImageLoaded to module.file.path, Image to actor.process.file.path, User to actor.user.name |
dns_query |
QueryName to query.hostname, Image to actor.process.file.path, User to actor.user.name |
falcon_windows (path-only)
Maps Sysmon-style Sigma fields to CrowdStrike Falcon sensor JSON for Windows rules in the five portable categories. Injects event_simpleName discriminators (ProcessRollup2, NetworkConnectIP4) and renames fields to Falcon export names (ImageFileName, RemoteAddressIP4, …). Use with FDR or NG-SIEM JSON lines, not with backend convert -t crowdstrike delegation alone (that path uses pySigma, not this eval rewrite).
rsigma engine eval -r rules/ \
-p crates/rsigma-eval/pipelines/falcon_windows.yml \
-e '{"event_simpleName":"ProcessRollup2","ImageFileName":"...\\\\cmd.exe","CommandLine":"whoami"}'
Priority: 20. Source: pipelines/falcon_windows.yml.
| Category | Sigma fields to Falcon fields |
|---|---|
process_creation |
Image to ImageFileName, CommandLine, ParentImage to ParentBaseFileName (file name, not full path), ParentProcessId, ProcessId to RawProcessId; adds event_simpleName: ProcessRollup2. UserName is not on raw ProcessRollup2 FDR records. |
network_connection |
SourceIp to LocalAddressIP4, SourcePort to LocalPort, DestinationIp to RemoteAddressIP4, DestinationPort to RemotePort, DestinationHostname to DomainName, Image to ImageFileName, ProcessId to ContextProcessId, User to UserName; adds event_simpleName: NetworkConnectIP4 |
file_event |
TargetFilename to TargetFileName, User to UserName; adds event_simpleName in PeFileWritten, FileWritten, or NewFileWritten |
dns_query |
QueryName to DomainName; adds event_simpleName: DnsRequest |
image_load |
ImageLoaded to FileName, Image to ImageFileName; adds event_simpleName: ImageLoadRollup2 |
Falcon macOS/Linux shapes and NetworkConnectIP6 are outside this file; see Canonicalizing Pipelines.
Added in v0.27.0
udm_events (path-only)
UnreleasedMaps Sysmon-style Sigma fields to Google SecOps UDM attribute paths on nested JSON (Chronicle exports, Bindplane/BigQuery UDM-shaped rows). Injects metadata.event_type gates per category. Not a builtin; does not register UDM as RSigma’s native schema or wire schema routing.
rsigma engine eval -r rules/ \
-p crates/rsigma-eval/pipelines/udm_events.yml \
-e '{"metadata":{"event_type":"PROCESS_LAUNCH"},"target":{"process":{"file":{"full_path":"/bin/bash"}}}}'
Priority: 20. Source: pipelines/udm_events.yml.
| Category | Sigma fields to UDM paths |
|---|---|
process_creation |
CommandLine to target.process.command_line, Image to target.process.file.full_path, ProcessId to target.process.pid, User to principal.user.userid, parents on principal.process.*; gate metadata.event_type: PROCESS_LAUNCH |
network_connection |
SourceIp/DestinationIp to principal.ip/target.ip (array values supported by eval), ports on principal.port/target.port, Protocol to network.ip_protocol, DestinationHostname to target.hostname, Image/User on principal.process.file.full_path / principal.user.userid; gate NETWORK_CONNECTION |
file_event |
TargetFilename to target.file.full_path, Image to principal.process.file.full_path; gate FILE_MODIFICATION or FILE_CREATION |
image_load |
ImageLoaded to target.process.file.full_path, Image to principal.process.file.full_path; gate PROCESS_MODULE_LOAD |
dns_query |
QueryName to network.dns.questions.name; gate NETWORK_DNS |
Limitations: only the listed metadata.event_type values; principal vs target semantics differ by event type (for example PROCESS_LAUNCH puts the new process on target.process); User maps to principal.user.userid only; export shape variants outside tested fixtures are unsupported.
See also
- Processing Pipelines for the full pipeline grammar, transformation types, and dynamic pipelines.
- Input Formats: EVTX for why these builtins do not match raw EVTX directly.
backend convertfor using builtin pipelines during rule conversion.- The OCSF pipelines (
pipelines/ocsf_postgres.yml,pipelines/ocsf_postgres_multi_table.yml) live incrates/rsigma-convert/pipelines/and are good copy-paste starting points for non-Windows schemas.