{
 "name": "The Guardrail Library",
 "edition": "2026-11-10",
 "read_date": "2026-11-10",
 "source": "https://cloudgovernancetools.com/datasets/",
 "license": "CC BY 4.0",
 "cite": "Cite this line: 'Cloud Governance Tools, The Guardrail Library, edition 10 Nov 2026, https://cloudgovernancetools.com/datasets/'",
 "description": "100 preventive guardrails for AWS, Azure and Google Cloud: policy text, what each blocks and breaks, the test method, the source and licence.",
 "rows": [
  {
   "id": "aws-scp-deny-leave-org",
   "title": "Deny member accounts leaving the organization",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "organization-integrity",
   "blocks": "Denies organizations:LeaveOrganization so users and roles in affected member accounts cannot remove their account from the AWS organization.",
   "breaks": "The policy has no exception condition, so it applies to every IAM user, role and the root user in the affected member accounts; AWS documents that SCPs do not affect the management account.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"organizations:LeaveOrganization\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-member-accounts-from-leaving-your-AWS-organization.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-member-root-credentials",
   "title": "Prevent root credentials management in member accounts",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies all actions for the member account root user unless the session was created with sts:AssumeRoot (the aws:AssumedRoot key is not null), so root credentials are managed centrally from the management account.",
   "breaks": "Direct root user sign-in in a member account can no longer perform actions; the repository README notes the SCP restricts the member account root user and has no effect on the management account.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnLike\": {\n          \"aws:PrincipalArn\": [\n            \"arn:aws:iam::*:root\"\n          ]\n        },\n        \"Null\": {\n          \"aws:AssumedRoot\": \"true\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Prevent-root-credentials-management-in-member-accounts-in-AWS-Organizations.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-root-except-s3-bucket-policy",
   "title": "Deny the root user except for S3 bucket policy changes",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies every action by the member account root user except s3:GetBucketPolicy, s3:PutBucketPolicy and s3:DeleteBucketPolicy.",
   "breaks": "Any other task done as the root user in an affected account fails; the README points to the AWS list of tasks that require root user credentials.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"NotAction\": [\n        \"s3:GetBucketPolicy\",\n        \"s3:PutBucketPolicy\",\n        \"s3:DeleteBucketPolicy\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnLike\": {\n          \"aws:PrincipalArn\": \"arn:aws:iam::*:root\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-the-root-user-from-performing-actions-except-S3-bucketpolicy-changes.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-critical-iam-user-actions",
   "title": "Deny critical IAM user actions",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies creating IAM users, access keys, login profiles and service-specific credentials, and changing the account password policy, unless the caller is a privileged role or carries the IAMUserManagementException tag set to true.",
   "breaks": "Anyone outside the named privileged role or tag exception cannot create or rotate IAM user credentials, and the placeholder [PRIVILEGED_ROLE] must be replaced before use.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"iam:CreateAccessKey\",\n        \"iam:CreateUser\",\n        \"iam:UpdateLoginProfile\",\n        \"iam:CreateLoginProfile\",\n        \"iam:DeleteLoginProfile\",\n        \"iam:UpdateAccountPasswordPolicy\",\n        \"iam:DeleteAccountPasswordPolicy\",\n        \"iam:CreateServiceSpecificCredential\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalArn\": \"arn:aws:iam::*:role/[PRIVILEGED_ROLE]\"\n        },\n        \"StringNotLike\": {\n          \"aws:PrincipalTag/IAMUserManagementException\": \"true\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-critical-IAM-user-actions.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-iam-federation-changes",
   "title": "Deny creating or changing IAM federation providers",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies creating, updating or deleting IAM SAML and OpenID Connect identity providers unless the caller is the privileged role.",
   "breaks": "Teams that manage their own identity providers in member accounts are blocked unless they use the privileged role; the README says it is usually paired with the critical IAM user actions policy.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"iam:CreateOpenIDConnectProvider\",\n        \"iam:CreateSAMLProvider\",\n        \"iam:DeleteOpenIDConnectProvider\",\n        \"iam:DeleteSAMLProvider\",\n        \"iam:UpdateOpenIDConnectProviderThumbprint\",\n        \"iam:UpdateSAMLProvider\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-unwarranted-IAM-federations-creation-modification.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-prevent-vpc-public-connectivity",
   "title": "Prevent creating or expanding public connectivity for VPCs",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "network-perimeter",
   "blocks": "Denies attaching or creating internet gateways, creating VPC peering connections and creating or updating AWS Global Accelerator resources unless the caller is the privileged role.",
   "breaks": "The README states it does not block existing direct internet access or access routed through an on-premises network, and VPC peering and Global Accelerator changes also need the privileged role.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"ec2:AttachInternetGateway\",\n        \"ec2:CreateInternetGateway\",\n        \"ec2:CreateEgressOnlyInternetGateway\",\n        \"ec2:CreateVpcPeeringConnection\",\n        \"ec2:AcceptVpcPeeringConnection\",\n        \"globalaccelerator:CreateAccelerator\",\n        \"globalaccelerator:CreateCrossAccountAttachment\",\n        \"globalaccelerator:CreateCustomRoutingAccelerator\",\n        \"globalaccelerator:CreateCustomRoutingEndpointGroup\",\n        \"globalaccelerator:CreateCustomRoutingListener\",\n        \"globalaccelerator:CreateEndpointGroup\",\n        \"globalaccelerator:CreateListener\",\n        \"globalaccelerator:UpdateAccelerator\",\n        \"globalaccelerator:UpdateAcceleratorAttributes\",\n        \"globalaccelerator:UpdateCrossAccountAttachment\",\n        \"globalaccelerator:UpdateCustomRoutingAccelerator\",\n        \"globalaccelerator:UpdateCustomRoutingAcceleratorAttributes\",\n        \"globalaccelerator:UpdateCustomRoutingListener\",\n        \"globalaccelerator:UpdateEndpointGroup\",\n        \"globalaccelerator:UpdateListener\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Prevent-creating-or-expanding-public-connectivity-for-VPCs.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-billing-and-contact-changes",
   "title": "Deny billing, tax and account contact changes",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "organization-integrity",
   "blocks": "Denies changes to contact information, billing and payment preferences, tax registration and closing the account unless the caller is the privileged role.",
   "breaks": "Finance or account teams working outside the privileged role cannot change the payment method, tax preferences or contact information; account:CloseAccount is also denied for other roles.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"account:PutContactInformation\",\n        \"account:PutAlternateContact\",\n        \"account:DeleteAlternateContact\",\n        \"account:CloseAccount\",\n        \"billing:UpdateBillingPreferences\",\n        \"billing:PutContractInformation\",\n        \"billing:UpdateIAMAccessPreference\",\n        \"invoicing:PutInvoiceEmailDeliveryPreferences\",\n        \"payments:DeletePaymentInstrument\",\n        \"payments:UpdatePaymentPreferences\",\n        \"tax:BatchPutTaxRegistration\",\n        \"tax:DeleteTaxRegistration\",\n        \"tax:PutTaxInheritance\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-billing-modification-action.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-config-changes",
   "title": "Deny enabling and disabling AWS Config",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Denies stopping or deleting AWS Config recorders, delivery channels, rules and aggregators, and putting new configuration, unless the caller is the privileged role.",
   "breaks": "Teams cannot add or change their own Config rules or recorders outside the privileged role; the README notes AWS Control Tower already applies a similar default control.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"config:DeleteConfigurationAggregator\",\n        \"config:DeleteConfigurationRecorder\",\n        \"config:DeleteDeliveryChannel\",\n        \"config:PutConfigRule\",\n        \"config:DeleteConfigRule\",\n        \"config:DeleteOrganizationConfigRule\",\n        \"config:DeleteRetentionConfiguration\",\n        \"config:PutConfigurationAggregator\",\n        \"config:PutConfigurationRecorder\",\n        \"config:PutDeliveryChannel\",\n        \"config:PutRetentionConfiguration\",\n        \"config:StopConfigurationRecorder\",\n        \"config:DeliverConfigSnapshot\",\n        \"config:DeleteAggregationAuthorization\",\n        \"config:DeleteEvaluationResults\",\n        \"config:PutOrganizationConfigRule\",\n        \"config:PutRemediationConfigurations\",\n        \"config:DeleteRemediationConfiguration\",\n        \"config:DeleteServiceLinkedConfigurationRecorder\",\n        \"config:DeleteRemediationExceptions\",\n        \"config:DeletePendingAggregationRequest\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Deny-changes-to-security-services/Deny-enabling-and-disabling-AWS-Config.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-cloudtrail-trail-changes",
   "title": "Deny modifications to specific CloudTrail trails",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Denies deleting, updating, stopping or changing event selectors on a named CloudTrail trail unless the caller is the privileged role.",
   "breaks": "The resource is a placeholder trail name that must be replaced; the README notes an organization trail already prevents member account users from altering it.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"cloudtrail:DeleteTrail\",\n        \"cloudtrail:PutEventSelectors\",\n        \"cloudtrail:StopLogging\",\n        \"cloudtrail:UpdateTrail\",\n        \"cloudtrail:CreateTrail\"\n      ],\n      \"Resource\": \"arn:aws:cloudtrail:${Region}:${Account}:trail/[CLOUDTRAIL_NAME]\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Deny-changes-to-security-services/Deny-modifications-to-specific-CloudTrail-trails.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-guardduty-changes",
   "title": "Deny disabling or modifying Amazon GuardDuty",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Denies GuardDuty actions that disable detectors or change filters, IP sets, members and publishing destinations unless the caller is the privileged role.",
   "breaks": "The action list includes guardduty:ArchiveFindings and guardduty:CreateFilter, so day-to-day findings handling also needs the privileged role.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"guardduty:AcceptInvitation\",\n        \"guardduty:ArchiveFindings\",\n        \"guardduty:CreateDetector\",\n        \"guardduty:CreateFilter\",\n        \"guardduty:CreateIPSet\",\n        \"guardduty:CreateMembers\",\n        \"guardduty:CreatePublishingDestination\",\n        \"guardduty:CreateSampleFindings\",\n        \"guardduty:CreateThreatIntelSet\",\n        \"guardduty:DeclineInvitations\",\n        \"guardduty:DeleteDetector\",\n        \"guardduty:DeleteFilter\",\n        \"guardduty:DeleteInvitations\",\n        \"guardduty:DeleteIPSet\",\n        \"guardduty:DeleteMembers\",\n        \"guardduty:DeletePublishingDestination\",\n        \"guardduty:DeleteThreatIntelSet\",\n        \"guardduty:DisassociateFromMasterAccount\",\n        \"guardduty:DisassociateMembers\",\n        \"guardduty:InviteMembers\",\n        \"guardduty:StartMonitoringMembers\",\n        \"guardduty:StopMonitoringMembers\",\n        \"guardduty:TagResource\",\n        \"guardduty:UnarchiveFindings\",\n        \"guardduty:UntagResource\",\n        \"guardduty:UpdateDetector\",\n        \"guardduty:UpdateFilter\",\n        \"guardduty:UpdateFindingsFeedback\",\n        \"guardduty:UpdateIPSet\",\n        \"guardduty:UpdatePublishingDestination\",\n        \"guardduty:UpdateThreatIntelSet\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Deny-changes-to-security-services/Deny-users-from-disabling-Amazon-GuardDuty-or-modifying-its-configuration.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-vpc-flow-log-deletion",
   "title": "Deny deleting VPC flow logs",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Denies ec2:DeleteFlowLogs in affected accounts so VPC flow logs cannot be removed.",
   "breaks": "The policy has no exception condition, so it applies to every IAM user, role and the root user in the affected member accounts, including cleanup automation that deletes flow logs.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"ec2:DeleteFlowLogs\",\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Protect-cloud-platform-resource/Deny-users-from-deleting-Amazon-VPC-flow-logs.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-kms-key-deletion",
   "title": "Deny KMS key deletion",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies scheduling KMS key deletion and deleting aliases, custom key stores and imported key material unless the caller is the privileged role.",
   "breaks": "Routine key cleanup, including alias deletion, needs the privileged role in every affected account.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"kms:ScheduleKeyDeletion\",\n        \"kms:DeleteAlias\",\n        \"kms:DeleteCustomKeyStore\",\n        \"kms:DeleteImportedKeyMaterial\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalArn\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Protect-cloud-platform-resource/Deny-KMS-key-deletion.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-kms-30-day-deletion-window",
   "title": "Enforce a 30-day KMS key deletion window",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies kms:ScheduleKeyDeletion when the pending window is shorter than 30 days.",
   "breaks": "Scheduling key deletion with a pending window under 30 days fails for every principal in the affected accounts, because the policy has no exception condition.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"kms:ScheduleKeyDeletion\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"NumericLessThan\": {\n          \"kms:ScheduleKeyDeletionPendingWindowInDays\": \"30\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Protect-cloud-platform-resource/Enforce-30-days-for-KMS-deletion.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-disable-ebs-default-encryption",
   "title": "Deny disabling default EBS encryption",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies ec2:DisableEbsEncryptionByDefault unless the caller is the privileged role.",
   "breaks": "The README says to enable encryption by default in your accounts before implementing this policy.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"ec2:DisableEbsEncryptionByDefault\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Protect-cloud-platform-resource/Deny-disabling-default-EBS-encryption.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-require-s3-server-side-encryption",
   "title": "Require server-side encryption on S3 uploads",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies s3:PutObject when the request does not include the s3:x-amz-server-side-encryption header.",
   "breaks": "Upload requests that omit the server-side encryption header fail for every principal in the affected accounts; the policy has no exception condition.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"s3:PutObject\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"Null\": {\n          \"s3:x-amz-server-side-encryption\": \"true\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-S3/Prevent-Amazon-S3-unencrypted-object-uploads.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-unapproved-regions",
   "title": "Deny access outside approved Regions",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "region-and-residency",
   "blocks": "Denies every action requested in a Region outside the approved list (eu-central-1 and eu-west-1 in the example), with a NotAction list that exempts global services, unless the caller is the privileged role.",
   "breaks": "Global services missing from the exemption list break: the README warns the example might not include all of the latest global AWS services or operations.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"NotAction\": [\n        \"a4b:*\",\n        \"acm:*\",\n        \"aws-marketplace-management:*\",\n        \"aws-marketplace:*\",\n        \"aws-portal:*\",\n        \"budgets:*\",\n        \"ce:*\",\n        \"chime:*\",\n        \"cloudfront:*\",\n        \"config:*\",\n        \"cur:*\",\n        \"directconnect:*\",\n        \"ec2:DescribeRegions\",\n        \"ec2:DescribeTransitGateways\",\n        \"ec2:DescribeVpnGateways\",\n        \"fms:*\",\n        \"globalaccelerator:*\",\n        \"health:*\",\n        \"iam:*\",\n        \"importexport:*\",\n        \"kms:*\",\n        \"mobileanalytics:*\",\n        \"networkmanager:*\",\n        \"organizations:*\",\n        \"pricing:*\",\n        \"route53:*\",\n        \"route53domains:*\",\n        \"route53-recovery-cluster:*\",\n        \"route53-recovery-control-config:*\",\n        \"route53-recovery-readiness:*\",\n        \"s3:GetAccountPublic*\",\n        \"s3:ListAllMyBuckets\",\n        \"s3:ListMultiRegionAccessPoints\",\n        \"s3:PutAccountPublic*\",\n        \"shield:*\",\n        \"sts:*\",\n        \"support:*\",\n        \"trustedadvisor:*\",\n        \"waf-regional:*\",\n        \"waf:*\",\n        \"wafv2:*\",\n        \"wellarchitected:*\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"aws:RequestedRegion\": [\n            \"eu-central-1\",\n            \"eu-west-1\"\n          ]\n        },\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Region-controls/Deny-access-to-AWS-based-on-the-requested-AWS-region.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-region-enable-disable",
   "title": "Deny enabling or disabling opt-in Regions",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "region-and-residency",
   "blocks": "Denies account:EnableRegion and account:DisableRegion unless the caller is the privileged role.",
   "breaks": "Account owners cannot turn opt-in Regions on or off themselves; the README restricts these actions to a privileged role.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"account:EnableRegion\",\n        \"account:DisableRegion\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Region-controls/Deny-account-region-enable-and-disable-actions.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-region-deny-with-bedrock-cris",
   "title": "Region deny that allows Bedrock cross-Region inference",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "ai-services",
   "blocks": "Extends the Region deny so Amazon Bedrock inference is carved out of the first statement and a second statement denies Bedrock inference outside approved Regions unless the request uses a geographic cross-Region inference profile.",
   "breaks": "The placeholders {example-region-1}, {example-region-2} and the inference profile prefix must be replaced, and the README notes model access still needs the separate model approval SCP.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"DenyUnapprovedRegionsExceptGlobalAndBedrockCRIS\",\n      \"Effect\": \"Deny\",\n      \"NotAction\": [\n        \"a4b:*\",\n        \"acm:*\",\n        \"aws-marketplace-management:*\",\n        \"aws-marketplace:*\",\n        \"aws-portal:*\",\n        \"bedrock:InvokeModel\",\n        \"bedrock:InvokeModelWithResponseStream\",\n        \"bedrock:CreateModelInvocationJob\",\n        \"budgets:*\",\n        \"ce:*\",\n        \"chime:*\",\n        \"cloudfront:*\",\n        \"config:*\",\n        \"cur:*\",\n        \"directconnect:*\",\n        \"ec2:DescribeRegions\",\n        \"ec2:DescribeTransitGateways\",\n        \"ec2:DescribeVpnGateways\",\n        \"fms:*\",\n        \"globalaccelerator:*\",\n        \"health:*\",\n        \"iam:*\",\n        \"importexport:*\",\n        \"kms:*\",\n        \"mobileanalytics:*\",\n        \"networkmanager:*\",\n        \"organizations:*\",\n        \"pricing:*\",\n        \"route53:*\",\n        \"route53domains:*\",\n        \"route53-recovery-cluster:*\",\n        \"route53-recovery-control-config:*\",\n        \"route53-recovery-readiness:*\",\n        \"s3:GetAccountPublic*\",\n        \"s3:ListAllMyBuckets\",\n        \"s3:ListMultiRegionAccessPoints\",\n        \"s3:PutAccountPublic*\",\n        \"shield:*\",\n        \"sts:*\",\n        \"support:*\",\n        \"trustedadvisor:*\",\n        \"waf-regional:*\",\n        \"waf:*\",\n        \"wafv2:*\",\n        \"wellarchitected:*\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"aws:RequestedRegion\": [\n            \"{example-region-1}\",\n            \"{example-region-2}\"\n          ]\n        },\n        \"ArnNotLike\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    },\n    {\n      \"Sid\": \"DenyBedrockInferenceOutsideApprovedRegions\",\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"bedrock:InvokeModel\",\n        \"bedrock:InvokeModelWithResponseStream\",\n        \"bedrock:CreateModelInvocationJob\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"aws:RequestedRegion\": [\n            \"{example-region-1}\",\n            \"{example-region-2}\"\n          ]\n        },\n        \"ArnNotLike\": {\n          \"bedrock:InferenceProfileArn\": \"arn:aws:bedrock:*:*:inference-profile/{example-inference-profile-geographic-prefix}\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Region-controls/Deny-access-to-AWS-based-on-the-requested-AWS-region-with-Bedrock-CRIS.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-bedrock-approved-models-only",
   "title": "Allow only approved Amazon Bedrock models",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "ai-services",
   "blocks": "Denies bedrock:InvokeModel, InvokeModelWithResponseStream and PutFoundationModelEntitlement for any foundation model outside the approved identifier pattern, and covers bedrock-mantle models in a second statement.",
   "breaks": "Users cannot invoke or subscribe to any model not matched by the approved entry; the placeholders must be replaced with a provider or model identifier before use.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"DenyUsageOfModelsWithBedrock\",\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"bedrock:InvokeModel\",\n        \"bedrock:InvokeModelWithResponseStream\",\n        \"bedrock:PutFoundationModelEntitlement\"\n      ],\n      \"NotResource\": \"arn:aws:bedrock:*::foundation-model/<unique-identifier>.*\"\n    },\n    {\n      \"Sid\": \"DenyUsageOfModelsWithBedrockMantle\",\n      \"Effect\": \"Deny\",\n      \"Action\": \"bedrock-mantle:*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringLike\": {\n          \"bedrock-mantle:Model\": \"<model-identifier>\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-Bedrock/Deny-Bedrock-model-invocation-except-approved-models.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-bedrock-api-keys",
   "title": "Deny Amazon Bedrock API keys",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "ai-services",
   "blocks": "Denies creating Bedrock service-specific credentials (long-term API keys) and denies bedrock:CallWithBearerToken and bedrock-mantle:CallWithBearerToken.",
   "breaks": "Existing Bedrock API keys and short-term bearer tokens stop working for every principal in the affected accounts, because the second statement has no exception condition.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"iam:CreateServiceSpecificCredential\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"iam:ServiceSpecificCredentialServiceName\": \"bedrock.amazonaws.com\"\n        }\n      }\n    },\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"bedrock:CallWithBearerToken\",\n        \"bedrock-mantle:CallWithBearerToken\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-Bedrock/Deny-Bedrock-api-keys.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-bedrock-api-keys-max-30-days",
   "title": "Limit Amazon Bedrock long-term API keys to under 30 days",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "ai-services",
   "blocks": "Denies iam:CreateServiceSpecificCredential for Bedrock when the credential age is 30 days or more.",
   "breaks": "Creating a Bedrock long-term API key with a validity of 30 days or longer fails for every principal in the affected accounts.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"iam:CreateServiceSpecificCredential\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"iam:ServiceSpecificCredentialServiceName\": \"bedrock.amazonaws.com\"\n        },\n        \"NumericGreaterThanEquals\": {\n          \"iam:ServiceSpecificCredentialAgeDays\": \"30\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-Bedrock/Deny-Bedrock-api-keys-longer-than-30-days.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-chat-app-iam-actions",
   "title": "Deny IAM and account actions invoked from chat applications",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "ai-services",
   "blocks": "Denies IAM, sts:AssumeRole, account and Organizations actions when the request comes through an Amazon Q Developer in chat applications configuration (aws:ChatbotSourceArn).",
   "breaks": "Requests for these IAM and Organizations actions made from chat channels fail for every principal; the same actions made from the console or CLI are not matched by the condition.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"iam:AddUserToGroup\",\n        \"iam:AttachGroupPolicy\",\n        \"iam:AttachRolePolicy\",\n        \"iam:AttachUserPolicy\",\n        \"iam:CreateAccessKey\",\n        \"iam:CreateLoginProfile\",\n        \"iam:CreateServiceSpecificCredential\",\n        \"iam:DeleteRolePermissionsBoundary\",\n        \"iam:DeleteUserPermissionsBoundary\",\n        \"iam:DeleteRolePolicy\",\n        \"iam:DeleteUserPolicy\",\n        \"iam:DetachRolePolicy\",\n        \"iam:DetachUserPolicy\",\n        \"iam:PutGroupPolicy\",\n        \"iam:PutRolePolicy\",\n        \"iam:PutUserPolicy\",\n        \"iam:ResetServiceSpecificCredential\",\n        \"iam:SetDefaultPolicyVersion\",\n        \"iam:UpdateAccessKey\",\n        \"sts:AssumeRole\",\n        \"account:GetContactInformation\",\n        \"organizations:*\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnLike\": {\n          \"aws:ChatbotSourceArn\": \"arn:aws:chatbot::*:*\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-Q-Developer/Deny-actions-invoked-through-Amazon-Q-Developer-in-chat-applications-configurations.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-restrict-ec2-instance-types",
   "title": "Restrict EC2 launches to approved instance types",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "resource-and-cost",
   "blocks": "Denies ec2:RunInstances unless the instance type is in the approved list (t2.micro and t3.micro in the example).",
   "breaks": "Launches of any instance type not in the list fail for every principal in the affected accounts; the example list must be replaced with the types you approve.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"ec2:RunInstances\",\n      \"Resource\": \"arn:aws:ec2:*:*:instance/*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"ec2:InstanceType\": [\n            \"t2.micro\",\n            \"t3.micro\"\n          ]\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-EC2/Require-Amazon-EC2-instances-to-use-a-specific-type.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-restrict-marketplace-subscriptions",
   "title": "Restrict AWS Marketplace subscription changes",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "resource-and-cost",
   "blocks": "Denies AWS Marketplace subscribe, unsubscribe and private marketplace changes unless the caller is the privileged role.",
   "breaks": "Teams cannot subscribe to or cancel Marketplace products on their own; the README says to restrict these changes to a privileged role.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"aws-marketplace:Subscribe\",\n        \"aws-marketplace:Unsubscribe\",\n        \"aws-marketplace:CreatePrivateMarketplace\",\n        \"aws-marketplace:CreatePrivateMarketplaceRequests\",\n        \"aws-marketplace:AssociateProductsWithPrivateMarketplace\",\n        \"aws-marketplace:DisassociateProductsFromPrivateMarketplace\",\n        \"aws-marketplace:UpdatePrivateMarketplaceSettings\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"ArnNotLike\": {\n          \"aws:PrincipalArn\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Protect-cloud-platform-resource/Deny-unwanted-cancellation-or-changes-to-AWS-Marketplace-product-subscription.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-disable-ami-block-public-access",
   "title": "Deny disabling block public access for AMIs",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "public-exposure",
   "blocks": "Denies ec2:DisableImageBlockPublicAccess so Block public access for AMIs cannot be turned off.",
   "breaks": "The README notes the default for the setting depends on whether the account is new or existing and whether it has public AMIs; the policy has no exception condition.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": \"ec2:DisableImageBlockPublicAccess\",\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-EC2/Deny-users-from-disabling-block-public-access-on-AMIs.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-deny-ram-external-sharing",
   "title": "Deny AWS RAM sharing with external accounts",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "data-exfiltration",
   "blocks": "Denies ram:CreateResourceShare and ram:UpdateResourceShare when the share allows external principals.",
   "breaks": "Sharing resources such as VPC subnets with accounts outside the organization fails for every principal in the affected accounts.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"ram:CreateResourceShare\",\n        \"ram:UpdateResourceShare\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"Bool\": {\n          \"ram:RequestedAllowsExternalPrincipals\": \"true\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/Deny-RAM-from-sharing-resources-to-external-accounts.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-scp-require-lambda-url-iam-auth",
   "title": "Require IAM authentication on Lambda function URLs",
   "cloud": "AWS",
   "mechanism": "Service control policies (SCPs)",
   "risk_class": "public-exposure",
   "blocks": "Denies creating or updating a Lambda function URL configuration unless its auth type is AWS_IAM.",
   "breaks": "Function URLs with auth type NONE can no longer be created or updated in the affected accounts.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test the effect of SCPs on identity-based policies, and AWS recommends testing an SCP on a small set of accounts in a separate OU before attaching it near the organization root.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"lambda:CreateFunctionUrlConfig\",\n        \"lambda:UpdateFunctionUrlConfig\"\n      ],\n      \"Resource\": \"arn:aws:lambda:*:*:function/*\",\n      \"Condition\": {\n        \"StringNotEquals\": {\n          \"lambda:FunctionUrlAuthType\": \"AWS_IAM\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/Deny-modification-to-Lambda-URL-Config.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-rcp-require-https",
   "title": "Require HTTPS for access to resources",
   "cloud": "AWS",
   "mechanism": "Resource control policies (RCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies requests to resources in the listed services (S3, STS, KMS, SQS, Secrets Manager, Cognito, CloudWatch Logs, DynamoDB, ECR, OpenSearch Serverless) when aws:SecureTransport is false.",
   "breaks": "Callers outside the organization, including trusted partners, are also denied if they connect over an unencrypted connection, because RCPs apply regardless of whether the principal belongs to the organization.",
   "test_before_apply": "AWS recommends testing RCPs in a separate organization or OU and deploying progressively to broader OUs; AWS documents that the IAM policy simulator does not support RCPs.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Principal\": \"*\",\n      \"Action\": [\n        \"s3:*\",\n        \"sts:*\",\n        \"kms:*\",\n        \"sqs:*\",\n        \"secretsmanager:*\",\n        \"cognito-identity:*\",\n        \"cognito-idp:*\",\n        \"logs:*\",\n        \"dynamodb:*\",\n        \"ecr:*\",\n        \"aoss:*\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"BoolIfExists\": {\n          \"aws:SecureTransport\": \"false\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Restrict-resource-access-patterns/Restrict-access-to-only-HTTPS-connections-to-your-resources.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-rcp-s3-minimum-tls-1-2",
   "title": "Require TLS 1.2 or later for S3",
   "cloud": "AWS",
   "mechanism": "Resource control policies (RCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies S3 requests that use a TLS version lower than 1.2.",
   "breaks": "Clients limited to older TLS versions, including principals outside the organization, are denied; AWS warns deny-based RCPs can unintentionally block use of AWS services without needed exceptions.",
   "test_before_apply": "AWS recommends testing RCPs in a separate organization or OU and deploying progressively to broader OUs; AWS documents that the IAM policy simulator does not support RCPs.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Principal\": \"*\",\n      \"Action\": \"s3:*\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"NumericLessThan\": {\n          \"s3:TlsVersion\": [\n            \"1.2\"\n          ]\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/S3-Enforce-TLS-version.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-rcp-deny-bucket-public-access-block-changes",
   "title": "Deny changes to S3 Block Public Access at bucket level",
   "cloud": "AWS",
   "mechanism": "Resource control policies (RCPs)",
   "risk_class": "public-exposure",
   "blocks": "Denies s3:PutBucketPublicAccessBlock on buckets in the affected accounts so bucket-level Block Public Access settings cannot be modified.",
   "breaks": "No principal, including bucket owners, can change bucket-level Block Public Access settings; the README says S3 policies are recommended over an RCP for this control.",
   "test_before_apply": "AWS recommends testing RCPs in a separate organization or OU and deploying progressively to broader OUs; AWS documents that the IAM policy simulator does not support RCPs.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Principal\": \"*\",\n      \"Action\": \"s3:PutBucketPublicAccessBlock\",\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/S3-Prevent-S3-buckets-from-being-made-public-(Bucket-level).json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-rcp-deny-cognito-unauthenticated-access",
   "title": "Deny unauthenticated access to Cognito identity pools",
   "cloud": "AWS",
   "mechanism": "Resource control policies (RCPs)",
   "risk_class": "public-exposure",
   "blocks": "Denies GetId, GetCredentialsForIdentity and GetOpenIdToken for unauthenticated (guest) identities in Cognito identity pools.",
   "breaks": "Applications that rely on guest access to an identity pool can no longer obtain credentials; only authenticated users can.",
   "test_before_apply": "AWS recommends testing RCPs in a separate organization or OU and deploying progressively to broader OUs; AWS documents that the IAM policy simulator does not support RCPs.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"DenyUnauthenticatedIdentityPoolAccess\",\n      \"Effect\": \"Deny\",\n      \"Principal\": \"*\",\n      \"Action\": [\n        \"cognito-identity:GetId\",\n        \"cognito-identity:GetCredentialsForIdentity\",\n        \"cognito-identity:GetOpenIdToken\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringLike\": {\n          \"cognito-identity-unauth:IdentityPoolArn\": \"*\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/Cognito-Deny-identity-pool-unauthenticated-access.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-rcp-deny-s3-sse-c",
   "title": "Deny S3 customer-provided encryption keys (SSE-C)",
   "cloud": "AWS",
   "mechanism": "Resource control policies (RCPs)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies s3:PutObject when the request carries the SSE-C customer algorithm header.",
   "breaks": "Uploads that use customer-provided keys are denied for all callers; AWS warns deny-based RCPs can unintentionally block use of AWS services without needed exceptions.",
   "test_before_apply": "AWS recommends testing RCPs in a separate organization or OU and deploying progressively to broader OUs; AWS documents that the IAM policy simulator does not support RCPs.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"RestrictSSECObjectUploads\",\n      \"Effect\": \"Deny\",\n      \"Principal\": \"*\",\n      \"Action\": \"s3:PutObject\",\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"Null\": {\n          \"s3:x-amz-server-side-encryption-customer-algorithm\": \"false\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/S3-Deny-SSE-C.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-rcp-restrict-suspended-ou-resources",
   "title": "Restrict access to resources in a suspended OU",
   "cloud": "AWS",
   "mechanism": "Resource control policies (RCPs)",
   "risk_class": "organization-integrity",
   "blocks": "Denies a list of actions on resources in the accounts under the OU the policy is attached to, unless the caller is the privileged role or an AWS service principal.",
   "breaks": "AWS service principals are exempt by default; the README says to remove the aws:PrincipalIsAWSService condition if you also want to restrict security or logging services.",
   "test_before_apply": "AWS recommends testing RCPs in a separate organization or OU and deploying progressively to broader OUs; AWS documents that the IAM policy simulator does not support RCPs.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Deny\",\n      \"Principal\": \"*\",\n      \"Action\": [\n        \"s3:*\",\n        \"sqs:*\",\n        \"kms:*\",\n        \"secretsmanager:*\",\n        \"sts:AssumeRole\",\n        \"sts:DecodeAuthorizationMessage\",\n        \"sts:GetAccessKeyInfo\",\n        \"sts:GetFederationToken\",\n        \"sts:GetServiceBearerToken\",\n        \"sts:GetSessionToken\",\n        \"sts:SetContext\",\n        \"cognito-identity:*\",\n        \"cognito-idp:*\",\n        \"logs:*\",\n        \"dynamodb:*\",\n        \"ecr:*\",\n        \"aoss:*\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"BoolIfExists\": {\n          \"aws:PrincipalIsAWSService\": \"false\"\n        },\n        \"ArnNotLikeIfExists\": {\n          \"aws:PrincipalARN\": \"arn:aws:iam::${Account}:role/[PRIVILEGED_ROLE]\"\n        }\n      }\n    }\n  ]\n}",
   "source_url": "https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Establish-intra-organization-boundaries/Deny-resource-access-if-the-resource-belongs-to-a-specific-organizational-unit.json",
   "source_kind": "open-source",
   "license": "MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-declarative-vpc-block-public-access",
   "title": "Block internet gateway ingress for VPCs (declarative policy)",
   "cloud": "AWS",
   "mechanism": "Declarative policies",
   "risk_class": "network-perimeter",
   "blocks": "Sets VPC Block Public Access to block_ingress for the accounts in scope, so resources in VPCs and subnets cannot receive traffic through internet gateways.",
   "breaks": "While the policy is attached, account administrators cannot change the enforced configuration; AWS lists ModifyVpcBlockPublicAccessOptions, CreateVpcBlockPublicAccessExclusion and ModifyVpcBlockPublicAccessExclusion as blocked.",
   "test_before_apply": "AWS documents that the account status report shows the current status of the attributes a declarative policy supports for the accounts in scope.",
   "policy": "{\n  \"ec2_attributes\": {\n    \"vpc_block_public_access\": {\n      \"internet_gateway_block\": {\n        \"mode\": {\n          \"@@assign\": \"block_ingress\"\n        },\n        \"exclusions_allowed\": {\n          \"@@assign\": \"enabled\"\n        }\n      }\n    }\n  }\n}",
   "source_url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-declarative-snapshot-block-public-access",
   "title": "Block public sharing of EBS snapshots (declarative policy)",
   "cloud": "AWS",
   "mechanism": "Declarative policies",
   "risk_class": "data-exfiltration",
   "blocks": "Sets Snapshot Block Public Access to block_new_sharing so new public sharing of EBS snapshots is blocked in the accounts in scope.",
   "breaks": "AWS documents that snapshots already publicly shared remain publicly available under block_new_sharing, and EnableSnapshotBlockPublicAccess and DisableSnapshotBlockPublicAccess cannot be used to change the enforced setting.",
   "test_before_apply": "AWS documents that the account status report shows the current status of the attributes a declarative policy supports for the accounts in scope.",
   "policy": "{\n  \"ec2_attributes\": {\n    \"snapshot_block_public_access\": {\n      \"state\": {\n        \"@@assign\": \"block_new_sharing\"\n      }\n    }\n  }\n}",
   "source_url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-declarative-require-imdsv2",
   "title": "Require IMDSv2 for new EC2 instances (declarative policy)",
   "cloud": "AWS",
   "mechanism": "Declarative policies",
   "risk_class": "identity-and-privilege",
   "blocks": "Sets instance metadata defaults to http_tokens required and enforced, so new EC2 launches use IMDSv2 token-backed sessions.",
   "breaks": "AWS says to make sure no instances are making IMDSv1 calls before setting http_tokens to required, and recommends a hop limit of at least 2 when it is required.",
   "test_before_apply": "AWS documents that the account status report shows the current status of the attributes a declarative policy supports for the accounts in scope.",
   "policy": "{\n  \"ec2_attributes\": {\n    \"instance_metadata_defaults\": {\n      \"http_tokens\": {\n        \"@@assign\": \"required\"\n      },\n      \"http_put_response_hop_limit\": {\n        \"@@assign\": \"4\"\n      },\n      \"http_endpoint\": {\n        \"@@assign\": \"enabled\"\n      },\n      \"instance_metadata_tags\": {\n        \"@@assign\": \"enabled\"\n      },\n      \"http_tokens_enforced\": {\n        \"@@assign\": \"enabled\"\n      }\n    }\n  }\n}",
   "source_url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ec2_syntax.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-declarative-bedrock-guardrail-enforcement",
   "title": "Enforce an Amazon Bedrock guardrail on model inference (declarative policy)",
   "cloud": "AWS",
   "mechanism": "Declarative policies",
   "risk_class": "ai-services",
   "blocks": "References a versioned Amazon Bedrock Guardrail from the management account and applies it to inference calls in a Region for all models except the excluded ones.",
   "breaks": "The guardrail must be owned by the management account, must have a non-DRAFT version, and needs a resource-based policy allowing organization members to call ApplyGuardrail.",
   "test_before_apply": "none found on 2026-11-10",
   "policy": "{\n  \"bedrock\": {\n    \"guardrail_inference\": {\n      \"us-east-1\": {\n        \"config_1\": {\n          \"identifier\": {\n            \"@@assign\": \"arn:aws:bedrock:us-east-1:123456789012:guardrail/hu1dlsv9wy1d:1\"\n          },\n          \"selective_content_guarding\": {\n            \"system\": {\n              \"@@assign\": \"selective\"\n            },\n            \"messages\": {\n              \"@@assign\": \"comprehensive\"\n            }\n          },\n          \"model_enforcement\": {\n            \"included_models\": {\n              \"@@assign\": [\n                \"ALL\"\n              ]\n            },\n            \"excluded_models\": {\n              \"@@assign\": [\n                \"amazon.titan-embed-text-v2:0\",\n                \"cohere.embed-english-v3\"\n              ]\n            }\n          }\n        }\n      }\n    }\n  }\n}",
   "source_url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_bedrock_syntax.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-declarative-ai-services-opt-out",
   "title": "Opt out of AI service content use organization-wide (declarative policy)",
   "cloud": "AWS",
   "mechanism": "Declarative policies",
   "risk_class": "ai-services",
   "blocks": "Opts all AI services out of using and storing customer content for service improvement, with comprehend locked so child policies cannot override it.",
   "breaks": "AWS documents that opting out deletes the associated historical content shared with AWS before the setting was applied, other than content needed to provide the service.",
   "test_before_apply": "AWS documents that you can query the effective policy applicable to each account to see the effects of your setting choices.",
   "policy": "{\n  \"services\": {\n    \"default\": {\n      \"opt_out_policy\": {\n        \"@@assign\": \"optOut\"\n      }\n    },\n    \"comprehend\": {\n      \"opt_out_policy\": {\n        \"@@operators_allowed_for_child_policies\": [\n          \"@@none\"\n        ],\n        \"@@assign\": \"optOut\"\n      }\n    },\n    \"rekognition\": {\n      \"opt_out_policy\": {\n        \"@@assign\": \"optIn\"\n      }\n    }\n  }\n}",
   "source_url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out_syntax.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-pb-restrict-user-to-s3-cloudwatch-ec2",
   "title": "Permissions boundary limiting a user to S3, CloudWatch and EC2",
   "cloud": "AWS",
   "mechanism": "IAM permissions boundaries",
   "risk_class": "identity-and-privilege",
   "blocks": "Sets the maximum permissions of an IAM user to s3:*, cloudwatch:* and ec2:*, so the user can never act in other services such as IAM even if an identity policy allows it.",
   "breaks": "AWS gives the example of an iam:CreateUser permission policy failing because the boundary does not allow the action.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test IAM permissions boundaries, one boundary at a time.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"s3:*\",\n        \"cloudwatch:*\",\n        \"ec2:*\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "aws-pb-delegated-user-creation-boundary",
   "title": "Permissions boundary for delegated IAM user creation",
   "cloud": "AWS",
   "mechanism": "IAM permissions boundaries",
   "risk_class": "identity-and-privilege",
   "blocks": "Lets a delegated administrator create or change IAM users only when the XCompanyBoundaries boundary is applied, and denies editing the boundary policies or deleting a user's boundary.",
   "breaks": "AWS notes the delegated administrator can create a user who can access S3 resources the administrator cannot, so delegating effectively trusts the administrator with that access.",
   "test_before_apply": "AWS documents that the IAM policy simulator can test IAM permissions boundaries, one boundary at a time.",
   "policy": "{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Sid\": \"CreateOrChangeOnlyWithBoundary\",\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"iam:AttachUserPolicy\",\n        \"iam:CreateUser\",\n        \"iam:DeleteUserPolicy\",\n        \"iam:DetachUserPolicy\",\n        \"iam:PutUserPermissionsBoundary\",\n        \"iam:PutUserPolicy\"\n      ],\n      \"Resource\": \"*\",\n      \"Condition\": {\n        \"StringEquals\": {\n          \"iam:PermissionsBoundary\": \"arn:aws:iam::123456789012:policy/XCompanyBoundaries\"\n        }\n      }\n    },\n    {\n      \"Sid\": \"CloudWatchAndOtherIAMTasks\",\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"cloudwatch:*\",\n        \"iam:CreateAccessKey\",\n        \"iam:CreateGroup\",\n        \"iam:CreateLoginProfile\",\n        \"iam:CreatePolicy\",\n        \"iam:DeleteGroup\",\n        \"iam:DeletePolicy\",\n        \"iam:DeletePolicyVersion\",\n        \"iam:DeleteUser\",\n        \"iam:GetAccountPasswordPolicy\",\n        \"iam:GetGroup\",\n        \"iam:GetLoginProfile\",\n        \"iam:GetPolicy\",\n        \"iam:GetPolicyVersion\",\n        \"iam:GetRolePolicy\",\n        \"iam:GetUser\",\n        \"iam:GetUserPolicy\",\n        \"iam:ListAccessKeys\",\n        \"iam:ListAttachedRolePolicies\",\n        \"iam:ListAttachedUserPolicies\",\n        \"iam:ListEntitiesForPolicy\",\n        \"iam:ListGroups\",\n        \"iam:ListGroupsForUser\",\n        \"iam:ListMFADevices\",\n        \"iam:ListPolicies\",\n        \"iam:ListPolicyVersions\",\n        \"iam:ListRolePolicies\",\n        \"iam:ListSSHPublicKeys\",\n        \"iam:ListServiceSpecificCredentials\",\n        \"iam:ListSigningCertificates\",\n        \"iam:ListUserPolicies\",\n        \"iam:ListUsers\",\n        \"iam:SetDefaultPolicyVersion\",\n        \"iam:SimulateCustomPolicy\",\n        \"iam:SimulatePrincipalPolicy\",\n        \"iam:UpdateGroup\",\n        \"iam:UpdateLoginProfile\",\n        \"iam:UpdateUser\"\n      ],\n      \"NotResource\": \"arn:aws:iam::123456789012:user/Maria\"\n    },\n    {\n      \"Sid\": \"NoBoundaryPolicyEdit\",\n      \"Effect\": \"Deny\",\n      \"Action\": [\n        \"iam:CreatePolicyVersion\",\n        \"iam:DeletePolicy\",\n        \"iam:DeletePolicyVersion\",\n        \"iam:SetDefaultPolicyVersion\"\n      ],\n      \"Resource\": [\n        \"arn:aws:iam::123456789012:policy/XCompanyBoundaries\",\n        \"arn:aws:iam::123456789012:policy/DelegatedUserBoundary\"\n      ]\n    },\n    {\n      \"Sid\": \"NoBoundaryUserDelete\",\n      \"Effect\": \"Deny\",\n      \"Action\": \"iam:DeleteUserPermissionsBoundary\",\n      \"Resource\": \"*\"\n    }\n  ]\n}",
   "source_url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-allowed-locations",
   "title": "Allowed locations for new resources",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "region-and-residency",
   "blocks": "Denies creation of resources in any location that is not on the allowed list you set in the policy parameter.",
   "breaks": "Deployments to other locations return 403, and the definition itself excludes resource groups, Microsoft.AzureActiveDirectory/b2cDirectories and resources that use the 'global' region.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Allowed locations\nDefinition ID: e56962a6-4747-49cd-b67b-bf8b01975c4c\nCategory: General\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"location\",\n          \"notIn\": \"[parameters('listOfAllowedLocations')]\"\n        },\n        {\n          \"field\": \"location\",\n          \"notEquals\": \"global\"\n        },\n        {\n          \"field\": \"type\",\n          \"notEquals\": \"Microsoft.AzureActiveDirectory/b2cDirectories\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/General/AllowedLocations_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-allowed-resource-types",
   "title": "Allowed resource types",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "resource-and-cost",
   "blocks": "Denies deployment of any resource type that is not on the allowed list you set in the policy parameter.",
   "breaks": "Only resource types that support tags and location are affected unless you duplicate the definition and change its mode to All.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Allowed resource types\nDefinition ID: a08ec900-254a-4555-9bf5-e42af04b5c5c\nCategory: General\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"not\": {\n        \"field\": \"type\",\n        \"in\": \"[parameters('listOfResourceTypesAllowed')]\"\n      }\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/General/AllowedResourceTypes_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-not-allowed-resource-types",
   "title": "Not allowed resource types",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "resource-and-cost",
   "blocks": "Denies deployment of the resource types you list, for example expensive or high-risk services.",
   "breaks": "A deny effect returns 403 for any create or update of a listed type, and compliance results are shown only for non-compliant resources.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Not allowed resource types\nDefinition ID: 6c112d4e-5bc7-47ae-a041-ea2d9dccd749\nCategory: General\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"in\": \"[parameters('listOfResourceTypesNotAllowed')]\"\n        },\n        {\n          \"value\": \"[field('type')]\",\n          \"exists\": true\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/General/InvalidResourceTypes_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-deny-action-delete",
   "title": "Do not allow deletion of resource types",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "organization-integrity",
   "blocks": "Blocks DELETE calls against the resource types you list, using the denyAction effect.",
   "breaks": "The denyAction effect does not stop removal of child and extension resources when a delete targets the parent, and only supports the DELETE action.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Built-in policy definition: Do not allow deletion of resource types\nDefinition ID: 78460a36-508a-49a4-b2b2-2f5ec564f4bb\nCategory: General\nSupported effects: DenyAction, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"field\": \"type\",\n      \"in\": \"[parameters('listOfResourceTypesDisallowedForDeletion')]\"\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"actionNames\": [\n          \"delete\"\n        ]\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/General/ResourceType_denyActionDelete.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-allowed-vm-sizes",
   "title": "Allowed virtual machine size SKUs",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "resource-and-cost",
   "blocks": "Denies creation of virtual machines whose size is not on the allowed list, which limits expensive VM sizes.",
   "breaks": "Requests for VM sizes outside the list are rejected with 403 at create or update time.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Built-in policy definition: Allowed virtual machine size SKUs\nDefinition ID: cccc23c7-8427-4f53-ad12-b6a63eb452b3\nCategory: Compute\nSupported effects: Deny\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Compute/virtualMachines\"\n        },\n        {\n          \"not\": {\n            \"field\": \"Microsoft.Compute/virtualMachines/sku.name\",\n            \"in\": \"[parameters('listOfAllowedSKUs')]\"\n          }\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"Deny\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Compute/VMSkusAllowed_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-nic-no-public-ip",
   "title": "Network interfaces should not have public IPs",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "public-exposure",
   "blocks": "Denies network interfaces that are configured with a public IP address.",
   "breaks": "Existing network interfaces that already have a public IP are marked non-compliant but not changed.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Built-in policy definition: Network interfaces should not have public IPs\nDefinition ID: 83a86a26-fd1f-447c-b59d-e51f44264114\nCategory: Network\nSupported effects: deny\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Network/networkInterfaces\"\n        },\n        {\n          \"not\": {\n            \"field\": \"Microsoft.Network/networkInterfaces/ipconfigurations[*].publicIpAddress.id\",\n            \"notLike\": \"*\"\n          }\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"deny\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Network/NetworkPublicIPNic_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-nic-no-ip-forwarding",
   "title": "Network interfaces should disable IP forwarding",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "network-perimeter",
   "blocks": "Denies network interfaces that have IP forwarding enabled, which turns off Azure's source and destination check.",
   "breaks": "Interfaces with IP forwarding enabled are rejected, and the definition says the setting should be reviewed by the network security team.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Built-in policy definition: Network interfaces should disable IP forwarding\nDefinition ID: 88c0b9da-ce96-4b03-9635-f29a937e2900\nCategory: Network\nSupported effects: deny\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Network/networkInterfaces\"\n        },\n        {\n          \"field\": \"Microsoft.Network/networkInterfaces/enableIpForwarding\",\n          \"equals\": \"true\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"deny\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Network/NetworkIPForwardingNic_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-gateway-subnet-no-nsg",
   "title": "Gateway subnets should not have a network security group",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "network-perimeter",
   "blocks": "Denies a network security group on a gateway subnet.",
   "breaks": "You cannot filter gateway subnet traffic with an NSG while this applies; the definition states that an NSG on a gateway subnet makes the gateway stop functioning.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Built-in policy definition: Gateway subnets should not be configured with a network security group\nDefinition ID: 35f9c03a-cc27-418e-9c0c-539ff999d010\nCategory: Network\nSupported effects: deny\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Network/virtualNetworks/subnets\"\n        },\n        {\n          \"field\": \"name\",\n          \"equals\": \"GatewaySubnet\"\n        },\n        {\n          \"field\": \"Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id\",\n          \"exists\": \"true\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"deny\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Network/NetworkSecurityGroupOnGatewaySubnet_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-storage-disable-public-blob",
   "title": "Configure storage accounts to disallow public blob access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "public-exposure",
   "blocks": "Sets the storage account public access property to disallowed on create or update, so containers and blobs cannot be opened to anonymous reads.",
   "breaks": "Modify rewrites the property during create or update instead of rejecting the request, and existing storage accounts change only through a remediation task.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Configure your Storage account public access to be disallowed\nDefinition ID: 13502221-8df0-4414-9937-de9c5c4e396b\nCategory: Storage\nSupported effects: Modify, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Storage/storageAccounts\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"allOf\": [\n                {\n                  \"value\": \"[requestContext().apiVersion]\",\n                  \"less\": \"2019-04-01\"\n                },\n                {\n                  \"field\": \"Microsoft.Storage/storageAccounts/allowBlobPublicAccess\",\n                  \"exists\": \"true\"\n                }\n              ]\n            },\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/allowBlobPublicAccess\",\n              \"equals\": \"true\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"conflictEffect\": \"audit\",\n        \"roleDefinitionIds\": [\n          \"/providers/Microsoft.Authorization/roleDefinitions/17d1049b-9a84-46fb-8f53-869881c3d3ab\"\n        ],\n        \"operations\": [\n          {\n            \"condition\": \"[greaterOrEquals(requestContext().apiVersion, '2019-04-01')]\",\n            \"operation\": \"addOrReplace\",\n            \"field\": \"Microsoft.Storage/storageAccounts/allowBlobPublicAccess\",\n            \"value\": false\n          }\n        ]\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StorageAccountDisablePublicBlobAccess_Modify.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-storage-disable-public-network",
   "title": "Storage accounts should disable public network access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "public-exposure",
   "blocks": "Denies storage accounts that leave public network access enabled, so access is only through private endpoints.",
   "breaks": "The documented effect of the setting is that it denies all logins that match IP or virtual network-based firewall rules.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Storage accounts should disable public network access\nDefinition ID: b2982f36-99f2-4db5-8eff-283140c09693\nCategory: Storage\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Storage/storageAccounts\"\n        },\n        {\n          \"not\": {\n            \"field\": \"Microsoft.Storage/storageAccounts/publicNetworkAccess\",\n            \"in\": [\n              \"Disabled\",\n              \"SecuredByPerimeter\"\n            ]\n          }\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StoragePublicNetworkAccess_AuditDeny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-storage-min-tls",
   "title": "Storage accounts should have the specified minimum TLS version",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies storage accounts whose minimum TLS version is lower than the version you set (the definition recommends TLS 1.2 or newer).",
   "breaks": "Storage accounts below the minimum are rejected: deny returns 403 on create and update.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Storage accounts should have the specified minimum TLS version\nDefinition ID: fe83a0eb-a853-422d-aac2-1bffd182c5d0\nCategory: Storage\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Storage/storageAccounts\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/minimumTlsVersion\",\n              \"notEquals\": \"[parameters('minimumTlsVersion')]\"\n            },\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/minimumTlsVersion\",\n              \"exists\": \"false\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StorageAccountMinimumTLSVersion_Audit.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-storage-no-shared-key",
   "title": "Storage accounts should prevent shared key access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies storage accounts that allow Shared Key authorization, so requests must use Microsoft Entra ID.",
   "breaks": "Existing storage accounts that allow Shared Key are marked non-compliant but not changed.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Storage accounts should prevent shared key access\nDefinition ID: 8c6a50c6-9ffd-4ae7-986f-5fa6111f9a54\nCategory: Storage\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Storage/storageAccounts\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"value\": \"[contains(parameters('excludedManagedByResourceProviders'), 'Azure Red Hat OpenShift')]\",\n              \"equals\": false\n            },\n            {\n              \"value\": \"[resourcegroup().managedBy]\",\n              \"notContains\": \"/providers/Microsoft.RedHatOpenShift/\"\n            }\n          ]\n        },\n        {\n          \"anyOf\": [\n            {\n              \"value\": \"[contains(parameters('excludedManagedByResourceProviders'), 'Azure Databricks')]\",\n              \"equals\": false\n            },\n            {\n              \"value\": \"[resourcegroup().managedBy]\",\n              \"notContains\": \"/providers/Microsoft.Databricks/\"\n            }\n          ]\n        },\n        {\n          \"anyOf\": [\n            {\n              \"value\": \"[contains(parameters('excludedManagedByResourceProviders'), 'Microsoft Purview')]\",\n              \"equals\": false\n            },\n            {\n              \"value\": \"[resourcegroup().managedBy]\",\n              \"notContains\": \"/providers/Microsoft.Purview/\"\n            }\n          ]\n        },\n        {\n          \"anyOf\": [\n            {\n              \"value\": \"[contains(parameters('excludedManagedByResourceProviders'), 'All managed resource groups')]\",\n              \"equals\": false\n            },\n            {\n              \"value\": \"[empty(resourcegroup().managedBy)]\",\n              \"equals\": true\n            }\n          ]\n        },\n        {\n          \"anyOf\": [\n            {\n              \"anyOf\": [\n                {\n                  \"field\": \"Microsoft.Storage/storageAccounts/allowSharedKeyAccess\",\n                  \"exists\": \"false\"\n                },\n                {\n                  \"field\": \"Microsoft.Storage/storageAccounts/allowSharedKeyAccess\",\n                  \"equals\": \"\"\n                }\n              ]\n            },\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/allowSharedKeyAccess\",\n              \"equals\": \"true\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StorageAccountAllowSharedKeyAccess_Audit.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-storage-sas-7-days",
   "title": "Storage SAS tokens should adhere to 7 day maximum validity",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "data-exfiltration",
   "blocks": "Denies storage accounts whose SAS expiration policy allows tokens valid for more than 7 days, which limits how long a leaked token can move data out.",
   "breaks": "Existing storage accounts with longer SAS lifetimes are marked non-compliant but not changed.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Storage SAS tokens should adhere to 7 day maximum validity\nDefinition ID: 7aa1c9d5-3d7e-4579-8117-d85e99211757\nCategory: Storage\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Storage/storageAccounts\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/sasPolicy\",\n              \"exists\": \"false\"\n            },\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod\",\n              \"exists\": \"false\"\n            },\n            {\n              \"value\": \"[if(empty(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod')), 99, int(split(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod'), createArray(':', '.'))[0]))]\",\n              \"greater\": 7\n            },\n            {\n              \"allOf\": [\n                {\n                  \"value\": \"[if(empty(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod')), 0, int(split(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod'), createArray(':', '.'))[0]))]\",\n                  \"equals\": 7\n                },\n                {\n                  \"anyOf\": [\n                    {\n                      \"value\": \"[if(empty(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod')), 0, int(split(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod'), createArray(':', '.'))[1]))]\",\n                      \"notEquals\": 0\n                    },\n                    {\n                      \"value\": \"[if(empty(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod')), 0, int(split(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod'), createArray(':', '.'))[2]))]\",\n                      \"notEquals\": 0\n                    },\n                    {\n                      \"value\": \"[if(empty(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod')), 0, int(split(field('Microsoft.Storage/storageAccounts/sasPolicy.sasExpirationPeriod'), createArray(':', '.'))[3]))]\",\n                      \"notEquals\": 0\n                    }\n                  ]\n                }\n              ]\n            },\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/sasPolicy.expirationAction\",\n              \"exists\": \"false\"\n            },\n            {\n              \"field\": \"Microsoft.Storage/storageAccounts/sasPolicy.expirationAction\",\n              \"notEquals\": \"Block\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/EnforceStorageSasMaxExpiration7Days_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-keyvault-purge-protection",
   "title": "Key vaults should have deletion protection enabled",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies key vaults without purge protection and soft delete enabled, so keys and secrets cannot be purged during the retention period.",
   "breaks": "Purge protection enforces a mandatory retention period: no one in your organization or Microsoft can purge the vault during the soft delete retention period.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Key vaults should have deletion protection enabled\nDefinition ID: 0b60c0b2-2dc2-4e1c-b5c9-abbed971de53\nCategory: Key Vault\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.KeyVault/vaults\"\n        },\n        {\n          \"field\": \"Microsoft.KeyVault/vaults/createMode\",\n          \"notEquals\": \"recover\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"allOf\": [\n                {\n                  \"value\": \"[requestContext().apiVersion]\",\n                  \"less\": \"2019-09-01\"\n                },\n                {\n                  \"anyOf\": [\n                    {\n                      \"field\": \"Microsoft.KeyVault/vaults/enableSoftDelete\",\n                      \"equals\": \"false\"\n                    },\n                    {\n                      \"field\": \"Microsoft.KeyVault/vaults/enableSoftDelete\",\n                      \"exists\": \"false\"\n                    }\n                  ]\n                }\n              ]\n            },\n            {\n              \"allOf\": [\n                {\n                  \"value\": \"[requestContext().apiVersion]\",\n                  \"greaterOrEquals\": \"2019-09-01\"\n                },\n                {\n                  \"field\": \"Microsoft.KeyVault/vaults/enableSoftDelete\",\n                  \"equals\": \"false\"\n                }\n              ]\n            },\n            {\n              \"field\": \"Microsoft.KeyVault/vaults/enablePurgeProtection\",\n              \"exists\": \"false\"\n            },\n            {\n              \"field\": \"Microsoft.KeyVault/vaults/enablePurgeProtection\",\n              \"equals\": \"false\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Key%20Vault/Recoverable_Audit.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-keyvault-use-rbac",
   "title": "Azure Key Vault should use the RBAC permission model",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies key vaults that use the legacy access policy model instead of Azure RBAC.",
   "breaks": "Existing key vaults on access policies are marked non-compliant but not changed.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Azure Key Vault should use RBAC permission model\nDefinition ID: 12d4fa5e-1f9f-4c21-97a9-b99b3c6611b5\nCategory: Key Vault\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.KeyVault/vaults\"\n        },\n        {\n          \"not\": {\n            \"field\": \"Microsoft.KeyVault/vaults/createMode\",\n            \"equals\": \"recover\"\n          }\n        },\n        {\n          \"anyOf\": [\n            {\n              \"field\": \"Microsoft.KeyVault/vaults/enableRbacAuthorization\",\n              \"exists\": \"false\"\n            },\n            {\n              \"field\": \"Microsoft.KeyVault/vaults/enableRbacAuthorization\",\n              \"equals\": \"false\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Key%20Vault/Should_Use_RBAC.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-keyvault-firewall",
   "title": "Configure key vaults to enable the firewall",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "network-perimeter",
   "blocks": "Turns on the key vault firewall at create or update so the vault is not reachable by default from public IPs.",
   "breaks": "Modify changes the property during create or update instead of rejecting the request, and existing vaults change only through a remediation task.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Configure key vaults to enable firewall\nDefinition ID: ac673a9a-f77d-4846-b2d8-a57f8e1c01dc\nCategory: Key Vault\nSupported effects: Modify, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.KeyVault/vaults\"\n        },\n        {\n          \"field\": \"Microsoft.KeyVault/vaults/networkAcls.defaultAction\",\n          \"notEquals\": \"Deny\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"conflictEffect\": \"audit\",\n        \"roleDefinitionIds\": [\n          \"/providers/Microsoft.Authorization/roleDefinitions/f25e0fa2-a7c8-4377-a976-54943a77a395\"\n        ],\n        \"operations\": [\n          {\n            \"operation\": \"addOrReplace\",\n            \"field\": \"Microsoft.KeyVault/vaults/networkAcls.defaultAction\",\n            \"value\": \"Deny\"\n          }\n        ]\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Key%20Vault/FirewallEnabled_Modify.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-disk-cmk",
   "title": "OS and data disks should be encrypted with a customer-managed key",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "encryption-and-keys",
   "blocks": "Denies managed disks that are not encrypted with a customer-managed key.",
   "breaks": "You take on key lifecycle work: the definition says you have full control and responsibility for the key lifecycle, including rotation and management.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: OS and data disks should be encrypted with a customer-managed key\nDefinition ID: 702dd420-7fcc-42c5-afe8-4026edd20fe0\nCategory: Compute\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"anyOf\": [\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/virtualMachines\"\n            },\n            {\n              \"field\": \"Microsoft.Compute/virtualMachines/storageProfile.osDisk.managedDisk.diskEncryptionSet.id\",\n              \"exists\": \"False\"\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/virtualMachines\"\n            },\n            {\n              \"value\": \"[length(field('Microsoft.Compute/virtualMachines/storageProfile.dataDisks'))]\",\n              \"greater\": 0\n            },\n            {\n              \"field\": \"Microsoft.Compute/virtualMachines/storageProfile.dataDisks[*].managedDisk.id\",\n              \"exists\": \"False\"\n            },\n            {\n              \"field\": \"Microsoft.Compute/virtualMachines/storageProfile.dataDisks[*].managedDisk.diskEncryptionSet.id\",\n              \"exists\": \"False\"\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/virtualMachineScaleSets\"\n            },\n            {\n              \"field\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.osDisk.managedDisk.diskEncryptionSet.id\",\n              \"exists\": \"False\"\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/virtualMachineScaleSets\"\n            },\n            {\n              \"count\": {\n                \"field\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.dataDisks[*]\"\n              },\n              \"greater\": 0\n            },\n            {\n              \"not\": {\n                \"field\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.storageProfile.dataDisks[*].managedDisk.diskEncryptionSet.id\",\n                \"exists\": \"true\"\n              }\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/disks\"\n            },\n            {\n              \"field\": \"Microsoft.Compute/disks/encryption.diskEncryptionSetId\",\n              \"exists\": \"False\"\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/galleries/images/versions\"\n            },\n            {\n              \"value\": \"[length(field('Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.osDiskImage.diskEncryptionSetId'))]\",\n              \"notEquals\": \"[length(field('Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*]'))]\"\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/galleries/images/versions\"\n            },\n            {\n              \"value\": \"[length(field('Microsoft.Compute/galleries/images/versions/storageProfile.dataDiskImages[*]'))]\",\n              \"greater\": 0\n            },\n            {\n              \"anyOf\": [\n                {\n                  \"count\": {\n                    \"field\": \"Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*]\",\n                    \"where\": {\n                      \"value\": \"[length(current('Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.dataDiskImages[*].diskEncryptionSetId'))]\",\n                      \"notEquals\": \"[length(field('Microsoft.Compute/galleries/images/versions/storageProfile.dataDiskImages[*]'))]\"\n                    }\n                  },\n                  \"greater\": 0\n                },\n                {\n                  \"not\": {\n                    \"field\": \"Microsoft.Compute/galleries/images/versions/publishingProfile.targetRegions[*].encryption.dataDiskImages[*].diskEncryptionSetId\",\n                    \"exists\": \"true\"\n                  }\n                }\n              ]\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/images\"\n            },\n            {\n              \"field\": \"Microsoft.Compute/images/storageProfile.osDisk.diskEncryptionSet.id\",\n              \"exists\": \"False\"\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.Compute/images\"\n            },\n            {\n              \"value\": \"[length(field('Microsoft.Compute/images/storageProfile.dataDisks[*]'))]\",\n              \"greater\": 0\n            },\n            {\n              \"not\": {\n                \"field\": \"Microsoft.Compute/images/storageProfile.dataDisks[*].diskEncryptionSet.id\",\n                \"exists\": \"true\"\n              }\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Compute/OSAndDataDiskCMKRequired_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-sql-entra-only",
   "title": "Azure SQL Database should have Microsoft Entra-only authentication enabled",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies enabling local (SQL) authentication on Azure SQL logical servers after they are created.",
   "breaks": "The definition does not block servers from being created with local authentication enabled; Microsoft points to the Entra-only authentication initiative to cover both.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Azure SQL Database should have Microsoft Entra-only authentication enabled\nDefinition ID: b3a22bc9-66de-45fb-98fa-00f5df42f41a\nCategory: SQL\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Sql/servers/azureADOnlyAuthentications\"\n        },\n        {\n          \"value\": \"[resourcegroup().managedBy]\",\n          \"notContains\": \"/providers/Microsoft.Synapse/\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"field\": \"Microsoft.Sql/servers/azureADOnlyAuthentications/azureADOnlyAuthentication\",\n              \"exists\": false\n            },\n            {\n              \"field\": \"Microsoft.Sql/servers/azureADOnlyAuthentications/azureADOnlyAuthentication\",\n              \"equals\": false\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/SQL/SqlServer_ADOnlyEnabled_DisableADAuth_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-keyvault-diagnostic-logs",
   "title": "Deploy diagnostic settings for Key Vault to Event Hub",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Deploys diagnostic settings that stream key vault logs to an Event Hub whenever a vault without them is created or updated.",
   "breaks": "DeployIfNotExists is not a blocking effect: matching resources are marked non-compliant and no action is taken on them until a remediation task runs.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Deploy Diagnostic Settings for Key Vault to Event Hub\nDefinition ID: ed7c8c13-51e7-49d1-8a43-8490431a0da2\nCategory: Key Vault\nSupported effects: DeployIfNotExists, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.KeyVault/vaults\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"value\": \"[parameters('eventHubLocation')]\",\n              \"equals\": \"\"\n            },\n            {\n              \"field\": \"location\",\n              \"equals\": \"[parameters('eventHubLocation')]\"\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"type\": \"Microsoft.Insights/diagnosticSettings\",\n        \"name\": \"[parameters('profileName')]\",\n        \"existenceCondition\": {\n          \"allOf\": [\n            {\n              \"count\": {\n                \"field\": \"Microsoft.Insights/diagnosticSettings/logs[*]\",\n                \"where\": {\n                  \"field\": \"Microsoft.Insights/diagnosticSettings/logs[*].enabled\",\n                  \"equals\": \"[parameters('logsEnabled')]\"\n                }\n              },\n              \"greaterOrEquals\": 1\n            },\n            {\n              \"count\": {\n                \"field\": \"Microsoft.Insights/diagnosticSettings/metrics[*]\",\n                \"where\": {\n                  \"field\": \"Microsoft.Insights/diagnosticSettings/metrics[*].enabled\",\n                  \"equals\": \"[parameters('metricsEnabled')]\"\n                }\n              },\n              \"greaterOrEquals\": 1\n            }\n          ]\n        },\n        \"roleDefinitionIds\": [\n          \"/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\"\n        ],\n        \"deployment\": {\n          \"properties\": {\n            \"mode\": \"incremental\",\n            \"template\": {\n              \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#\",\n              \"contentVersion\": \"1.0.0.0\",\n              \"parameters\": {\n                \"vaultName\": {\n                  \"type\": \"string\"\n                },\n                \"location\": {\n                  \"type\": \"string\"\n                },\n                \"eventHubRuleId\": {\n                  \"type\": \"string\"\n                },\n                \"metricsEnabled\": {\n                  \"type\": \"string\"\n                },\n                \"logsEnabled\": {\n                  \"type\": \"string\"\n                },\n                \"profileName\": {\n                  \"type\": \"string\"\n                }\n              },\n              \"resources\": [\n                {\n                  \"type\": \"Microsoft.KeyVault/vaults/providers/diagnosticSettings\",\n                  \"apiVersion\": \"2017-05-01-preview\",\n                  \"name\": \"[concat(parameters('vaultName'), '/', 'Microsoft.Insights/', parameters('profileName'))]\",\n                  \"location\": \"[parameters('location')]\",\n                  \"dependsOn\": [],\n                  \"properties\": {\n                    \"eventHubAuthorizationRuleId\": \"[parameters('eventHubRuleId')]\",\n                    \"metrics\": [\n                      {\n                        \"category\": \"AllMetrics\",\n                        \"enabled\": \"[parameters('metricsEnabled')]\",\n                        \"retentionPolicy\": {\n                          \"enabled\": false,\n                          \"days\": 0\n                        }\n                      }\n                    ],\n                    \"logs\": [\n                      {\n                        \"category\": \"AuditEvent\",\n                        \"enabled\": \"[parameters('logsEnabled')]\"\n                      },\n                      {\n                        \"category\": \"AzurePolicyEvaluationDetails\",\n                        \"enabled\": \"[parameters('logsEnabled')]\"\n                      }\n                    ]\n                  }\n                }\n              ],\n              \"outputs\": {\n                \"policy\": {\n                  \"type\": \"string\",\n                  \"value\": \"[concat('Enabled diagnostic settings for ', parameters('vaultName'))]\"\n                }\n              }\n            },\n            \"parameters\": {\n              \"location\": {\n                \"value\": \"[field('location')]\"\n              },\n              \"vaultName\": {\n                \"value\": \"[field('name')]\"\n              },\n              \"eventHubRuleId\": {\n                \"value\": \"[parameters('eventHubRuleId')]\"\n              },\n              \"metricsEnabled\": {\n                \"value\": \"[parameters('metricsEnabled')]\"\n              },\n              \"logsEnabled\": {\n                \"value\": \"[parameters('logsEnabled')]\"\n              },\n              \"profileName\": {\n                \"value\": \"[parameters('profileName')]\"\n              }\n            }\n          }\n        }\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Key%20Vault/DiagnosticLog_DINE.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-appinsights-entra-ingestion",
   "title": "Application Insights components should block non-Entra ingestion",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Denies Application Insights components that accept log ingestion without Microsoft Entra authentication.",
   "breaks": "Existing components that accept unauthenticated ingestion are marked non-compliant but not changed.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Application Insights components should block non-Azure Active Directory based ingestion.\nDefinition ID: 199d5677-e4d9-4264-9465-efe1839c06bd\nCategory: Monitoring\nSupported effects: Deny, Audit, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Insights/components\"\n        },\n        {\n          \"field\": \"Microsoft.Insights/components/DisableLocalAuth\",\n          \"notEquals\": \"true\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponents_DisableLocalAuth_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-ai-disable-public-network",
   "title": "Configure Cognitive Services accounts to disable public network access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Sets public network access to disabled on Cognitive Services (Azure AI services, including Azure OpenAI) accounts on create or update.",
   "breaks": "Modify changes the property during create or update instead of rejecting the request, and existing accounts change only through a remediation task.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Configure Cognitive Services accounts to disable public network access\nDefinition ID: 47ba1dd7-28d9-4b07-a8d5-9813bed64e0c\nCategory: Cognitive Services\nSupported effects: Disabled, Modify\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.CognitiveServices/accounts\"\n        },\n        {\n          \"field\": \"Microsoft.CognitiveServices/accounts/publicNetworkAccess\",\n          \"notEquals\": \"Disabled\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"roleDefinitionIds\": [\n          \"/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\"\n        ],\n        \"conflictEffect\": \"audit\",\n        \"operations\": [\n          {\n            \"condition\": \"[greaterOrEquals(requestContext().apiVersion, '2017-04-18')]\",\n            \"operation\": \"addOrReplace\",\n            \"field\": \"Microsoft.CognitiveServices/accounts/publicNetworkAccess\",\n            \"value\": \"Disabled\"\n          }\n        ]\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Cognitive%20Services/DisablePublicNetworkAccess_Modify.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-ai-disable-local-auth",
   "title": "Configure Cognitive Services accounts to disable local authentication",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Disables key-based (local) authentication on Cognitive Services accounts so only Microsoft Entra identities can call them.",
   "breaks": "Modify changes the property during create or update instead of rejecting the request, and existing accounts change only through a remediation task.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Configure Cognitive Services accounts to disable local authentication methods\nDefinition ID: 14de9e63-1b31-492e-a5a3-c3f7fd57f555\nCategory: Cognitive Services\nSupported effects: Modify, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.CognitiveServices/accounts\"\n        },\n        {\n          \"field\": \"Microsoft.CognitiveServices/accounts/disableLocalAuth\",\n          \"notEquals\": true\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"roleDefinitionIds\": [\n          \"/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\"\n        ],\n        \"conflictEffect\": \"audit\",\n        \"operations\": [\n          {\n            \"condition\": \"[greaterOrEquals(requestContext().apiVersion, '2021-04-30')]\",\n            \"operation\": \"addOrReplace\",\n            \"field\": \"Microsoft.CognitiveServices/accounts/disableLocalAuth\",\n            \"value\": true\n          }\n        ]\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Cognitive%20Services/DisableLocalAuth_Modify.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-ai-disable-local-auth-dine",
   "title": "Configure Azure AI Services resources to disable local key access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Deploys the setting that disables key access on Azure AI Services resources, leaving Microsoft Entra ID as the only access method.",
   "breaks": "Azure OpenAI Studio requires key access and will not function if key access is disabled, per the definition description.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Configure Azure AI Services resources to disable local key access (disable local authentication)\nDefinition ID: 55eff01b-f2bd-4c32-9203-db285f709d30\nCategory: Azure Ai Services\nSupported effects: DeployIfNotExists, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"field\": \"type\",\n      \"equals\": \"Microsoft.CognitiveServices/accounts\"\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"type\": \"Microsoft.CognitiveServices/accounts\",\n        \"name\": \"[field('name')]\",\n        \"existenceCondition\": {\n          \"field\": \"Microsoft.CognitiveServices/accounts/disableLocalAuth\",\n          \"equals\": true\n        },\n        \"roleDefinitionIds\": [\n          \"/providers/Microsoft.Authorization/roleDefinitions/a001fd3d-188f-4b5d-821b-7da978bf7442\",\n          \"/providers/microsoft.authorization/roleDefinitions/25fbc0a9-bd7c-42a3-aa1a-3b75d497ee68\"\n        ],\n        \"deployment\": {\n          \"properties\": {\n            \"mode\": \"incremental\",\n            \"template\": {\n              \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#\",\n              \"contentVersion\": \"1.0.0.0\",\n              \"parameters\": {\n                \"resourceName\": {\n                  \"type\": \"string\"\n                },\n                \"location\": {\n                  \"type\": \"string\"\n                },\n                \"disableLocalAuth\": {\n                  \"type\": \"string\"\n                },\n                \"kind\": {\n                  \"type\": \"string\"\n                },\n                \"sku\": {\n                  \"type\": \"object\"\n                },\n                \"publicNetworkAccess\": {\n                  \"type\": \"string\"\n                },\n                \"networkAcls\": {\n                  \"type\": \"object\"\n                }\n              },\n              \"variables\": {},\n              \"resources\": [\n                {\n                  \"type\": \"Microsoft.CognitiveServices/accounts\",\n                  \"apiVersion\": \"2023-10-01-preview\",\n                  \"name\": \"[parameters('resourceName')]\",\n                  \"kind\": \"[parameters('kind')]\",\n                  \"sku\": \"[parameters('sku')]\",\n                  \"location\": \"[parameters('location')]\",\n                  \"properties\": {\n                    \"customSubDomainName\": \"[parameters('resourceName')]\",\n                    \"disableLocalAuth\": \"[parameters('disableLocalAuth')]\",\n                    \"publicNetworkAccess\": \"[parameters('publicNetworkAccess')]\",\n                    \"networkAcls\": \"[parameters('networkAcls')]\"\n                  }\n                }\n              ],\n              \"outputs\": {}\n            },\n            \"parameters\": {\n              \"location\": {\n                \"value\": \"[field('location')]\"\n              },\n              \"resourceName\": {\n                \"value\": \"[field('name')]\"\n              },\n              \"disableLocalAuth\": {\n                \"value\": \"[parameters('disableLocalAuth')]\"\n              },\n              \"kind\": {\n                \"value\": \"[field('kind')]\"\n              },\n              \"sku\": {\n                \"value\": \"[field('Microsoft.CognitiveServices/accounts/sku')]\"\n              },\n              \"publicNetworkAccess\": {\n                \"value\": \"[parameters('publicNetworkAccess')]\"\n              },\n              \"networkAcls\": {\n                \"value\": \"[field('Microsoft.CognitiveServices/accounts/networkAcls')]\"\n              }\n            }\n          }\n        }\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Azure%20Ai%20Services/DisableLocalAuth_CognitiveServices_DINE.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-ml-workspace-disable-public-network",
   "title": "Configure Azure Machine Learning workspaces to disable public network access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Sets public network access to disabled on Azure Machine Learning workspaces on create or update.",
   "breaks": "Modify changes the property during create or update instead of rejecting the request, and existing workspaces change only through a remediation task; Microsoft suggests private endpoints to control exposure instead.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement; Microsoft notes that remediation tasks can still be started for deployIfNotExists policies in DoNotEnforce mode.",
   "policy": "Built-in policy definition: Configure Azure Machine Learning Workspaces to disable public network access\nDefinition ID: a10ee784-7409-4941-b091-663697637c0f\nCategory: Machine Learning\nSupported effects: Modify, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.MachineLearningServices/workspaces\"\n        },\n        {\n          \"field\": \"Microsoft.MachineLearningServices/workspaces/publicNetworkAccess\",\n          \"notEquals\": \"Disabled\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\",\n      \"details\": {\n        \"roleDefinitionIds\": [\n          \"/providers/microsoft.authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c\"\n        ],\n        \"conflictEffect\": \"audit\",\n        \"operations\": [\n          {\n            \"condition\": \"[greaterOrEquals(requestContext().apiVersion, '2021-10-01')]\",\n            \"operation\": \"addOrReplace\",\n            \"field\": \"Microsoft.MachineLearningServices/workspaces/publicNetworkAccess\",\n            \"value\": \"Disabled\"\n          }\n        ]\n      }\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Machine%20Learning/Workspace_PublicNetworkAccessDisabled_Modify.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-ml-registry-models",
   "title": "Azure Machine Learning registry deployments restricted to the allowed registry (preview)",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Denies deployments of registry models unless they come from the allowed registry and are not on the restricted model list.",
   "breaks": "This definition is a preview, and if no allowed registry name is set the parameter description says all models from all registries are restricted.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Built-in policy definition: [Preview]: Azure Machine Learning Model Registry Deployments are restricted except for the allowed Registry\nDefinition ID: 19539b54-c61e-4196-9a38-67598701be90\nCategory: Machine Learning\nSupported effects: Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.MachineLearningServices.v2.Data/workspaces/deployments\"\n        },\n        {\n          \"anyOf\": [\n            {\n              \"field\": \"Microsoft.MachineLearningServices.v2.Data/workspaces/deployments/model.assetId\",\n              \"in\": \"[parameters('restrictedModels')]\"\n            },\n            {\n              \"allOf\": [\n                {\n                  \"field\": \"Microsoft.MachineLearningServices.v2.Data/workspaces/deployments/model.assetId\",\n                  \"like\": \"azureml://registries/*\"\n                },\n                {\n                  \"not\": {\n                    \"field\": \"Microsoft.MachineLearningServices.v2.Data/workspaces/deployments/model.assetId\",\n                    \"like\": \"[concat('azureml://registries/', parameters('allowedRegistryName'), '/*')]\"\n                  }\n                }\n              ]\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Machine%20Learning/OnlyDeployAllowedRegistryModels_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-foundry-denied-tools",
   "title": "Microsoft Foundry agents and toolboxes should not use denied tools (preview)",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Denies Microsoft Foundry agents and toolboxes that use tool types, MCP endpoints or MCP connectors on your denied lists.",
   "breaks": "This definition is a preview, and the same definition supports Audit, so a deny only applies when you set the effect to Deny.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: [Preview]: Microsoft Foundry agents and toolboxes should not use denied tools\nDefinition ID: 7740c22b-07ef-4bac-9f5a-e38d188f80b7\nCategory: Cognitive Services\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"anyOf\": [\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents\"\n            },\n            {\n              \"count\": {\n                \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents/tools[*]\",\n                \"where\": {\n                  \"anyOf\": [\n                    {\n                      \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents/tools[*].type\",\n                      \"in\": \"[parameters('deniedToolTypes')]\"\n                    },\n                    {\n                      \"allOf\": [\n                        {\n                          \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents/tools[*].type\",\n                          \"equals\": \"mcp\"\n                        },\n                        {\n                          \"count\": {\n                            \"value\": \"[parameters('deniedMcpEndpoints')]\",\n                            \"name\": \"endpointPatternAgents\",\n                            \"where\": {\n                              \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents/tools[*].serverUrl\",\n                              \"like\": \"[current('endpointPatternAgents')]\"\n                            }\n                          },\n                          \"greater\": 0\n                        }\n                      ]\n                    },\n                    {\n                      \"allOf\": [\n                        {\n                          \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents/tools[*].type\",\n                          \"equals\": \"mcp\"\n                        },\n                        {\n                          \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/agents/tools[*].connectorId\",\n                          \"in\": \"[parameters('deniedMcpConnectors')]\"\n                        }\n                      ]\n                    }\n                  ]\n                }\n              },\n              \"greater\": 0\n            }\n          ]\n        },\n        {\n          \"allOf\": [\n            {\n              \"field\": \"type\",\n              \"equals\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes\"\n            },\n            {\n              \"count\": {\n                \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes/tools[*]\",\n                \"where\": {\n                  \"anyOf\": [\n                    {\n                      \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes/tools[*].type\",\n                      \"in\": \"[parameters('deniedToolTypes')]\"\n                    },\n                    {\n                      \"allOf\": [\n                        {\n                          \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes/tools[*].type\",\n                          \"equals\": \"mcp\"\n                        },\n                        {\n                          \"count\": {\n                            \"value\": \"[parameters('deniedMcpEndpoints')]\",\n                            \"name\": \"endpointPatternToolboxes\",\n                            \"where\": {\n                              \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes/tools[*].serverUrl\",\n                              \"like\": \"[current('endpointPatternToolboxes')]\"\n                            }\n                          },\n                          \"greater\": 0\n                        }\n                      ]\n                    },\n                    {\n                      \"allOf\": [\n                        {\n                          \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes/tools[*].type\",\n                          \"equals\": \"mcp\"\n                        },\n                        {\n                          \"field\": \"Microsoft.CognitiveServices.Data/accounts/projects/toolboxes/tools[*].connectorId\",\n                          \"in\": \"[parameters('deniedMcpConnectors')]\"\n                        }\n                      ]\n                    }\n                  ]\n                }\n              },\n              \"greater\": 0\n            }\n          ]\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Cognitive%20Services/DenyAgentAndToolboxTools_Audit.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-policy-search-disable-public-network",
   "title": "Azure AI Search services should disable public network access",
   "cloud": "Azure",
   "mechanism": "Azure Policy (built-in definitions)",
   "risk_class": "ai-services",
   "blocks": "Denies Azure AI Search services that leave public network access enabled.",
   "breaks": "Existing search services that are public are marked non-compliant but not changed; Microsoft suggests private endpoints to limit exposure.",
   "test_before_apply": "Assign the definition with enforcementMode set to DoNotEnforce, which Microsoft documents as the way to evaluate an assignment before enforcement, or assign it with the Audit effect first.",
   "policy": "Built-in policy definition: Azure AI Search services should disable public network access\nDefinition ID: ee980b6d-0eca-4501-8d54-f6290fd512c3\nCategory: Search\nSupported effects: Audit, Deny, Disabled\npolicyRule (copied from the repository file):\n{\n    \"if\": {\n      \"allOf\": [\n        {\n          \"field\": \"type\",\n          \"equals\": \"Microsoft.Search/searchServices\"\n        },\n        {\n          \"field\": \"Microsoft.Search/searchServices/publicNetworkAccess\",\n          \"notEquals\": \"Disabled\"\n        }\n      ]\n    },\n    \"then\": {\n      \"effect\": \"[parameters('effect')]\"\n    }\n  }",
   "source_url": "https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Search/RequirePublicNetworkAccessDisabled_Deny.json",
   "source_kind": "open-source",
   "license": "MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-deny-assignment-deployment-stack",
   "title": "Deployment stack deny settings (Azure RBAC deny assignment)",
   "cloud": "Azure",
   "mechanism": "Azure RBAC deny assignments (created by deployment stacks)",
   "risk_class": "organization-integrity",
   "blocks": "A deployment stack created with deny settings makes Azure create a deny assignment that blocks delete (denyDelete) or write and delete (denyWriteAndDelete) on the resources the stack manages, even for users whose role assignments would allow it.",
   "breaks": "The deny setting applies only to resources the stack defines explicitly, not to resources created implicitly, and you can exclude at most five principals.",
   "test_before_apply": "none found on 2026-11-10",
   "policy": "Documented deny settings (deployment stacks):\nDenySettingsMode : Defines the operations that are prohibited on the managed resources to safeguard against unauthorized security principals attempting to delete or update them. This restriction applies to everyone unless you explicitly grant access. The values include: None , DenyDelete , and DenyWriteAndDelete .\n\nAzure CLI example from the documentation (resource group scope):\naz stack group create \\\n--name '<deployment-stack-name>' \\\n--resource-group '<resource-group-name>' \\\n--template-file '<bicep-file-name>' \\\n--action-on-unmanage 'detachAll' \\\n--deny-settings-mode 'denyDelete' \\\n--deny-settings-excluded-actions 'Microsoft.Compute/virtualMachines/write Microsoft.StorageAccounts/delete' \\\n--deny-settings-excluded-principals '<object-id> <object-id>'",
   "source_url": "https://learn.microsoft.com/en-us/azure/role-based-access-control/deny-assignments",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-lock-cannotdelete-readonly",
   "title": "Resource locks (CanNotDelete and ReadOnly)",
   "cloud": "Azure",
   "mechanism": "Azure resource locks",
   "risk_class": "organization-integrity",
   "blocks": "A CanNotDelete lock stops deletion and a ReadOnly lock stops updates and deletion of a subscription, resource group or resource, overriding user permissions.",
   "breaks": "A read-only lock on a resource group that contains a virtual machine prevents all users from starting or restarting it, because those operations use POST requests.",
   "test_before_apply": "none found on 2026-11-10",
   "policy": "CanNotDelete means authorized users can read and modify a resource, but they can't delete it.\nReadOnly means authorized users can read a resource, but they can't delete or update it. Applying this lock is similar to restricting all authorized users to the permissions that the Reader role provides.\n\nBicep example from the documentation:\nresource createRgLock 'Microsoft.Authorization/locks@2016-09-01' = {\nname: 'rgLock'\nproperties: {\nlevel: 'CanNotDelete'\nnotes: 'Resource group should not be deleted.'\n}\n}",
   "source_url": "https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "azure-mg-assignment-allowed-locations",
   "title": "Allowed locations assigned at a management group",
   "cloud": "Azure",
   "mechanism": "Management group assignment",
   "risk_class": "region-and-residency",
   "blocks": "Assigning the Allowed locations policy at a management group applies it to every subscription and resource under that group through inheritance, so one assignment covers many subscriptions.",
   "breaks": "Policy and access assigned at a management group cascade to all child subscriptions, and scopes listed in notScopes on the assignment are skipped entirely: they are not evaluated or included in the compliance count.",
   "test_before_apply": "Set enforcementMode to DoNotEnforce on the policy assignment made at the management group, which Microsoft documents as the way to evaluate an assignment before enforcement.",
   "policy": "Management group scope for Azure Policy: assign the built-in definition \"Allowed locations\" (ID e56962a6-4747-49cd-b67b-bf8b01975c4c, see azure-policy-allowed-locations) at the management group.\nMicrosoft's documented example: \"You can create a hierarchy that applies a policy, for example, that limits VM locations to the West US region in the management group called Corp\".",
   "source_url": "https://learn.microsoft.com/en-us/azure/governance/management-groups/overview",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-disable-sa-key-creation",
   "title": "Disable service account key creation",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "identity-and-privilege",
   "blocks": "Stops users from creating new external service account keys and Cloud Storage HMAC keys in the scope where it is enforced. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that user-managed credentials cannot be created for service accounts in affected projects, so tools or workloads that depend on newly created keys cannot get them.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/iam.disableServiceAccountKeyCreation\nThis boolean constraint, when enforced, disables the creation of service account external keys and Cloud Storage HMAC keys.\nBy default, service account external keys can be created by users based on their Cloud IAM roles and permissions.\nThis constraint is automatically provisioned as part of Google Cloud security baseline .\nFor more information, see Disable service account key creation .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-no-auto-iam-grants-default-sa",
   "title": "Disable automatic IAM grants for default service accounts",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "identity-and-privilege",
   "blocks": "Stops the default App Engine and Compute Engine service accounts from being automatically granted the Editor role when they are created. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that it does not stop the Editor or Owner role being granted to default service accounts later, and that other roles must be granted instead of Editor.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/iam.automaticIamGrantsForDefaultServiceAccounts\nThis boolean constraint, when enforced, prevents the default App Engine and Compute Engine service accounts that are created in your projects from being automatically granted any IAM role on the project when the accounts are created.\nBy default, these service accounts automatically receive the Editor role when they are created. To learn about default service accounts, see https://docs.cloud.google.com/iam/help/service-accounts/default.\nTo learn which roles to grant instead of the Editor role, see https://docs.cloud.google.com/iam/help/service-accounts/troubleshoot-roles-default.\nThis constraint is automatically provisioned as part of Google Cloud security baseline .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-require-os-login",
   "title": "Require OS Login",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "identity-and-privilege",
   "blocks": "Enables OS Login on all newly created projects and blocks metadata updates that disable OS Login at the project or instance level. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that setting OS Login metadata deletes the VM authorized_keys files and VMs no longer accept SSH keys stored in project or instance metadata.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.requireOsLogin\nThis boolean constraint, when enforced, enables OS Login on all newly created Projects. All VM instances created in new projects will have OS Login enabled. On new and existing projects, this constraint prevents metadata updates that disable OS Login at the project or instance level.\nBy default, the OS Login feature is disabled on Compute Engine projects.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-deny-service-account-key-admin",
   "title": "Deny service account key create and delete to a group on one project",
   "cloud": "Google Cloud",
   "mechanism": "IAM deny policies",
   "risk_class": "identity-and-privilege",
   "blocks": "Denies the serviceAccountKeys.create and serviceAccountKeys.delete permissions to a group on the project or folder where the deny policy is attached, even when the group holds the Service Account Key Admin role.",
   "breaks": "Google documents that a denied principal cannot use the permission whatever roles they hold, so an exception group (exceptionPrincipals) is needed for anyone who must keep the access.",
   "test_before_apply": "Google documents troubleshooting deny policies with Policy Troubleshooter, which examines the allow, deny and Principal Access Boundary policies that affect a principal; it does not enforce in a preview mode.",
   "policy": "{\n \"deniedPrincipals\": [\n  \"principalSet://goog/group/eng@example.com\"\n ],\n \"deniedPermissions\": [\n  \"iam.googleapis.com/serviceAccountKeys.create\",\n  \"iam.googleapis.com/serviceAccountKeys.delete\"\n ]\n}",
   "source_url": "https://cloud.google.com/iam/docs/deny-overview",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-domain-restricted-sharing",
   "title": "Domain restricted sharing",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "data-exfiltration",
   "blocks": "Limits which organization principal sets and Google Workspace customer IDs can be added to IAM policies, so roles cannot be granted to outside identities. (legacy managed constraint, list.)",
   "breaks": "Google documents that the organization principal set and Google Workspace ID are not automatically allowed, so they must be listed to let your own principals be granted roles.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "name: organizations/ORGANIZATION_ID/policies/iam.allowedPolicyMemberDomains\nspec:\n rules:\n - condition: # This condition applies to the values block.\n    expression: \"resource.matchTag('ORGANIZATION_ID/environment', 'dev')\"\n   values:\n    allowedValues:\n    - PRINCIPAL_SET\n - values:\n    allowedValues:\n    - PRINCIPAL_SET",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/restricting-domains",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-vpcsc-service-perimeter",
   "title": "Service perimeter around managed services",
   "cloud": "Google Cloud",
   "mechanism": "VPC Service Controls (service perimeters)",
   "risk_class": "data-exfiltration",
   "blocks": "A service perimeter creates a security boundary that blocks, by default, communication from inside the perimeter to Google Cloud services across it, such as copying data to a Cloud Storage bucket outside the perimeter.",
   "breaks": "Google documents that a VM in a VPC network inside the perimeter cannot reach Cloud Storage buckets outside it, and that ingress or egress rules are needed for any cross-perimeter access.",
   "test_before_apply": "Google documents dry run mode for perimeters: requests that violate the perimeter policy are logged and not denied.",
   "policy": "gcloud access-context-manager perimeters create NAME \\\n--title=TITLE \\\n--resources=RESOURCES \\\n--restricted-services=RESTRICTED-SERVICES \\\n--ingress-policies=INGRESS-FILENAME.yaml \\\n--egress-policies=EGRESS-FILENAME.yaml \\\n[--access-levels=LEVELS] \\\n[--enable-vpc-accessible-services] \\\n[--vpc-allowed-services=ACCESSIBLE-SERVICES] \\\n--policy=POLICY_NAME\n\ngcloud access-context-manager perimeters \\\ndry-run create ProdPerimeter --perimeter-title=\"Production Perimeter\" \\\n--perimeter-type=\"regular\" \\\n--perimeter-resources=projects/12345,projects/67890 \\\n--perimeter-restricted-services=storage.googleapis.com,bigquery.googleapis.com \\\n--perimeter-ingress-policies=ingress.yaml \\\n--perimeter-egress-policies=egress.yaml \\\n--policy=330193482019",
   "source_url": "https://cloud.google.com/vpc-service-controls/docs/create-service-perimeters",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-allowed-export-destinations",
   "title": "Allowed destinations for exporting resources",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "data-exfiltration",
   "blocks": "Limits which other organizations a resource can be moved to, and denies moves to every other organization. (legacy managed constraint, list.)",
   "breaks": "Google documents that moves within an organization are not governed by this constraint, and that the move still needs the usual IAM permissions.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/resourcemanager.allowedExportDestinations\n",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-custom-allow-internal-and-special-identities",
   "title": "Custom constraint limiting IAM role grants to organization members",
   "cloud": "Google Cloud",
   "mechanism": "Custom organization policy constraints",
   "risk_class": "data-exfiltration",
   "blocks": "A custom constraint on iam.googleapis.com/AllowPolicy that permits an IAM allow policy only if every member is in the organization principal set, or is allUsers or allAuthenticatedUsers.",
   "breaks": "Google documents that with the ALLOW action every case not explicitly listed in the condition is blocked, so any other member type in an allow policy is refused.",
   "test_before_apply": "Google documents Policy Simulator for Organization Policy, which previews the impact of a new custom constraint before it is enforced, and org policies in dry-run mode.",
   "policy": "name: organizations/ORGANIZATION_ID/customConstraints/custom.allowInternalAndSpecialIdentitiesOnly\nresourceTypes: iam.googleapis.com/AllowPolicy\nmethodTypes:\n- CREATE\n- UPDATE\ncondition:\n \"resource.bindings.all(\n binding,\n binding.members.all(member,\n (\n MemberInPrincipalSet(member, ['//cloudresourcemanager.googleapis.com/organizations/ORG_ID'])\n ||\n MemberSubjectMatches(member, ['allUsers', 'allAuthenticatedUsers'])\n )\n )\n )\"\nactionType: ALLOW\ndisplayName: Only allow organization members, allusers, and allAuthenticatedUsers to be granted roles",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/restricting-domains",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-pab-eligible-resources",
   "title": "Principal access boundary limiting the resources principals can access",
   "cloud": "Google Cloud",
   "mechanism": "Principal access boundary (PAB) policies",
   "risk_class": "data-exfiltration",
   "blocks": "A principal access boundary policy lists the projects, folders and organizations principals are eligible to access, so a principal bound to it is blocked from other resources whatever roles it holds.",
   "breaks": "Google documents that a policy only blocks permissions in its enforcement version, so an access attempt using a permission it cannot block is not stopped.",
   "test_before_apply": "Google lists Policy Simulator for Principal Access Boundary policies in its documentation, and Policy Troubleshooter examines Principal Access Boundary policies for a given principal, resource and permission.",
   "policy": "gcloud iam principal-access-boundary-policies create PAB_POLICY_ID \\\n--organization=ORG_ID --location=global \\\n--display-name=DISPLAY_NAME --details-rules=FILE_PATH.json \\\n--details-enforcement-version=ENFORCEMENT_VERSION\n\n{\n\"description\": \"DESCRIPTION\",\n\"resources\": [\nRESOURCES\n],\n\"effect\": \"ALLOW\"\n}",
   "source_url": "https://cloud.google.com/iam/docs/principal-access-boundary-policies-create",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-storage-public-access-prevention",
   "title": "Enforce public access prevention on Cloud Storage",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "public-exposure",
   "blocks": "Blocks ACLs and IAM permissions that grant access to allUsers and allAuthenticatedUsers on Cloud Storage buckets and objects, for existing and future resources. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that it overrides existing public permissions and revokes public access for existing buckets and objects once enabled.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/storage.publicAccessPrevention\nSecure your Cloud Storage data from public exposure by enforcing public access prevention. This governance policy prevents existing and future resources from being accessed via the public internet by disabling and blocking ACLs and IAM permissions that grant access to allUsers and allAuthenticatedUsers . Enforce this policy on the entire organization (recommended), specific projects, or specific folders to ensure no data is publicly exposed.\nThis policy overrides existing public permissions. Public access will be revoked for existing buckets and objects after this policy is enabled. For more details on the effects of changing enforcement of this constraint on resources, please see: https://docs.cloud.google.com/storage/docs/public-access-prevention.\nFor more information, see Organization policy constraints for Cloud Storage .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-sql-restrict-public-ip",
   "title": "Restrict public IP access on Cloud SQL instances",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "public-exposure",
   "blocks": "Stops Public IP from being configured on Cloud SQL instances where the constraint is enforced. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that the constraint is not retroactive: instances with existing Public IP access keep working.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/sql.restrictPublicIp\nThis boolean constraint restricts configuring Public IP on Cloud SQL instances where this constraint is enforced. This constraint is not retroactive, Cloud SQL instances with existing Public IP access will still work even after this constraint is enforced.\nBy default, Public IP access is allowed to Cloud SQL instances.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-vm-external-ip-access",
   "title": "Define allowed external IPs for VM instances",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "public-exposure",
   "blocks": "Limits which Compute Engine VM instances can use external IPv4 addresses. (legacy managed constraint, list.)",
   "breaks": "Google documents that it does not restrict the use of IPv6 addresses.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.vmExternalIpAccess\nThis list constraint defines the set of Compute Engine VM instances that are allowed to use external IPv4 addresses. This constraint doesn't restrict the use of IPv6 addresses.\nBy default, all VM instances are allowed to use external IPv4 and IPv6 addresses.\nThe allowed/denied list of VM instances must be identified by the VM instance name, in the form: projects/ PROJECT_ID /zones/ ZONE /instances/ INSTANCE\nSupported prefix: is:\nFor more information, see Restrict external IP access to specific instances .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-skip-default-network",
   "title": "Skip default network creation",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "network-perimeter",
   "blocks": "Skips creation of the default network and related resources when a project is created where the constraint is enforced. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that, by default, a default network and supporting resources are created with each project, so projects created under this constraint have none and need a network created for them. Google also notes that new organization policies are usually not retroactive.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.skipDefaultNetworkCreation\nThis boolean constraint skips the creation of the default network and related resources during Google Cloud Platform Project resource creation where this constraint is enforced. By default, a default network and supporting resources are automatically created when creating a Project resource.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-restrict-vpc-peering",
   "title": "Restrict VPC peering usage",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "network-perimeter",
   "blocks": "Limits which VPC networks can be peered with the networks of a project, folder or organization. (legacy managed constraint, list.)",
   "breaks": "Google documents that each peering end is required to have peering permission, so both sides must allow the peer.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.restrictVpcPeering\nThis list constraint defines the set of VPC networks that are allowed to be peered with the VPC networks belonging to this project, folder, or organization. Each peering end is required to have peering permission. By default, a Network Admin for one network can peer with any other network. The allowed/denied list of networks must be identified in the form: under:organizations/ ORGANIZATION_ID , under:folders/ FOLDER_ID , under:projects/ PROJECT_ID , or projects/ PROJECT_ID /global/networks/ NETWORK_NAME .\nSupported prefixes: is: , under:",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-require-vpc-flow-logs",
   "title": "Require predefined policies for VPC flow logs",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Requires flow logs on all subnetworks in scope, at a minimum sampling rate set by the predefined policy. (legacy managed constraint, list.)",
   "breaks": "Google documents that subnetworks in scope must have flow logs enabled with the required minimum sampling rate, where by default any settings are allowed.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.requireVpcFlowLogs\nThis list constraint defines the set of predefined policies that can be enforced for VPC Flow logs.\nBy default VPC Flow logs may be configured with any settings in each subnet.\nThis constraint enforces enabling flow logs for all subnetworks in scope with a required minimum sampling rate.\nSpecify one or more of the following valid values: ESSENTIAL (allows values >= 0.1 and LIGHT (allows values >= 0.5 and COMPREHENSIVE (allows values == 1.0)\nSupported prefix: is:\nFor more information, see Configure organization policy constraints for VPC Flow Logs .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-disable-audit-logging-exemption",
   "title": "Disable Audit Logging exemption",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "logging-and-monitoring",
   "blocks": "Prevents exempting additional principals from audit logging. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that it does not affect audit-logging exemptions that existed before the constraint was enforced.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/iam.disableAuditLoggingExemption\nThis boolean constraint, when enforced, prevents you from exempting additional principals from audit logging. This constraint does not affect any audit-logging exemptions that existed before you enforced the constraint.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-restrict-non-cmek-services",
   "title": "Restrict which services may create resources without CMEK",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "encryption-and-keys",
   "blocks": "Requires that newly created resources in the listed services are protected by a customer-managed encryption key. (legacy managed constraint, list.)",
   "breaks": "Google documents that enforcement is not retroactive and that existing non-CMEK resources must be reconfigured or recreated manually.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/gcp.restrictNonCmekServices\nThis list constraint defines which services require Customer-Managed Encryption Keys (CMEK). Setting this constraint to Deny (i.e. deny resource creation without CMEK) requires that, for the specified services, newly created resources must be protected by a CMEK key. Supported services that can be set in this constraint are: aiplatform.googleapis.com\nalloydb.googleapis.com\napigee.googleapis.com\nartifactregistry.googleapis.com\nbackupdr.googleapis.com\nbigquery.googleapis.com\nbigquerydatatransfer.googleapis.com\nbigtable.googleapis.com\ncloudfunctions.googleapis.com\ncloudscheduler.googleapis.com\ncloudtasks.googleapis.com\ncomposer.googleapis.com\ncompute.googleapis.com\ncontactcenterinsights.googleapis.com\ncontainer.googleapis.com\ndataflow.googleapis.com\ndataform.googleapis.com\ndatafusion.googleapis.com\ndatamigration.googleapis.com\ndataplex.googleapis.com\ndataproc.googleapis.com\ndatastream.googleapis.com\ndatastudio.googleapis.com\ndialogflow.googleapis.com\ndiscoveryengine.googleapis.com\ndocumentai.googleapis.com\neventarc.googleapis.com\nfile.googleapis.com\nfirestore.googleapis.com\ngkebackup.googleapis.com\nintegrations.googleapis.com\nlogging.googleapis.com\nlooker.googleapis.com\nlustre.googleapis.com\nmanagedkafka.googleapis.com\nnetapp.googleapis.com\nnotebooks.googleapis.com\nobservability.googleapis.com\nparametermanager.googleapis.com\npubsub.googleapis.com\nredis.googleapis.com\nrun.googleapis.com\nsecretmanager.googleapis.com\nsecuresourcemanager.googleapis.com\nsecuritycenter.googleapis.com\nspanner.googleapis.com\nspeech.googleapis.com\nsqladmin.googleapis.com\nstorage.googleapis.com\nstoragetransfer.googleapis.com\ntpu.googleapis.com\nworkstations.googleapis.com\nSetting this constraint to Deny All is not permitted. Setting this constraint to Allow is not permitted. Enforcement of this constraint is not retroactive. Existing non-CMEK Google Cloud resources must be reconfigured or recreated manually to ensure enforcement.\nSupported prefix: is:\nFor more information, see CMEK organization policies .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-storage-secure-http-transport",
   "title": "Restrict unencrypted HTTP access to Cloud Storage",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "encryption-and-keys",
   "blocks": "Explicitly denies HTTP (unencrypted) access to all storage resources. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that the Cloud Storage XML API allows unencrypted HTTP by default, so clients using it over HTTP are refused once the constraint is enforced.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/storage.secureHttpTransport\nThis boolean constraint, when enforced, explicitly denies HTTP (unencrypted) access to all storage resources. By default, the Cloud Storage XML API allows unencrypted HTTP access. Note that the Cloud Storage JSON API, gRPC, and Cloud console only allow encrypted HTTP access to Cloud Storage resources.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-kms-disable-before-destroy",
   "title": "Restrict key destruction to disabled key versions",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "encryption-and-keys",
   "blocks": "Allows destruction only of key versions that are already in the disabled state. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that the constraint applies to both new and existing key versions.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/cloudkms.disableBeforeDestroy\nThis boolean constraint, when enforced, only allows the destruction of key versions that are in the disabled state. By default, key versions that are in the enabled state and key versions that are in the disabled state can be destroyed. When this constraint is enforced, it applies to both new and existing key versions.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-resource-locations",
   "title": "Resource location restriction",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "region-and-residency",
   "blocks": "Limits the locations where location-based Google Cloud resources can be created. (legacy managed constraint, list.)",
   "breaks": "Google documents that allowing or denying a multi-region does not imply the same for its sub-locations, so a deny of the us multi-region still allows resources in us-east1.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/gcp.resourceLocations\nThis list constraint defines the set of locations where location-based Google Cloud resources can be created. Important: The information on this page does not describe Google Cloud Platform's data location commitments for Customer Data (as defined in the agreement under which Google has agreed to provide Google Cloud Platform services and as described in the Google Cloud Platform Services Summary at https://docs.cloud.google.com/terms/services) to its customers. For the list of Google Cloud Platform services for which Customer Data location may be selected by customers, see Google Cloud Platform Services with Data Residency at https://docs.cloud.google.com/terms/data-residency.\nBy default, resources can be created in any location. For a full list of supported services, see https://docs.cloud.google.com/organization-policy/reference/restrict-locations-supported-services.\nPolicies for this constraint can specify multi-regions such as asia and europe , regions such as us-east1 or europe-west1 as allowed or denied locations. Allowing or denying a multi-region does not imply that all included sub-locations should also be allowed or denied. For example, if the policy denies the us multi-region (which refers to multi-region resources, like some storage services), resources can still be created in the regional location us-east1 . On the other hand, the in:us-locations group contains all locations within the us region, and can be used to block every region.\nWe recommend using value groups to define your policy.\nYou can specify value groups , collections of locations that are curated by Google to provide a simple way to define your resource locations. To use value groups in your organization policy, prefix your entries with the string in: , followed by the value group.\nFor example, to create resources that will only be physically located within the US, set in:us-locations in the list of allowed values.\nIf the suggested_value field is used in a location policy, it should be a region. If the value specified is a region, a UI for a zonal resource may pre-populate any zone in that region.\nSupported prefixes: is: , in:\nFor more information, see Restrict resource locations .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-restrict-service-usage",
   "title": "Restrict resource service usage",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "organization-integrity",
   "blocks": "Limits which Google Cloud resource services can be used in an organization, folder or project, by allowlist or denylist. (legacy managed constraint, list.)",
   "breaks": "Google documents that services with a direct dependency on a restricted service are restricted too, for example GKE when Compute Engine is restricted.",
   "test_before_apply": "Google documents that this legacy managed constraint can be used in dry-run mode, where violations are audit logged and not denied.",
   "policy": "name: organizations/ORGANIZATION_ID/policies/gcp.restrictServiceUsage\nspec:\n rules:\n - values:\n    deniedValues:\n    - file.googleapis.com\n    - bigquery.googleapis.com\n    - storage.googleapis.com",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/restricting-resources",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-restrict-xpn-lien-removal",
   "title": "Restrict Shared VPC host project lien removal",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "organization-integrity",
   "blocks": "Restricts who can remove a Shared VPC host project lien to users with organization-level permission. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that the permission to remove the lien must be granted at the organization level once enforced.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.restrictXpnProjectLienRemoval\nThis boolean constraint restricts the set of users that can remove a Shared VPC host project lien without organization-level permission where this constraint is enforced.\nBy default, any user with the permission to update liens can remove a Shared VPC host project lien. Enforcing this constraint requires that permission be granted at the organization level.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-deny-project-delete-prod",
   "title": "Deny deleting projects tagged prod",
   "cloud": "Google Cloud",
   "mechanism": "IAM deny policies",
   "risk_class": "organization-integrity",
   "blocks": "Denies the projects.delete permission to everyone except the project-admins group for projects tagged prod.",
   "breaks": "Google documents that the denial condition must use the CEL functions for evaluating resource tags, and other functions and operators are not supported.",
   "test_before_apply": "Google documents troubleshooting deny policies with Policy Troubleshooter, which examines the allow, deny and Principal Access Boundary policies that affect a principal; it does not enforce in a preview mode.",
   "policy": "{\n \"displayName\": \"Only project admins can delete production projects.\",\n \"rules\": [\n  {\n   \"denyRule\": {\n    \"deniedPrincipals\": [\n     \"principalSet://goog/public:all\"\n    ],\n    \"exceptionPrincipals\": [\n     \"principalSet://goog/group/project-admins@example.com\"\n    ],\n    \"deniedPermissions\": [\n     \"cloudresourcemanager.googleapis.com/projects.delete\"\n    ],\n    \"denialCondition\": {\n     \"title\": \"Only for prod projects\",\n     \"expression\": \"resource.matchTag('12345678/env', 'prod')\"\n    }\n   }\n  }\n ]\n}",
   "source_url": "https://cloud.google.com/iam/docs/deny-overview",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-ainotebooks-restrict-public-ip",
   "title": "Restrict public IP access on new Vertex AI Workbench instances",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "ai-services",
   "blocks": "Restricts public IP access to newly created Vertex AI Workbench notebooks and instances. (legacy managed constraint, boolean.)",
   "breaks": "Google scopes the constraint to newly created notebooks and instances, and states that new organization policies are usually not retroactive.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/ainotebooks.restrictPublicIp\nThis boolean constraint, when enforced, restricts public IP access to newly created Vertex AI Workbench notebooks and instances. By default, public IPs can access Vertex AI Workbench notebooks and instances.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-ainotebooks-disable-root-access",
   "title": "Disable root access on new Vertex AI Workbench notebooks and instances",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "ai-services",
   "blocks": "Prevents newly created Vertex AI Workbench user-managed notebooks and instances from enabling root access. (legacy managed constraint, boolean.)",
   "breaks": "Google scopes the constraint to newly created notebooks and instances, and states that new organization policies are usually not retroactive.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/ainotebooks.disableRootAccess\nThis boolean constraint, when enforced, prevents newly created Vertex AI Workbench user-managed notebooks and instances from enabling root access. By default, Vertex AI Workbench user-managed notebooks and instances can have root access enabled.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-vertexai-allowed-models",
   "title": "Define access to models on Vertex AI",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "ai-services",
   "blocks": "Defines the set of models and features, such as predict, deploy and tune actions, that can be used in Vertex AI APIs. (legacy managed constraint, list.)",
   "breaks": "Google documents that the Model Garden policy only applies to models in Model Garden, not models registered in the Model Registry, and that a policy cannot exceed 500 allowed and denied values.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "name: organizations/ORGANIZATION_ID/policies/vertexai.allowedModels\nspec:\n rules:\n values:\n  deniedValues:\n  - publishers/meta/models/llama3:deploy\n  - publishers/google/models/gemini-3.5-flash:tune\n  - publishers/hf-google/models/gemma-2b:deploy",
   "source_url": "https://cloud.google.com/vertex-ai/generative-ai/docs/control-model-access",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-vertexai-disable-google-search-grounding",
   "title": "Disable Grounding with Google Search in generative AI APIs",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "ai-services",
   "blocks": "Disables the Grounding with Google Search feature in Vertex AI generative AI APIs. (legacy managed constraint, boolean.)",
   "breaks": "Google documents that the feature is enabled by default, so enforcing the constraint removes grounding with Google Search from applications that use it.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/vertexai.disableGenAIGoogleSearchGrounding\nThis boolean constraint, when enforced, disables Grounding with Google Search feature in generative AI APIs. By default the feature is enabled.",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-discoveryengine-allowed-egress-fqdns",
   "title": "Restrict egress domains for data connectors",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "ai-services",
   "blocks": "Allows only URLs with an allowed FQDN to be used by Gemini Enterprise data connectors in projects with VPC Service Controls enabled or in the enforcedProjects list. (Managed constraint.)",
   "breaks": "Google documents that, when enforced, only URLs with an allowed FQDN can be used for data connectors in the covered projects.",
   "test_before_apply": "Google documents that managed constraints support organization policies in dry-run mode, where violations are audit logged and the violating actions are not denied, and that managed constraints support Policy Simulator by default.",
   "policy": "constraints/discoveryengine.managed.allowedEgressFqdns\n",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-shared-reservations-owner-projects",
   "title": "Shared reservations owner projects",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "resource-and-cost",
   "blocks": "Limits which projects can create and own Compute Engine shared reservations in the organization. (legacy managed constraint, list.)",
   "breaks": "Google documents the required value format: projects/PROJECT_NUMBER or under:projects/PROJECT_NUMBER.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.sharedReservationsOwnerProjects\n",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  },
  {
   "id": "gcp-orgpolicy-restrict-lb-creation-types",
   "title": "Restrict load balancer creation based on load balancer types",
   "cloud": "Google Cloud",
   "mechanism": "Organization Policy Service (managed and legacy constraints)",
   "risk_class": "resource-and-cost",
   "blocks": "Limits which types of load balancer can be created in an organization, folder or project. (legacy managed constraint, list.)",
   "breaks": "Google documents that every load balancer type to be allowed or denied must be listed explicitly, from a fixed list of values.",
   "test_before_apply": "none found on 2026-11-10 for this legacy managed constraint: Google documents that Policy Simulator cannot test changes to legacy managed constraints and that dry-run mode covers only custom constraints, managed constraints and a short list of legacy ones.",
   "policy": "constraints/compute.restrictLoadBalancerCreationForTypes\nThis list constraint defines the set of load balancer types which can be created for an organization, folder, or project. Every load balancer type to be allowed or denied must be listed explicitly. By default, creation of all types of load balancers is allowed.\nThe list of allowed or denied values must be identified as the string name of a load balancer, and can only include values from the list below: INTERNAL_TCP_UDP\nINTERNAL_HTTP_HTTPS\nGLOBAL_INTERNAL_MANAGED_HTTP_HTTPS\nGLOBAL_INTERNAL_MANAGED_TCP_PROXY\nREGIONAL_INTERNAL_MANAGED_TCP_PROXY\nEXTERNAL_NETWORK_TCP_UDP\nEXTERNAL_TCP_PROXY\nEXTERNAL_SSL_PROXY\nEXTERNAL_HTTP_HTTPS\nEXTERNAL_MANAGED_HTTP_HTTPS\nGLOBAL_EXTERNAL_MANAGED_HTTP_HTTPS\nGLOBAL_EXTERNAL_MANAGED_TCP_PROXY\nGLOBAL_EXTERNAL_MANAGED_SSL_PROXY\nREGIONAL_EXTERNAL_MANAGED_TCP_PROXY\nTo include all internal or all external load balancer types, use the in: prefix followed by INTERNAL or EXTERNAL. For example, allowing in:INTERNAL will allow all load balancer types from the above list that include INTERNAL. For more information about restricting load balancer types, see https://docs.cloud.google.com/load-balancing/docs/org-policy-constraints.\nSupported prefixes: is: , in:\nFor more information, see Organization policy constraints for Cloud Load Balancing .",
   "source_url": "https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints",
   "source_kind": "provider-doc",
   "license": "provider documentation",
   "read_date": "2026-11-10"
  }
 ]
}