Illustrative only - not an engagement finding
Long-Lived Cloud Credentials Exist in Source or Build History
Critical
See where this finding applies on the diagrams: delivery zone [planned] · CP7 workload identity federation
Illustrative only - not an engagement finding
Long-Lived Cloud Credentials Exist in Source or Build History
- Business Summary
- A reusable cloud credential can remain valid after it is deleted from the latest source file because earlier repository history and copied build artifacts may still contain a working value.
- Possible Weakness
- Reusable cloud credentials are committed to repository history, copied into build output or retained in a deployment artifact.
- Potential Impact
- Anyone who obtains the material could consume paid services, impersonate a workload or reach protected data within the credential scope.
- What an Assessment Verifies
- Scan current files, repository history and Azure DevOps build artifacts without attempting to use any discovered credential.
- Expected Fix
- Revoke and rotate exposed material, replace it with an Entra ID managed identity and enforce secret scanning that covers repository history before merge and release in Azure DevOps.
- How to Check the Fix
- The previous credential must be rejected, current files, history and artifacts must contain no copy, the workload must succeed through managed identity and the pipeline must block a planted test secret.
Cross-Reference Evidence (Illustrative). This is cross-reference evidence demonstrating how repository and cloud evidence can corroborate the same control concern. In a real engagement each item below is a live pointer: a file-and-line link into the source repository, a reproducible read-only query against the deployed Azure environment, or replayable tool output. Here they lead to newly authored public demonstrations.
-
Example source-code permalink and history reference
This is cross-reference evidence. A real assessment links a conclusion to the reviewed commit and exact lines so another technical reader can inspect the same enforcement point.
if not policy.can_access(actor, record): raise Forbidden() -
Example secret-scan output covering repository history
This is cross-reference evidence. A real report retains the command, tool version, safe input boundary and output needed to reproduce the conclusion.
security-check --target "<illustrative-target>" --format json Illustrative output: {"result":"control verified"} -
Example workload-identity configuration record
This is cross-reference evidence. A real assessment records the dated read-only query, the relevant property and the evidence limit without exposing credentials or customer data.
az resource show --ids "<illustrative-resource-id>" \ --query "properties.exampleControl" Illustrative output: {"exampleControl":"enabled"}