{
    "Behavior": "PROACTIVE",
    "ComplianceFrameworkMappings": [
        {
            "ComplianceFramework": "NIST 800-53 Rev 5",
            "Ids": [
                "AC-21",
                "AC-3",
                "AC-3(7)",
                "AC-4",
                "AC-4(21)",
                "AC-6",
                "SC-7",
                "SC-7(11)",
                "SC-7(16)",
                "SC-7(20)",
                "SC-7(21)",
                "SC-7(3)",
                "SC-7(4)",
                "SC-7(9)"
            ]
        },
        {
            "ComplianceFramework": "PCI DSS version 3.2.1",
            "Ids": [
                "1.2.1",
                "1.3",
                "1.3.1",
                "1.3.2",
                "1.3.4",
                "2.2.2"
            ]
        }
    ],
    "ConfigRuleIdentifier": "LAMBDA_FUNCTION_PUBLIC_ACCESS_PROHIBITED",
    "ControlOwner": "AWS Control Tower",
    "DeploymentMechanism": "AWS CloudFormation Hook",
    "DeploymentOwner": "AWS Control Tower",
    "Description": "This control checks whether an AWS Lambda function resource-based policy prohibits public access.",
    "DisplayName": "Require AWS Lambda function policies to prohibit public access",
    "DocumentationReferences": [
        {
            "DisplayName": "Using resource-based policies for Lambda",
            "Type": "AWS Documentation",
            "Url": "https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html"
        }
    ],
    "EvaluatedResourceTypes": [
        "AWS::Lambda::Permission"
    ],
    "EvaluatedServices": [
        "AWS Lambda"
    ],
    "Groups": [
        "digital-sovereignty"
    ],
    "Guidance": "Elective",
    "Id": "CT.LAMBDA.PR.2",
    "ImplementationType": "CloudFormation guard rule",
    "MinimumSupportedRuntimeVersion": "2.1",
    "Objectives": [
        {
            "Id": "CO.6",
            "Name": "Limit network access"
        }
    ],
    "RegionalPreference": "REGIONAL",
    "Relationships": [
        {
            "ControlId": "SH.Lambda.1",
            "ControlOwner": "AWS Security Hub",
            "RelationshipType": "Can be used with (Inclusive)"
        }
    ],
    "ReleaseDate": "2022-11-28",
    "RemediationMessage": "When setting 'Principal' to '*', provide one of 'SourceAccount', 'SourceArn', or 'PrincipalOrgID'. When setting 'Principal' to a service principal (for example, s3.amazonaws.com), provide one of 'SourceAccount' or 'SourceArn'.",
    "Severity": "CRITICAL",
    "SupportedRegions": [
        "af-south-1",
        "ap-east-1",
        "ap-northeast-1",
        "ap-northeast-2",
        "ap-northeast-3",
        "ap-south-1",
        "ap-south-2",
        "ap-southeast-1",
        "ap-southeast-2",
        "ap-southeast-3",
        "ap-southeast-4",
        "ca-central-1",
        "eu-central-1",
        "eu-central-2",
        "eu-north-1",
        "eu-south-1",
        "eu-south-2",
        "eu-west-1",
        "eu-west-2",
        "eu-west-3",
        "il-central-1",
        "me-central-1",
        "me-south-1",
        "sa-east-1",
        "us-east-1",
        "us-east-2",
        "us-west-1",
        "us-west-2"
    ],
    "TargetOuType": "CUSTOM",
    "Version": "1",
    "Visibility": "PUBLIC"
}