🐧 Linux TippsDebian 11 Long Term Support reaches end-of-life(31.08.2026 um 02:00 Uhr)
🐧 Linux TippsUpdated Debian 13: 13.7 released(12.09.2026 um 02:00 Uhr)
🕵️ SicherheitslückenUSN-8741-1: Flatpak vulnerabilities(10.09.2026 um 10:44 Uhr)
🕵️ SicherheitslückenUSN-8742-1: Netty vulnerability(10.09.2026 um 11:01 Uhr)
🕵️ SicherheitslückenUSN-8737-2: GNU C Library vulnerabilities(10.09.2026 um 13:25 Uhr)
🕵️ SicherheitslückenUSN-8743-1: PHP vulnerabilities(10.09.2026 um 13:48 Uhr)
🕵️ SicherheitslückenUSN-8744-1: Python vulnerabilities(10.09.2026 um 15:53 Uhr)
🐧 Linux TippsUSN-8748-1: Linux kernel (NVIDIA) vulnerabilities(10.09.2026 um 17:32 Uhr)
🕵️ SicherheitslückenUSN-8745-1: KissFFT vulnerabilities(10.09.2026 um 17:36 Uhr)
🕵️ SicherheitslückenUSN-8746-1: libEBML vulnerability(10.09.2026 um 17:48 Uhr)
🐧 Linux TippsDebian 11 Long Term Support reaches end-of-life(31.08.2026 um 02:00 Uhr)
🐧 Linux TippsUpdated Debian 13: 13.7 released(12.09.2026 um 02:00 Uhr)
🕵️ SicherheitslückenUSN-8741-1: Flatpak vulnerabilities(10.09.2026 um 10:44 Uhr)
🕵️ SicherheitslückenUSN-8742-1: Netty vulnerability(10.09.2026 um 11:01 Uhr)
🕵️ SicherheitslückenUSN-8737-2: GNU C Library vulnerabilities(10.09.2026 um 13:25 Uhr)
🕵️ SicherheitslückenUSN-8743-1: PHP vulnerabilities(10.09.2026 um 13:48 Uhr)
🕵️ SicherheitslückenUSN-8744-1: Python vulnerabilities(10.09.2026 um 15:53 Uhr)
🐧 Linux TippsUSN-8748-1: Linux kernel (NVIDIA) vulnerabilities(10.09.2026 um 17:32 Uhr)
🕵️ SicherheitslückenUSN-8745-1: KissFFT vulnerabilities(10.09.2026 um 17:36 Uhr)
🕵️ SicherheitslückenUSN-8746-1: libEBML vulnerability(10.09.2026 um 17:48 Uhr)

🔧 Programmierung 🕛 vor 1 Jahr 6 Min Lesezeit SECURITY-FEED
0

Streamlining AWS Security Hub and Policy Management for Organizations with Terraform

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




1. Security Hub for Organization



AWS Security Hub offers a comprehensive overview of your AWS infrastructure's security posture, helping you monitor and maintain compliance with industry standards and best practices.





2.2.1. Centrally managed

A target that only the delegated administrator can configure across Regions by using configuration policies.



The delegated administrator account specifies whether a target is centrally managed. The delegated administrator can also change a target's status from centrally managed to self-managed, or the other way around via Security Hub configuration.



centrally-managed implies the presence of a central team responsible for enforcing and managing the mandatory Security Hub standards and controls across the organization. This approach ensures that all accounts within the organization adhere to unified security standards.



2.2.2. Self-managed

A target that manages its own Security Hub configurations. A self-managed target uses account-specific operations to configure Security Hub for itself separately in each Region. This is in contrast to centrally managed targets, which are configurable only by the delegated administrator across Regions through configuration policies.





3. Enable Security Hub and Central Configuration using Terraform



In the following sections, we will explore how to enable Security Hub for AWS Organization, activate central configuration, and create configuration policies using Terraform.



i. Enable Security Hub and designate a Delegated Admin account for AWS Organization.




CODE
resource "aws_organizations_organization" "add_sh_service_principal" {
aws_service_access_principals = ["securityhub.amazonaws.com"]
feature_set = "ALL"
}

resource "aws_securityhub_organization_admin_account" "add_securityhub_admin" {
admin_account_id = "123456789012"
depends_on = [aws_organizations_organization.add_sh_service_principal]
}






Note: Above Terraform code must be executed in management account.



ii. Enable Security Hub configuration as central configuration




CODE
resource "aws_securityhub_organization_configuration" "enable_central_config" {
auto_enable = false
auto_enable_standards = "NONE"
organization_configuration {
configuration_type = "CENTRAL"
}
}






Once you enable the Security Hub configuration type to CENTRAL all the accounts in the member accounts will be updated as self-managed. you can see this by going to security hub service then under configuration.



iii. Example Terraform code to enable one security standard




CODE
resource "aws_securityhub_configuration_policy" "aws_foundational_standard" {
name = "AWS-Foundational-Standard"
description = "This is an example to enable single security standard"
configuration_policy {
service_enabled = true
enabled_standard_arns = [
"arn:aws:securityhub:us-east-1::standards/aws-foundational-security-best-practices/v/1.0.0"
]
security_controls_configuration {
disabled_control_identifiers = []
}
}
depends_on = [aws_securityhub_organization_configuration.enable_central_config]
}






iv. Example Terraform code to enable single security control




CODE
resource "aws_securityhub_configuration_policy" "block_s3_public_access" {
name = "Block-S3-Public-Access"
description = "This is an example to enable single security control in the standard"
configuration_policy {
service_enabled = true
enabled_standard_arns = [
"arn:aws:securityhub:us-east-1::standards/aws-foundational-security-best-practices/v/1.0.0"
]
security_controls_configuration {
enabled_control_identifiers = [
"S3.8"
]
}
}
depends_on = [aws_securityhub_organization_configuration.enable_central_config]
}






v. Example Terraform code to enable one standard and disable single security control




CODE
resource "aws_securityhub_configuration_policy" "block_s3_public_access" {
name = "Disable-Block-S3-Public-Access"
description = "This is an example to enable disable security control in the aws foundational standard"
configuration_policy {
service_enabled = true
enabled_standard_arns = [
"arn:aws:securityhub:us-east-1::standards/aws-foundational-security-best-practices/v/1.0.0"
]
security_controls_configuration {
disabled_control_identifiers = [
"S3.8"
]
}
}
depends_on = [aws_securityhub_organization_configuration.enable_central_config]
}






vi. Example Terraform code to attach the configuration policy for specific OU




CODE
resource "aws_securityhub_configuration_policy_association" "associate_ou" {
target_id = "<OU_ID>"
policy_id = aws_securityhub_configuration_policy.aws_foundational_standard.id
}






Vii. Example Terraform code to attach the configuration policy with single account




CODE
resource "aws_securityhub_configuration_policy_association" "associate_account" {
target_id = "111122223333"
policy_id = aws_securityhub_configuration_policy.block_s3_public_access.id
}









4. Other Key Features of Security Hub




  • Automation Rules: You can use automation rules in AWS Security Hub to automatically update findings. When findings are received, Security Hub can take actions like hiding findings, changing their severity, or adding notes. These actions are applied to findings that meet the conditions you set.


  • Cross-Region aggregation: With AWS Security Hub, you can aggregate findings, updates, insights, compliance statuses, and security scores from multiple AWS Regions into a single home Region, allowing you to manage all the data centrally.


  • Centralize Dashboard: You can customize the Summary dashboard in the AWS Security Hub console to display only the security data that matters most to you.


  • Integrations: AWS Security Hub can ingest security findings from several AWS services and supported third-party AWS Partner Network security solutions.








I welcome your feedback and suggestions on alternative best practices. If you have any other methods or approaches that you believe are more effective than the one mentioned, please feel free to share your insights by leaving a comment. I value diverse perspectives and are open to exploring different approaches to achieve optimal results. Your suggestions are greatly appreciated!


Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:
Community Threat-Level Barometer
Live Votum

Wie stufst du das Risiko dieser Schwachstelle / Bedrohung für dein Unternehmen ein?

Noch keine Stimmen — schätze das Risiko als Erster ein.

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Debian 11 Long Term Support reaches end-of-life
1 Quelle
Updated Debian 13: 13.7 released
1 Quelle
USN-8741-1: Flatpak vulnerabilities
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Streamlining AWS Security Hub and Policy Management for Organizations with Terraform

Thematisch verwandte Begriffe: Streamlining, Security, Policy, Management · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...