Auditing Ble And Gatt Authorizationのロゴ

Auditing Ble And Gatt Authorization

組織
UnboundCompute
auditing-ble-and-gatt-authorization

GATT属性に対する認可の欠如がないか、Bluetooth Low Energyデバイスを監査します。機密性の高い操作を行う、または機密データを公開するCharacteristicがすべてのピアから読み書き可能なケース、ペアリングやボンディングが不要なケース、またはリンク暗号化のない未認証のJust Worksモードにフォールバックするケース、周辺機器側で強制せずモバイルアプリ側に認可判断を任せるケース、スニファーが取得して再送できるコマンドなどを扱います。BLE周辺機器、ウェアラブル、ロック、医療機器、IoTデバイス、および接続したピアがCharacteristicを読み書きするGATTサービスが対象です。ピアがBLEで接続でき、各Characteristicの読み書きを許可する相手を周辺機器自身が制御することが境界となる場合に使用してください。不正に接続したピアまたは取得されたコマンドがソース、周辺機器上の機密データの読み取り、書き込み、操作がシンクであり、ペアリング、Characteristic単位の認可、またはリプレイ防止の欠如がバグです。

概要

公開者UnboundCompute
リポジトリsecurity-agent-skills
スキル名auditing-ble-and-gatt-authorization
スター
27
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    UnboundComputeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Auditing Ble And Gatt Authorization」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ble-and-gatt-authorization
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-ble-and-gatt-authorization .claude/skills/auditing-ble-and-gatt-authorization
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAuditing Ble And Gatt Authorizationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAuditing Ble And Gatt Authorizationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Auditing Ble And Gatt Authorizationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Auditing BLE and GATT authorization: the peripheral must enforce access, not the app

A Bluetooth Low Energy peripheral exposes its functionality as GATT characteristics that any peer in radio range can attempt to connect to and read or write, and the security question is entirely on the peripheral: does it enforce who may touch each characteristic, or does it assume the only client is its own trusted mobile app. The common failure is trusting the app. The app shows a login and a permission model, but the peripheral itself accepts reads and writes from any connected peer, so a peer that skips the app and talks to the GATT server directly performs the sensitive action, unlocking, dumping data, changing a setting, with no check. Pairing and bonding, which establish link encryption and a persistent trust relationship, are frequently not required, or fall back to the unauthenticated Just Works association that gives encryption without authenticating who is on the other end, so a sniffer or a man in the middle reads the traffic. And commands sent without authentication can be captured over the air and replayed. The audit connects to the peripheral as an arbitrary peer, enumerates its GATT attributes, and checks whether the device, not the app, enforces authorization on each. You audit this by talking to the GATT server directly and seeing what it lets an unauthorized peer do.

When to use

  • A BLE peripheral (wearable, lock, sensor, medical or IoT device) exposes GATT characteristics a connected peer can read or write.
  • Pairing or bonding may not be required, or may fall back to unauthenticated Just Works with no MITM protection.
  • Authorization may be enforced in the mobile app rather than on the peripheral, or commands may be replayable.

Scope check

Test BLE devices only on hardware you own or are explicitly authorized to assess, in a controlled RF environment. Connecting to a peripheral, writing characteristics, and sniffing radio traffic exercise a real device and a shared spectrum, so use your own devices and never connect to, sniff, or actuate a device that is not yours or affect nearby devices. If you can't name the authorization, stop.

The loop

  1. Establish which characteristics are sensitive and how the device should protect them first. Enumerate the GATT services and characteristics and name which perform sensitive actions or reveal sensitive data. Then name the intended protection: which require authenticated pairing/bonding, and which the peripheral itself authorizes per read/write. This is the false-positive killer: a peripheral that requires authenticated pairing, enforces characteristic-level authorization on the device for every sensitive attribute, and protects commands against replay is behaving correctly. Name the sensitive attributes and the intended protection, then connect as an arbitrary peer.

  2. Connect as an unauthorized peer and enumerate GATT. Connect to the peripheral without going through its mobile app, enumerate all services and characteristics and their permissions, and attempt to read and write the sensitive ones. A characteristic that a bare peer can read or write is protected only by whatever the device enforces, so this reveals the real boundary.

  3. Test pairing and bonding requirements. Determine whether sensitive operations require authenticated pairing and bonding, or whether the peripheral serves them to an unpaired peer. Check the pairing method: an unauthenticated Just Works association gives link encryption without authenticating the peer, so it does not stop a man in the middle. Missing or unauthenticated pairing means the link is not trustworthy.

  4. Test where authorization is enforced. Compare what the app blocks against what the peripheral blocks. Perform a sensitive action by writing the characteristic directly, bypassing the app's checks entirely. If the action succeeds, authorization lives in the app, not on the device, which is no authorization at all against a direct peer.

  5. Test replay and command authentication. Capture a legitimate command over the air (or from a prior session) and resend it to the peripheral. Confirm whether commands are authenticated and bound so a captured one cannot be replayed. A replayable, unauthenticated command lets a sniffer actuate the device without ever pairing.

  6. Confirm and record. Confirm on your own device by performing a sensitive read, write, or action as an unauthorized peer, over an unauthenticated link, or by replaying a captured command, in a controlled RF environment and without touching a device that is not yours. Kill the lead if the peripheral requires authenticated pairing/bonding, enforces characteristic-level authorization on the device for every sensitive attribute, and protects commands against replay. Record the unauthorized peer or captured command, the sensitive read, write, or action, and the missing pairing, device-side authorization, or replay protection.

Where BLE authorization leaks

  • World-accessible characteristics. A sensitive characteristic any connected peer can read or write is protected only by whatever the device itself enforces, which is often nothing.
  • No required pairing/bonding. Serving sensitive operations to an unpaired peer means there is no authenticated link at all.
  • Just Works association. Unauthenticated pairing gives encryption without authenticating the peer, so a man in the middle still reads and relays the traffic.
  • Authorization in the app, not the device. Access checks the mobile app performs are bypassed by a peer that talks to the GATT server directly; enforcement must be on the peripheral.
  • Replayable commands. An unauthenticated command captured over the air and resent actuates the device with no pairing and no live authorization.

Worked example (a confirm and a kill)

Confirm. A BLE smart lock exposes an "unlock" characteristic. The mobile app requires the user to log in before showing the unlock button, but the peripheral accepts a write to the unlock characteristic from any connected peer without pairing. Connecting as a bare peer and writing the characteristic directly unlocks the device, bypassing the app's login entirely. Confirmed unauthorized actuation via device-side missing authorization, critical, remediation = require authenticated pairing and bonding, enforce authorization on the peripheral for the unlock characteristic (not in the app), and authenticate commands so a direct or replayed write cannot actuate.

Kill. The peripheral requires authenticated (MITM-protected) pairing and bonding before any sensitive operation, enforces authorization on the device for every sensitive characteristic so a bare peer's read or write is refused, and authenticates commands with a freshness binding so a captured command cannot be replayed. A direct write from an unauthorized peer, an unauthenticated link, and a replayed command all fail. Killed, kill_reason = "peripheral requires authenticated pairing, enforces characteristic-level authorization on the device, and binds commands against replay; an unauthorized peer performs no sensitive read, write, or action."

Rationalizations to reject

  • "Only our app talks to it." → Any peer in range can connect to the GATT server directly; authorization the app enforces is no authorization against a peer that skips the app.
  • "It is paired." → Confirm the pairing is authenticated (MITM-protected), not Just Works; unauthenticated pairing encrypts the link without authenticating who is on it.
  • "The signal is short range." → Range is extendable with better antennas, and an attacker only needs to be in range once; proximity is not authorization.
  • "Commands are encrypted." → Encryption without replay protection still lets a captured ciphertext be resent; bind commands to a nonce or counter so a replay is rejected.
  • "It is just a sensor." → Read access to a sensor can reveal sensitive data (presence, health, location), and the same missing enforcement usually applies to its writable settings too.

Executing this in practice

You need the device's GATT service and characteristic map with permissions, its pairing and bonding requirements and method, where each sensitive action's authorization is actually enforced (app versus peripheral), and whether commands are replay-protected. Connect as a bare peer, enumerate and exercise the sensitive characteristics, attempt actions bypassing the app, and replay a captured command. Reading the device's GATT configuration shows the intended protection; a sensitive action performed by an unauthorized peer shows whether the peripheral enforces it.

Related

  • auditing-ota-and-firmware-update-channel-trust - the update channel of the same class of device; GATT authorization and firmware-update trust are the two main remote surfaces of a BLE peripheral.
  • hunting-firmware-secrets-and-debug-interfaces - a shared key or credential baked into the device firmware often underlies weak BLE authentication; the two failures compound.
  • mapping-attack-surface - use it to enumerate a device's radio and network interfaces before auditing the GATT server specifically.
  • hunting-broken-object-level-authorization - the device-side enforcement this skill checks is the same authorization-at-the-resource discipline applied over a BLE link instead of an API.
  • FINDING-SCHEMA.md - source = the unauthorized connected peer or captured command, sink = the sensitive read, write, or action on the peripheral, evidence = the missing pairing, device-side authorization, or replay protection.

よくある質問

AIスキル「Auditing Ble And Gatt Authorization」では何ができますか?

GATT属性に対する認可の欠如がないか、Bluetooth Low Energyデバイスを監査します。機密性の高い操作を行う、または機密データを公開するCharacteristicがすべてのピアから読み書き可能なケース、ペアリングやボンディングが不要なケース、またはリンク暗号化のない未認証のJust Worksモードにフォールバックするケース、周辺機器側で強制せずモバイルアプリ側に認可判断を任せるケース、スニファーが取得して再送できるコマンドなどを扱います。BLE周辺機器、ウェアラブル、ロック、医療機器、IoTデバイス、および接続したピアがCharacteristicを読み書きするGATTサービスが対象です。ピアがBLEで接続でき、各Characteristicの読み書きを許可する相手を周辺機器自身が制御することが境界となる場合に使用してください。不正に接続したピアまたは取得されたコマンドがソース、周辺機器上の機密データの読み取り、書き込み、操作がシンクであり、ペアリング、Characteristic単位の認可、またはリプレイ防止の欠如がバグです。

TypingMindでAuditing Ble And Gatt Authorizationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Auditing Ble And Gatt Authorizationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAuditing Ble And Gatt Authorizationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ble-and-gatt-authorizationを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Auditing Ble And Gatt Authorizationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Auditing Ble And Gatt Authorizationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAuditing Ble And Gatt Authorizationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Auditing Ble And Gatt Authorization」は無料ですか?

はい。UnboundComputeがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇