使用复制令牌创建的进程
编辑使用复制令牌创建的进程编辑
识别创建的进程模拟其他用户登录会话的令牌。攻击者可能会使用不同的令牌创建新进程来提升权限并绕过访问控制。
规则类型: eql
规则索引:
- logs-endpoint.events.process-*
严重性: 中等
风险评分: 47
每隔运行: 5m
从以下时间开始搜索索引: now-9m (日期数学格式,另请参阅 其他回溯时间
)
每次执行的最大警报数: 100
参考:
标签:
- 域:端点
- 操作系统:Windows
- 用例:威胁检测
- 策略:权限提升
- 数据源:Elastic Defend
版本: 3
规则作者:
- Elastic
规则许可: Elastic 许可证 v2
规则查询编辑
/* This rule is only compatible with Elastic Endpoint 8.4+ */ process where host.os.type == "windows" and event.action == "start" and user.id : ("S-1-5-21-*", "S-1-12-1-*") and (process.Ext.effective_parent.executable regex~ """[C-Z]:\\Windows\\(System32|SysWOW64)\\[a-zA-Z0-9\-\_\.]+\.exe""" or process.Ext.effective_parent.executable : "?:\\Windows\\explorer.exe") and ( process.name : ("powershell.exe", "cmd.exe", "rundll32.exe", "notepad.exe", "net.exe", "ntdsutil.exe", "tasklist.exe", "reg.exe", "certutil.exe", "bitsadmin.exe", "msbuild.exe", "esentutl.exe") or ((process.Ext.relative_file_creation_time <= 900 or process.Ext.relative_file_name_modify_time <= 900) and not process.code_signature.status : ("trusted", "errorExpired", "errorCode_endpoint*") and not process.executable : ("?:\\Program Files\\*", "?:\\Program Files (x86)\\*")) ) and not (process.name : "rundll32.exe" and process.command_line : ("*davclnt.dll,DavSetCookie*", "*?:\\Program Files*", "*\\Windows\\System32\\winethc.dll*", "*\\Windows\\SYSTEM32\\EDGEHTML.dll*", "*shell32.dll,SHCreateLocalServerRunDll*")) and not startswith~(process.Ext.effective_parent.name, process.parent.name) and not (process.name : "powershell.exe" and process.parent.name : "wmiprvse.exe" and process.Ext.effective_parent.executable : "?:\\Windows\\System32\\wsmprovhost.exe") and not (process.Ext.effective_parent.executable : "?:\\Windows\\System32\\RuntimeBroker.exe" and process.parent.executable : "?:\\Windows\\System32\\sihost.exe") and not (process.Ext.effective_parent.executable : "?:\\Windows\\System32\\sethc.exe" and process.parent.executable : "?:\\Windows\\System32\\svchost.exe") and not (process.Ext.effective_parent.executable : "?:\\Windows\\explorer.exe" and process.parent.executable : ("?:\\Windows\\System32\\svchost.exe", "?:\\Windows\\System32\\msiexec.exe", "?:\\Windows\\twain_32\\*.exe"))
框架: MITRE ATT&CKTM
-
策略
- 名称:权限提升
- ID:TA0004
- 参考网址:https://attack.mitre.org/tactics/TA0004/
-
技术
- 名称:访问令牌操作
- ID:T1134
- 参考网址:https://attack.mitre.org/techniques/T1134/
-
子技术
- 名称:令牌模拟/窃取
- ID:T1134.001
- 参考网址:https://attack.mitre.org/techniques/T1134/001/
-
子技术
- 名称:使用令牌创建进程
- ID:T1134.002
- 参考网址:https://attack.mitre.org/techniques/T1134/002/