In a threat-modeling session, engineers propose adding an API gateway WAF rule that blocks requests based on regex matches of suspicious URL patterns. Which failure mode is most likely, and what is the best improvement?

Answer

False positives will increase due to overly broad regex; prefer contextual detections tied to auth state and endpoint semantics

Explanation

Regex patterns often misclassify benign requests when context (identity, method, state) isn’t considered. Contextual rules reduce collateral damage while keeping malicious traffic blocked.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

During an OAuth integration review, you discover that a third-party app requests the broadest possible scope and the access token is accepted by multiple internal services without audience validation. Which combination most effectively mitigates token replay and over-privilege?

View question →

A retail organization’s SIEM suddenly shows a spike in outbound connections to rare, high-numbered ports from multiple endpoints. The SOC suspects a botnet using non-standard C2. Which action most directly improves detection reliability while preserving analyst time?

View question →

Your team deploys a browser-based app with Content Security Policy (CSP). Security scanning reports that inline scripts are blocked, but the app still becomes compromised via user-controlled HTML rendering. Which CSP setting or pattern most directly addresses this class of vulnerability?

View question →

A forensic investigation finds that an attacker accessed a managed database using a privileged role assigned to a service account. Cloud audit logs show the service account was used from a new region hours earlier than usual. Which analytic approach best identifies whether this is credential theft vs. legitimate automation gone wrong?

View question →

A cloud workload uses a static service account key stored in an application repo. After exposure is suspected, which remediation order most effectively reduces attacker access while maintaining availability?

View question →

A SOC uses a vulnerability management system that prioritizes alerts using CVSS. After patching, attackers still succeed by exploiting an unpatched dependency that appears low priority due to CVSS scoring. What is the best way to recalibrate prioritization for this environment?

View question →

QuestionBack to list