svc-database
Skill by s0ld13rr
Lists database remote code execution and escalation paths for MySQL, PostgreSQL, MSSQL, Redis and MongoDB. It is meant for use when a database service is found during a security assessment.
Install svc-database
Built from the published package, never by AI.
git clone --depth 1 https://github.com/s0ld13rr/pentestcode /tmp/pentestcode && mkdir -p ~/.claude/skills && cp -r /tmp/pentestcode/skills/services/database ~/.claude/skills/svc-databaseRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/s0ld13rr/pentestcode /tmp/pentestcode && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pentestcode/skills/services/database ~/.gemini/antigravity-cli/skills/svc-databaseAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
svc-database is an agent skill made of notes on remote code execution and privilege escalation paths for common database services. It covers MySQL user-defined functions, PostgreSQL COPY TO PROGRAM, MSSQL xp_cmdshell, and Redis key writes that can place an SSH key or a webshell. It also notes that MongoDB and Elasticsearch default to no authentication and lists default credentials to try.
The skill states its own preconditions for each path, such as the FILE privilege for MySQL UDFs and superuser rights for PostgreSQL. It assumes standard enumeration is already done and triggers on the default ports 3306, 5432, 1433, 6379 and 27017. The source is aimed at security testers who have found a database service.
Written from the project's SKILL.md and checked against it.
What it can do
- MySQL UDFRuns system commands through a uploaded lib_mysqludf_sys.so library, and reads files with LOAD_FILE.
- PostgreSQL COPY TO PROGRAMRuns an operating system command via COPY TO PROGRAM when the account is superuser.
- MSSQL xp_cmdshellEnables xp_cmdshell if disabled and runs commands, plus a hash capture method using xp_dirtree.
- Redis no-auth writeUses CONFIG SET and SAVE to write an SSH key or a PHP webshell to disk.
- MongoDB and Elasticsearch dumpNotes that both default to no authentication, so enumeration and data dump can start right away.
- Default credentialsLists default logins to try for MySQL, PostgreSQL and MSSQL.
Try asking
- Check the exposed Redis on port 6379 for no-auth write paths
- Test whether xp_cmdshell can be enabled on this MSSQL server
- Review this MySQL service for UDF privilege escalation options
Good to know
- Assumes standard enumeration such as connecting and listing databases is already done.
- Each path depends on a stated privilege or configuration, such as FILE privilege, superuser rights, or disabled authentication.
- Covers only the five listed database services.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/services/database/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md1 KB
Alternatives to svc-database
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
svc-database: common questions
What database services does svc-database cover?
The source covers MySQL, PostgreSQL, MSSQL, Redis, and MongoDB, with Elasticsearch mentioned alongside MongoDB for no-auth dumps.
When should this skill be used?
The skill says to use it when a database service is found, and lists the triggering ports 3306, 5432, 1433, 6379 and 27017.
Does it cover basic database enumeration?
No. The source says standard enumeration such as connecting, listing databases and dumping users is assumed, and the file covers the escalation paths only.
How do I install svc-database?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is svc-database free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is svc-database safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to svc-database?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
