latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

Controls

Controls are the rules that keep the environment safe. Logging can't be switched off. Nobody gets a permanent AWS login. Storage can't be opened to the public by accident.

Each rule is written as code and enforced automatically. Each one is also tested, in one of two ways: a read-only script checks the live accounts, or an automated test checks every change before it ships.

Each control here is traced through four links, from the written rule to a check anyone can rerun.

Which standards each control maps to, by ISO 27001, SOC 2 and other framework IDs. Classed one framework control at a time, they are on the compliance pages.

The figures below show how many rules passed their latest test. The table under them lists every rule, the code that enforces it and the test that proves it.

  • Verified36/3625 by the live run, 11 by checks on every change
  • Controls passing the run25/25run 11-15
  • Failing0a regression shows here, not as a gap
  • Risk-accepted findings →13each with a reason; a Guard exception expires

Control table

results from run

Table scrolls sideways. Result and control stay pinned. →

ResultControlWhat it enforcesPolicy textAttached toVerified byFrameworks
Organization policies · 14 controls
PASSSCP-01Deny leaving the org, closing accounts and changing account contact or billing settingsorg/hkb-org-scp.yamlhkb-scp-core-protection: Scp01DenyLeaveCloseAndAccountSettingsRootINV-03ISO 2
SOC 2 2
PASSSCP-03Protect the security baseline: no stopping or deleting CloudTrail, Config, GuardDuty, Security Hub or Access Analyzer; hkb-baseline-* roles and stacks changed only by the StackSets execution role; IMDSv2 required at launch, with no switching back afterwardsorg/hkb-org-scp.yamlhkb-scp-baseline-protection: Scp03DenyDisablingSecurityServices, Scp03DenyBaselineRoleChanges, Scp03DenyBaselineStackChangesRootINV-03ISO 3
SOC 2 2
PASSSCP-04No long-lived credentials: no IAM users, access keys or console passwordsorg/hkb-org-scp.yamlhkb-scp-core-protection: Scp04DenyLongLivedCredentialsRootINV-03, INV-05ISO 3
SOC 2 2
PASSSCP-05Data protection: account-level S3 Block Public Access can't be weakened; KMS keys are deleted only by the pipeline and AWS-managed deployment rolesorg/hkb-org-scp.yamlhkb-scp-core-protection: Scp05DenyWeakeningS3PublicAccessBlock, Scp05DenyKmsKeyDeletionRootINV-03ISO 2
SOC 2 2
PASSSCP-06AI allowlist: Bedrock only in the Workloads and Sandbox OUs, approved models only, no provisioned throughput or customizationorg/hkb-org-scp.yamlhkb-scp-ai-and-cost-guardrails: Scp06DenyBedrockOutsideWorkloadsAndSandbox, Scp06DenyUnapprovedModels, Scp06DenyThroughputAndCustomizationRootINV-03ISO 1
SOC 2 2
PASSSCP-07Cost guardrails: EC2 and NAT only in Workloads and Sandbox, instance-type allowlist, no OpenSearch Serverless, reserved purchases or Marketplace subscriptionsorg/hkb-org-scp.yamlhkb-scp-ai-and-cost-guardrails: Scp07DenyEc2AndNatOutsideWorkloadsAndSandbox, Scp07DenyUnapprovedInstanceTypes, Scp07DenyOpenSearchServerlessReservedAndMarketplaceRootINV-03, INV-07, INV-08ISO 1
SOC 2 2
PASSSCP-08Deny all: quarantine for a compromised accountorg/hkb-org-scp.yamlhkb-scp-suspended-deny-all: Scp08DenyAllSuspended OUINV-03ISO 2
SOC 2 1
PASSSCP-09Deny all root-user actions except task-scoped root sessions (D42)org/hkb-org-scp.yamlhkb-scp-deny-root: Scp09DenyRootExceptTaskSessionsEach member account, directlyINV-03ISO 2
SOC 2 2
PASSSCP-10Sandbox isolation: no peering, Transit Gateway or resource shares, no roles in other accounts, no public IPs, Elastic IPs or internet-facing load balancers, narrow instance allowlistorg/hkb-org-scp.yamlhkb-scp-sandbox-guardrails: Scp10DenyPeeringTransitGatewayAndResourceShares, Scp10DenyAssumingRolesInOtherAccounts, Scp10DenyPublicIpsOnInstances, Scp10DenyElasticIps, Scp10DenyInternetFacingLoadBalancers, Scp10DenyUnapprovedInstanceTypesSandbox OUINV-03, S5-02ISO 2
SOC 2 1
PASSRCP-01Data perimeter: S3, KMS, Secrets Manager and STS deny principals outside the org; AWS service principals exemptorg/hkb-org-rcp.yamlhkb-rcp-data-perimeter: Rcp01DenyPrincipalsOutsideOrganizationRootINV-04ISO 3
SOC 2 3
PASSRCP-02Deny non-TLS requests to S3, KMS and Secrets Managerorg/hkb-org-rcp.yamlhkb-rcp-tls-only: Rcp02DenyNonTlsRequestsRootINV-04ISO 2
SOC 2 1
PASSAIO-01Opt every account out of AWS AI services using content for service improvementorg/hkb-org-mgmt-policies.yamlhkb-aio-opt-outRootINV-04ISO 2
SOC 2 2
PASSTAG-01Standard tag keys and allowed values; report-only in Organizations, enforced in the pipeline by GR-03org/hkb-org-mgmt-policies.yamlhkb-tag-standardRootINV-04, S4-04ISO 1
SOC 2 1
PASSDEC-01Block public AMI sharing and all public snapshot sharing. IMDSv2 isn't part of it: Organizations rejects instance_metadata_defaults, so SCP-03 enforces itorg/hkb-org-declarative.yamlhkb-dec-ec2-baselineRootINV-04ISO 2
SOC 2 2
Template rules (Guard) · 5 controls
PASSGR-02Every IAM role HKB creates carries a permissions boundaryguard/rules/gr-02-role-boundary.guardevery template, in CI and ValidateS3-07ISO 2
SOC 2 2
PASSGR-03TAG-01 tag keys on taggable resources; hkb- names on named resourcesguard/rules/gr-03-tags-and-names.guardevery template, in CI and ValidateS4-04ISO 1
PASSGR-04No IAM users, access keys or login profiles in any template (D8)guard/rules/gr-04-no-iam-users.guardevery template, in CI and ValidateINV-05ISO 2
SOC 2 2
n/aGR-05S3 baseline: Block Public Access on, SSE-KMS, a bucket policy that denies non-TLS requestsguard/rules/gr-05-s3-baseline.guardevery template, in CI and Validatenone yetISO 2
SOC 2 2
n/aGR-06Stateful resources retain on delete and replace; symmetric KMS keys rotateguard/rules/gr-06-stateful-retain.guardevery template, in CI and Validatenone yetISO 2
SOC 2 2
Pipeline and repository checks · 9 controls
n/acfn-lint on every template—CI and Validate; blocks the pipelinen/a—
n/aIAM Access Analyzer validate-policy on every policy in a template (fails on ERROR and SECURITY_WARNING)—Validate (pipeline/scripts/validate_policies.py); blocks the pipelinen/a—
n/agitleaks secret scan—CI and Validate; blocks the pipelinen/a—
n/ashellcheck on verify/ at warning severity—CI; advisory, R-03n/a—
n/aExceptions expiry: a past date fails, a date within 14 days warns—CI; advisory, R-03n/a—
n/aGuard Rules Registry, Well-Architected Security Pillar set—Validate; does not blockn/a—
n/aNo IDs in templates; pipeline ID parameters are SSM-typed—verifier S2-11; does not blockn/a—
n/aTwo pipelines, each with its own orchestrator, stages and path-filtered trigger; the site deploy roles trust only the site orchestrator (step 3.14, DQ-82, ADR-0043)—verifier S2-14; does not blockn/a—
n/aCI-01Checkov on every template in cfn-lint's list; each skipped check carries a reason and an expiry in guard/exceptions.yaml and a matching skip in the resource's Metadata (TL.6, DQ-140)—CI; advisory, R-03n/aISO 2
SOC 2 2
Identity, alerting and cost · 8 controls
PASSNo IAM usersNo IAM users in master or any readable member——INV-05—
PASSRetired master deployerhkb-master-deployer is gone——S2-05—
PASSNo cross-account trust into masterNo IAM role in master trusts another account (Control Tower and service-linked roles excepted, and hkb-scanner, held to hkb-tool-prowler in Security under hkb-scanner-boundary)——S2-12—
PASSNo Bootstrap-Admin access pathNo Bootstrap-Admin assignment in any account and no bootstrap-admins group (DQ-21)——S2-07—
PASSRead-only access worksHKB-ReadOnly opens a session in every existing member——S1-05—
PASSMaster alertsEight EventBridge rules enabled; hkb-master-alerts topic present——INV-09—
PASSNo idle billable resourcesNo NAT gateways, Elastic IPs or EC2 outside the expected set——INV-07—
PASSSpend limitMonth-to-date spend under the stage limit——INV-08—

★ Starred page 2 of 5 · Next: Evidence →

Child pages

  • Policy catalogPolicy catalog: every HKB SCP, RCP and other organization policy, as deployed.
  • Template rulesTemplate rules: every Guard rule HKB runs on its CloudFormation templates, with its text.
  • Risk-accepted findingsHKB findings risk-accepted rather than remediated, each with its reason, where it is recorded and its expiry.
  • Standards per controlEach HKB control and the ISO 27001, SOC 2 and other framework controls it maps to.
  • Data classification standardHKB data classification standard: Public, Shared, Internal and Restricted tiers, with handling and enforcement per tier.
  • Privacy noticeWhat the HKB site logs about visitors, where it is kept, for how long, who can read it and what is published.

Page information

Owner
Security Engineering
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
docs/evidence/README.md, site/content/controls-intro.md, guard
Linked from
Architecture, Risk-accepted findings, Standards per control, ISO 27001 Statement of Applicability, SOC 2 view, Findings review and 16 more