pC_cefpowershell300.md
June 14, 2023 ยท View on GitHub
Parser Content
{
Name = cef-powershell-300
Vendor = Microsoft
Product = Windows
Lms = Splunk
DataType = "process-created"
TimeFormat = "yyyy-MM-dd'T'HH:mm:ss"
Conditions = [ """CEF: """, """|Microsoft|PowerShell|""", """PowerShell:300|""" ]
Fields = [
"""({time}\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d)""",
""""UserId"":""({user_sid}.+?)"""",
""""Computer"":""({host}.+?)"""",
""""ScriptBlockId"":""({scriptblock_id}.+?)"""",
""""ScriptBlockText"":""({scriptblock_text}.+?)"""",
"""-Function\s{1,100}'({function}[^']{1,2000})""",
""""MessageTotal"":""(|({message_total}.+?))"""",
""""MessageNumber"":""(|({message_number}.+?))"""",
"""message=({script_message}[^:]{1,2000})""",
""""Path"":""(|({path}.+?))"""",
""""ProcessID"":""({pid}\d{1,100})"""",
"""-file\s({process}({process_directory}[^\s]{1,2000}\\\\({process_name}[^\s\\]{1,2000})))""",
"""CommandLine\\*=({command_line}[^\s]{1,2000})""",
]
}