Windows Boundaries 标志

Windows Boundaries

社区
hypnguyen1209
windows-boundaries

跨越 Windows 安全边界或逃逸沙箱时使用:内核与用户态跨界(win32k/dxgkrnl UAF CVE-2025-24983)、BYOVD 内核读写、UAC/COM 提权、AppContainer/LPAC 与 Chromium-Mojo 沙箱逃逸(CVE-2025-2783)、PPL 绕过、RPC/ALPC 与命名管道模拟

Add to TypingMind

概览

发布者hypnguyen1209
代码仓库offensive-claude
技能名称windows-boundaries
星标数
396
复刻数
71
附带文件
13
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 13 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 hypnguyen1209 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Windows Boundaries AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/windows-boundaries
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hypnguyen1209/offensive-claude.git /tmp/offensive-claude
mkdir -p .claude/skills
cp -r /tmp/offensive-claude/skills/windows-boundaries .claude/skills/windows-boundaries
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Windows Boundaries,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Windows Boundaries。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Windows Boundaries 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Windows Security Boundaries

When to Activate

  • Planning a privilege-escalation path that crosses a Windows security boundary (integrity level, AppContainer/LPAC, PPL, or the kernel/user line)
  • Sandbox-escape research: browser renderer (Chromium/Edge Mojo), Office WebView, packaged apps, AppContainer/LPAC brokers
  • Reaching Ring 0 via win32k/dxgkrnl bugs or BYOVD for a kernel read/write primitive
  • Defeating PPL to dump LSASS or tamper with EDR self-defense
  • Going from a SeImpersonate service account to SYSTEM via RPC/ALPC/named-pipe abuse
  • UAC bypass (Medium → High) via auto-elevating COM or registry hijack

Boundary stack (high → low): VTL1 (Secure Kernel/Cred Guard) > Ring 0 (ntoskrnl/win32k/drivers) > Ring 3: System > High > Medium > Low > AppContainer/LPAC. PPL is an orthogonal wall guarding LSASS/EDR even from SYSTEM.

Technique Map

TechniqueATT&CKCWEReferenceScript
win32k / dxgkrnl UAF → kernel R/W → token stealT1068CWE-416references/kernel-user-boundary.mdscripts/ioctl_fuzzer.py
Driver IOCTL abuse (METHOD_NEITHER arb-R/W)T1068CWE-781references/kernel-user-boundary.mdscripts/ioctl_fuzzer.py
BYOVD load + MSR/LSTAR or phys R/W → SYSTEMT1068, T1543.003CWE-1188references/byovd-kernel-rw.mdscripts/byovd_kernel_rw.c
BYOVD EDR-kill (callback nulling)T1562.001, T1014CWE-1188references/byovd-kernel-rw.mdscripts/byovd_kernel_rw.c
UAC bypass — ICMLuaUtil elevated COM monikerT1548.002CWE-269references/integrity-uac-com.mdscripts/uac_com_elevate.cpp
UAC bypass — fodhelper HKCU registry hijackT1548.002, T1112CWE-269references/integrity-uac-com.mdscripts/uac_com_elevate.cpp
AppContainer/LPAC broker abuse / cap over-grantT1211CWE-668references/sandbox-appcontainer-escape.mdscripts/sandbox_escape_probe.py
Chromium/Edge Mojo IPC sandbox escapeT1211CWE-501references/sandbox-appcontainer-escape.mdscripts/sandbox_escape_probe.py
Named-object / symbolic-link squattingT1211CWE-59references/sandbox-appcontainer-escape.mdscripts/sandbox_escape_probe.py
PPL bypass — BYOVDLL (old signed DLL into PPL)T1003.001, T1211CWE-426references/ppl-protected-process.mdscripts/ppl_byovdll.c
PPL bypass — live-dump / WER / Protection-clearT1003.001, T1562.001CWE-269references/ppl-protected-process.mdscripts/byovd_kernel_rw.c
RPC server spoof / endpoint squat (PhantomRPC)T1559, T1134.001CWE-287references/rpc-alpc-boundary.mdscripts/named_pipe_impersonate.c
Named-pipe client impersonation (Potato family)T1134.002, T1134.001CWE-294references/rpc-alpc-boundary.mdscripts/named_pipe_impersonate.c
Host boundary posture enumerationT1082CWE-693(all)scripts/enum_boundaries.ps1

Quick Start

cmd
:: 0. Map the host's boundary posture -> pick the right primitive
powershell -ep bypass -File scripts/enum_boundaries.ps1
::    reports: integrity, AppContainer, SeImpersonate/SeDebug, HVCI, driver blocklist,
::    LSASS RunAsPPL, drivers loaded from user-writable paths, named-pipe count.

:: 1. From a sandbox (renderer/packaged app): rank escape vectors
python scripts/sandbox_escape_probe.py

:: 2. Medium -> High: UAC bypass (no file dropped via COM moniker)
uac_com_elevate.exe com "C:\Windows\System32\cmd.exe /c whoami /groups > C:\poc.txt"

:: 3. SeImpersonate present -> SYSTEM via PhantomRPC endpoint squat
whoami /priv | findstr SeImpersonate
named_pipe_impersonate.exe \\.\pipe\W32TIME "C:\Windows\System32\cmd.exe"
w32tm /resync                          :: triggers the SYSTEM client to connect

:: 4. Need Ring 0: map a driver's IOCTLs, then BYOVD kernel R/W -> token steal
python scripts/ioctl_fuzzer.py --device RTCore64 --map
byovd_kernel_rw.exe C:\test\driver.sys token

:: 5. Dump LSASS under PPL without a driver (BYOVDLL / CNG KSP)
ppl_byovdll.exe register C:\stage\vuln_ncryptprov.dll GhostKsp
ppl_byovdll.exe trigger  GhostKsp

OPSEC & Detection (summary)

TechniqueTelemetry / IOCDetection (Sigma / EDR)OPSEC note
win32k/dxgkrnl exploitBugcheck EID 1001 ref win32k/dxgkrnl; process token flips to S-1-5-18 with no service genealogySigma on bugchecks + token anomaly; ETW Microsoft-Windows-Win32kPrefer data-only token copy over CFG/CET-fighting control-flow hijack; missed race = loud bugcheck
BYOVDSysmon EID 6 driver load from user-writable path; 7045/4697 kernel service; EDR telemetry goes silentSigma on unusual driver path + known-bad hashes (loldrivers.io); driver-load-time windowUse un-blocklisted/HVCI-compatible driver; restore LSTAR/callbacks; DeleteService + del .sys
UAC bypass (COM/fodhelper)Sysmon EID 13 write to HKCU ms-settings\Shell\Open\command; dllhost /Processid:{3E5FC7F9..} spawning shellElastic/ManageEngine ICMLuaUtil + fodhelper rulesRotate to a less-known AutoElevate CLSID; don't spawn cmd from dllhost; clean HKCU tree
Sandbox escapeRenderer/GPU process spawning cmd/powershell/rundll32; Mojo handle-transfer anomaliesSigma on browser child-process; patch-posture alert (Edge<134.0.3124.93)Stay in-process post-escape (IPC layer is an EDR blind spot); symlink squat is mostly dead post-2017
PPL bypassOld keyiso/ncryptprov version loaded in lsass (EID 7); EID 10 lsass read; Cryptography\Providers write; live-dumpSigma on DLL version-mismatch + GrantedAccess to lsassDriverless (BYOVDLL/WER/live-dump) avoids BYOVD noise; restore Protection byte; obfuscate dumps
RPC/ALPC impersonation4624 logon type 9 (Advapi); SYSTEM child of service-acct parent; RPC_S_SERVER_UNAVAILABLE (EID 1)Elastic named-pipe impersonation rule; ETW RPC + high impersonation levelPhantomRPC endpoint squat blends w/ admin triggers (w32tm/gpupdate); RevertToSelf + close pipe

Deep Dives

  • references/kernel-user-boundary.md — Ring 3→Ring 0 via win32k/dxgkrnl UAF (CVE-2025-24983, CVE-2025-62573, CVE-2025-55224, CVE-2025-62221, CVE-2026-26132), driver IOCTL surface, kernel R/W → EPROCESS token steal / Protection clear / PreviousMode, modern no-PTE-self-map constraint, KDP/HVCI considerations.
  • references/byovd-kernel-rw.md — Bring-Your-Own-Vulnerable-Driver: load signed driver, MSR-LSTAR vs physical-memory primitives (CVE-2025-8061), EDRKillShifter / Qilin driver rotation, 2025-2026 driver+CVE catalog, blocklist/HVCI bypass, driver-load detection.
  • references/integrity-uac-com.md — integrity model, appinfo/autoElevate internals, fodhelper (UACME 33) + ICMLuaUtil/CMSTPLUA (UACME 41), 2025 IEditionUpgradeManager bypass, finding new AutoElevate COM classes, T1548.002 ITW campaigns.
  • references/sandbox-appcontainer-escape.md — AppContainer/LPAC model + capabilities, broker abuse (WinRT XmlDocument), Chromium/Edge Mojo escapes (CVE-2025-2783 ForumTroll, CVE-2025-4609 ipcz), symbolic-link/RtlIsSandboxToken mitigation, 3-bug renderer chain.
  • references/ppl-protected-process.md — PS_PROTECTION/signer levels, BYOVDLL "Ghost in the PPL" (CVE-2023-28229/36906, BCryptRegisterProvider), NtSystemDebugControl live-dump (Win11 23H2), WER dump, kernel Protection-clear, PPLBlade, Credential Guard hard stop.
  • references/rpc-alpc-boundary.md — named-pipe client impersonation primitive, ALPC SQoS/RequiredServerSid, PhantomRPC server-spoof/endpoint-squat (2026, unpatched), Potato family (PrintSpoofer/GodPotato/SigmaPotato), WER ALPC LPE, NtObjectManager enumeration.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Windows Boundaries AI 技能有什么作用?

跨越 Windows 安全边界或逃逸沙箱时使用:内核与用户态跨界(win32k/dxgkrnl UAF CVE-2025-24983)、BYOVD 内核读写、UAC/COM 提权、AppContainer/LPAC 与 Chromium-Mojo 沙箱逃逸(CVE-2025-2783)、PPL 绕过、RPC/ALPC 与命名管道模拟

为什么在 TypingMind 中使用 Windows Boundaries?

因为您只需安装一次,就能搭配任何模型使用。Windows Boundaries 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Windows Boundaries?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hypnguyen1209/offensive-claude/tree/main/skills/windows-boundaries。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Windows Boundaries?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Windows Boundaries 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Windows Boundaries 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Windows Boundaries AI 技能免费吗?

是的。hypnguyen1209 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇