Communitygithub.com

データベースセキュリティ評価

PostgreSQL/MySQL/MSSQL/MongoDB/Redisの露出、認証、UDF/コマンドパス、設定ミスのレビューをカバーする、許可されたデータベースセキュリティ評価に使用します。

データベースセキュリティ評価 とは?

このスキルは、PostgreSQL、MySQL、MSSQL、MongoDB、Redisなど、複数のデータベースシステムを対象としたセキュリティ評価を実施するためのものです。ネットワーク露出、認証、承認、設定ミス、そしてUDF(ユーザー定義関数)やコマンド実行パスといった危険な機能を特定します。許可された環境での実施を前提とし、破壊的な操作は明示的な許可がない限り禁止されています。評価は、ペネトレーションテストの既存知見との連携を考慮し、暴露面の特定から認証、承認、設定検証、そして悪用チェーン検証までのワークフローに従います。スキルにはチェックリストが含まれており、タスク完了の自己チェックポイントとして、未承認の書き込みや削除の回避、設定問題と悪用可能なチェーンの区別が求められます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaoxuya520/reverse-skill/tree/main/skills/database-security

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

データベースセキュリティ評価 は何をしますか?

アクション必須(読んだらすぐ実行)

  1. NOW: precedent-pentest を読み込む;本番DBでは破壊的ステートメントを禁止(明示的に許可されている場合を除く)
  2. NOW: スコープにインスタンス、アカウント権限、書き込み/削除が許可されているかどうかを明確に記載する
  3. NEXT: クライアントツールのパスを確認する
  4. ACT: 露出面 → 認証 → 承認 → 設定 → 悪用チェーン検証(安全)

適用シナリオ

  • DBの未認証アクセス/弱いパスワード/0.0.0.0への誤ったバインディング
  • 過剰な権限、危険な機能(xp_cmdshell、COPY PROGRAM、UDF)
  • 水平移動:アプリケーションアカウントからDBAへ
  • NoSQLインジェクションとRedisによるファイル書き込みなど(許可環境)

ワークフロー

□ ネットワーク露出とTLS
□ アカウントロールと権限付与対象者
□ 機密テーブルへのアクセス制御
□ 危険な設定: 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

タスク完了自己チェック

  • 未承認の書き込み/削除を回避したか?
  • 設定問題と悪用可能なチェーンを区別したか?
  • チェックリストを確認したか?

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

apk-reverse

在 CLI 环境下做 Android APK 逆向时使用。适用于 APK 解包、Java 反编译、smali 修改、重打包、Frida 动态 Hook,以及按需切换到 so/native 分析。优先使用本机已安装的 jadx、apktool、frida、adb、ida-reverse、radare2。

attack-chain

Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.

binary-diff

|

binary-ninja-reverse

Use for authorized binary analysis in Binary Ninja, including HLIL/MLIL/LLIL inspection, strings/imports/exports, cross-references, types, patch review, Python API automation, and optional Binary Ninja MCP or localhost HTTP integration.

browser-automation

|

browser-extension-reverse

Use for authorized reverse engineering of browser extensions (Chrome/Firefox) including manifest analysis, background workers, and extension-based credential or traffic logic recovery.

case-review

Reviews a reverse-skill case package for scope readiness, Evidence to Finding to Path traceability, work item coverage, timeline references, and optional artifact hash integrity before report handoff.

cloud-k8s

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

code-audit

Use for authorized source-code security review and SAST workflows including Semgrep, CodeQL patterns, dangerous API hunting, and fix verification.

ctf-sandbox

Thin PRIMARY for CTF / AWD / 靶场 multi-type orchestration. Hands off to the sidecar CTF-Sandbox-Orchestrator. Use when the user says CTF, AWD, 靶场, or 比赛题 and no more specific pwn/APK/IDA route already won.

diagram-generator

generate, refine, validate, and render diagrams from natural language, notes, code snippets, schemas, tables, or existing diagram source. use for flowcharts, swimlanes, sequence diagrams, state diagrams, er diagrams, class diagrams, architecture/c4-style diagrams, dependency graphs, gantt charts, mind maps, user journeys, sankey-style flows, org charts, network graphs, and other visual models. supports mermaid by default, graphviz dot for complex graph layout, plantuml for uml-heavy engineering diagrams, and svg output when direct markup is more reliable.

digital-forensics

Use for authorized digital forensics including memory dumps, disk timelines, PCAP investigation, artifact triage, and IR evidence preservation.

docs-generator

|

dotnet-reverse

.NET / C# 二进制逆向。当目标是 .NET assembly(PE 头含 CLR、.exe/.dll 托管程序)、C# 编译产物(含 NativeAOT)、红队 Sharp* 工具(Rubeus / SharpHound / SharpHound 等)、.NET 混淆程序(ConfuserEx / SmartAssembly / Babel / Eazfuscator)、.NET loader / info-stealer / 套壳 malware 时使用。优先用 dnSpyEx + de4dot,需要 AI 直接操作时联动 dnSpy MCP。不用于纯 native 二进制(走 reverse-engineering / ida-reverse)。

edr-bypass-re

|

email-security

Use for authorized email security review including phishing analysis, header authentication (SPF/DKIM/DMARC), BEC patterns, and mailbox token abuse research.

firmware-pentest

|

ghidra-reverse

Use for free/open reverse engineering with Ghidra (headless or GUI), including decompile, cross-refs, and optional Ghidra MCP workflows when IDA is unavailable.

go-rust-reverse

Use for reverse engineering stripped Go and Rust binaries including runtime recognition, pclntab/moduel data recovery, panic strings, and idiomatic decompilation recovery.

関連スキル