> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/ja/windows-vulnerabilities/token-privileges.md).

# Windowsトークン権限

whoami /privの出力を解釈し、SeImpersonatePrivilegeまたはSeBackupPrivilegeを通じて権限昇格するためのWindowsトークン権限悪用メモ。

`whoami /priv` 現在のトークンに割り当てられた特権を識別します。一部のローカル特権は～につながる可能性があります `NT AUTHORITY\SYSTEM` または、周囲の Windows バージョンとサービスのコンテキストが互換性のある場合、機密性の高いローカルデータへのアクセスを許可することがあります。

```powershell
whoami /priv
```

## 高価値な特権

| 特権                              | 重要な理由                                       | 最初に確認                                                  |
| ------------------------------- | ------------------------------------------- | ------------------------------------------------------ |
| `SeImpersonatePrivilege`        | 互換性のあるローカルサービスを通じてトークンの偽装を許可する場合があります。      | Windows のバージョン、公開されている名前付きパイプ/RPC パス、利用可能な Potato 系手法。 |
| `SeAssignPrimaryTokenPrivilege` | プロセスが特権プロセストークンを作成できる場合、偽装と同様の影響があります。      | サービスのコンテキストと互換性のあるツール。                                 |
| `SeBackupPrivilege`             | レジストリハイブなどの保護されたファイルをバックアップ形式で読み取ることを許可します。 | エクスポートする能力 `SAM`, `SYSTEM`、場合によっては `SECURITY`.         |
| `SeRestorePrivilege`            | 復元操作中に保護された場所への書き込みを許可する場合があります。            | 書き込み可能な対象と、明確なロールバック計画。                                |
| `SeTakeOwnershipPrivilege`      | ユーザーがファイルやレジストリキーの所有権を取得できるようにします。          | 対象オブジェクト、必要な ACL 変更、復元手順。                              |
| `SeDebugPrivilege`              | 特権プロセスを調査またはダンプできます。                        | LSASS 保護、EDR、ローカル管理者に近いコンテキスト。                         |
| `SeLoadDriverPrivilege`         | カーネルドライバーを読み込めます。                           | ドライバー署名、OS 保護、そして高いクラッシュリスク。                           |

## トリアージの流れ

1. 実行 `whoami /all` そして出力を保存します。
2. まず有効化されている特権を優先しますが、ツールによって現在のトークンで有効化される可能性のある無効な特権も記録します。
3. 次のようなファイル/レジストリの読み取りを優先します: `SeBackupPrivilege` 不安定なカーネルやドライバーの手法より前に。
4. 手法を Windows のバージョンに合わせます。古いホストで動作する Potato 系の悪用は、最新のパッチ適用済みビルドでは失敗することがあります。
5. 正確な特権、コマンド出力、そして選択した手法がラボまたは案件で安全である理由を記録します。

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-user-secret" style="color:$primary;">:user-secret:</i></h3></td><td><h4>SeImpersonatePrivilege</h4></td><td>互換性のあるラボ対象で、Windows のローカル権限昇格のために SeImpersonatePrivilege を特定し、悪用します。</td><td><a href="/ja/windows-vulnerabilities/token-privileges/seimpersonateprivilege-windows-privilege-escalation.md">SeImpersonatePrivilege</a></td></tr><tr><td><h3><i class="fa-floppy-disk" style="color:$primary;">:floppy-disk:</i></h3></td><td><h4>SeBackupPrivilege</h4></td><td>SeBackupPrivilege を悪用して SAM と SYSTEM のレジストリハイブをエクスポートし、ローカル Windows のハッシュを抽出します。</td><td><a href="/ja/windows-vulnerabilities/token-privileges/sebackupprivilege-windows-privilege-escalation.md">SeBackupPrivilege</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/ja/windows-vulnerabilities/token-privileges.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
