Adding with changes
This commit is contained in:
Родитель
3917c01be5
Коммит
eae3c184f0
|
@ -18,26 +18,26 @@
|
||||||
tags:
|
tags:
|
||||||
- CVE-2021-44228
|
- CVE-2021-44228
|
||||||
query: |
|
query: |
|
||||||
let log4j_execve=()
|
let log4j_execve=()
|
||||||
{
|
{
|
||||||
Syslog
|
Syslog
|
||||||
| where SyslogMessage has "AUOMS_EXECVE"
|
| where SyslogMessage has "AUOMS_EXECVE"
|
||||||
| where SyslogMessage has 'jndi' and SyslogMessage has_any ('ldap', 'dns', 'rmi', 'corba', 'iiop', 'nis', 'nds')
|
| where SyslogMessage has 'jndi' and SyslogMessage has_any ('ldap', 'dns', 'rmi', 'corba', 'iiop', 'nis', 'nds')
|
||||||
| parse SyslogMessage with "type=" EventType " audit(" * "): " EventData
|
| parse SyslogMessage with "type=" EventType " audit(" * "): " EventData
|
||||||
| where EventType =~ "AUOMS_EXECVE"
|
| where EventType =~ "AUOMS_EXECVE"
|
||||||
| project TimeGenerated, EventType, Computer, EventData
|
| project TimeGenerated, EventType, Computer, EventData
|
||||||
| extend EventData = trim_end('containerid=',EventData)
|
| extend EventData = trim_end('containerid=',EventData)
|
||||||
| parse kind=regex EventData with * "success=" success " exit=" * "ppid=" ppid "pid=" pid
|
| parse kind=regex EventData with * "success=" success " exit=" * "ppid=" ppid "pid=" pid
|
||||||
"audit_user=" audit_user "auid=" * "user=" user " uid=" uid " group=" * "comm=\"" comm "\" exe=\"" exe
|
"audit_user=" audit_user "auid=" * "user=" user " uid=" uid " group=" * "comm=\"" comm "\" exe=\"" exe
|
||||||
"\"" * "cwd=\"" cwd "\" name=\"" name "\" (inode|nametype)=" * "(proctitle|cmdline)=" cmdline
|
"\"" * "cwd=\"" cwd "\" name=\"" name "\" (inode|nametype)=" * "(proctitle|cmdline)=" cmdline
|
||||||
| extend cmdline = trim_end('redactors=.*',cmdline)
|
| extend cmdline = trim_end('redactors=.*',cmdline)
|
||||||
};
|
};
|
||||||
log4j_execve
|
log4j_execve
|
||||||
| where comm has_any ("wget","curl")
|
| where comm has_any ("wget","curl")
|
||||||
| where cmdline has_any ("${jndi:ldap","${jndi:dns","${jndi:rmi","${jndi:corba","${jndi:iiop","${jndi:nis", "${jndi:nds")
|
| where cmdline has_any ("${jndi:ldap","${jndi:dns","${jndi:rmi","${jndi:corba","${jndi:iiop","${jndi:nis", "${jndi:nds")
|
||||||
| project TimeGenerated, Computer, audit_user, user, cmdline
|
| project TimeGenerated, Computer, audit_user, user, cmdline
|
||||||
| extend AccountCustomEntity = user, HostCustomEntity = Computer, timestamp = TimeGenerated
|
| extend AccountCustomEntity = user, HostCustomEntity = Computer, timestamp = TimeGenerated
|
||||||
| sort by TimeGenerated desc
|
| sort by TimeGenerated desc
|
||||||
entityMappings:
|
entityMappings:
|
||||||
- entityType: Host
|
- entityType: Host
|
||||||
fieldMappings:
|
fieldMappings:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче