Vulnerability Discovery and Analysis

A tester has read access to a client's source repository and CI system and must find hardcoded credentials. Which two sources should be scanned? (Choose two.)

Choose 2 answers

Show the answer

Correct answersC. CI pipeline build logs that echo environment variablesE. Environment and config files committed to the repository

AWhy not this: A UDP scan shows reachable services, not credentials stored in code or logs.

BWhy not this: An SSID list shows nearby wireless network names and holds no repository secrets.

CWhy this is right: Build logs that echo environment variables can expose tokens and passwords.

DWhy not this: Channel utilization shows radio congestion and has nothing to do with stored secrets.

EWhy this is right: Committed .env and config files often hold API keys and passwords in plain text.

FWhy not this: SCA license fields describe third-party package terms, not credentials.

Secrets scanning looks for credentials stored in code, config files and pipeline output, where developers often leave them. License data, port scans and wireless survey results do not hold stored credentials.