Why it matters
A file in the function's zip package matches a secret detector. Anyone who can read the function's code, through the console or lambda:GetFunction, can read the credential.
How to fix it
Rotate the credential, remove it from the code and redeploy, and read it at run time from Secrets Manager or Parameter Store instead.
What TrustIvan reads
- Amazon Web Services: 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.
Related checks
- The function has a URL anyone can invoke
AWS, Azure, Google CloudSeverity: High
cloud.function.public-url - A function stores a secret in its environment variables
AWS, Azure, Google CloudSeverity: High
cloud.function.secret-in-environment - The function app accepts TLS below 1.2
AzureSeverity: Medium
cloud.function.outdated-tls - The function accepts plain HTTP
Azure, Google CloudSeverity: Medium
cloud.function.http-allowed - The function runs on a deprecated runtime
AWS, Azure, Google CloudSeverity: Medium
cloud.function.deprecated-runtime - The function runs as an identity with administrative rights
AWS, Azure, Google CloudSeverity: High
cloud.function.admin-identity
Terms: CSPM (cloud security posture management), CIS Benchmarks, Least privilege
All cloud posture checks · The whole catalogue · How this works in TrustIvan · Documentation