{
  "slug": "cloud-configuration",
  "topic": "Cloud configuration",
  "status": "published",
  "order": 18,
  "capability": "infrastructure/cloud",
  "title": "Cloud configuration: which settings let attackers in, and would you notice if one changed?",
  "short": "Check Microsoft 365 and every cloud account against one free baseline this month, block public storage and long-lived keys at the top, and diff the results every week.",
  "answer": "This month, run CISA's ScubaGear against Microsoft 365 and a free posture check against each cloud, and fix public storage, long-lived access keys, open app consent and open external access first. Then lock those settings with organization-level guardrails and re-run the same checks every week, so a changed setting shows up as a diff rather than as an incident.",
  "audience": "IT, platform and security teams running Microsoft 365 with workloads in Azure, AWS or Google Cloud, in organizations of any size",
  "version": "1.1",
  "lastReviewed": "2026-11-05",
  "reviewEveryDays": 30,
  "blocks": [
    {
      "type": "ranked",
      "id": "first",
      "title": "If you only do five things",
      "navTitle": "Five things",
      "items": [
        {
          "title": "Measure against one published baseline this month.",
          "text": "Run CISA's free ScubaGear against Microsoft 365; it only reads settings[^scubagear]. Defender for Cloud's free Foundational CSPM checks Azure, AWS and Google Cloud against Microsoft's benchmark[^cspm]."
        },
        {
          "title": "Block public storage at the top.",
          "text": "Enforce S3 Block Public Access for the whole AWS organization[^s3org], set `AllowBlobPublicAccess` to false on every Azure storage account[^azanon] and enforce `storage.publicAccessPrevention` in Google Cloud[^gcpcons]. Data stores left online without access controls remain among the most common errors in the DBIR[^dbir]."
        },
        {
          "title": "Replace long-lived keys with short-lived credentials.",
          "text": "AWS traces a large portion of security events to compromised long-term access keys[^awsssec], and in late 2025 attackers broke in with AWS keys suspected to have leaked in 2022[^th]. Move people to federated sign-in and workloads to roles or managed identities, then delete the keys."
        },
        {
          "title": "Close app consent and external access in Microsoft 365.",
          "text": "Restrict user consent to verified publishers and low-risk permissions, with an admin consent workflow[^scuba]. Allow Teams external access only for named domains: confirmed vishing over cross-tenant Teams calls rose 502% in a year[^mddr]."
        },
        {
          "title": "Turn the baseline into guardrails, then diff it weekly.",
          "text": "Enforce what must never change with AWS Organizations policies, Azure Policy and Google Cloud organization policies, then re-run the assessment weekly and compare runs[^scubagear]."
        }
      ]
    },
    {
      "type": "steps",
      "id": "adopt",
      "title": "Adopt a baseline without breaking things",
      "navTitle": "Adopt a baseline",
      "items": [
        {
          "title": "Pick one baseline per platform.",
          "text": "For Microsoft 365, SCuBA, or Baseline Security Mode, which every plan has[^bsm]; for Azure, the Microsoft cloud security benchmark[^cspm]; for AWS, Foundational Security Best Practices[^fsbp]; for Google Cloud, its security baseline constraints[^gcpbase]."
        },
        {
          "title": "Assess, and write down each exception.",
          "text": "Export every failing check. Record why each one stays, who owns it and when it ends; ScubaGear's YAML config holds these as exclusions, annotations or omissions[^scubagear]."
        },
        {
          "title": "Check the impact, then fix.",
          "text": "Start with the policies CISA marks as BOD 25-01 requirements[^bod], and turn on each Baseline Security Mode setting whose impact report shows zero impact[^bsm]. For MFA settings, use the passkeys and MFA sheet."
        },
        {
          "title": "Enforce at the top of each cloud.",
          "text": "In AWS, SCPs cap what roles can do, RCPs what resources allow, and declarative policies set defaults such as IMDSv2[^orgpol][^imds]. In Azure, assign deny policies at a management group. In Google Cloud, add the baseline constraints if your organization predates 3 May 2024[^gcpbase]. Test each on one account first."
        },
        {
          "title": "Diff every week.",
          "text": "Compare each run with the last, for example with ScubaGear's `Invoke-SCuBADiff`[^scubagear]. Scan infrastructure-as-code pull requests with Checkov or a similar checker[^checkov], and treat a scheduled `terraform plan` that isn't empty as drift."
        }
      ]
    },
    {
      "type": "list",
      "id": "settings",
      "title": "Settings attackers go after",
      "navTitle": "Key settings",
      "span": "full",
      "items": [
        "**Public storage.** Google's public access prevention revokes existing public access once you enforce it[^gcpcons]. Move public sites and downloads to a separate account or project first.",
        "**Access keys and shared keys.** Attackers reach Azure Blob Storage with exposed credentials, shared keys and SAS tokens[^mddr]; accounts accept keys until `AllowSharedKeyAccess` is false[^azshared]. Google Cloud blocks service account keys in organizations created since May 2024[^gcpbase] and disables exposed ones[^th].",
        "**Instance metadata.** Require IMDSv2, which uses token-backed sessions, by account default or declarative policy. Track the `ImdsV1Enabled` and `MetadataNoToken` metrics to zero, then add `ec2:RoleDelivery` to an SCP so IMDSv1 credentials stop working[^imds].",
        "**Broad roles for workloads.** Remove wildcard actions (Security Hub controls IAM.1 and IAM.21)[^fsbp] and pin GitHub OIDC trust to one repository and branch or environment[^ghoidc]. An over-broad deploy role took UNC6426 from a stolen GitHub token to AWS administrator in under 72 hours[^th].",
        "**Guests and external access.** Let only admins and Guest Inviters invite guests, and only from approved domains[^scuba]; the external sharing sheet explains how this now also limits SharePoint sharing. Allow Teams external domains one by one and block chats from unmanaged accounts. Google Cloud's `iam.allowedPolicyMemberDomains` does the same for IAM grants[^gcpbase]. SharePoint links: see the DLP sheet.",
        "**OAuth app consent.** Microsoft's managed default for new tenants still lets users consent to permissions outside a list of mail, file, calendar and chat scopes[^consentpol]. Changes keep existing grants[^consent], so review those too. Stolen Salesloft Drift tokens let attackers bulk-export Salesforce data[^th]."
      ]
    },
    {
      "type": "list",
      "id": "changed",
      "title": "What changed in 2026",
      "navTitle": "What changed",
      "span": "full",
      "items": [
        "**Exploits overtook weak credentials in Google Cloud.** In late 2025, software flaws opened 44.5% of Google Cloud intrusions in Google's data and weak or missing credentials 27.2%; misconfiguration fell to 21%. Google suggests its secure defaults may have driven the shift[^th]. Patch within the patching sheet's deadlines.",
        "**ScubaGear 2.0 is out.** The October 2026 release adds a Security Suite baseline for Defender, Purview, Exchange Online and Teams[^scubanews], so replace `defender` with `securitysuite` in your config[^scubagear]. The Entra baseline now requires blocking risky AI agents where Agent 365 or E7 is licensed[^scuba].",
        "**Microsoft 365 moved toward secure defaults.** Baseline Security Mode, in the admin center since November 2025, covers phishing-resistant MFA for admins, legacy authentication and app consent[^bsm]. Tenant Configuration Management, generally available since April 2026, monitors over 200 settings in six workloads[^tcmga].",
        "**S3 public access can be blocked for a whole organization.** Since November 2025 one AWS Organizations policy blocks it in every account, including new ones[^s3org]."
      ]
    },
    {
      "type": "list",
      "id": "skip",
      "title": "What you can skip",
      "items": [
        "**A paid CSPM before the free checks.** ScubaGear and Defender for Cloud's Foundational CSPM cost nothing[^scubagear][^cspm]. Buy attack path analysis once the basics are closed.",
        "**Perfecting 90-day key rotation.** Security Hub checks for it[^fsbp], but AWS advises not creating long-term keys at all[^awsssec]. Remove them instead.",
        "**A home-grown baseline.** Start from a published one that someone keeps current."
      ]
    },
    {
      "type": "list",
      "id": "mistakes",
      "title": "Mistakes that cost the most",
      "navTitle": "Mistakes",
      "items": [
        "**Trusting a new default to fix old resources.** Enforcing IMDSv2 for an account leaves instances that already allow IMDSv1 alone[^imds], and consent changes keep old grants[^consent].",
        "**Running workloads in the AWS management account.** SCPs and RCPs don't restrict it[^orgpol]. Keep it for billing and organization tasks.",
        "**Exposing a test resource \"just for a day.\"** Microsoft measured a median of 5.3 hours from an exposed container's start to the first exploit attempt[^mddr]."
      ]
    },
    {
      "type": "columns",
      "id": "by-size",
      "title": "What this looks like at your size",
      "navTitle": "By team size",
      "span": "full",
      "columns": [
        {
          "title": "Small team, no security staff",
          "items": [
            "Turn on each Baseline Security Mode setting with zero impact[^bsm].",
            "Ask your IT provider for a monthly ScubaGear report and the list of consented apps and guests.",
            "Block public storage for the whole cloud organization, not account by account."
          ]
        },
        {
          "title": "Growing, with IT or security staff",
          "items": [
            "Run ScubaGear weekly from a scheduled job, guard its app certificate like an admin credential and post the diff to the team channel.",
            "Connect every cloud account to one posture tool and give each finding an owner and a due date.",
            "Make infrastructure as code the only write path, and keep console write access for emergency roles."
          ]
        },
        {
          "title": "Enterprise or regulated",
          "items": [
            "Treat BOD 25-01's mandatory SCuBA policies as your floor, as US federal civilian agencies must[^bod].",
            "Feed drift and posture findings into the SIEM, with a fix time per severity.",
            "Review changes to guardrail policies like Tier 0 code, with two people."
          ]
        }
      ]
    }
  ],
  "changes": [
    {
      "date": "2026-11-05",
      "version": "1.1",
      "text": "Noted that, since Entra B2B integration became permanent for SharePoint in July 2026, limiting guest invitations also limits SharePoint and OneDrive sharing with new outsiders; the external sharing sheet has the details."
    },
    {
      "date": "2026-11-04",
      "version": "1.0",
      "text": "Published after a copy edit and a source-by-source fact check, which corrected the Salesloft Drift example and the IMDSv1 cutover order and narrowed 4 statements to what the sources say."
    },
    {
      "date": "2026-11-04",
      "version": "0.1",
      "text": "First draft, based on CISA's SCuBA baselines and BOD 25-01, Google's Cloud Threat Horizons Report H1 2026, the 2026 DBIR, the Microsoft Digital Defense Report 2026 and AWS, Microsoft Learn and Google Cloud documentation."
    }
  ],
  "sources": [
    {
      "id": "scubagear",
      "title": "ScubaGear (README and docs)",
      "publisher": "CISA",
      "date": "v2.0.0, Oct 2026",
      "url": "https://github.com/cisagov/ScubaGear"
    },
    {
      "id": "scuba",
      "title": "CISA M365 Secure Configuration Baseline for Microsoft Entra ID",
      "publisher": "CISA (ScubaGear)",
      "date": "ScubaGear v2.0.0, Oct 2026",
      "url": "https://github.com/cisagov/ScubaGear/blob/main/PowerShell/ScubaGear/baselines/aad.md"
    },
    {
      "id": "scubanews",
      "title": "CISA Publishes Significant Updates to ScubaGear and ScubaGoggles",
      "publisher": "CISA",
      "date": "27 Oct 2026",
      "url": "https://www.cisa.gov/news-events/news/cisa-publishes-significant-updates-scubagear-and-scubagoggles"
    },
    {
      "id": "bod",
      "title": "BOD 25-01: Implementing Secure Practices for Cloud Services",
      "publisher": "CISA",
      "date": "17 Dec 2024",
      "url": "https://www.cisa.gov/news-events/directives/bod-25-01-implementing-secure-practices-cloud-services"
    },
    {
      "id": "th",
      "title": "Cloud Threat Horizons Report H1 2026",
      "publisher": "Google Cloud",
      "date": "Mar 2026",
      "url": "https://services.google.com/fh/files/misc/cloud_threat_horizons_report_h12026.pdf"
    },
    {
      "id": "dbir",
      "title": "2026 Data Breach Investigations Report",
      "publisher": "Verizon",
      "date": "19 May 2026",
      "url": "https://www.verizon.com/business/resources/T6d3/reports/2026-dbir-data-breach-investigations-report.pdf"
    },
    {
      "id": "mddr",
      "title": "Microsoft Digital Defense Report 2026",
      "publisher": "Microsoft Threat Intelligence",
      "date": "Oct 2026",
      "url": "https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/msc/documents/presentations/CSR/Microsoft-Digital-Defense-Report-2026-v1.1.pdf"
    },
    {
      "id": "bsm",
      "title": "Baseline security mode settings",
      "publisher": "Microsoft Learn",
      "date": "30 Sep 2026",
      "url": "https://learn.microsoft.com/en-us/microsoft-365/baseline-security-mode/baseline-security-mode-settings"
    },
    {
      "id": "consent",
      "title": "Configure how users consent to applications",
      "publisher": "Microsoft Learn",
      "date": "15 Jun 2025",
      "url": "https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent"
    },
    {
      "id": "consentpol",
      "title": "Manage app consent policies",
      "publisher": "Microsoft Learn",
      "date": "22 Jan 2026",
      "url": "https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/manage-app-consent-policies"
    },
    {
      "id": "tcmga",
      "title": "Tenant Configuration Management APIs are now generally available",
      "publisher": "Microsoft Entra Blog",
      "date": "23 Apr 2026",
      "url": "https://techcommunity.microsoft.com/blog/microsoft-entra-blog/tenant-configuration-management-apis-are-now-generally-available/4513157"
    },
    {
      "id": "cspm",
      "title": "What is Cloud Security Posture Management (CSPM)",
      "publisher": "Microsoft Learn",
      "date": "11 Sep 2026",
      "url": "https://learn.microsoft.com/en-us/azure/defender-for-cloud/concept-cloud-security-posture-management"
    },
    {
      "id": "azanon",
      "title": "Remediate anonymous read access to blob data",
      "publisher": "Microsoft Learn",
      "date": "15 Jul 2026",
      "url": "https://learn.microsoft.com/en-us/azure/storage/blobs/anonymous-read-access-prevent"
    },
    {
      "id": "azshared",
      "title": "Prevent Shared Key authorization for an Azure Storage account",
      "publisher": "Microsoft Learn",
      "date": "11 Aug 2026",
      "url": "https://learn.microsoft.com/en-us/azure/storage/common/shared-key-authorization-prevent"
    },
    {
      "id": "fsbp",
      "title": "AWS Foundational Security Best Practices standard in Security Hub CSPM",
      "publisher": "AWS Documentation",
      "date": "checked 4 Nov 2026",
      "url": "https://docs.aws.amazon.com/securityhub/latest/userguide/fsbp-standard.html"
    },
    {
      "id": "s3org",
      "title": "Amazon S3 Block Public Access now supports organization-level enforcement",
      "publisher": "AWS",
      "date": "26 Nov 2025",
      "url": "https://aws.amazon.com/about-aws/whats-new/2025/11/amazon-s3-block-public-access-organization-level-enforcement/"
    },
    {
      "id": "awsssec",
      "title": "Preventing unintended encryption of Amazon S3 objects",
      "publisher": "AWS Security Blog",
      "date": "updated 18 Mar 2025",
      "url": "https://aws.amazon.com/blogs/security/preventing-unintended-encryption-of-amazon-s3-objects/"
    },
    {
      "id": "imds",
      "title": "Transition to using Instance Metadata Service Version 2",
      "publisher": "AWS Documentation",
      "date": "checked 4 Nov 2026",
      "url": "https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-metadata-transition-to-version-2.html"
    },
    {
      "id": "orgpol",
      "title": "Managing organization policies with AWS Organizations",
      "publisher": "AWS Documentation",
      "date": "checked 4 Nov 2026",
      "url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html"
    },
    {
      "id": "ghoidc",
      "title": "Configuring OpenID Connect in Amazon Web Services",
      "publisher": "GitHub Docs",
      "date": "checked 4 Nov 2026",
      "url": "https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws"
    },
    {
      "id": "gcpbase",
      "title": "Manage Google Cloud security baseline constraints",
      "publisher": "Google Cloud",
      "date": "updated 26 Oct 2026",
      "url": "https://docs.cloud.google.com/organization-policy/manage-baseline-constraints"
    },
    {
      "id": "gcpcons",
      "title": "Organization policy constraints",
      "publisher": "Google Cloud",
      "date": "updated 26 Oct 2026",
      "url": "https://docs.cloud.google.com/organization-policy/reference/org-policy-constraints"
    },
    {
      "id": "checkov",
      "title": "What is Checkov?",
      "publisher": "Checkov docs",
      "date": "checked 4 Nov 2026",
      "url": "https://www.checkov.io/1.Welcome/What%20is%20Checkov.html"
    }
  ]
}