Logo Auditing Windows Token And Privilege Abuse

Auditing Windows Token And Privilege Abuse

Tổ chức
UnboundCompute
auditing-windows-token-and-privilege-abuse

Kiểm tra nguy cơ leo thang đặc quyền thông qua việc lạm dụng token truy cập và đặc quyền trên Windows. Tình huống này xảy ra khi một tiến trình có đặc quyền nhạy cảm hoặc có thể lấy token có đặc quyền cao hơn, cho phép kẻ xâm nhập ở cấp thấp mạo danh người gọi có đặc quyền, tải trình điều khiển, chiếm quyền sở hữu, sao lưu tệp được bảo vệ hoặc gỡ lỗi tiến trình khác để đạt được ngữ cảnh có đặc quyền cao hơn. Sử dụng khi dịch vụ hoặc tiến trình chạy với một đặc quyền nhạy cảm được bật hoặc có thể nhận và mạo danh token từ người gọi có đặc quyền. Phạm vi bao gồm các đặc quyền mạo danh, đánh cắp và nhân bản token, cùng các đặc quyền sao lưu, khôi phục, chiếm quyền sở hữu, tải trình điều khiển và gỡ lỗi. Đặc quyền hoặc token có đặc quyền có thể bị lấy là nguồn, thao tác mà đặc quyền đó cho phép là đích nhận, còn lỗi nằm ở việc đạt được ngữ cảnh có đặc quyền cao hơn từ một ngữ cảnh có đặc quyền thấp hơn.

Tổng quan

Nhà phát hànhUnboundCompute
Kho mãsecurity-agent-skills
Tên kỹ năngauditing-windows-token-and-privilege-abuse
Sao
27
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được UnboundCompute công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Auditing Windows Token And Privilege Abuse trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-windows-token-and-privilege-abuse
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-windows-token-and-privilege-abuse .claude/skills/auditing-windows-token-and-privilege-abuse
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Auditing Windows Token And Privilege Abuse trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Auditing Windows Token And Privilege Abuse ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Auditing Windows Token And Privilege Abuse với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Auditing Windows token and privilege abuse: when a held privilege is a ladder

A Windows access token carries the privileges a process may exercise, and a handful of them are equivalent to full control of the host even when the account is not an administrator. A process that can impersonate a client can capture a privileged caller's token and act as that caller. One that holds the privilege to load a driver runs code in the kernel. One that can back up or restore files reads and writes past every access control. One that can take ownership or debug any process reaches into a more privileged context directly. The bug is not that the privilege exists; it is that a lower-privileged foothold holds a privilege, or can obtain a token, whose authorized operation lifts it to a higher context. You audit these by listing the privileges each process holds and each token it can capture, and asking which of them crosses a trust boundary the account was not meant to cross.

When to use

  • A service or process runs with a named sensitive privilege enabled that you can enumerate.
  • A process accepts connections from privileged callers and can impersonate their tokens.
  • A foothold account holds backup, restore, ownership, load-driver, or debug rights on a host you assess.

Scope check

Audit token and privilege abuse only on hosts you own or are authorized to assess, on non-production or a snapshot, using a benign proof that the privileged operation succeeded rather than performing a damaging one. A confirmed abuse reaches a full-control context, so keep every probe within the authorized scope. If you can't name the authorization, stop.

The loop

  1. Establish which privileges the foothold actually holds and can enable first. For the process or account under assessment, determine the exact set of privileges present in its token and which are enabled or can be enabled, and which privileged tokens it is positioned to capture. This is the false-positive killer: a privilege that is present but not held by the foothold, or an impersonation that only ever receives tokens no more privileged than the account itself, is not an escalation. Name the specific privilege or capturable token before claiming a path.

  2. Enumerate the sensitive privileges in scope. List the privileges that are equivalent to escalation when held by a non-administrator: the impersonation privileges, the load-driver privilege, the backup and restore privileges, the take-ownership privilege, and the debug privilege. Note which of these the foothold's token carries and whether each is enabled or enable-able.

  3. Map impersonation to a captured token. For an impersonation privilege, determine whether the process can induce a privileged caller to connect or authenticate to it and then impersonate that caller's token, turning a service foothold into the privileged caller's context. Identify the concrete way a privileged token is made to arrive.

  4. Map each direct privilege to its authorized operation. Load-driver runs code in the kernel; backup and restore read and write files past their access control; take-ownership seizes an object and then rewrites its permissions; debug opens a handle into a more privileged process. For each held privilege, name the operation it authorizes and the higher context that operation reaches.

  5. Check the boundary the operation crosses. An escalation exists only where the authorized operation reaches a context more privileged than the foothold: reading a protected credential store, writing a system binary, injecting into a system process, or loading kernel code. Confirm the operation actually crosses that boundary rather than staying within the account's own resources.

  6. Confirm and record. Confirm by exercising the privilege for a benign proof on an isolated host: capture a token and read something the foothold could not, or use backup to open a protected file for read only, or load a benign signed test driver, observing the higher context without damage. Kill the lead if the foothold does not hold or cannot enable the privilege, if the only capturable tokens are no more privileged than the account, or if the operation stays within the account's own resources. Record the privilege, the operation, the boundary crossed, and the benign proof, or set a kill_reason.

Where token and privilege abuse leaks

  • The held privilege is the finding, not its name. A sensitive privilege matters only when the lower-privileged foothold actually holds and can enable it; confirm possession before impact.
  • Impersonation captures a caller's context. A process that can impersonate turns any privileged caller it can induce to connect into that caller's token, so the reach is whoever can be made to authenticate.
  • Backup and restore ignore access control. These privileges read and write files past their permissions, so a foothold holding them reads protected stores and writes protected binaries.
  • Load-driver reaches the kernel. The privilege to load a driver runs attacker-chosen code in the most privileged context on the host, so it is escalation by definition when a non-admin holds it.
  • Take-ownership and debug reach across processes. Ownership seizes an object to rewrite its permissions; debug opens a handle into a more privileged process to read or inject, each crossing the boundary directly.

Worked example (a confirm and a kill)

Confirm. A service account foothold holds an impersonation privilege, and the service can be induced to have a privileged caller authenticate to it. Capturing and impersonating that caller's token lets the foothold read a resource restricted to the privileged account, demonstrated for read only on an isolated host. Confirmed privilege escalation through token impersonation, high, remediation = remove the impersonation privilege from the account if it is not required, run the service under an account with only the privileges it needs, and prevent privileged callers from authenticating to a lower-privileged service.

Kill. The same account's token does not carry the impersonation privilege, holds no backup, restore, ownership, load-driver, or debug privilege, and the only callers it can impersonate run as the same unprivileged account. No held privilege authorizes an operation that crosses to a higher context. Killed, kill_reason = "the foothold holds no sensitive privilege it can enable and can capture no token more privileged than itself; no authorized operation reaches a higher context."

Rationalizations to reject

  • "The account is not an administrator." -> Several privileges are administrator-equivalent on their own; a non-admin holding backup, load-driver, or an impersonation privilege escalates without being an admin.
  • "The privilege is present but disabled." -> A privilege the foothold can enable is held for this purpose; check whether it can be enabled, not only whether it is enabled right now.
  • "Only system services impersonate." -> If the assessed service can impersonate and a privileged caller can be induced to connect, the foothold captures that caller's token regardless of what usually connects.
  • "Backup is just for backups." -> The backup privilege reads any file past its access control, so it reads protected credential and configuration stores the account could not otherwise open.
  • "Debugging needs a debugger attached." -> The debug privilege opens a handle into a more privileged process directly; no interactive debugger is required for the escalation.

Executing this in practice

You need the exact privilege set in the foothold's token, which privileges are enabled or enable-able, and, for impersonation, which privileged callers can be induced to authenticate to the process. For each sensitive privilege held, name the authorized operation and the higher context it reaches, then confirm the boundary is actually crossed. Reading the token's privileges settles most leads; a benign proof, a read past access control or a captured privileged token used read-only on an isolated host, settles the rest.

Related

  • hunting-windows-service-privilege-escalation - code running as a service account inherits that account's privileges, so a service escalation and the privileges the account then wields are consecutive steps.
  • hunting-windows-dll-hijacking-and-search-order - code loaded into a privileged process gains that process's token, which this skill then audits for the privileges it carries.
  • auditing-windows-uac-and-integrity-boundaries - integrity levels and elevation gate which privileges a token may exercise, the boundary that skill audits alongside this one.
  • hunting-windows-credential-material-exposure - the backup and debug privileges read protected credential stores, feeding the material that skill pursues from the access side.
  • FINDING-SCHEMA.md - source = the held privilege or capturable privileged token, sink = the operation the privilege authorizes, evidence = the higher context reached through a benign proof on an isolated host.

Câu hỏi thường gặp

Kỹ năng AI Auditing Windows Token And Privilege Abuse làm được gì?

Kiểm tra nguy cơ leo thang đặc quyền thông qua việc lạm dụng token truy cập và đặc quyền trên Windows. Tình huống này xảy ra khi một tiến trình có đặc quyền nhạy cảm hoặc có thể lấy token có đặc quyền cao hơn, cho phép kẻ xâm nhập ở cấp thấp mạo danh người gọi có đặc quyền, tải trình điều khiển, chiếm quyền sở hữu, sao lưu tệp được bảo vệ hoặc gỡ lỗi tiến trình khác để đạt được ngữ cảnh có đặc quyền cao hơn. Sử dụng khi dịch vụ hoặc tiến trình chạy với một đặc quyền nhạy cảm được bật hoặc có thể nhận và mạo danh token từ người gọi có đặc quyền. Phạm vi bao gồm các đặc quyền mạo danh, đánh c...

Vì sao nên dùng Auditing Windows Token And Privilege Abuse trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Auditing Windows Token And Privilege Abuse là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Auditing Windows Token And Privilege Abuse trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-windows-token-and-privilege-abuse. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Auditing Windows Token And Privilege Abuse?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Auditing Windows Token And Privilege Abuse với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Auditing Windows Token And Privilege Abuse với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Auditing Windows Token And Privilege Abuse có miễn phí không?

Có. Kỹ năng này được UnboundCompute phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇