Serverless removes some real problems:
- OS patching (mostly).
- Long-lived host compromise — short-lived containers limit dwell time.
- SSH/RDP attack surface.
- Capacity-based DoS — auto-scaling absorbs many volumetric attacks.
But it adds others:
- Function permissions sprawl — hundreds of functions, each with its own role, add up to a permissions blast radius bigger than a few VMs.
- Cold-start telemetry gaps — runtime detection tools need to attach in milliseconds.
- Dependency depth — function packages with 200 npm dependencies inherit every CVE in the tree.
- Event-source confusion — a Lambda triggered by SQS, EventBridge, S3, and API Gateway has four input-validation surfaces, not one.