pC_powershell800syslog.md
June 14, 2023 ยท View on GitHub
Parser Content
{
Name = powershell-800-syslog
Vendor = Microsoft
Product = Windows
Lms = Direct
DataType = "powershell-activity"
TimeFormat = "yyyy-MM-dd'T'HH:mm:ss"
Conditions = [ """Windows PowerShell""", """PowerShell (800)""", """CommandLine=""" ]
Fields = [
"""({time}\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d)[+-]\S+\s{0,100}({host}\S+)\sEvntSLog""",
"""UserId=({domain}[^\\]{0,2000}?)\\{1,25}(SYSTEM|({user}[^=]{0,2000}?))\s{1,100}HostName""",
"""Host\s{0,100}Application\s{0,100}=\s{0,100}({powershell_image}[^=]{1,2000}\.\w+)\s""",
"""ScriptName =\s{0,100}({process}({directory}([\w:]{1,2000}\\)?([^\\=]{1,2000}?\\)*?)({process_name}[^\\=]{0,2000}?))\s{1,100}CommandLine=""",
"""CommandLine=\s{0,100}({command_line}.*?)\s{0,100}Details:""",
"""Details:.*?CommandInvocation.*?ParameterBinding.*?value="{1,20}\s{0,100}({command_module}[^"]{0,2000}?)\s{0,100}"{1,20}""",
"""Details:.+?CommandInvocation\(.+?\):\s{0,100}\\*"{1,20}\s{0,100}({command_invocation}[^"\\]{1,2000})\s{0,100}""",
"""({event_code}800)"""
]
}