Logo : Auditing Datastore Exposure And Abuse

Auditing Datastore Exposure And Abuse

Organisation
UnboundCompute
auditing-datastore-exposure-and-abuse

Auditez les bases de données en mémoire et les caches, telles que Redis et memcached, pour détecter les problèmes d’exposition et d’exécution de commandes : instance accessible sans authentification, requête qui construit des commandes de base de données à partir d’entrées non fiables, ou commandes de script côté serveur, de module ou de configuration permettant d’exécuter du code ou d’écrire un fichier. Couvre l’exposition réseau sans authentification, l’injection de commandes où l’entrée est interprétée comme une commande plutôt que comme une valeur, l’exécution de Lua ou de scripts à partir d’entrées non fiables, ainsi que les commandes administratives dangereuses qui réécrivent le fichier sur disque ou chargent un module. À utiliser lorsqu’une application communique avec un cache ou un magasin clé-valeur et que l’instance est accessible sur le réseau ou que des entrées non fiables atteignent la couche des commandes. L’entrée non fiable ou le port ouvert est la source, l’interface de commande de la base de données est la destination, et l’accès sans authentification ou la commande dangereuse construite à partir de l’entrée constitue la faille.

Présentation

ÉditeurUnboundCompute
Dépôtsecurity-agent-skills
Nom de la compétenceauditing-datastore-exposure-and-abuse
É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 Datastore Exposure And Abuse 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-datastore-exposure-and-abuse
  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-datastore-exposure-and-abuse .claude/skills/auditing-datastore-exposure-and-abuse
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 Datastore Exposure And Abuse 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 Datastore Exposure And Abuse 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 Datastore Exposure And Abuse 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 datastore exposure and abuse: when the cache is an unauthenticated shell

Cache and key-value stores such as Redis and memcached are built for speed inside a trusted network, and that assumption is exactly what makes them dangerous when it does not hold. Two failures dominate. First, exposure: an instance bound to a reachable interface with no authentication is an open command interface, and on some stores the command set reaches configuration changes, on-disk file rewrites, module loading, and scripting, so an open port is a path to code execution, not just data theft. Second, command abuse: when an application composes datastore commands from untrusted input, the attacker can inject extra commands or reach a scripting or administrative command the application never intended. You audit both by checking how the instance is reached and how commands are composed.

When to use

  • An application talks to a cache or key-value store such as Redis or memcached.
  • A datastore instance may be bound to a reachable interface or lack authentication.
  • Untrusted input reaches the command layer, a scripting evaluation, or a key or command name.

Scope check

Test datastore exposure and abuse only against instances and applications you own or are authorized to assess, on non-production data. A confirming command can change configuration, write files, or run a script on the host, so treat every proof as a live intrusion inside the authorized scope. If you can't name the authorization, stop.

The loop

  1. Establish the reachability and the command sinks first. Determine how each datastore instance is reached (bind address, network exposure, authentication requirement) and inventory where the application composes commands, including any scripting evaluation and any use of administrative or config commands. This is the false-positive killer: an instance bound to loopback or an authenticated private network with commands built from fixed templates and bound values is not the bug. Name the reachability and the sinks first.

  2. Check exposure and authentication. Confirm whether the instance requires authentication and whether it is reachable from outside the trusted boundary. An unauthenticated, reachable instance is exploitable directly: an attacker issues commands, and on a scriptable store reaches config changes, file rewrites, or module loads. Treat protected-mode defaults and network policy as part of this answer, not as a substitute for authentication.

  3. Trace untrusted input into command composition. Follow request values into the commands the application issues. Separate input used as a value (a key or a stored value, generally safe with a proper client) from input that becomes a command name, a command argument that selects behavior, or a concatenated command in a protocol the store parses. Input that becomes a command rather than a value is the injection.

  4. Check scripting and administrative reach. Server-side scripting (a Lua EVAL or a stored function), module loading, and config commands that set the working directory or file name are the code-execution and file-write paths. Determine whether untrusted input can reach a scripting evaluation or whether the application (or an exposed instance) permits the dangerous administrative commands at all.

  5. Check the defenses that actually stop it. Requiring authentication and binding to a private interface, using a client that sends commands and arguments as discrete typed fields rather than a concatenated string, disabling or renaming dangerous administrative and scripting commands, and running the store as an unprivileged user with a read-only config each remove a vector. Determine which stands for this instance and this command path.

  6. Confirm and record. Confirm by connecting within scope to show the instance answers commands without authentication, or by supplying an in-scope input that issues an unintended command (a benign configuration read or a marker key set via injection), without rewriting files or running a destructive script. Kill the lead if the instance requires authentication and is not reachable outside the boundary, commands are composed as discrete typed fields with input used only as values, and dangerous scripting and administrative commands are disabled. Record the reachability or the input, the command sink, and the unintended command reached.

Where datastore exposure and abuse leak

  • An open instance is a command interface, not just data. On a scriptable store, an unauthenticated port reaches config changes, file rewrites, and module loads, which is code execution.
  • Input that becomes a command is the injection. A value is generally safe through a proper client; input that becomes a command name or a behavior-selecting argument is not.
  • Scripting is the code-execution path. A Lua or stored-function evaluation reachable from untrusted input runs code inside the store.
  • Config and file commands rewrite the host. Commands that set the directory and file name, then persist, can drop an attacker-controlled file where it will be executed.
  • Protected mode and network policy are not authentication. They reduce exposure but a reachable instance without a required credential is still open; treat authentication as mandatory.

Worked example (a confirm and a kill)

Confirm. A cache instance is bound to a reachable interface with no authentication required. Connecting within scope, the instance answers administrative commands, and a benign configuration read confirms full command access; on this store the reachable command set includes config and scripting commands that would reach a file write. Confirmed unauthenticated datastore exposure to command execution, critical, remediation = require authentication, bind to a private interface unreachable from untrusted networks, disable or rename the dangerous administrative and scripting commands, and run the store as an unprivileged user.

Kill. The instance requires authentication, is bound to a private interface reachable only from the application subnet, and has scripting and the dangerous config and module commands disabled; the application composes every command through a client that sends the command and arguments as discrete typed fields with untrusted input used only as key and value contents. No unauthenticated access and no input becomes a command. Killed, kill_reason = "instance authenticated and privately bound with dangerous commands disabled, and commands composed as typed fields with input used only as values; no open access and no command injection."

Rationalizations to reject

  • "It is only a cache, there is nothing sensitive in it." → On a scriptable store an open port reaches config, file, and scripting commands, so exposure is code execution, not just cache disclosure.
  • "It is on a private network." → A private network is not authentication; confirm a credential is required and the bind address is not reachable from untrusted segments.
  • "We only put user data in keys and values." → Values are generally safe through a proper client; the risk is input that becomes a command name or a scripting argument, which you must confirm separately.
  • "Protected mode is on." → Protected mode reduces accidental exposure but is not a credential; require authentication explicitly.
  • "We do not use Lua or modules." → Confirm they are disabled, not merely unused; an exposed instance permits them regardless of whether the application calls them.

Executing this in practice

You need each datastore instance's bind address, exposure, and authentication requirement, every command composition in the application, any scripting or administrative command reach, and whether dangerous commands are disabled. For each instance, ask whether it is reachable without authentication; for each command sink, whether input becomes a command or a script. A scoped connection shows whether the instance answers without a credential; a benign injected command shows whether input reaches the command layer.

Related

  • mapping-attack-surface - use it to locate reachable datastore ports and services before auditing any one instance's command layer.
  • hunting-non-human-identity-and-secret-reachability - an exposed cache often holds tokens and session data; that skill governs what a reachable instance leaks.
  • exploiting-ssrf-to-cloud-metadata - a server-side request primitive can reach an internal datastore port; the two skills meet at the instance's reachability.
  • auditing-multi-tenant-isolation - a shared cache across tenants is an isolation boundary; a command that reads another tenant's keys is the same class as an open instance.
  • FINDING-SCHEMA.md - source = the open port or the untrusted input, sink = the datastore command interface, evidence = the unauthenticated access or the composed dangerous command.

Foire aux questions

À quoi sert la compétence IA Auditing Datastore Exposure And Abuse ?

Auditez les bases de données en mémoire et les caches, telles que Redis et memcached, pour détecter les problèmes d’exposition et d’exécution de commandes : instance accessible sans authentification, requête qui construit des commandes de base de données à partir d’entrées non fiables, ou commandes de script côté serveur, de module ou de configuration permettant d’exécuter du code ou d’écrire un fichier. Couvre l’exposition réseau sans authentification, l’injection de commandes où l’entrée est interprétée comme une commande plutôt que comme une valeur, l’exécution de Lua ou de scripts à par...

Pourquoi utiliser Auditing Datastore Exposure And Abuse sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Auditing Datastore Exposure And Abuse 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 Datastore Exposure And Abuse dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-datastore-exposure-and-abuse. 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 Datastore Exposure And Abuse ?

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 Datastore Exposure And Abuse ?

Autant que vous le souhaitez. Vous pouvez utiliser Auditing Datastore Exposure And Abuse 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 Datastore Exposure And Abuse 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 👇