> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/nfc-wallet-sdk-android/ja/security-and-privacy/security-countermeasures.md).

# セキュリティ対策

NFC Wallet SDK には、一般的なモバイルの脅威に対する対策が含まれています。

このページでは、NFC Wallet SDK に組み込まれている実行時セキュリティ対策を一覧表示します。

## フロー別の対象範囲 <a href="#security-countermeasures" id="security-countermeasures"></a>

### SDK の初期化とプロビジョニング

プロビジョニングには、ウォレットの安全な登録とトークナイゼーションが含まれます。

SDK の初期化とプロビジョニングの間、NFC Wallet SDK は次に対して保護します:

* **デバッガーの接続**
* **中間者（MITM）攻撃**
* **デジタルウォレットアプリケーションデータのバックアップ**
* **ルート化されたモバイルデバイス**
* **SDK バインド**
* **エミュレーターの使用**
* **指定外のアプリケーション署名証明書**

### 支払い

支払い中、NFC Wallet SDK は次に対して保護します:

* **デバッガーの接続**
* **デジタルウォレットアプリケーションデータのバックアップ**
* **SDK バインド**
* **指定外のアプリケーション署名証明書**

## 対策

各脅威に適用される対策を以下に示します。

<details>

<summary><strong>デバッガーの接続</strong></summary>

* **脅威**：攻撃者は、実行時にデバッガーを接続してデジタルウォレットアプリケーションをリバースエンジニアリングしようとします。
* **適用対象**：SDK の初期化、プロビジョニング、支払い
* **ビルドタイプ**: `リリース`
* **SDK の動作**：フロー中にデバッガーが検出された場合はエラーを返します。

</details>

<details>

<summary><strong>中間者（MITM）攻撃</strong></summary>

* **脅威**：攻撃者は、デジタルウォレットアプリケーションと NFC Wallet バックエンド間の通信チャネルを傍受または改ざんしようとします。
* **適用対象**：SDK の初期化、プロビジョニング
* **ビルドタイプ**: `リリース`
* **SDK の動作**：次を使用している場合 `リリース` TLS（SSL）証明書が誤って構成されたビルドでは、次のエラーが発生する可能性があります:
  * HttpStatusCode: -2
  * ErrorMessage: ゲートウェイと通信できません。
  * SdkErrorCode: COMMON\_COMM\_ERROR

</details>

<details>

<summary><strong>デジタルウォレットアプリケーションデータのバックアップ</strong></summary>

* **脅威**：に保存されたデータ **デジタルウォレットアプリケーション** 別のデバイスにバックアップおよび復元されます。
* **適用対象**：SDK の初期化、プロビジョニング、支払い
* **ビルドタイプ**: `リリース`, `dev`
* **SDK の動作**：ローカルのデジタルウォレットアプリケーションデータを消去します。

</details>

<details>

<summary><strong>ルート化されたモバイルデバイス</strong></summary>

* **脅威**：Android のルート化されたデバイスでデジタルウォレットアプリケーションを実行する。
* **適用対象**：SDK の初期化、プロビジョニング
* **ビルドタイプ**: `リリース`, `dev`
* **SDK の動作**：デバイスがルート化されていると検出された場合、SDK の初期化とプロビジョニング中にエラーを返します。登録後、デバイスのルート状態が変更されると、サーバーは次回の SDK によるサーバー呼び出し時にエンドユーザーへ再登録を促します（ `ProvisioningServiceListener.onError()` コールバック）。

</details>

<details>

<summary><strong>SDK バインド</strong></summary>

* **脅威**：SDK バンドル（`.aar`）には 2 つの主要なアーティファクト（`.jar` と `.so`）が含まれています。これらのアーティファクトはバインドされており、一緒に使用する必要があります。両方のアーティファクトで常に同じビルドタイプを使用してください。
* **適用対象**：SDK の初期化、プロビジョニング、支払い
* **ビルドタイプ**: `リリース`, `dev`
* **SDK の動作**：次の場合はエラーを返します `.jar` と `.so` アーティファクトが一致しない場合。

</details>

<details>

<summary><strong>エミュレーターの使用</strong></summary>

* **脅威**：エミュレーターを使用して NFC 取引を行う。
* **適用対象**：SDK の初期化、プロビジョニング
* **ビルドタイプ**: `リリース`, `dev`
* **SDK の動作**：SDK はエミュレーター上では初期化できません。エミュレーターが検出されるとエラーが返されます。

</details>

<details>

<summary><strong>指定外のアプリケーション署名証明書</strong></summary>

* **脅威**：デジタルウォレットアプリケーションは指定された証明書で署名されている必要があります。SDK は署名証明書のハッシュを使用してアプリケーションの真正性を確認します。参照してください [アプリケーションバインドキーの取得](/nfc-wallet-sdk-android/ja/get-started/configuration/2.-onboarding.md) 詳細については。
* **適用対象**：SDK の初期化、プロビジョニング、支払い
* **ビルドタイプ**: `リリース`, `dev`
* **SDK の動作**：アプリケーション署名証明書が指定された証明書と一致しない場合はエラーを返します。

</details>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-android/ja/security-and-privacy/security-countermeasures.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
