executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
hunting-for-registry-run-key-persistence通过分析 Sysmon 事件 ID 13 日志和注册表查询,检测 MITRE ATT&CK T1547.001 注册表 Run 键持久化,识别恶意自动启动条目。
Independent GitHub snapshot · Automated classification · Original documentation governs
注册表 Run 键(T1547.001)是攻击者最常用的持久化机制之一。当程序被添加到 Windows 注册表的 Run 键时,它会在用户登录时自动执行。攻击者滥用 HKLM\Software\Microsoft\Windows\CurrentVersion\Run、HKCU\Software\Microsoft\Windows\CurrentVersion\Run 及其 RunOnce 对应键来维持持久化。Sysmon 事件 ID 13(RegistryEvent - Value Set)捕获注册表值修改,包括目标对象路径、进行修改的进程以及新值。检测方法包括:监控这些事件中指向临时目录的可疑可执行文件、编码的 PowerShell 命令、LOLBin 路径,以及通常不会创建 Run 键条目的进程。将事件 13 与事件 1(进程创建)和事件 11(文件创建)串联分析,可通过确认载荷的创建和执行来强化检测。
json、xml.etree.ElementTree、re 模块JSON 报告,列出可疑的 Run 键条目,包含注册表路径、写入值、修改进程、时间戳、MITRE 技术映射、严重性评级和建议的 Sigma 检测规则。