Interview Prep/DevSecOps/Vulnerability Management and OWASP

A legacy PHP app cannot be patched for months, and it has known vulnerabilities. How do you protect it in the meantime?

AdvancedScenarioVulnerability Management and OWASP
Answer

Situation read → We need compensating controls around an app we cannot fix, and a plan to retire or rewrite it.

What I'd do →

  1. Put it behind a WAF with managed rule sets (OWASP CRS, AWS managed rules) and virtual patches for the known CVEs.
  2. Restrict access: IP allowlist, VPN or identity-aware proxy if users allow it.
  3. Isolate the host: separate subnet, no outbound internet except required endpoints, minimal IAM.
  4. Read-only filesystem where possible; file integrity monitoring on the web root.
  5. Extra logging and alerting on that app; record a formal risk acceptance with a retirement date.

Why → Virtual patching buys time; isolation limits the damage if it is still exploited.

Interview tip → Always tie compensating controls to a deadline, or they become permanent.

All DevSecOps questions Roadmap: Security in the pipeline

More on Vulnerability Management and OWASP