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

Report an error
QuestionBack to list