Serverless function scanning
Prisma Cloud can scan serverless functions for vulnerabilities.
Prisma Cloud supports AWS Lambda, Google Cloud Functions, and Azure Functions.
Serverless computing is an execution model in which a cloud provider dynamically manages the allocation of machine resources and schedules the execution of functions provided by users.
Serverless architectures delegate the operational responsibilities, along with many security concerns, to the cloud provider. In particular, your app itself is still prone to attack.
The vulnerabilities in your code and associated dependencies are the footholds attackers use to compromise an app.
Prisma Cloud can show you a function’s dependencies, and surface the vulnerabilities in those dependent components.
Capabilities
For serverless, Prisma Cloud can scan Node.js, Python, Java, C#, Ruby, and Go packages.
For a list of supported runtimes see system requirements.
Prisma Cloud scans are triggered by the following events:
- When the settings change, including when new functions are added for scanning.
- When you explicitly click theScanbutton in theMonitor > Vulnerabilities > Functions > Scanned Functionspage.
- Periodically. By default, Prisma Cloud rescans serverless functions every 24 hours, but you can configure a custom interval inManage > System > Scan.
Scanning a serverless function
Configure Prisma Cloud to periodically scan your serverless functions.
Unlike image scanning, all function scanning is handled by Console.
- Open Console.
- Go toDefend > Vulnerabilities > Functions > Functions.
- Click onAdd scope. In the dialog, enter the following settings:
- (AWS only) SelectScan only latest versionsto only scan the latest version of each function. Otherwise, the scanning will cover all versions of each function up to the specifiedLimitvalue.
- (AWS only) SelectScan Lambda Layersto enable scanning function layers as well.
- (AWS only) Specify which regions to scan inAWS Scanning scope. By default, the scope is applied toRegular regions. Other options includeChina regionsorGoverment regins.
- Specify aLimitfor the number of functions to scan.