Skip to main content

Security Hub CIS Benchmark

๐Ÿ“ฆ Overviewโ€‹

This Terraform module enables AWS Security Hub and subscribes the account to the CIS AWS Foundations Benchmark v1.4.0 standard.

It provides a turnkey security compliance baseline for AWS environments, ideal for audit-readiness and best-practice alignment.


โœ… Key Featuresโ€‹

  • Enables AWS Security Hub in a specific region
  • Automatically subscribes to the CIS AWS Foundations Benchmark v1.4.0
  • Tags the deployment environment for tracking
  • Outputs status and subscription reference

๐Ÿ’ผ Use Casesโ€‹

  • Establishing a CIS-compliant AWS environment
  • Jumpstarting cloud security posture management
  • Meeting audit or industry security framework requirements
  • Adding continuous monitoring to AWS accounts

๐Ÿ“ฅ Input Variablesโ€‹

NameTypeDescription
regionstringAWS region where Security Hub will be enabled
environmentstringDeployment environment tag (e.g., dev, staging, prod)

๐Ÿ“ค Outputsโ€‹

NameDescription
security_hub_statusIndicates whether Security Hub was successfully enabled
cis_standard_subscription_arnARN of the CIS AWS Foundations Benchmark subscription

๐Ÿš€ Deployment Readinessโ€‹

  • โœ… Compatible with Terraform 1.0+
  • โœ… Tested with AWS provider 5.x
  • ๐Ÿงช Requires permissions for securityhub:*

๐Ÿ› ๏ธ Example Usageโ€‹

module "security_hub_standard" {
source = "git::ssh://git@github.com/archiphire/aws-level-1-modules.git//security/security-hub-standard?ref=v1.0.0"

region = "us-east-1"
environment = "prod"
}
terraform init
terraform plan
terraform apply

or

tofu init
tofu plan
tofu apply

๐Ÿงน Cleanup Optionsโ€‹

Terraform Destroy (for isolated test environments):

terraform destroy

or

tofu destroy

Manual Deletion (for production environments):

If integrated with monitoring workflows or central compliance accounts, disable Security Hub manually via the AWS Console or CLI.

๐Ÿ›ก๏ธ Notesโ€‹

This is a Level 1 security module meant to provide out-of-the-box CIS Benchmark alignment.

For broader enterprise deployments or organization-wide aggregation, extend with AWS Organizations integrations, delegated admin settings, or alert routing to SIEM/SOAR platforms.

๐Ÿ”’ Deployment Package Noticeโ€‹

This module is part of the Level 1 AWS License Tier. To access the full deployment package and source code, subscribe to Archiphire.