> 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/active-directory/credentials/logon-session-observation.md).

# ログインセッションを観察する

ログインセッションを観察するためのActive Directoryセキュリティノート。列挙、Kerberos、資格情報、ACL悪用、ラテラルムーブメント、攻撃のワークフロー、検証手順を扱う。

#### LogonSessions ツール

マシン上に存在する接続セッションを確認するには、次のツールを使用します:

```bash
./logonsessions.exe
```

このツールを使うと、システム上のさまざまなアクティブセッションを観察できます。

たとえば、次のようなものを確認できます:

* 標準ユーザーのセッション;
* 管理者のセッション;
* ネットワークセッション;
* サービスセッション。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-9cb05efcaf362c617fe1713924298bb3e3fc4c03%2Fimage%20(3290).png?alt=media" alt=""><figcaption></figcaption></figure>

#### 関連するプロセスを表示

ログオンセッションに関連するプロセスを表示するには:

```bash
./logonsessions.exe -p
```

その `-p` オプションを使うと、プロセスをログインセッションに関連付けることができます。

これは、どのプロセスがどのセキュリティコンテキストを使用しているかを理解するのに役立ちます。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-30ce708360f0a5606a7357e29bc2a8962cc86b6b%2Fimage%20(3291).png?alt=media" alt=""><figcaption></figcaption></figure>

#### 観察例

ラボでは、ドメイン管理者がリモート共有に接続するとき:

```bash
cd //WS01/c$
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-21f8457caba67fb21fb9fc3274c9439b00e41cee%2Fimage%20(3293).png?alt=media" alt=""><figcaption></figcaption></figure>

次の種類のセッションを観察できます:

```bash
ログオンの種類 : ネットワーク
認証パッケージ : Kerberos
```

これは、ネットワークアクセスが Kerberos 経由で実現されたことを示しています。

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fgit-blob-b4d21c5c1dc3946849c7f139de0a9a813b2a7898%2Fimage%20(3294).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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/active-directory/credentials/logon-session-observation.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.
