A developer uses a third-party library that periodically fetches remote code and executes it. Which security control most directly addresses this risk while maintaining auditability?
Answer
Pin the dependency, disable dynamic remote code execution if possible, and enforce egress restrictions with auditing
Explanation
Pinning reduces dependency drift, disabling dynamic remote execution prevents the core technique, and egress restrictions limit where code can be fetched from. Network privacy alone doesn’t stop outbound code retrieval.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You suspect an attacker attempted privilege escalation by abusing a misconfigured IAM binding that grants broad permissions at the project level. Which step provides the strongest evidence of the path taken?
View question →
A cloud environment uses private networking and strict egress, yet you observe DNS queries for a domain that does not match any approved service. The application then fails to connect to its database and retries continuously. What is the most likely root cause?
View question →
A service account starts making API calls from a new IP range and attempts to access data across multiple projects. Which response best aligns with least privilege and secure handling?
View question →
A team observes a spike in outbound connections to uncommon ports from multiple worker instances, but only one instance shows a suspicious binary on disk. Which conclusion is most defensible?
View question →
A threat actor exfiltrated data but used an encrypted tunnel from a compromised workload. Which detection strategy is most effective when payload inspection is infeasible?
View question →
An analyst discovers a sudden increase in failed logins followed by successful logins using the same username from a new ASN and unusual time-of-day. Which actions best reduce the blast radius while preserving evidence?
View question →