A build runner finds data it should never see
A developer build runner can retrieve a customer database snapshot through a storage endpoint. The runner’s job is to compile and test code, not to browse production customer information. The appearance of a reachable snapshot therefore demands an access review even when no data transfer has been confirmed. Establish whether the job was a trusted release pipeline, a pull-request build from an external contributor or an interactive maintenance session. Those contexts determine whether secrets and network access should have been available. Preserve the runner identity, job definition, snapshot policy and storage audit events before changing the configuration; deleting an ephemeral runner can erase the best evidence of what it executed.
Separate the three permissions involved
A build might legitimately read its own artefacts, assume a cloud role and request a database backup. Each step requires independent authorisation. Start with the identity federation conditions that grant credentials to the job, then inspect the role’s resource scope and the storage policy on the snapshot. A condition that admits any branch or fork can allow a less-trusted workflow to inherit powerful credentials. Check whether the database snapshot is stored in a bucket shared with test artefacts, and whether its encryption key grants follow the same overly broad role. Masking secrets in build logs does not prevent a permitted API from returning customer records to the process.
Preserve useful evidence from a short-lived job
Collect the pipeline run identifier, triggering commit, repository permissions, workflow changes, issued token claims, cloud API request and response, and object access records. Review what was actually returned: a successful request for object metadata is different from a download of its contents. If logging was not enabled for the relevant objects, state the uncertainty. Look for copies in caches, attached artefacts and outbound network traces where those records legitimately exist. Avoid enabling a broad debugging dump that reproduces customer data in logs. The incident lead and data owner should agree on restricted handling for any snapshot or token extracted during investigation.
Move customer data out of the build's reach
Preferred design gives build jobs isolated identities and data stores containing synthetic or properly minimised fixtures. Protect production snapshots with policies that do not trust the CI/CD environment, even if a workflow mistakenly receives a broader application role. Require narrower permissions for deployment than for compilation, and use explicit environment approval for high-impact releases. Review whether old runner pools, self-hosted agents or shared caches bypass the new restrictions. Where a real snapshot is temporarily required for authorised performance testing, place it in a segregated controlled workflow with time-limited access and an accountable approver; do not normalise that exception across every build.
Prove permitted builds still succeed
Test with two synthetic jobs. The standard build should compile, run its automated tests and publish a harmless artefact without access to any customer snapshot. An intentionally mis-scoped test job should be denied the protected storage object and key, with a log showing the requesting identity and the rejected resource. Validate both cloud policy and network egress, and repeat from a forked pull request if the organisation permits that workflow. The receiving storage service’s denial is stronger evidence than a pipeline message saying a permission was absent. Keep the exercise entirely inside an approved test account, not against live customer backup data.
Close the incident at the data boundary
A successful policy change can resolve an exposure while leaving unanswered whether an earlier run accessed the snapshot. Record those as different findings. If source evidence indicates a confirmed transfer, involve privacy and contractual decision-makers to assess affected records and obligations. If evidence supports only reachable permission, report that limitation plainly. Review token lifetimes, role assumptions and backup lifecycle after the fix, because a future runner migration may reintroduce inherited access. The engineering lead’s acceptance should include the commit or workflow revision tested, the negative storage decision, the normal release result and an owner for reviewing exceptions. The goal is a reliable delivery pipeline that never needs customer secrets merely to build software.
Watch for artefact reuse after the policy repair
A self-hosted runner may retain working directories or cached credentials between jobs, and a package cache may preserve file paths that should never have included a customer snapshot. Inspect runner-cleanup settings, cache scope and artefact retention as separate controls. If an emergency response rebuilds the runner, do not assume that remote caches, logs or previously published packages have vanished. Verify that the standard release still works with a fresh runner that has no inherited secret material. Engineers should also document what role the deployment system needs when copying a finished artefact to production; that permission can be separated from the role used to compile it.
The long-term check belongs in software-delivery change review. When a repository moves to a new build service or switches from dedicated to shared runners, examine the identity claims and storage policies before enabling production workflows. A build should be able to prove its source revision and artefact integrity without seeing customer records. Record the negative snapshot-access result as part of the release assurance package, making future accidental permission broadening visible to the team that can correct it.
Sources and context
- ASD Essential Eight: https://www.cyber.gov.au/resources-business-and-government/essential-cyber-security/essential-eight
- NIST Cybersecurity Framework 2.0: https://www.nist.gov/cyberframework
How Next Defence can assist
For technology, SaaS and digital services, Next Defence can scope the specific application and API security problem in this example: A CI runner acquires access to a database snapshot used for customer debugging. An engagement could translate the intended safeguard—separate build execution from data recovery credentials and use synthetic test fixtures—into an owner-approved work plan and a reproducible check to run a benign test job and verify access to the snapshot store is denied. Any assessment would be limited to the agreed systems and would respect the operational constraint: Debugging must remain possible through approved anonymised datasets.