> 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-ios/ja/security-and-privacy/security-countermeasures.md).

# セキュリティ対策

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

### フロー別の対応範囲

#### プロビジョニング

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

プロビジョニング中、NFC Wallet SDK は次に対して保護します:

* **デバッガーが接続されている**
* **中間者（MITM）攻撃**
* **脱獄されたデバイス**
* **指定外のアプリケーション署名証明書**
* **フック検出**
* **本番環境で使用されるデバッグビルド**
* **バイナリ改ざん検出**

#### 支払い

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

* **デバッガーが接続されている**
* **フック検出**
* **本番環境で使用されるデバッグビルド**
* **バイナリ改ざん検出**

### 対策

以下の対策は各セキュリティ脅威に適用されます。

<details>

<summary><strong>デバッガーが接続されている</strong></summary>

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

</details>

<details>

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

* **脅威**: 攻撃者は、デジタルウォレットアプリケーションと Cloud Provisioning Service（CPS）間のネットワークトラフィックを傍受しようとします。
* **適用対象**: プロビジョニング
* **ビルドタイプ**: `リリース`
* **SDK の動作**: TLS サーバー証明書の検証に失敗するとエラーを返します。

</details>

<details>

<summary><strong>脱獄されたデバイス</strong></summary>

* **脅威**: 脱獄されたデバイスでデジタルウォレットアプリケーションが実行されています。
* **適用対象**: プロビジョニング
* **ビルドタイプ**: `デバッグ`, `リリース`
* **SDK の動作**: プロビジョニング中に脱獄されたデバイスでエラーを返します。

</details>

<details>

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

* **脅威**: デジタルウォレットアプリケーションが指定された証明書で署名されていません。
* **適用対象**: プロビジョニング
* **ビルドタイプ**: `デバッグ`, `リリース`
* **SDK の動作**: エラーを返し、ウォレットのセキュア登録に失敗します。
* **セットアップ**: オンボーディング中に署名証明書のハッシュを構成します。参照: [オンボーディングデータを提供する](/nfc-wallet-sdk-ios/ja/get-started/configuration/2.-onboarding.md).

</details>

<details>

<summary><strong>フック検出</strong></summary>

* **脅威**: 攻撃者は、メソッド呼び出しをフックして実行時の動作を監視または変更しようとします。
* **適用対象**: プロビジョニング、支払い
* **ビルドタイプ**: `デバッグ`, `リリース`
* **SDK の動作**: フックが検出されるとエラーを返します。

</details>

<details>

<summary><strong>本番環境で使用されるデバッグビルド</strong></summary>

* **脅威**: App Store アプリケーションは、NFC Wallet SDK の `デバッグ` ビルドを統合しています。
* **適用対象**: プロビジョニング、支払い
* **ビルドタイプ**: `デバッグ`
* **SDK の動作**: SDK が、本番署名済みアプリケーションが次の `デバッグ` ビルド。

</details>

<details>

<summary><strong>バイナリ改ざん検出</strong></summary>

* **脅威**: 攻撃者は、デジタルウォレットアプリケーションまたは SDK のバイナリを改ざんしようとします。
* **適用対象**: プロビジョニング、支払い
* **ビルドタイプ**: `デバッグ`, `リリース`
* **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-ios/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.
