π‘οΈ AWS Inspector Lambda Code Scanning is not enabledπ’
- Contextual name: π‘οΈ Inspector Lambda Code Scanning is not enabledπ’
- ID:
/ce/ca/aws/inspector/lambda-code-scanning - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
- π AWS Account
- π AWS Account - object.extracts.yaml
- π§ͺ test-data.json
Similar Policiesβ
- AWS Security Hub: [Inspector.3] Amazon Inspector Lambda code scanning should be enabled
Descriptionβ
Descriptionβ
This policy identifies AWS accounts where Amazon Inspector Lambda Code Scanning is not enabled.
Amazon Inspector provides two scanning modes for AWS Lambda functions: Standard Scanning, which analyzes function dependencies, and Code Scanning, which performs static analysis on custom application code. This policy ensures that the Lambda Code Scanning capability is enabled to detect vulnerabilities within function source code.
Rationaleβ
Enabling Amazon Inspector Lambda Code Scanning provides the following benefits:
- Static Application Security Testing (SAST): Automatically analyzes Python, Java, and Node.js function code to identify security vulnerabilities.
- Detection of Insecure Coding Patterns: Identifies common weaknesses such as improper input validation, cross-site scripting (XSS), and path injection.
- Hardcoded Secret Detection: Detects embedded sensitive information, including API keys, tokens, and database credentials.
- Shift-Left Security: Continuously evaluates deployed code, enabling early identification of newly introduced risks or vulnerabilities as scanning rules evolve.
... see more
Remediationβ
Remediationβ
Enable Amazon Inspector Lambda Code Scanningβ
If you are the delegated administrator for an AWS Organization, you can centrally enable Amazon Inspector scan types across multiple accounts and Regions using the AWS CLI and automation scripts. For additional guidance, refer to the inspector2-enablement-with-cli repository on GitHub.
From Consoleβ
To activate Amazon Inspector Lambda Code Scanning:
Open the Amazon Inspector console: https://console.aws.amazon.com/inspector/v2/home
Using the AWS Region selector in the upper-right corner, select the Region where your Lambda functions are deployed.
In the navigation pane, choose Account management.
Select the account(s) for which you want to enable a scan type.
Choose Activate, then select AWS Lambda Standard scanning + AWS Lambda Code scanning.
Repeat these steps in each AWS Region that hosts Lambda functions to ensure comprehensive coverage.