You are assessing a CI/CD pipeline that runs untrusted code from pull requests. The pipeline currently mounts the repository workspace with read/write permissions to a shared Docker layer cache. An attacker may try to poison the cache to affect later builds. What is the most appropriate mitigation?

Answer

Isolate the build environment and use per-branch/per-job ephemeral caches that cannot be influenced across trust boundaries

Explanation

Cache poisoning works by crossing trust boundaries; isolating caches per job removes attacker influence on subsequent builds.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

Your incident response plan requires evidence preservation. A developer suggests copying the production database during a live incident “to capture state,” but service must continue. What is the best approach that preserves evidentiary value?

View question →

In a threat model, you identify that attackers could abuse misconfigured cloud storage permissions to read sensitive objects but cannot write to buckets. Which defense most effectively addresses confidentiality while preserving immutability of stored data?

View question →

A company uses a single global API key for multiple internal services. During an incident, logs show successful requests from an IP range that matches a reseller’s NAT, but internal teams confirm the key should not be exposed externally. Which action best follows the principle of least privilege and incident containment?

View question →

A system uses JWTs with a long expiration (e.g., 30 days). A refresh token is stored securely, but a breach reveals the signing secret is rotated late. Which property most directly suffers, and what mitigation best addresses it?

View question →

A SOC analyst sees repeated failed logins followed by a single successful login for a user account that rarely authenticates from the observed geolocation. The account has access to production deployments. What is the highest-priority response to ensure account integrity?

View question →

A firewall rule blocks inbound traffic to an API. Yet the attacker can still reach the API from inside the network using the same credentials as a legitimate admin. Which classification best describes the observed behavior?

View question →

QuestionBack to list