Serverless Security
Serverless security is the set of practices and technologies used to protect applications built on serverless computing, where cloud providers run code on demand without the organization managing the underlying servers. It focuses on securing the individual functions, the data they handle, and the managed cloud services they connect to. Because these functions often run only briefly, they introduce protection challenges that differ from traditional always-on servers.
Serverless security is the discipline of protecting event-driven, function-based workloads (such as Function-as-a-Service deployments) and the managed cloud services they invoke. It encompasses the practices, programs, and technologies organizations deploy to secure serverless computing architecture, including checking for vulnerabilities and attacks against serverless applications, hardening configurations, enforcing data separation, and using controls such as API gateways as security buffers. The model must account for the short-lived, ephemeral nature of functions, which advanced attackers have been observed abusing as temporary infrastructure, for example, using serverless functions as command-and-control (C2) servers precisely because functions operate for very brief periods.
Why it matters
Serverless computing shifts the operational burden of running servers to the cloud provider, but it does not remove the organization's responsibility for securing the code it deploys, the data those functions handle, and the managed cloud services they connect to. The security model differs meaningfully from traditional always-on servers because functions are event-driven and often run only for very brief periods. That ephemeral nature reduces the attack surface in some respects, but it also complicates monitoring, forensics, and detection, since a function may execute and disappear before conventional tooling registers it.
Attackers are aware of these characteristics. Advanced adversaries have been observed abusing serverless functions as temporary infrastructure, using them as command-and-control (C2) servers precisely because the functions operate for such short intervals, making the malicious activity harder to trace. This means serverless security is not only about defending an organization's own applications from vulnerabilities and attacks, but also about recognizing that the same properties which make serverless attractive to developers can be turned to an attacker's advantage.
For security leaders, serverless security underscores that governance and risk management must extend to architectures where there is no server to patch or harden in the traditional sense. The relevant controls move toward securing individual functions, enforcing data separation and secure configurations, and placing buffers such as API gateways in front of exposed functions. Treating serverless as inherently secure because the provider manages the infrastructure is a common and consequential misunderstanding.
Who it's relevant to
Inside Serverless Security
Common questions
Answers to the questions practitioners most commonly ask about Serverless Security.