Get Started
- CodeAnt AI
- Control Center
- Pull Request Review
- IDE
- Compliance
- Anti-Patterns
- Code Governance
- Infrastructure Security Database
- Application Security Database
- Apex
- Bash
- C
- Clojure
- Cpp
- Csharp
- Dotnet-core
- Dotnet
- Jwt-dotnet
- Lang
- Audit
- Best practice
- Correctness
- Security
- Security
- Ad
- Cryptography
- Filesystem
- Http
- Injections
- Insecure deserialization
- Memory
- Regular expression dos
- Sqli
- Ssrf
- System
- Directoryentry-hardcoded-secret
- Networkcredential-hardcoded-secret
- Oracleconnectionstringbuilder-hardcoded-secret
- Passwordauthenticationmethod-hardcoded-secret
- Sqlconnection-hardcoded-secret
- Sqlconnectionstringbuilder-hardcoded-secret
- Xxe
- Mongo
- Postgres
- Razor
- Dockerfile
- Elixir
- Fingerprints
- Generic
- Go
- Html
- Java
- Javascript
- Json
- Kotlin
- Ocaml
- Php
- Problem-based-packs
- Python
- Ruby
- Rust
- Scala
- Solidity
- Swift
- Terraform
- Typescript
- Yaml
Passwordauthenticationmethod-hardcoded-secret
Passwordauthenticationmethod hardcoded secret
A secret is hard-coded in the application. Secrets stored in source code, such as credentials, identifiers, and other types of sensitive data, can be leaked and used by internal or external malicious actors. Use environment variables to securely provide credentials and other secrets or retrieve them from a secure vault or Hardware Security Module (HSM).
Likelihood: HIGH
Confidence: HIGH
CWE:
- CWE-798: Use of Hard-coded Credentials
OWASP:
- A07:2021 - Identification and Authentication Failures