//Azure DevOps - Security Testing Guide (Ado-STG)/Secrets
| ID: | AdoSTG-SE-02 |
Secrets in plaintext are one of the enduring issues for cybersecurity. Azure DevOps furthermore introduces several ways in which a developer can expose secrets, credentials, tokens, etc. Most of these issues revolve around either hardcoding secrets in files or implementing functionality that prints secrets stored in the .env file to somewhere accessible to an attacker.
Review pipelines for the following
env | or set | or printenv commands in pipelines
echo command along with variable expansion ${} or $()
curl or wget
To remediate these issues, please avoid using commands that expose secrets in stdout and logs. Additionally, please refrain from hardcoding credentials anywhere.