/cybersecurity-skills-zh:implementing-memory-protection-with-dep-aslrfrom cybersecurity-skills-zh
Configures DEP, ASLR, CFG, and Windows Exploit Protection to harden endpoints against buffer overflows, ROP chains, and code injection.
Ships in cybersecurity-skills-zh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
在加固端点以抵御基于内存的漏洞利用时使用本技能,通过配置 DEP、ASLR、CFG 和 Windows Exploit Protection 实施系统级和应用程序级缓解措施。
# 启用系统范围的 DEP(数据执行防护)
# 引导配置:OptIn(默认)、OptOut(推荐)、AlwaysOn
bcdedit /set nx AlwaysOn
# 验证 ASLR 状态(现代 Windows 默认启用)
Get-ProcessMitigation -System
# MandatoryASLR、BottomUpASLR、HighEntropyASLR 应为 ON
# 启用所有系统级缓解措施
Set-ProcessMitigation -System -Enable DEP,SEHOP,ForceRelocateImages,BottomUp,HighEntropy
# 加固高风险应用程序(浏览器、Office、PDF 阅读器)
Set-ProcessMitigation -Name "WINWORD.EXE" -Enable DEP,SEHOP,ForceRelocateImages,CFG,StrictHandle
Set-ProcessMitigation -Name "EXCEL.EXE" -Enable DEP,SEHOP,ForceRelocateImages,CFG,StrictHandle
Set-ProcessMitigation -Name "AcroRd32.exe" -Enable DEP,SEHOP,ForceRelocateImages,CFG
Set-ProcessMitigation -Name "chrome.exe" -Enable DEP,CFG,ForceRelocateImages
Set-ProcessMitigation -Name "msedge.exe" -Enable DEP,CFG,ForceRelocateImages
# 导出配置以供部署
Get-ProcessMitigation -RegistryConfigFilePath "C:\exploit_protection.xml"
# 通过 Intune 或 GPO 部署
Intune:端点安全 → 攻击面减少 → Exploit Protection
导入 exploit_protection.xml 模板
GPO:计算机配置 → 管理模板 → Windows 组件
→ Windows Defender Exploit Guard → Exploit Protection
→ "使用通用的 Exploit Protection 设置" → 已启用
→ 指向网络共享上的 XML 文件
| 术语 | 定义 |
|---|---|
| DEP | 将内存页面标记为不可执行,防止在数据区域执行 shellcode |
| ASLR | 随机化已加载模块的内存地址,以挫败硬编码的 ROP 小工具 |
| CFG | 在运行时验证间接调用目标,防止控制流劫持 |
| SEHOP | 验证 SEH 链完整性,防止基于 SEH 的漏洞利用 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub killvxk/cybersecurity-skills-zh --plugin cybersecurity-skills-zh735 skills in this plugin
/acquiring-disk-image-with-dd-and-dcfldd使用 dd 和 dcfldd 创建取证级逐位磁盘镜像,通过哈希验证保持证据完整性。/analyzing-active-directory-acl-abuse使用 ldap3 检测 Active Directory 中危险的 ACL 配置错误,识别 GenericAll、WriteDACL 和 WriteOwner 等滥用路径/analyzing-android-malware-with-apktool使用 apktool 进行反编译、jadx 恢复 Java 源码、androguard 进行权限分析,对 Android APK 恶意软件样本执行静态分析,包括清单检查和可疑 API 调用检测。Other plugins' skills for the same job