pC_wazuh4776.md
June 14, 2023 ยท View on GitHub
Parser Content
{
Name = wazuh-4776
DataType = "windows-4776"
Conditions = [ """"data.id":"4776"""", """"type":"wazuh-alerts"""", """"decoder.parent":"windows"""" ]
Fields = ${WazuhParserTemplates.wazuh-windows-template.Fields} [
"""({event_name}The (computer|domain controller) attempted to validate the credentials for an account)"""
"""The ({login_type}computer|domain)(\s\w+)? attempted to validate the credentials"""
"""Logon (?:a|A)ccount:(?:\s{1,100}Source Workstation|\s{0,100}({user}[^\s@]{1,2000}?)(?:@({domain}[^\s.]{1,2000}).*?)?\s{0,100}Source Workstation)"""
"""Error Code:\s{0,100}({result_code}[\w\-]{1,2000})"""
"""Source Workstation:\s{0,100}\\*(?:\s{1,100}Error Code:|(({src_ip}\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s{0,100}Error Code:)|(\s{0,100}({src_host}[^\s]{1,2000}?)\s{0,100}Error Code:))\s{0,100}"""
]
DupFields = ["host->dest_host"]
wazuh-windows-template = {
Vendor = Microsoft
Product = Windows
Lms = Direct
TimeFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
Fields = [
""""data.id":"({event_code}\d{1,100})"""",
""""@timestamp":"({time}\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ)""",
""""data.dstuser":"(\(no user\)|({dest_user}[^"]{1,2000}))""",
""""data.status":"({outcome}[^"]{1,2000})""",
""""location":"({log_location}[^"]{1,2000})""",
""""data.data":"({data}[^"]{1,2000})""",
""""path":"({log_path}[^"]{1,2000})""",
""""data.system_name":"({host}[^"]{1,2000})""",
""""agent.id":"({agent_id}\d{1,100})""",
""""manager.name":"({wazuh_manager}[^"]{1,2000})""",
""""data.data":"({data}[^"]{1,2000})""",
""""rule.description":"({description}[^"]{1,2000})""",
""""decoder.name":"({decoder_name}[^"]{1,2000})"""
}