SIEM Integration: Windows Event Log Reference
The SecuritySnares agent writes its events to the Windows System log under the provider RansomSnare.Agent. Event 739 is the detection event; its body is JSON, and newer agent versions add fields to it.
This reference covers agent versions 2.0.1.6 through 2.0.3.4 and is intended for teams building SIEM collection rules or parsers. For Microsoft Sentinel setup, including webhook ingestion through an Azure Logic App, see Microsoft Sentinel Integration in the User Guide.
Collecting the events
To collect only SecuritySnares detections, filter on the provider and event ID. Example XPath for an Azure Monitor data collection rule or a Windows Event Forwarding subscription:
System!*[System[Provider[@Name='RansomSnare.Agent'] and (EventID=739)]]
To also collect the operational events below, use:
System!*[System[Provider[@Name='RansomSnare.Agent'] and (EventID=739 or EventID=740 or EventID=741 or EventID=742)]]
Event 739 is logged at Warning level, so a rule that keeps only Critical and Error events will drop it.
Event IDs
| ID | Level | Since | What it means | Message body |
|---|---|---|---|---|
| 739 | Warning | 2.0.1.6+ | Detection. The agent caught a process doing ransomware- or wiper-like file activity and took the action in action_taken. | JSON (see Parsing event 739 and Event 739 fields) |
| 740 | Warning | 2.0.1.6+ | Duplicate agent instance. The agent service started while another agent process already held the agent's start lock. | RansomSnare multiple agent processes are detected! |
| 741 | Information | 2.0.1.6+ | Agent version changed. Written the first time the agent starts on a new version, after an upgrade or a downgrade. | RansomSnare has successfully updated to <new> from <old>. |
| 742 | Error | 2.0.3.0+ | Firewall rule could not be created. The agent could not add the Windows Firewall rule it needs to verify writes arriving from network (SMB) file shares. Written at most once every 5 minutes. | Fixed sentence plus Reason: with the Windows error |
Events 740, 741 and 742 in practice
- 740: two copies of the agent running at once is not a supported state, so the agent records it for administrators. It can occur around an upgrade or reinstall if the new service starts before the previous agent process has fully exited. A single 740 next to a 741 (version change) on the same host needs no action. Report repeated 740s outside an upgrade to SecuritySnares Support.
- 741: one per version change per host, whether the change came from a console update or an installer. It is a reliable way to track agent versions across the fleet. It is also written on a downgrade (for example
updated to 1.3.8.640 from 2.0.1.5). It is not written on a first install. - 742: until inbound UDP 55999 is allowed for
RansomSnare.Agent.Service.exe, writes from that host to protected file shares may be blocked. Allow the port, and check Group Policy or third-party firewalls that override local rules.
Parsing event 739
- Multi-line JSON. The message is one JSON object indented across several lines. Parse the whole message text, not line by line.
- Nested JSON strings.
script_infoandsmb_infoare strings whose content is itself JSON. Parse them a second time. - Missing vs. null. Fields marked 2.0.1.6+ are always present but can be
nullor""when they do not apply. Most newer fields are left out entirely when they do not apply. Do not make any newer field required. - Use the event time, not
detected_at.detected_atis Unix seconds taken from the host's local clock, not UTC. The event's ownTimeCreatedis the authoritative time. - A missing field is not always an error. A 2.0.1.6 agent never sends the 2.0.3.0+ fields. Check the
versionfield before flagging a detection as incomplete. - Allowed activity is not logged. Some security products log allow-listed activity as "allowed" or "suppressed" for auditing. SecuritySnares does not: when a program matches an Allow List entry, no event is written. Review your allow list in the console, not in the SIEM.
Event 739 fields
Since: 2.0.1.6+ fields are sent by every supported agent. 2.0.3.0+ fields are sent only by agent 2.0.3.0 and later.
Hosts on 2.0.1.6 send only the base fields. Upgrading adds the user account, command line, code-signing publisher, script details and network-share client to every detection. Upgrades can be pushed from the SecuritySnares console (see Agent Updates); contact SecuritySnares Support to plan your rollout.
Host and detection
| Field | Type | Since | Notes |
|---|---|---|---|
uuid | string | 2.0.1.6+ | Agent's unique ID |
version | string | 2.0.1.6+ | Agent version, e.g. 2.0.1.6 |
hostname, ip_address, mac_address | string | 2.0.1.6+ | |
policy_platform | string | 2.0.3.0+ | windows |
action_taken | string | 2.0.1.6+ | alert, killed, suspended or no action. denied added in 2.0.3.0+ |
detected_at | integer | 2.0.1.6+ | Unix seconds from the host's local clock, not UTC. Use the event's TimeCreated instead |
is_parent | boolean | 2.0.1.6+ | true = the detection was attributed to the parent process; check the parent_* fields |
Process doing the writing
| Field | Type | Since | Notes |
|---|---|---|---|
pid | integer | 2.0.1.6+ | Process ID. 0 on network-share detections |
process_name | string | 2.0.1.6+ | Can be empty if Windows did not give the agent the program's identity. On network-share detections: SMB remote client <ip>:<port> |
process_path | string | 2.0.1.6+ | Full path of the program. Empty on network-share detections |
process_md5, process_sha1, process_sha256 | string | 2.0.1.6+ | Hashes of the program's executable. null on network-share detections |
command_line | string | 2.0.3.0+ | Program's command line, when available |
executing_username | string | 2.0.3.0+ | Account running the program. UNKNOWN_USER if it could not be resolved |
executing_user_sid | string | 2.0.3.0+ | Windows security identifier (SID) of that account. "" if unknown |
ca_name, publisher_cn, cert_thumbprint | string | 2.0.3.0+ | Certificate authority, publisher name and certificate thumbprint of the program's digital signature. Present only when the agent captured signing details |
script_info | JSON string | 2.0.3.0+ | Script interpreter detections only (e.g. PowerShell): {"script_name", "script_path"} |
Parent process
| Field | Type | Since | Notes |
|---|---|---|---|
parent_pid | integer | 2.0.1.6+ | |
parent_process_name, parent_process_path | string | 2.0.1.6+ | |
parent_process_md5, parent_process_sha1, parent_process_sha256 | string | 2.0.1.6+ | Hashes of the parent's executable |
parent_executing_username | string | 2.0.3.0+ | Account running the parent process, when resolvable |
File being written
| Field | Type | Since | Notes |
|---|---|---|---|
file_path | string | 2.0.1.6+ | |
md5, sha1, sha256 | string | 2.0.1.6+ | Hashes of the file being written, not the program |
file_size | integer | 2.0.1.6+ | Bytes (unsigned 64-bit) |
quarantine_file_name | string | 2.0.1.6+ | Expect null in the event log |
Detection-type specific
| Field | Type | Since | Notes |
|---|---|---|---|
classification | string | 2.0.3.0+ | Wiper detections only. Always Wiper Behavior |
behavior_type | string | 2.0.3.0+ | Wiper detections only: constant_fill, short_pattern_fill, partial_interleaved or generic |
smb_info | JSON string | 2.0.3.0+ | Network-share (SMB) detections only: {"client_ip", "client_port", "user_sid", "file_path", "server_hostname", "mode"}; mode is alert-only or protect |
executing_uid, parent_executing_uid, process_package, parent_process_package | various | 2.0.3.0+ | Linux agents only. Never sent from Windows hosts |
Examples
Illustrative values. Do not rely on field order.
Agent 2.0.1.6, process killed
{
"uuid": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8a90",
"version": "2.0.1.6",
"ip_address": "10.20.30.40",
"mac_address": "00-15-5D-01-02-03",
"hostname": "WKS-0142",
"is_parent": false,
"pid": 7344,
"process_name": "payload.exe",
"process_path": "C:\\Users\\jsmith\\Downloads\\payload.exe",
"process_md5": "<32 hex>",
"process_sha1": "<40 hex>",
"process_sha256": "<64 hex>",
"parent_pid": 5120,
"parent_process_name": "explorer.exe",
"parent_process_path": "C:\\Windows\\explorer.exe",
"parent_process_md5": "<32 hex>",
"parent_process_sha1": "<40 hex>",
"parent_process_sha256": "<64 hex>",
"file_path": "C:\\Users\\jsmith\\Documents\\budget.xlsx",
"md5": "<32 hex>",
"sha1": "<40 hex>",
"sha256": "<64 hex>",
"file_size": 48213,
"detected_at": 1793809883,
"action_taken": "killed",
"quarantine_file_name": null
}
Agent 2.0.3.x, PowerShell script, alert-only
The same fields as 2.0.1.6, plus or changed:
{
"process_name": "powershell.exe",
"action_taken": "alert",
"script_info": "{\"script_name\":\"encrypt.ps1\",\"script_path\":\"C:\\\\Temp\\\\encrypt.ps1\"}",
"executing_username": "CONTOSO\\jsmith",
"executing_user_sid": "S-1-5-21-1111111111-2222222222-3333333333-1104",
"command_line": "powershell.exe -ExecutionPolicy Bypass -File C:\\Temp\\encrypt.ps1",
"ca_name": "Microsoft Windows Production PCA 2011",
"publisher_cn": "Microsoft Windows",
"cert_thumbprint": "<40 hex>",
"parent_executing_username": "CONTOSO\\jsmith",
"policy_platform": "windows"
}
script_info is a string; parse its value as JSON a second time.
Questions
Contact support@securitysnares.com for help with collection rules or parsing.