exposed-databases

exposed-databases is a skill for Claude Code, Codex from ogrodev/fsociety. It costs 253 tokens per session (2,929 once invoked), scanned A, original, MIT.

A workflow for finding internet-facing databases that lack authentication, checking whether access is allowed, and sending confirmed findings to later processing steps.

In plain words
What is it for?
It helps assess exposed MongoDB, Elasticsearch, Redis, CouchDB, MySQL, and PostgreSQL services found through sources such as Shodan and Censys.
Why use it?
It organizes database exposure checks into scope review, discovery, prioritization, and safe probing so investigations do not skip authorization or waste effort.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the tyrell plugin — 5 skills, 16 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ogrodev/fsociety/exposed-databases
Any agent
npx skills add ogrodev/fsociety --skill exposed-databases
Clone the repo
git clone --depth 1 https://github.com/ogrodev/fsociety

Made for: Claude Code, Codex.

Or install tyrell, the plugin that ships this one along with the rest of its 5 skills, 16 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for exposed-databases

README.md
[![agentmods](https://agentmods.dev/badge/skills/ogrodev/fsociety/exposed-databases.svg)](https://agentmods.dev/skills/ogrodev/fsociety/exposed-databases)
Your own site
<a href="https://agentmods.dev/skills/ogrodev/fsociety/exposed-databases"><img src="https://agentmods.dev/badge/skills/ogrodev/fsociety/exposed-databases.svg" alt="Measured on agentmods" height="20"></a>
Per session 253 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,929 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00253 $0.02929
Opus 5 $0.00127 $0.01465
Sonnet 5 $0.00051 $0.00586
Haiku 4.5 $0.00025 $0.00293

Measured yesterday against content hash a7b46331c084, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

exposed-databases scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Elasticsearch | `curl -s http://<ip>:9200/_cat/indices?v` | Index names, doc counts, sizes |
tyrell/skills/exposed-databases/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Exposed Database Hunting

Discover internet-facing databases with no authentication, triage them by value, probe safely to confirm access, and route confirmed targets into the acquisition pipeline.

Workflow

The exposed database hunting process follows five phases. Complete each phase before moving to the next — skipping triage leads to wasted probes on low-value or out-of-scope targets.

SCOPE → DISCOVER → TRIAGE → PROBE → ROUTE
  │         │          │        │        │
  │         │          │        │        ├─ open → data-acquisition skill
  │         │          │        │        └─ protected → cross-plugin-pipeline (elliot handoff)
  │         │          │        └─ dumper.js probe + source-tracker.js add
  │         │          └─ prioritize by data value, size, auth certainty
  │         └─ hunt-engine.js (shodan, dork, github) + Censys
  └─ verify target is in-scope for the active engagement

Phase 1: Scope Check

Before generating any queries, verify the target is authorized:

  1. Check engagement.json or the active campaign's scope definition
  2. Confirm the target domain, IP range, or organization is explicitly in-scope
  3. If no engagement is active, ask the operator to confirm authorization before proceeding

Never probe hosts outside the authorized scope, regardless of what Shodan/Censys returns.


Phase 2: Discovery

Generate queries across multiple sources to maximize coverage. The hunt engine produces structured queries — it does not execute them. You execute them via MCP tools (Hexstrike Shodan, Brave Search) or direct API calls.

Shodan Queries

node ${CLAUDE_PLUGIN_ROOT}/scripts/hunt-engine.js shodan <target> [--service mongo|elastic|redis|couch|mysql|postgres|all]

The engine generates queries filtered by service type and scoped to the target (by hostname for domains, by CIDR for IP ranges). Covers MongoDB (27017), Elasticsearch (9200), Redis (6379), CouchDB (5984), MySQL (3306), PostgreSQL (5432), and Kibana (5601).

Read the full file on GitHub · 221 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 221 lines · 253 tokens per session scan A a7b46331c084

Subscribe to this mod's changes

exposed-databases is a skill published in the GitHub repository ogrodev/fsociety (20 stars, last pushed 5mo ago), licensed MIT. It adds 253 tokens to every session and 2,929 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

api-11-nosql-injection

API NoSQL injection testing: MongoDB operator injection ($ne, $gt, $regex, $where), blind NoSQL via $regex character extraction, JSON body injection in REST APIs, and GraphQL NoSQLi via filter arguments. Use when testing APIs using MongoDB or other NoSQL databases.

vigilantshield/Claude-HunterKit · 69 tokens

api-10-sqli

SQL injection testing skill for offensive security assessments and bug bounty hunting. Covers error-based, UNION-based, boolean/time-based blind, out-of-band, second-order, NoSQL, GraphQL, WebSocket, and JSON-operator SQLi. Includes WAF bypass techniques, database-specific exploitation (MySQL, MSSQL, PostgreSQL…

vigilantshield/Claude-HunterKit · 118 tokens

Database Credential Extraction

This skill should be used when the user asks about "dump database", "extract credentials", "sqlite", "mysql credentials", "database passwords", or needs to extract user data from common database systems.

allsmog/blackbox-claude-plugin · 45 tokens

ecto-patterns

Ecto patterns — schemas, changesets, queries, migrations, Multi, associations, preloads, upserts. Use when editing Repo calls, Ecto.Query, or schema fields. Skip for Ash.

oliver-kriska/claude-elixir-phoenix · 45 tokens

ggsql

Write ggsql queries — a grammar of graphics for SQL. Use when the user wants to create, modify, or understand a ggsql visualization query.

posit-dev/skills · 33 tokens

bun-sqlite

Use for bun:sqlite, SQLite operations, prepared statements, transactions, and queries.

secondsky/claude-skills · 22 tokens