database-security
仓库创建 2026年7月1日最近提交 23 天前SkillHot 收录 22 天前
▸ 精选理由
改善数据库访问安全与迁移流程质量。
这个 Skill 做什么
防止 SQL 注入、ORM 误用与凭据泄露并推行最小权限策略。
告诉你怎么防 SQL 注入、避免 ORM 误用和凭据泄露,并推动最小权限与安全迁移等做法。适用于生成 SQL、ORM 模型或迁移文件,以及配置连接字符串和权限时。特点是强调参数化查询、准备用语句和把数据库用户权限降到刚够用。
▸ 展开 SKILL.md 英文原文
Prevent SQL injection, ORM misuse, credential leaks; enforce least-privilege DB users and safe migrations — Applies to: when generating SQL or raw query strings; when generating ORM model code or queries; when generating database migration files; when wiring connection strings or pooling
2
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/dist/agent-skills/.agents/skills/database-security/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ShieldNet-360/secure-vibe/main/dist/agent-skills/.agents/skills/database-security/SKILL.md"SKILL.MD 节选查看完整文件 ↗
<!-- Native skill bundle for agent-skills (cross-tool convention). Generated by `secure-vibe dev regenerate`. -->
<!-- Do not edit by hand; the source of truth is skills/database-security/SKILL.md. -->
# Database Security
Prevent SQL injection, ORM misuse, credential leaks; enforce least-privilege DB users and safe migrations
## ALWAYS
- Use parameterized queries / prepared statements for any SQL that touches user-controlled values. Pass values as parameters, never via string concatenation or formatting (`%s`, `+`, template literals).
- Use the ORM's safe query API. In SQLAlchemy: `session.execute(text(":id"), {"id": user_id})`. In Django: ORM methods, `Model.objects.filter(...)`. In Seqvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有