Logo di Auditing Datastore Exposure And Abuse

Auditing Datastore Exposure And Abuse

Organizzazione
UnboundCompute
auditing-datastore-exposure-and-abuse

Verifica datastore in memoria e cache, come Redis e memcached, per individuare esposizioni e abusi dei comandi: un'istanza raggiungibile senza autenticazione, una richiesta che compone comandi del datastore a partire da input non attendibile oppure scripting lato server e comandi di moduli o configurazione che permettono di eseguire codice o scrivere file. Include esposizione di rete non autenticata, command injection in cui l'input diventa un comando anziché un valore, esecuzione di Lua o script su input non attendibile e comandi amministrativi pericolosi che riscrivono il file su disco o caricano un modulo. Usalo quando un'applicazione comunica con una cache o un archivio chiave-valore e l'istanza è raggiungibile in rete oppure input non attendibile raggiunge il livello dei comandi. L'input non attendibile o la porta aperta è la sorgente, l'interfaccia dei comandi del datastore è la destinazione e il bug consiste nell'accesso non autenticato o nella composizione di un comando pericoloso.

Panoramica

Pubblicato daUnboundCompute
Repositorysecurity-agent-skills
Nome della skillauditing-datastore-exposure-and-abuse
Stelle
27
Fork
8
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da UnboundCompute su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Auditing Datastore Exposure And Abuse in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-datastore-exposure-and-abuse
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Auditing Datastore Exposure And Abuse in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Auditing Datastore Exposure And Abuse non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Auditing Datastore Exposure And Abuse non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA Auditing Datastore Exposure And Abuse?

Verifica datastore in memoria e cache, come Redis e memcached, per individuare esposizioni e abusi dei comandi: un'istanza raggiungibile senza autenticazione, una richiesta che compone comandi del datastore a partire da input non attendibile oppure scripting lato server e comandi di moduli o configurazione che permettono di eseguire codice o scrivere file. Include esposizione di rete non autenticata, command injection in cui l'input diventa un comando anziché un valore, esecuzione di Lua o script su input non attendibile e comandi amministrativi pericolosi che riscrivono il file su disco o...

Perché usare Auditing Datastore Exposure And Abuse su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Auditing Datastore Exposure And Abuse è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Auditing Datastore Exposure And Abuse in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-datastore-exposure-and-abuse. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Auditing Datastore Exposure And Abuse?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Auditing Datastore Exposure And Abuse?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Auditing Datastore Exposure And Abuse: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Auditing Datastore Exposure And Abuse è gratuita?

Sì. È pubblicata su GitHub da UnboundCompute con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇