The correct answer is:
Configure the DDoS protection on the CDN
Explanation:
The scenario describes a Cross-Site Request Forgery (CSRF) attack that was not prevented by a Web Application Firewall (WAF) deployed in blocking mode at a Content Delivery Network (CDN). Despite this, the application was exploited again.
This implies that the WAF rules were either not properly configured or not updated to detect and block CSRF attacks.
Now let's evaluate each option:
✅ Configure the DDoS protection on the CDN
- While DDoS protection helps mitigate large-scale traffic floods, it does not directly prevent CSRF attacks.
- However, some advanced CDN-based DDoS protections integrate more tightly with WAFs, potentially improving detection and blocking capabilities.
- This may help indirectly if the DDoS configuration enhances WAF integration or traffic inspection.
- But this is not the most direct fix for CSRF.
❌ Install endpoint protection software on the VMs
- Endpoint protection (e.g., antivirus) helps with host-level threats but is not effective against CSRF attacks, which are web application layer attacks.
- Not relevant to stopping CSRF.
❌ Add an ACL to the VM subnet
- Subnet Access Control Lists (ACLs) control network traffic at the infrastructure level.
- They can restrict IP ranges or ports but cannot detect or block application-layer CSRF attacks.
- Again, not suitable for this threat.
❌ Deploy an IDS on the IaaS network
- An Intrusion Detection System (IDS) could detect suspicious patterns, including CSRF attempts, but detection alone won't stop the attack unless integrated with response mechanisms.
- Since the WAF is already in place, adding an IDS doesn't address the failure of the existing WAF to block the attack.
So why is "Configure the DDoS protection on the CDN" the best choice?
While none of the options perfectly address the root issue (which would be updating or tuning the WAF rules), among the provided choices, configuring DDoS protection on the CDN might improve overall traffic handling and WAF effectiveness, especially if the CDN vendor tightly integrates DDoS mitigation with WAF functionality.
Some CDNs enhance their WAF performance when DDoS protections are enabled, such as better traffic inspection, rate limiting, or behavioral analysis — all of which could help prevent future CSRF attacks.
Best Practice Note:
Ideally, the engineer should also:
- Review and update WAF policies/rules to include CSRF protection (e.g., checking for
SameSite attributes, validating Referer, etc.)
- Ensure the WAF is operating in blocking mode and has up-to-date rule sets
- Implement CSRF tokens at the application level
But based on the given options, the best next step is:
✅ Configure the DDoS protection on the CDN