Where is the audit boundary in a serverless architecture?
The audit boundary in a serverless architecture is defined by a shared responsibility model, primarily encompassing the customer's application code, configurations, data, and access controls. The cloud service provider (CSP) is responsible for the underlying infrastructure, runtime environment, and platform services. For FedRAMP and SOC 2, this necessitates a clear delineation of controls and evidence collection based on the specific serverless service model (e.g., Function-as-a-Service) and the CSP's existing attestations, ensuring all applicable security requirements are addressed.
Practitioners must meticulously define the audit boundary by mapping controls to the shared responsibility model inherent in serverless deployments. This involves identifying which controls are inherited from the CSP's FedRAMP or SOC 2 attestation, which are shared, and which are solely the customer's responsibility. For instance, while the CSP secures the physical infrastructure and hypervisor, the customer is accountable for secure coding practices, API gateway configurations, data encryption at rest and in transit, and identity and access management (IAM) policies for their serverless functions and associated resources. A common pitfall is assuming that "serverless" implies no operational responsibility, leading to gaps in control implementation and evidence collection.
A critical challenge lies in obtaining sufficient evidence for controls within the customer's boundary, especially concerning ephemeral resources and event-driven architectures. Traditional audit methods often struggle with the dynamic nature of serverless functions. Practitioners frequently err by not adequately instrumenting their serverless applications for logging, monitoring, and tracing, which are essential for demonstrating control effectiveness for security events, configuration changes, and access attempts. Furthermore, the complexity of managing dependencies and third-party libraries within serverless functions often leads to overlooked vulnerabilities that fall squarely within the customer's audit scope, despite the CSP managing the underlying runtime environment. Clear documentation of the shared responsibility matrix and robust automation for security testing and compliance monitoring are paramount.
Sources
- FedRAMP Customer Responsibilities Guide
- AICPA Trust Services Criteria (TSC)