Logo : Auditing Ble And Gatt Authorization

Auditing Ble And Gatt Authorization

Organisation
UnboundCompute
auditing-ble-and-gatt-authorization

Auditez un appareil Bluetooth Low Energy afin de repérer les attributs GATT dépourvus de contrôle d’autorisation : une caractéristique qui effectue une action sensible ou révèle des données sensibles lisibles ou modifiables par n’importe quel pair ; un appairage ou une association non obligatoire, ou qui bascule vers le mode Just Works non authentifié et sans chiffrement de la liaison ; une décision d’autorisation déléguée par l’appareil à l’application mobile au lieu d’être appliquée sur le périphérique ; ou une commande rejouable qu’un sniffer peut capturer et renvoyer. Cela concerne les périphériques BLE, les objets connectés portés, les serrures, les appareils médicaux et IoT, ainsi que leurs services GATT, lorsque les pairs connectés lisent ou modifient des caractéristiques. À utiliser lorsqu’un pair peut se connecter en BLE et que le contrôle appliqué par le périphérique lui-même pour déterminer qui peut lire ou modifier chaque caractéristique constitue la frontière de sécurité. Le pair connecté non autorisé ou la commande capturée est la source, la lecture, la modification ou l’action sensible sur le périphérique est la cible, et la faille réside dans l’absence d’appairage, d’autorisation au niveau des caractéristiques ou de protection contre le rejeu.

Présentation

ÉditeurUnboundCompute
Dépôtsecurity-agent-skills
Nom de la compétenceauditing-ble-and-gatt-authorization
Étoiles
27
Forks
8
Fichiers inclus
Instructions uniquement
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par UnboundCompute sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Auditing Ble And Gatt Authorization dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ble-and-gatt-authorization
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Auditing Ble And Gatt Authorization dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Auditing Ble And Gatt Authorization dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Auditing Ble And Gatt Authorization n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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.

Foire aux questions

À quoi sert la compétence IA Auditing Ble And Gatt Authorization ?

Auditez un appareil Bluetooth Low Energy afin de repérer les attributs GATT dépourvus de contrôle d’autorisation : une caractéristique qui effectue une action sensible ou révèle des données sensibles lisibles ou modifiables par n’importe quel pair ; un appairage ou une association non obligatoire, ou qui bascule vers le mode Just Works non authentifié et sans chiffrement de la liaison ; une décision d’autorisation déléguée par l’appareil à l’application mobile au lieu d’être appliquée sur le périphérique ; ou une commande rejouable qu’un sniffer peut capturer et renvoyer. Cela concerne les...

Pourquoi utiliser Auditing Ble And Gatt Authorization sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Auditing Ble And Gatt Authorization se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Auditing Ble And Gatt Authorization dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-ble-and-gatt-authorization. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Auditing Ble And Gatt Authorization ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Auditing Ble And Gatt Authorization ?

Autant que vous le souhaitez. Vous pouvez utiliser Auditing Ble And Gatt Authorization avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Auditing Ble And Gatt Authorization est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par UnboundCompute sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇