# Device Protection が動作しているかをテストする方法

以下のいずれかの方法で、お使いのマシンで Aikido Device Protection が有効になっていることを確認してください。

## クイックチェック（推奨）

ブラウザで以下のリンクを開いてください。ページにデバイスが保護されているかどうかがすぐに表示されます。

{% embed url="https://device-protection.aikido.help/" %}

<figure><img src="https://help.aikido.dev/_assets/652f35f0089b/Screenshot-2026-05-21-at-13.04.24.png" alt="" width="563"><figcaption></figcaption></figure>

## パッケージベースのテスト

お好みの言語で安全なテストパッケージをインストールしてください。これらのパッケージは無害で、検出をトリガーするためだけに存在します。

{% tabs %}
{% tab title="npm" %}
```bash
npm install aikido-endpoint-test
```
{% endtab %}

{% tab title="pip" %}
```bash
pip install safe-chain-pi-test
```
{% endtab %}

{% tab title="NuGet" %}
[https://www.nuget.org/packages/AikidoEndpointTest](https://www.nuget.org/packages/AikidoEndpointTest)
{% endtab %}

{% tab title="Go" %}
```
go install github.com/Aikido-demo-apps/endpoint-golang-test@latest
```
{% endtab %}
{% endtabs %}

## IDE 拡張機能のテスト

エディターにテスト用拡張機能をインストールしてください。Device Protection が実行中であれば、検出がトリガーされます。

* **VS Code:** [Aikido Endpoint Test](https://marketplace.visualstudio.com/items?itemName=AikidoSecurity.aikido-endpoint-test)
* **Open VSX（例：Cursor、Windsurf）:** [Aikido Endpoint Test](https://open-vsx.org/extension/AikidoSecurity/aikido-endpoint-test)

テストパッケージや拡張機能がブロックされませんか？[パッケージがブロックされないのはなぜですか？](https://help.aikido.dev/docs/docs-ja/aikido-device-protection/using-aikido-endpoint/why-is-a-package-not-blocked)をご覧ください。

## 自動テスト

```shellscript
#!/bin/bash
curl -s https://device-protection.aikido.help/ | grep -q "Device Protection Active"
```

このスクリプトは、Device Protection が有効な場合は終了コード `0` を、有効でない場合は終了コード `1` を返します。
