⚠️ AUTHORIZED USE ONLY This skill is for educational purposes or authorized security assessments only. You must have explicit, written permission from the system owner before using this tool. Misuse of this tool is illegal and strictly prohibited.
Database Security AssessmentMandatory confirmation gate Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
- Ask the user to state the exact target URL, IP, account, or resource.
- Ask the user to confirm written authorization and the permitted scope.
- Show the exact command(s) and explain their expected effect.
- Wait for explicit confirmation in the current conversation.
Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
When to Use
- Assessing database hardening and exposure within an approved scope.
- Checking authz boundaries and risky server-side execution features.
Applicable Scenarios
- Unauthorized database access/weak credentials/incorrect binding to 0.0.0.0
- Excessive privileges, dangerous features (xp_cmdshell, COPY PROGRAM, UDF)
- Lateral movement: from application account to DBA
- NoSQL injection and Redis file writing, etc. (authorized environment)
Workflow
□ 网络暴露与 TLS
□ 账号角色与 grantee
□ 敏感表访问控制
□ 危险配置:file_priv、xp_cmdshell、load_file
□ 审计日志是否开启
□ 备份与快照权限
Toolchain
| Tool | Purpose |
|---|---|
| Official CLI | Connection and enumeration |
| sqlmap | Injection verification (authorized) |
| nuclei | Known exposed templates |
| Cloud RDS console audit | Configuration |
Reference
references/db-misconfig-checklist.md../pentest-tools/../cloud-k8s/
Routing Context
Upstream: MASTER R35
Downstream: Obtain OS command → attack-chain; cloud-managed → cloud-k8s
Task Completion Self-Check
- Avoid unauthorized writes and deletions?
- Distinguish configuration issues from exploitable chains?
- Checklist?
Limitations
- Never run against production data stores without explicit written approval.
- Active exploitation paths (UDF/command exec) are destructive-capable; simulate first.
Adapted from zhaoxuya520/reverse-skill (MIT).