Why it matters
Code injected into the function, or a vulnerable dependency it loads, acts with the identity's rights over the whole account.
How to fix it
Run the function as a dedicated identity granted only what it needs: a Lambda execution role without administrator policies, a service account without Owner or Editor, a managed identity without Owner or User Access Administrator.
What TrustIvan reads
- Amazon Web Services: the collector reads what this check needs, so it passes or fails.
- Microsoft Azure: the collector reads what this check needs, so it passes or fails.
- Google Cloud: the collector reads what this check needs, so it passes or fails.
Cloud accounts are read with read-only access. These results describe configuration; they are not an attestation that a benchmark is met. The access to grant: Amazon Web Services, Microsoft Azure, Google Cloud.
Related checks
- The function runs on a deprecated runtime
AWS, Azure, Google CloudSeverity: Medium
cloud.function.deprecated-runtime - The function accepts plain HTTP
Azure, Google CloudSeverity: Medium
cloud.function.http-allowed - The function app accepts TLS below 1.2
AzureSeverity: Medium
cloud.function.outdated-tls - The function has a URL anyone can invoke
AWS, Azure, Google CloudSeverity: High
cloud.function.public-url - The function's deployment package contains a credential
AWSSeverity: High
cloud.function.secret-in-code - A function stores a secret in its environment variables
AWS, Azure, Google CloudSeverity: High
cloud.function.secret-in-environment
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation