{{item.title}}
Serverless applications hold the ability to build and run applications in the cloud without having to manage cloud server infrastructure and even containers. This is hailed as the gold standard of digital development, especially on web-based applications. Amazon Web Services (AWS) API Gateway and Lambda offer a best-in-class solution. We’ve helped many of the nation's highest profile digital systems transition to serverless. Infrastructure overheads are reduced, productivity and agility improved, and business value delivery accelerated. However, serverless applications can create unique challenges in highly regulated sectors such as health and financial services. We’ve learnt the need to apply extra security controls to protect projects, devising ways to harden serverless applications without hindering speed of delivery. In this article, we share three of these. Each one is an actionable defence measure that you can take, matched for ease and useability to each of the three industry-standard cyber security pillars - confidentiality, integrity and availability (CIA).
First, some detail on how the AWS serverless applications work and their appeal. Under the AWS shared responsibility model, traditional infrastructure operations tasks such as patching operating systems, provisioning virtual machines, and even the notorious complexity of container orchestration (such as Kubernetes) have fallen into their bucket as the cloud provider. Businesses only need to focus on selecting the relevant application runtime (Java, Python, NodeJS, just to name a few) and deploy the working source code from the designated pipeline. This approach significantly reduces the volume of work it takes to release working code. It also becomes a natural choice to build microservices. It’s easy to see why this serverless model has been greatly welcomed by business stakeholders, as well as the digital developer community.
Serverless applications can, however, lead to concerns during security reviews and audits, especially in highly regulated industries such as financial services and health. If not designed, built and operated properly, they can be more prone to cyber attacks.
We would like to share three ways to boost security and fully unleash the benefit of serverless applications. We have aligned them to the CIA triad:
1. Confidentiality: put your Lambda functions into a VPC with traffic controls.
Lambda functions can run in a virtual private cloud (VPC, effectively a customer-controlled private network space) or outside of a VPC (over the internet). Some practitioners see perimeter-based network control as a legacy approach which only applies to virtual machines or container workloads. We disagree with this view. Instead, when possible, Lambda functions should be deployed within a VPC. To protect data confidentiality, VPC has traffic control technologies based on source and destination. More importantly, all of the digital footprint - traces of network traffic - are retained for real-time threat detection and future analysis.
2. Integrity: sign your code deployed to Lambda to avoid malicious code injection
To reduce the risk of malicious code injection and software integrity failure (major threats are listed in the OWASP Top 10 list), AWS Signer can ensure the code that is deployed to the Lambda function run-time is the intended code and hasn't been tampered. The code signing process and its configuration can be part of the DevSecOps pipeline to create, test and release Lambda code.
3. Availability: ensure you configure the gateway to contain hot spots of traffic.
Although API Gateway and Lambda are AWS-managed services, the resilience of the digital service, especially under load, is the customer's responsibility. When combining API Gateway and Lambda, look out for the following:
It’s not enough to just turn on some tools. Consider the following:
In summary, as with any innovation, we urge you to review your security posture with serverless applications. Plan early, engage continuously and consider applying the steps we’ve outlined above to get the full transformative effect.
If you would like to learn more about AWS serverless applications within your organisation, please contact Binqi Zhang or Tim Wang.
Get the latest in your inbox weekly. Sign up for the Digital Pulse newsletter.
Sign Up
Theme Enter theme here
Binqi Zhang
Director, PwC Australia
Tim Wang
Senior Manager, PwC Australia
References
© 2017 - 2025 PwC. All rights reserved. PwC refers to the PwC network and/or one or more of its member firms, each of which is a separate legal entity. Please see www.pwc.com/structure for further details. Liability limited by a scheme approved under Professional Standards Legislation.