Communitygithub.com

데이터베이스 보안 평가

PostgreSQL/MySQL/MSSQL/Mongo/Redis의 노출, 인증, UDF/명령 경로, 설정 오류 검토를 포괄하는 공인된 데이터베이스 보안 평가에 사용됩니다.

데이터베이스 보안 평가란 무엇인가요?

이 스킬은 데이터베이스 보안 평가를 위한 전문 기술로, PostgreSQL, MySQL, MSSQL, MongoDB, Redis 등 주요 데이터베이스의 노출, 인증, 권한 부여, 위험한 기능(UDF, xp_cmdshell, COPY PROGRAM 등), 설정 오류를 체계적으로 점검합니다. 네트워크 노출 및 TLS, 계정 역할과 권한, 민감 테이블 접근 제어, 감사 로그 활성화 여부, 백업 권한 등을 포함한 포괄적인 체크리스트를 제공합니다. 또한 sqlmap을 통한 인젝션 검증, nuclei를 통한 알려진 노출 템플릿 스캔, 클라우드 RDS 콘솔 감사 등 다양한 도구를 활용하며, 실제 침투 테스트 결과를 참조하고 공격 체인이나 클라우드/K8s 환경으로 라우팅할 수 있습니다. 이 스킬은 생산 데이터베이스에 대한 파괴적인 작업을 방지하고, 설정 문제와 실제 악용 가능한 체인을 명확히 구분하여 체계적이고 안전한 평가를 수행하도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaoxuya520/reverse-skill/tree/main/skills/database-security

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

데이터베이스 보안 평가은(는) 무엇을 하나요?

필수 조치 사항 (읽은 후 즉시 실행)

  1. 지금: precedent-pentest 참조; 생산 데이터베이스에 파괴적인 SQL문 금지 (명시적 허가 없음)
  2. 지금: 범위에 인스턴스, 계정 권한, 쓰기/삭제 허용 여부 명시
  3. 다음: 클라이언트 도구 경로 확인
  4. 실행: 노출면 → 인증 → 권한 → 설정 → 악용 체인 검증 (안전)

적용 시나리오

  • 데이터베이스 미인증/약한 비밀번호/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.

관련 스킬