Validating Compliance of AWS Lambda

Critical components of modern applications, AWS Lambda functions hold the capability to scale and give dynamic responses to events. Collaboration between compliance, security, development, and cloud operations can be truly realized by optimizing the AWS Lambda functions. Cloudlytics has been enabling organizations to achieve continuous optimization of AWS Lambda with bespoke sets of reports pre-built for maintaining and validating compliance.

In AWS Lambda, all functions have their own execution role, which are identities bound with permissions that govern what they can or cannot perform. When a Lambda function is created, an execution role is specified. When functions are invoked, the execution role is assumed. For validating compliance of AWS Lambda, the functions in the AWS environment are scanned for inspecting execution roles and permissions to AWS resources.

Compliance in AWS Lambda

As per the shared responsibility model, organizations are responsible for identifying the compliance regime that is applicable to their data. Once, they have identified the requirements of their compliance regime, they can leverage various features of AWS Lambda for matching the controls. Moreover, they can get in touch with experts from AWS, such as technical account managers, domain experts, and solution architects for further assistance. AWS doesn’t take the responsibility of advising the organizations regarding the types of compliance regimes applicable to their specific use cases.

Since November 2020, AWS Lambda’s scope includes reports of Service Organization Control (SOC) 1, 2, and 3, independent examination reports of third-party. This demonstrates the way AWS achieves compliance controls and goals. As some of the compliance reports hold sensitive information, public access to these is avoided. Organizations must use AWS Artifact and AWS Management Console for accessing AWS compliance reports on-demand.

Validating Compliance

Third-party auditors provide the assessment of AWS Lambda’s security and compliance as part of different compliance programs. The compliance programs include HIPAA, FedRAMP, PCI, SOC, and so on. The compliance responsibility of organizations when they are using AWS Lambda is often gauged by their data’s sensitivity, compliance objectives, and the laws& regulations that are applicable to their compliance regimes.

Top practices for AWS Lambda Data Protection

The security of an application is one of its most important non-functional requirements. Every application and underlying infrastructure have to go through strict security guidelines. As serverless architectures are getting more attention from the developer community, they are also catching the eye of hackers. And when it comes to serverless, AWS Lambda deployments are the most common ones we need to look at.

There are several myths around Lambda and serverless architecture and the most common one is that whole security for these apps relies on AWS. But that is not correct.

AWS follows the shared responsibility model where AWS manages the infrastructure, foundation services, and the operating system. And the customer is responsible for the security of the code, data being used by Lambda, IAM policies to access the Lambda service.

By developing applications using serverless architecture, you relieve yourself of the daunting task of constantly applying security patches for the underlying OS and application servers. And concentrate more on the data protection for the application.

For data protection in AWS Lambda, we first need to protect account credentials and set up the individual user accounts with IAM policies enabled. We need to ensure that each user is given the least privileges to fulfil their jobs.

For data protection purposes, we recommend that you protect AWS account credentials and set up individual user accounts with AWS Identity and Access Management (IAM). That way each user is given only the permissions necessary to fulfil their job duties. We also recommend that you secure your data in the following ways:

  • Use multi-factor authentication (MFA) with each account.
  • Use SSL/TLS to communicate with AWS resources. We recommend TLS 1.2 or later.
  • Set up API and user activity logging with AWS CloudTrail.
  • Use AWS encryption solutions, along with all default security controls within AWS services.
  • Use advanced managed security services such as Amazon Macie, which assists in discovering and securing personal data that is stored in Amazon S3.
  • If you require FIPS 140-2 validated cryptographic modules when accessing AWS through a command line interface or an API, use a FIPS endpoint. For more information about the available FIPS endpoints, see Federal Information Processing Standard (FIPS) 140-2.

We strongly recommend that you never put confidential or sensitive information, such as your customers’ email addresses, into tags or free-form fields such as a Name field. This includes when you work with Lambda or other AWS services using the console, API, AWS CLI, or AWS SDKs. Any data that you enter into tags or free-form fields used for names may be used for billing or diagnostic logs. If you provide a URL to an external server, we strongly recommend that you do not include credentials information in the URL to validate your request to that server.

We are now live on AWS Marketplace.
The integrated view of your cloud infrastructure is now easier than ever!