vibesecurity.review

CWE-798

Hard-coded credentials

Keep reusable passwords and keys out of source code and shipped builds.

What can go wrong

A credential included in an application can spread through repository history, build artifacts, and releases. A person who obtains a still-valid credential can act within the permissions it grants.

Check your application

Identify where copies may have been distributed. Use the issuing service's admin controls to check whether the credential is still active and what it can access.

How to fix it

  • Revoke exposed credentials with the service that issued them and deploy replacements where needed.
  • Prefer short-lived workload credentials where available. Supply other service secrets at runtime through your platform's secrets manager.
  • Limit each credential's permissions and keep service credentials out of client-side builds.

References