Table of Contents
An application-layer attack affects how a service handles requests. A Layer 7 denial-of-service incident can make a site unavailable. An authorization failure or injection flaw can instead expose or change data. The symptoms and fixes differ, so identify what is happening before changing defenses.
Recognize the main categories
| Problem | Defensive controls |
|---|---|
| Application-layer denial of service | Capacity monitoring, targeted rate limits, upstream mitigation, and safe caching |
| SQL injection | Parameterized queries and limited database privileges |
| Cross-site scripting | Context-aware output encoding, safe templates, and sanitization when HTML is allowed |
| Cross-site request forgery | Framework CSRF protections and appropriate cookie settings |
| Broken API authorization | Server-side permission checks on every protected operation |
Respond to a suspected Layer 7 outage
- Record when the issue started. Check error rates, latency, request volume, and resource usage against a normal period. Consider recent releases and legitimate spikes.
- Compare application, load balancer, and CDN metrics. Escalate to the hosting or DDoS provider if your infrastructure is saturated.
- Use existing controls to reduce suspicious traffic without blocking normal customers. Start with scoped, reversible rules and measure their effect.
- Retain relevant logs. If there are signs of unauthorized data access, open a separate security incident and follow your organization’s response process.
See CISA’s DDoS response guidance and TipsMake’s web and API security troubleshooting.
Reader Comments 0
Sign in with email or Google to join the discussion.