Skip to main content

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)]]
Filter by provider, not by level

Event 739 is logged at Warning level, so a rule that keeps only Critical and Error events will drop it.

Event IDs​

IDLevelSinceWhat it meansMessage body
739Warning2.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)
740Warning2.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!
741Information2.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>.
742Error2.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_info and smb_info are 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 null or "" 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_at is Unix seconds taken from the host's local clock, not UTC. The event's own TimeCreated is 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 version field 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.

Upgrade to 2.0.3.0 or later for the full picture

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​

FieldTypeSinceNotes
uuidstring2.0.1.6+Agent's unique ID
versionstring2.0.1.6+Agent version, e.g. 2.0.1.6
hostname, ip_address, mac_addressstring2.0.1.6+
policy_platformstring2.0.3.0+windows
action_takenstring2.0.1.6+alert, killed, suspended or no action. denied added in 2.0.3.0+
detected_atinteger2.0.1.6+Unix seconds from the host's local clock, not UTC. Use the event's TimeCreated instead
is_parentboolean2.0.1.6+true = the detection was attributed to the parent process; check the parent_* fields

Process doing the writing​

FieldTypeSinceNotes
pidinteger2.0.1.6+Process ID. 0 on network-share detections
process_namestring2.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_pathstring2.0.1.6+Full path of the program. Empty on network-share detections
process_md5, process_sha1, process_sha256string2.0.1.6+Hashes of the program's executable. null on network-share detections
command_linestring2.0.3.0+Program's command line, when available
executing_usernamestring2.0.3.0+Account running the program. UNKNOWN_USER if it could not be resolved
executing_user_sidstring2.0.3.0+Windows security identifier (SID) of that account. "" if unknown
ca_name, publisher_cn, cert_thumbprintstring2.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_infoJSON string2.0.3.0+Script interpreter detections only (e.g. PowerShell): {"script_name", "script_path"}

Parent process​

FieldTypeSinceNotes
parent_pidinteger2.0.1.6+
parent_process_name, parent_process_pathstring2.0.1.6+
parent_process_md5, parent_process_sha1, parent_process_sha256string2.0.1.6+Hashes of the parent's executable
parent_executing_usernamestring2.0.3.0+Account running the parent process, when resolvable

File being written​

FieldTypeSinceNotes
file_pathstring2.0.1.6+
md5, sha1, sha256string2.0.1.6+Hashes of the file being written, not the program
file_sizeinteger2.0.1.6+Bytes (unsigned 64-bit)
quarantine_file_namestring2.0.1.6+Expect null in the event log

Detection-type specific​

FieldTypeSinceNotes
classificationstring2.0.3.0+Wiper detections only. Always Wiper Behavior
behavior_typestring2.0.3.0+Wiper detections only: constant_fill, short_pattern_fill, partial_interleaved or generic
smb_infoJSON string2.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_packagevarious2.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.