自 2021 年以来,我开发了许多脚本,以协助我的调查和修复工作。我想,为什么不把它们分享给公众,希望它们能对您有所帮助。
我开发的脚本旨在与 Crowdstrike 端点检测与响应(EDR)配合使用。本质上,它们是云端脚本,只需点击一下按钮即可快速远程修复设备。
我的脚本旨在协助安全运营中心(SOC)或事件响应分析师进行调查。有些脚本协助修复特定的不需要的软件/广告软件,另一些脚本则通过用户名协助调查特定系统,以提供更全面的可见性。
user.config 中检索 C2。1 = last 24 hours, 7 = last week, 30 = last month, 0 = all events. 已实现基本规则以协助识别。C:\Windows\Temp\hunter_log_results.log 的日志文件中。Process Execution Rules (Event ID 4688)
Net.exe Execution - General net.exe usage
Net User/Group - Net user/group commands
Net Share - Net share/use commands
Whoami Execution - Whoami command execution
Systeminfo Execution - Systeminfo command
Tasklist Execution - Tasklist command
Nslookup Execution - Nslookup command
Ping Sweep - Ping with -n or -t flags
PowerShell Encoded - PowerShell with encoded commands
PowerShell Bypass - PowerShell bypass techniques
PowerShell Download - PowerShell download strings
Certutil Download - Certutil used for downloads
BITSAdmin Download - BITSAdmin transfer/download
WMIC Process - WMIC process execution
Scheduled Task - Scheduled task creation/execution
Registry Modification - Registry add/delete operations
Service Creation - Service creation/start
Authentication & Access Rules
Network Logon - Network logon (LogonType 3)
Failed Admin Logon - Failed logon to Administrator account
Explicit Credential Use - Event ID 4648
Privilege Escalation - Event ID 4672
Account Management Rules
User Account Created - Event ID 4720
Group Member Added - Event ID 4728
System Configuration Rules
Service Installation - Event ID 4697
Service Modified - Event ID 7045 (System log)
Driver Load - Event ID 219 (System log)
Audit Policy Change - Event ID 4719
Network Share Added - Event ID 5142
WFP Blocked - Windows Filtering Platform blocked connection (Event ID 5157)
以下库包含一系列修复脚本,旨在清除实际环境中常见的不需要的软件、广告软件和恶意软件。如果您遇到想要修复的特定程序,请随时下载相应的脚本并在您的环境中使用。
您觉得我的工作有帮助并想表示支持吗?欢迎在 Twitter 上添加我。如果您想给予更多支持,也可以在 Ko-Fi 上为我打赏。完全没有压力,无论如何我都感谢您的支持!
如果您希望通过提供自己的修复脚本来做出贡献,我们将不胜感激。任何有助于保护公众安全的帮助都备受珍视。请确保代码清晰简洁,以保证审查和验证过程顺利进行。提交内容可通过 issue 发送。所有者姓名将与该修复脚本相关联。
如果脚本有任何问题,请随时将其报告为 issue。