Skip to main content

SYSMON

Constant SYSMON 

Source
pub const SYSMON: &str = "# Sysmon events from the Windows event log, as `evtx_dump -o json` writes\n# them: one JSON object per record, `Event.System` and `Event.EventData`.\n#\n# Kinds cover the Sysmon events the `sigma-windows` mapping set has entries\n# for, and write the OCSF paths it reads. Every EventData member not mapped\n# below is kept under `unmapped` by its Sysmon name, which is where that\n# mapping set looks for fields OCSF has no attribute for, such as\n# `OriginalFileName`.\n#\n# Values are kept as Sysmon wrote them wherever a Sigma rule may match their\n# text. IP addresses in particular are not rewritten to a canonical form:\n# `fe80:0:0:0:...` would become `fe80::...`, and a rule written against\n# Sysmon\'s spelling would stop matching.\n\nname: sysmon\nversion: 1\nframing: json-values\ndecoding: json\n\ncommon:\n  time: { from: Event.System.TimeCreated.#attributes.SystemTime, as: timestamp }\n  severity_id: { value: 1 }\n  metadata.version: { value: \"1.5.0\" }\n  metadata.product.name: { value: Sysmon }\n  metadata.product.vendor_name: { value: Microsoft }\n  metadata.log_name: Event.System.Channel\n  metadata.uid: { from: Event.System.EventRecordID, as: string }\n  device.hostname: Event.System.Computer\n  device.os.type_id: { value: 100 }\n  device.os.name: { value: Windows }\n\nkinds:\n  - name: process_creation\n    when:\n      Event.System.Provider.#attributes.Name: Microsoft-Windows-Sysmon\n      Event.System.EventID: 1\n    # Process Activity: Launch.\n    class: { class_uid: 1007, activity_id: 1 }\n    fields:\n      process.file.path: Event.EventData.Image\n      process.cmd_line: Event.EventData.CommandLine\n      process.pid: { from: Event.EventData.ProcessId, as: integer }\n      process.uid: Event.EventData.ProcessGuid\n      process.working_directory: Event.EventData.CurrentDirectory\n      process.integrity: Event.EventData.IntegrityLevel\n      process.user.name: Event.EventData.User\n      process.session.uid: Event.EventData.LogonId\n      process.file.product.name: Event.EventData.Product\n      process.file.company_name: Event.EventData.Company\n      process.file.desc: Event.EventData.Description\n      process.file.version: Event.EventData.FileVersion\n      process.parent_process.file.path: Event.EventData.ParentImage\n      process.parent_process.cmd_line: Event.EventData.ParentCommandLine\n      process.parent_process.pid: { from: Event.EventData.ParentProcessId, as: integer }\n      process.parent_process.uid: Event.EventData.ParentProcessGuid\n      process.parent_process.user.name: Event.EventData.ParentUser\n    unmapped: [Event.EventData]\n\n  - name: network_connection\n    when:\n      Event.System.Provider.#attributes.Name: Microsoft-Windows-Sysmon\n      Event.System.EventID: 3\n    # Network Activity: Open.\n    class: { class_uid: 4001, activity_id: 1 }\n    fields:\n      actor.process.file.path: Event.EventData.Image\n      actor.process.pid: { from: Event.EventData.ProcessId, as: integer }\n      actor.process.uid: Event.EventData.ProcessGuid\n      actor.user.name: Event.EventData.User\n      connection_info.protocol_name: Event.EventData.Protocol\n      src_endpoint.ip: Event.EventData.SourceIp\n      src_endpoint.hostname: Event.EventData.SourceHostname\n      src_endpoint.port: { from: Event.EventData.SourcePort, as: integer }\n      dst_endpoint.ip: Event.EventData.DestinationIp\n      dst_endpoint.hostname: Event.EventData.DestinationHostname\n      dst_endpoint.port: { from: Event.EventData.DestinationPort, as: integer }\n    unmapped: [Event.EventData]\n\n  - name: image_load\n    when:\n      Event.System.Provider.#attributes.Name: Microsoft-Windows-Sysmon\n      Event.System.EventID: 7\n    # Module Activity: Load.\n    class: { class_uid: 1005, activity_id: 1 }\n    fields:\n      actor.process.file.path: Event.EventData.Image\n      actor.process.pid: { from: Event.EventData.ProcessId, as: integer }\n      actor.process.uid: Event.EventData.ProcessGuid\n      actor.user.name: Event.EventData.User\n      module.file.path: Event.EventData.ImageLoaded\n      module.file.product.name: Event.EventData.Product\n      module.file.company_name: Event.EventData.Company\n      module.file.desc: Event.EventData.Description\n      module.file.version: Event.EventData.FileVersion\n    unmapped: [Event.EventData]\n\n  - name: file_create\n    when:\n      Event.System.Provider.#attributes.Name: Microsoft-Windows-Sysmon\n      Event.System.EventID: 11\n    # File System Activity: Create.\n    class: { class_uid: 1001, activity_id: 1 }\n    fields:\n      actor.process.file.path: Event.EventData.Image\n      actor.process.pid: { from: Event.EventData.ProcessId, as: integer }\n      actor.process.uid: Event.EventData.ProcessGuid\n      actor.user.name: Event.EventData.User\n      file.path: Event.EventData.TargetFilename\n    unmapped: [Event.EventData]\n\n  - name: registry_set\n    when:\n      Event.System.Provider.#attributes.Name: Microsoft-Windows-Sysmon\n      Event.System.EventID: 13\n    # Registry Value Activity: Set, from the OCSF Windows extension.\n    class: { class_uid: 201002, activity_id: 2 }\n    fields:\n      actor.process.file.path: Event.EventData.Image\n      actor.process.pid: { from: Event.EventData.ProcessId, as: integer }\n      actor.process.uid: Event.EventData.ProcessGuid\n      actor.user.name: Event.EventData.User\n      reg_value.path: Event.EventData.TargetObject\n    unmapped: [Event.EventData]\n";
Expand description

The Sysmon source definition shipped with this crate.