Hardening the Perimeter: Code-Level Security in Containerized Environments