Skip to content
Back to skills

Common Security Audit

ASecurity

This is a P0/critical finding. The skill assigns P0 to any hardcoded secret, and a database password can directly expose production data, enable modification or deletion, and permit lateral movement depending on the account privileges. The severity remains critical even if the file is not currently imported: it may exist in Git history, artifacts, logs, caches, or developer clones. Immediate actions: 1. Revoke and rotate the password now. Assume it is compromised; inspect database authenticat...

  • 584 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
developmentgosqldockergitdatabase

Works with

  • cli

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-security-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Security Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Security Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-security-audit-0c5f297e/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-security-audit-0c5f297e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Severity of a hardcoded database password in Go source

This is a P0/critical finding. The skill assigns P0 to any hardcoded secret, and a database password can directly expose production data, enable modification or deletion, and permit lateral movement depending on the account privileges. The severity remains critical even if the file is not currently imported: it may exist in Git history, artifacts, logs, caches, or developer clones.

Immediate actions:

1. Revoke and rotate the password now. Assume it is compromised; inspect database authentication and access logs for misuse and determine whether the account has excessive privileges.
2. Remove the value from the working tree and all reachable Git history with an approved history-rewrite process, then coordinate force-updates and invalidate old clones/artifacts. Do not merely delete the current line.
3. Move runtime configuration to an environment-injected secret or a managed secret store. Do not put the replacement in a committed `.env`, binary, container layer, or client bundle.
4. Reduce the database account to least privilege, require TLS, restrict network access, and ensure rotation is operationally supported.

In the Go code, read the secret from the runtime configuration, validate that it is present without logging it, and ensure error messages and request/SQL logs cannot print the DSN or password. Add secret scanning to pre-commit/CI and test that logs redact credentials. Review nearby connection strings, test fixtures, Docker layers, CI variables, and dependency/config files for additional copies.

Until rotation, history cleanup, access-log review, and a retest are complete, block release and treat the credential as leaked. If it was only a synthetic local test password, document that evidence, but still remove the pattern and verify it cannot authenticate against any shared environment; that evidence can lower practical impact, not the initial finding classification.

Files in this skill

  • eval-1.baseline.md3.4 KB
  • eval-1.with-skill.md2.8 KB
  • eval-2.baseline.md2.3 KB
  • eval-2.with-skill.md1.9 KB
  • eval-3.baseline.md2.7 KB
  • eval-3.with-skill.md2.5 KB
  • trigger-1.md145 B
  • trigger-2.md166 B
  • trigger-3.md147 B
  • trigger-4.md162 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.