database-security
它能做什么
这个工具可以检查 PostgreSQL、MySQL 等数据库的安全性,查找安全漏洞、配置错误和潜在的风险点。
适用场景
- ✓在已获授权的环境中,检查数据库是否安全。
- ✓查找访问权限问题和存在风险的配置。
- ✓了解攻击者可能如何利用薄弱环节。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/database-security/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在已获得书面授权的前提下,检查 IP 地址 192.168.1.100 上的数据库安全性。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会连接到数据库,分析其设置和权限。它会比对已知的漏洞模式,并揭示可能的攻击路径。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
⚠️ 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.
Mandatory 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.
Database Security Assessment
When to Use
- Assessing database hardening and exposure within an approved scope.
- Checking authz boundaries and risky server-side execution features.
适用场景
- 数据库未授权/弱口令/错误绑定 0.0.0.0
- 权限过大、危险功能(xp_cmdshell、COPY PROGRAM、UDF)
- 横向:从应用账号到 DBA
- NoSQL 注入与 Redis 写文件等(授权环境)
工作流
□ 网络暴露与 TLS
□ 账号角色与 grantee
□ 敏感表访问控制
□ 危险配置:file_priv、xp_cmdshell、load_file
□ 审计日志是否开启
□ 备份与快照权限
工具链
| 工具 | 用途 |
|---|---|
| 官方 CLI | 连接与枚举 |
| sqlmap | 注入验证(授权) |
| nuclei | 已知暴露模板 |
| 云 RDS 控制台审计 | 配置 |
参考
references/db-misconfig-checklist.md../pentest-tools/../cloud-k8s/
路由上下文
上游: MASTER R35
下游: 获 OS 命令 → attack-chain;云托管 → cloud-k8s
任务完成自检
- 是否避免未授权写删?
- 是否区分配置问题与可利用链?
- 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).
常见问题
使用这个工具需要获得许可吗?
需要。在使用前,你必须获得系统所有者明确的书面许可。未经授权使用是违法的。
如果我没有许可会怎样?
工具只会提供防御性的建议,在未经确认和授权的情况下,不会执行任何可能修改或访问数据的检查。
这个工具会损坏我的数据库吗?
部分检查具有破坏性。建议在测试环境中使用,或先进行模拟,并始终持有书面授权。
详情
作者的原始描述
Authorized database security assessment across PostgreSQL, MySQL, MSSQL, MongoDB, and Redis: exposure, authorization gaps, UDF/command execution paths, and misconfiguration review.
热度
- GitHub 星标
- 48k
- 排名
- #4337
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。