AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Database Security

skill-redhatproductsecurity-prodsec-skills-database-security · by RedHatProductSecurity

>

No reviews yet
0 installs
35 views
0.0% view→install

Install

$ agentstack add skill-redhatproductsecurity-prodsec-skills-database-security

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-redhatproductsecurity-prodsec-skills-database-security)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Database Security? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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 mysqlsecureinstallation, 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

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.