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

Starred pages

Pages

Page directory · Labels · [ hides this

H-13. Findings review fixes (step 7.2)

11 manual steps. The rebuild guide explains the columns, the identities and the change-set commands.

# Action Where Identity How Why not code Check
H-13.1 Account Factory creates no VPC for new accounts (DQ-154): Account Factory, Network configuration, Edit; clear every Region under "Regions for VPC creation", and set private subnets to 0 with the internet-accessible subnet off master, Control Tower console MasterAdmin console AWS documents this setting only in the console the page shows no Regions selected
H-13.2 Delete the 14 unused VPCs (DQ-154): the default VPCs in master, Log Archive and Security, and Control Tower's aws-controltower-VPC in Shared Services, Dev, Prod and Sandbox, both Regions. After H-13.1 all seven accounts, both MasterAdmin, CT-Exec unused-vpcs.sh plan, then unused-vpcs.sh run. Default VPCs are deleted directly; Control Tower's are removed from the AWSControlTowerBP-VPC-ACCOUNT-FACTORY-V1 StackSet, so CloudFormation deletes its own stacks (AWS's documented path). It refuses any VPC with a network interface or a non-gateway endpoint, and never touches hkb-vpc the VPCs are AWS's and Control Tower's, not HKB's code the run's "After" list shows none; EC2.2, 6, 10, 15, 55 to 58 and 60 clear in Security Hub within a day
H-13.3 Termination protection on every top-level hkb-* stack (DQ-156 A; 67 stacks on 2026-11-08). A deliberate delete turns it off on that one stack first all seven accounts, both MasterAdmin, CT-Exec termination-protection.sh plan, then run; before a delete, termination-protection.sh off <account> <region> <stack> it is a stack setting, not a template property, and the pipeline's change-set actions can't set it plan lists every stack as on; CloudFormation.3 clears for hkb-* stacks
H-13.4 Master's account settings (step 7.2): EBS default encryption, SSM document public sharing off and Automation script logs to CloudWatch, both Regions; VPC Block Public Access both ways where there is no VPC (DQ-159 A, added after the first run); the IAM password policy with hkb-baseline-account's values master, both MasterAdmin master-settings.sh plan, then run the members get these from the hkb-baseline-account StackSet, which doesn't reach master plan shows every setting as wanted; S7-04, S7-07; EC2.7, EC2.172, SSM.6, SSM.7, IAM.7, 15 and 16 clear for master
H-13.5 Remove the rules from each workload VPC's default security group (EC2.2). Nothing uses the group; a rebuilt hkb-vpc gets a new one, so repeat after a rebuild Sandbox, Dev, Prod CT-Exec default-sg.sh plan, then run; it refuses a group any network interface uses AWS makes the rules with the VPC and CloudFormation can't remove them S7-05
H-13.6 The HKB-Support permission set (AWSSupportAccess only, one hour) assigned to hkb-admins in every account (IAM.18, DQ-157 A) master MasterAdmin ms hkb-bootstrap-identity, review (one permission set and seven assignments added, nothing else), then exec DQ-24 S7-06
H-13.7 hkb-pipeline-boundary's master copy gains ec2:DescribeVpcs and ec2:*VpcBlockPublicAccessOptions, to match the members' (DQ-159 A) master MasterAdmin ms hkb-bootstrap-boundary, review (one policy modified, two actions added, nothing else), then exec DQ-24 the two boundary texts match
H-13.8 GuardDuty's DQ-155 plans on: EKS audit, RDS, EC2 malware, and Runtime Monitoring with the EKS and ECS agents (the EC2 agent and AI Protection off). Security's detector first, then organization auto-enable and master, in each Region Security, both CT-Exec, then MasterAdmin and CT-Exec security.sh services-plan <region>, review (only Detector modified, the Features list), services-exec <region> <cs>; then security.sh gd-enroll <region> (H-7.9, which first sets master's malware-scan trusted access and service-linked role) the organization configuration has no CloudFormation resource (DQ-85), and master's stack can't change a member's plans (DQ-160) S3-02 once the members follow, within 24 hours; then S7-03 after the next drift run; GuardDuty.5, 7, 8, 9, 11 and 12 clear
H-13.9 Inspector EC2 and ECR scanning in all seven accounts, master included (DQ-155): trusted access for inspector2.amazonaws.com and Security as the delegated admin, then organization auto-enable (EC2 and ECR only) and every existing account enabled. Lambda and Lambda code scanning stay off; AWS turns every scan type on for the delegated admin when it is designated, so the enroll step turns Lambda off in Security again. In each Region master, then Security, both MasterAdmin, then CT-Exec security.sh inspector (both Regions: inspector-admin, then inspector-enroll; each also runs alone with a Region) Inspector's organization settings have no CloudFormation resource, and the CLI path doesn't turn trusted access on by itself the enroll's table shows EC2 and ECR ENABLED (or ENABLING) and Lambda DISABLED for all seven; S7-12; Inspector.1 and Inspector.2 clear in Security Hub within a day
H-13.10 Macie in all seven accounts, master included, with automated discovery off (DQ-155): HKB-ReadOnly gains the Macie setup reads (never GetSensitiveDataOccurrences); Macie on in master, with discovery off while it stands alone, and Security as the delegated admin; then, in Security, discovery off for the organization before any member joins, auto-enable for new accounts, and every other account added as a member. In each Region master, then Security, both MasterAdmin, then CT-Exec ms hkb-bootstrap-identity, review (only ReadOnlySet modified, seven macie2 reads added, nothing else), then exec; then security.sh macie (both Regions: macie-admin, then macie-enroll; each also runs alone with a Region) Macie's organization settings and its automated discovery have no CloudFormation resource (AWS::Macie::Session only turns Macie on), and Security can't add master until master has Macie the enroll lists six members as Enabled and discovery as DISABLED NONE; S7-13; Macie.1 clears in Security Hub within a day, and Macie.2 then fails in Security (discovery off, accepted on budget)
H-13.11 The organization's S3 data-events trail, hkb-s3-data-events (S3.22, S3.23; DQ-163 to DQ-167): first the Control Tower key's policy gains a statement for the trail; then, in Log Archive, the data-events bucket and its access-log bucket (90-day expiry); then the trail in master, organization-wide, every Region, S3 object reads and writes only, log file validation, the Control Tower key. us-east-1 only (the trail logs every Region) master, then Log Archive, then master MasterAdmin, then CT-Exec, then MasterAdmin ms hkb-security-controltower-key, review (only ControlTowerLogsKey modified, one key-policy statement added), then exec; log-archive.sh data-events-plan, review (two buckets and two policies added), then data-events-exec; ms hkb-bootstrap-identity, review (only the permission sets' inline policy: the trail deny split, DQ-167), then exec; ms hkb-master-data-events, review (one trail added), then exec master owns every organization trail, so the stack is there (DQ-164). MasterAdmin's trail deny first blocked even CloudFormation (2026-11-12: the create left a trail logging management events and the stack ROLLBACK_FAILED; after the split, master-stack.sh hkb-master-data-events delete-failed removes both). RecursiveLogging has no CloudFormation property and the trail takes no direct change, so it stays on (DQ-167) S7-14; S3.22 and S3.23 clear in Security Hub within a day; CloudTrail.5 fails for the new trail (accepted on budget, DQ-165)

H-13.8 ran on 2026-11-10 (Security's change sets cs-1794344240 in us-east-1, cs-1794349620 in us-west-2). The first gd-enroll in us-east-1 left master's malware and Runtime Monitoring plans off, because the new service-linked role wasn't usable yet. A rerun set them. gd-enroll now prints GuardDuty's reason when a plan doesn't set (#297), so rerun it if S3-02 names master.

H-13.9 ran on 2026-11-10. The first run failed at enroll with "Invoking account is not enabled": registering the delegated admin from the CLI doesn't switch Inspector on in Security (the console does, with every scan type). security.sh inspector now enables EC2 and ECR in Security first (#301), so Lambda scanning never comes on there.

H-13.10 ran on 2026-11-11. Automated discovery ran for 9 seconds in Security's us-west-2 before the enroll turned it off. S7-13 first failed on a discovery list that had never been enabled; it now reads that as none on (#307).

Page information

Owner
Platform Engineering
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
docs/runbooks/hand-steps.md
Linked from
Rebuild from zero
Plain markdown
/wiki/rebuild/h-13/index.md