Skip to content

Conversation

@muzzamilinovaqo
Copy link
Contributor

No description provided.


if (!urlConfigs || urlConfigs.err || !urlConfigs.data) {
helpers.addResult(results, 3,
`Unable to query for Lambda function URL configs: ${helpers.addError(urlConfigs)}`, region, resource);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Unable to query for Lambda function URL configs: ${helpers.addError(urlConfigs)}`, region, resource);
`Unable to query for Lambda function url configs: ${helpers.addError(urlConfigs)}`, region, resource);

title: 'Lambda Function URL Not In Use',
category: 'Lambda',
domain: 'Serverless',
severity: 'Medium',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
severity: 'Medium',
severity: 'Low',

domain: 'Serverless',
severity: 'Medium',
description: 'Ensure that AWS Lambda functions are not configured with function URLs for HTTP(S) endpoints.',
more_info: 'A function URL is a dedicated HTTP(S) endpoint created for your Amazon Lambda function. You can use a function URL to invoke your Lambda function. But it can lead to some security risks depending on the security configuration and intention of the function.',
Copy link
Collaborator

@alphadev4 alphadev4 Apr 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
more_info: 'A function URL is a dedicated HTTP(S) endpoint created for your Amazon Lambda function. You can use a function URL to invoke your Lambda function. But it can lead to some security risks depending on the security configuration and intention of the function.',
more_info: 'Using function URL creates a direct HTTP(S) endpoint to function allowing public, and unauthenticated access to your function URL posing a security threat and public exposure to application.


if (urlConfigs.data.FunctionUrlConfigs &&
urlConfigs.data.FunctionUrlConfigs.length){
helpers.addResult(results, 2, 'Lambda function Url is configured', region, resource);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
helpers.addResult(results, 2, 'Lambda function Url is configured', region, resource);
helpers.addResult(results, 2, 'Lambda function url is configured', region, resource);

urlConfigs.data.FunctionUrlConfigs.length){
helpers.addResult(results, 2, 'Lambda function Url is configured', region, resource);
} else {
helpers.addResult(results, 0, 'Lambda function Url is not configured', region, resource);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
helpers.addResult(results, 0, 'Lambda function Url is not configured', region, resource);
helpers.addResult(results, 0, 'Lambda function url is not configured', region, resource);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants