Join our Newsletter — 33% off our NHI Course

Serverless Architecture

Serverless architecture is a cloud application model where developers deploy code without managing servers directly. The provider handles provisioning, scaling, and infrastructure operations, while runtime functions or managed services execute on demand. For identity and security, access control, secrets handling, and event permissions must be tightly governed across every service interaction.

How Serverless Architecture Changes the Security Model

Serverless architecture shifts responsibility for server provisioning and runtime scaling to the cloud provider, but it does not remove security ownership from the application team. The security model moves upward into code, event sources, APIs, permissions, and managed-service configuration.

That shift matters because the attack surface is no longer centred on host management. It is spread across functions, triggers, service-to-service calls, identity permissions, and the data or secrets each invocation can reach.

Where Serverless Fits in Cloud Application Design

Serverless is best understood as an application delivery model, not a security control. It is common for teams to combine functions, queues, object storage, API gateways, databases, and managed identity services into one workflow, with each piece governed separately.

The architecture can be highly efficient for bursty workloads and event-driven processing, but it also increases the number of small trust decisions. Each event, integration, and permission boundary becomes part of the design rather than an incidental implementation detail.

Security Implications of Event-Driven Execution

Because serverless systems are activated by events, security depends on the integrity of the event path as much as on the code itself. A malformed trigger, weak authorization decision, or overbroad service permission can cause a function to process data or invoke actions it should never see.

Secrets handling is equally important. If credentials, tokens, or keys are embedded in code, reused across functions, or exposed through environment variables without strong controls, compromise of one workload can cascade into broader cloud access.

Serverless systems also inherit risk from the managed services around them. Logging gaps, weak configuration review, and missing dependency visibility can make it harder to spot abuse, especially when many short-lived executions leave little local state behind.

Common Use Cases and Design Trade-Offs

Serverless is a strong fit for APIs, event processing, lightweight automation, scheduled jobs, and glue code that benefits from elastic scaling. It is less attractive when workloads require long-lived state, tight runtime control, or specialised network and host-level tuning.

The main trade-off is operational simplicity versus control depth. You gain less infrastructure to manage, but you must be more disciplined about code review, permission scoping, deployment hygiene, and dependency management across the full event chain.

Risk and Threat Considerations

Serverless architecture concentrates risk in authorization, secrets, and event trust boundaries. Attackers often look for overly broad execution roles, exposed triggers, or poorly governed third-party integrations because those paths can convert a single function weakness into broader cloud abuse.

Failure mechanism: Misconfigured permissions, insecure event handling, or leaked secrets can let an attacker invoke functions, access downstream services, or pivot into adjacent cloud resources without ever compromising a traditional server.

Impact: The result can include data exposure, unauthorized actions, service abuse, higher cloud costs, and loss of trust in automation paths that were assumed to be low risk.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 AC-6 — Least Privilege Serverless functions need tightly scoped permissions to reduce blast radius.
IA-5 — Authenticator Management Serverless relies on secrets, tokens, and key handling for service access.
SI-4 — System Monitoring Short-lived executions require strong telemetry to detect abuse and misuse.
Recommendation — Scope each function to the minimum actions and resources it requires. Protect and rotate function credentials, tokens, and API keys on a managed lifecycle. Centralize function logs and alerts to detect suspicious invocations and downstream abuse.
NIST CSF 2.0 PR.AA-05 — Identity Management, Authentication, and Access Control Serverless architecture depends on governed access across functions and managed services.
Recommendation — Enforce strong access control for every function, trigger, and service identity.
OWASP API Security Top 10 API5 — Broken Function Level Authorization Serverless APIs and handlers are often exposed through callable functions.
Recommendation — Test function endpoints for authorization failures before release.

Practitioner Guidance

Why practitioners should care: In serverless environments, the security boundary is the permission model around code and events, not the presence or absence of a server you administrate directly. That means governance must focus on what each function can receive, read, and invoke.

What to watch for: Review function permissions, event source trust, secret delivery, and cross-service access together, because weak controls in any one of those layers can undermine the whole workflow. Where teams assume the provider has “handled” security, the usual blind spots are excessive permissions and unreviewed integrations.