Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lacework custom audit policy is missing #4

Open
AdamVB opened this issue Sep 4, 2023 · 1 comment
Open

Lacework custom audit policy is missing #4

AdamVB opened this issue Sep 4, 2023 · 1 comment

Comments

@AdamVB
Copy link
Contributor

AdamVB commented Sep 4, 2023

The Cloudformation template is missing additional permissions for the lacework custom audit policy, these are not part of the AWS managed SecurityAudit Policy

    "LaceworkCWSPolicy": {
      "Type": "AWS::IAM::Policy",
      "Properties": {
        "PolicyName": "LaceworkCWSPolicy",
        "PolicyDocument": {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Sid": "GetEc2DefaultEncryption",
              "Action": [
                "ec2:GetEbsEncryptionByDefault"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "EksListTagsForResource",
              "Action": [
                "eks:ListTagsForResource"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "EfsPolicies",
              "Action": [
                "elasticfilesystem:DescribeFileSystemPolicy",
                "elasticfilesystem:DescribeLifecycleConfiguration",
                "elasticfilesystem:DescribeAccessPoints",
                "elasticfilesystem:DescribeAccountPreferences",
                "elasticfilesystem:DescribeBackupPolicy",
                "elasticfilesystem:DescribeReplicationConfigurations"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "SagemakerPolicies",
              "Action": [
                "sagemaker:GetLineageGroupPolicy",
                "sagemaker:GetModelPackageGroupPolicy"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "IdentityStoreReadOnly",
              "Action": [
                "identitystore:DescribeGroup",
                "identitystore:DescribeGroupMembership",
                "identitystore:DescribeUser",
                "identitystore:ListGroupMemberships",
                "identitystore:ListGroupMembershipsForMember",
                "identitystore:ListGroups",
                "identitystore:ListUsers"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "SSOReadOnly",
              "Action": [
                "sso:DescribeAccountAssignmentDeletionStatus",
                "sso:DescribeInstanceAccessControlAttributeConfiguration",
                "sso:GetInlinePolicyForPermissionSet"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "APIGATEWAY",
              "Action": [
                "apigateway:GetApiKeys",
                "apigateway:GetAuthorizers",
                "apigateway:GetBasePathMappings",
                "apigateway:GetClientCertificates",
                "apigateway:GetDeployments",
                "apigateway:GetDocumentationParts",
                "apigateway:GetDocumentationVersions",
                "apigateway:GetDomainNames",
                "apigateway:GetGatewayResponses",
                "apigateway:GetModels",
                "apigateway:GetModelTemplate",
                "apigateway:GetRequestValidators",
                "apigateway:GetResources",
                "apigateway:GetRestApis",
                "apigateway:GetSdk",
                "apigateway:GetSdkTypes",
                "apigateway:GetStages",
                "apigateway:GetTags",
                "apigateway:GetUsagePlanKeys",
                "apigateway:GetUsagePlans",
                "apigateway:GetVpcLinks"
              ],
              "Effect": "Allow",
              "Resource": "*"
            },
            {
              "Sid": "APIGATEWAYV2",
              "Action": [
                "apigatewayv2:GetApis",
                "apigatewayv2:GetApiMappings",
                "apigatewayv2:GetAuthorizers",
                "apigatewayv2:GetDeployments",
                "apigatewayv2:GetDomainNames",
                "apigatewayv2:GetIntegrations",
                "apigatewayv2:GetIntegrationResponses",
                "apigatewayv2:GetModelTemplate",
                "apigatewayv2:GetModels",
                "apigatewayv2:GetRoute",
                "apigatewayv2:GetRouteResponses",
                "apigatewayv2:GetStages",
                "apigatewayv2:GetVpcLinks"
              ],
              "Effect": "Allow",
              "Resource": "*"
            }
          ]
        },
        "Roles": [
          {
            "Ref": "LaceworkCrossAccountAccessRole"
          }
        ]
      }
    },
@AdamVB
Copy link
Contributor Author

AdamVB commented Oct 9, 2023

Can be closed since this was commited here: 8017922

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

No branches or pull requests

1 participant