redhatproductsecurity/prodsec-skills/database-security

Claude Code and agent skill by redhatproductsecurity/prodsec-skills

Trust tier 3
  • community
  • ext:[{"type":"config","description":"Configuration overrides"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Enforce database security for schema design, access control, encryption, and operational hardening. Use when building, reviewing, or auditing database schemas, connection handling, credential management, or database deployment configuration.

Install

npx vskill@latest install redhatproductsecurity/prodsec-skills/database-security

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as redhatproductsecurity/prodsec-skills/database-security.

Database Security

Design

Encryption
  • Encrypt all communication with the database (TLS in transit)
  • Encrypt the database at rest (filesystem, tablespace, or application-level encryption)
Auditing
  • Enable database auditing to log accesses and configuration changes
  • Audit logs should capture authentication events, privilege changes, and data access patterns
Data Integrity
  • Separate test databases from production databases; never share credentials between environments
  • Back up data regularly and document the backup and restore process
  • Use polyinstantiation to provide multiple views of the same object, preventing unauthorized users from inferring sensitive data
  • Apply database normalization to reduce data redundancy and improve integrity
  • Implement triggers to enforce referential integrity, prevent invalid operations, and apply complex security rules

Implementation

Least-Privilege Access
  • Applications MUST connect with the lowest possible level of privilege
  • Use different credentials for every trust level (regular user, read-only user, guest, administrator)
  • Users and applications MUST use separate accounts; never share authentication between them
Credential Management
  • Use secure credentials for all database access
  • Never hardcode connection strings in application code; store them in a separate configuration file on a trusted system, encrypted
  • Rotate credentials regularly

Configuration

Default Hardening
  • Remove or change all default administrative passwords; use strong passphrases or MFA
  • Turn off all unnecessary database functionality (stored procedures, utility packages, unnecessary services)
  • Remove default vendor content (sample schemas, example databases)
  • Install only the minimum set of features and options required (surface area reduction)
Backend Isolation
  • Isolate database servers from other systems and limit host connections
  • Disable network (TCP) access when possible; use local socket files or named pipes
  • Configure database to bind only on localhost when remote access is not required
  • Restrict network port access to specific hosts with firewall rules
  • Place database server in separate DMZ isolated from application server
  • Never allow direct connections from thick clients to backend database
Transport Layer Security
  • Use TLS 1.2+ with modern ciphers (AES-GCM, ChaCha20) for client connections
  • Verify digital certificate validity in client applications
  • Ensure all database traffic is encrypted, not just initial authentication
Platform-Specific Hardening
  • SQL Server: Disable xp_cmdshell, CLR execution, SQL Browser service, Mixed Mode Authentication (unless required)
  • MySQL/MariaDB: Run mysql_secure_installation, disable FILE privilege for users
  • PostgreSQL: Follow PostgreSQL security documentation guidelines
  • MongoDB: Implement MongoDB security checklist requirements
  • Redis: Follow Redis security guide recommendations

Implementation Checklist

  • [ ] All database connections use TLS encryption
  • [ ] Database storage is encrypted at rest
  • [ ] Auditing is enabled for access and configuration changes
  • [ ] Test and production databases are separated with distinct credentials
  • [ ] Backups are performed regularly with a documented restore process
  • [ ] Applications use the lowest-privilege database account
  • [ ] Different credentials are used per trust level (user, admin, readonly)
  • [ ] Connection strings are not hardcoded; they are stored encrypted on a trusted system
  • [ ] Default administrative passwords are changed
  • [ ] Unnecessary features, stored procedures, and sample schemas are removed
  • [ ] User accounts and application accounts are separate
  • [ ] Database isolated in separate network segment; no direct thick-client connections
  • [ ] Platform-specific hardening applied (see above)
  • [ ] Transaction logs stored on separate disk from main database files
  • [ ] Encrypted backups with tested restore procedures

References

Security

  • Security scanPassed, 98 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
40
Repository forks
4
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Jun 2026, 5 months ago.

Extension points

  • configConfiguration overrides

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/redhatproductsecurity/prodsec-skills/database-security/badge)](https://verified-skill.com/skills/redhatproductsecurity/prodsec-skills/database-security)

Something wrong with this skill or its page? Tell us.