ML Rules

Download 156
Last updated Dec 28, 2024

ml-beacon-sessions

ml-beacon-sessions

Fetch session logs for detected beaconing connections.

Syntax

ml-beacon-sessions [schema=Schema] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] [duration=NUM{mon|w|d|h|m|s}] [threshold=Threshold]

Options

schema=Schema
Optional. Schema name (default: session)
from=yyyyMMddHHmmss
Optional. Start time (yyyyMMddHHmmss)
to=yyyyMMddHHmmss
Optional. End time (yyyyMMddHHmmss)
duration=NUM{mon|w|d|h|m|s}
Optional. Time duration (e.g., 1d, 1h)
threshold=Threshold
Optional. Average interval threshold in seconds (default: 600)

Output Fields

FieldTypeNameDescription
_timeDateTimeSession time. e.g. 2025-01-01 00:00:00
_tableStringTableTable name. e.g. pfsession
log_typeStringLog typeLog type. e.g. session
subtypeStringSubtypeLog subtype. e.g. start, end
session_idLongSession IDSession identifier. e.g. 123456
src_ipIP addressSource IPSource IP address. e.g. 192.168.0.1
src_portIntegerSource portSource port number. e.g. 54321
dst_ipIP addressDestination IPDestination IP address. e.g. 8.8.8.8
dst_portIntegerDestination portDestination port number. e.g. 443
protocolStringProtocolProtocol. e.g. TCP, UDP, ICMP
appStringApplicationApplication name. e.g. ssl, ms-netlogon, incomplete
policyStringPolicyPolicy name. e.g. allow-internet
actionStringActionAction taken. e.g. allow, deny
end_reasonStringEnd reasonSession end reason. e.g. aged-out, tcp-rst-from-client, tcp-rst-from-server
reasonStringReasonReason. e.g. policy-deny
src_zoneStringSource zoneSource zone. e.g. untrust, intranet
dst_zoneStringDestination zoneDestination zone. e.g. untrust, intranet
nat_src_ipIP addressNAT source IPNAT source IP. e.g. 203.0.113.1
nat_src_portIntegerNAT source portNAT source port. e.g. 12345
nat_dst_ipIP addressNAT destination IPNAT destination IP. e.g. 8.8.8.8
nat_dst_portIntegerNAT destination portNAT destination port. e.g. 443
total_bytesLongTotal bytesTotal bytes transferred. e.g. 3072000
sent_bytesLongSent bytesBytes sent. e.g. 1024000
rcvd_bytesLongReceived bytesBytes received. e.g. 2048000