Skip to content

Feature Request: Security Hub #6674

@gazoakley

Description

@gazoakley

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

AWS has announced Security Hub: https://aws.amazon.com/security-hub/

New or Affected Resource(s)

  • aws_securityhub_account
  • aws_securityhub_action_target
  • aws_securityhub_member
  • aws_securityhub_product_subscription
  • aws_securityhub_standards_subscription
  • aws_securityhub_organization_admin_account
  • aws_securityhub_invite_accepter
  • aws_securityhub_insight

Potential Terraform Configuration

# Used to enable AWS Security Hub
resource "aws_securityhub_account" "example" {}

# Subscribe to the CIS AWS Foundations Benchmark
resource "aws_securityhub_standards_subscription" "example" {
  depends_on    = ["aws_securityhub_account.example"]
  standards_arn = "arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0"
}

# Subscribe to a third party provider
data "aws_region" "current" {}

resource "aws_securityhub_product_subscription" "example" {
  depends_on  = ["aws_securityhub_account.example"]
  product_arn = "arn:aws:securityhub:${data.aws_region.current.name}:679703615338:product/armordefense/armoranywhere"
}

# Add a member AWS account
resource "aws_securityhub_member" "example" {
  depends_on = ["aws_securityhub_account.example"]
  account_id = "123456789012"
  email      = "example@example.com"
  invite       = true
}

resource "aws_securityhub_account" "invitee" {
  provider = "aws.invitee"
}

resource "aws_securityhub_invite_accepter" "invitee" {
  provider   = "aws.invitee"
  depends_on = ["aws_securityhub_account.invitee"]
  master_id  = "${aws_securityhub_invitation.example.master_id}"
}

# Create an insight (group of findings)
resource "aws_securityhub_insight" "example" {
  depends_on         = ["aws_securityhub_account.example"]
  name               = "Example"
  group_by_attribute = "AwsAccountId"

  filters {
    generator_id {
      comparison = "EQUALS"
      value      = "123456"
    }
  }
}

Product ARNs

Remember to replace ${var.region} as appropriate (or define that variable)

  • arn:aws:securityhub:${var.region}::product/aws/guardduty
  • arn:aws:securityhub:${var.region}::product/aws/inspector
  • arn:aws:securityhub:${var.region}::product/aws/macie
  • arn:aws:securityhub:${var.region}:733251395267:product/alertlogic/althreatmanagement
  • arn:aws:securityhub:${var.region}:679703615338:product/armordefense/armoranywhere
  • arn:aws:securityhub:${var.region}:151784055945:product/barracuda/cloudsecurityguardian
  • arn:aws:securityhub:${var.region}:758245563457:product/checkpoint/cloudguard-iaas
  • arn:aws:securityhub:${var.region}:634729597623:product/checkpoint/dome9-arc
  • arn:aws:securityhub:${var.region}:517716713836:product/crowdstrike/crowdstrike-falcon
  • arn:aws:securityhub:${var.region}:749430749651:product/cyberark/cyberark-pta
  • arn:aws:securityhub:${var.region}:250871914685:product/f5networks/f5-advanced-waf
  • arn:aws:securityhub:${var.region}:123073262904:product/fortinet/fortigate
  • arn:aws:securityhub:${var.region}:324264561773:product/guardicore/aws-infection-monkey
  • arn:aws:securityhub:${var.region}:324264561773:product/guardicore/guardicore
  • arn:aws:securityhub:${var.region}:949680696695:product/ibm/qradar-siem
  • arn:aws:securityhub:${var.region}:955745153808:product/imperva/imperva-attack-analytics
  • arn:aws:securityhub:${var.region}:297986523463:product/mcafee-skyhigh/mcafee-mvision-cloud-aws
  • arn:aws:securityhub:${var.region}:188619942792:product/paloaltonetworks/redlock
  • arn:aws:securityhub:${var.region}:122442690527:product/paloaltonetworks/vm-series
  • arn:aws:securityhub:${var.region}:805950163170:product/qualys/qualys-pc
  • arn:aws:securityhub:${var.region}:805950163170:product/qualys/qualys-vm
  • arn:aws:securityhub:${var.region}:336818582268:product/rapid7/insightvm
  • arn:aws:securityhub:${var.region}:062897671886:product/sophos/sophos-server-protection
  • arn:aws:securityhub:${var.region}:112543817624:product/splunk/splunk-enterprise
  • arn:aws:securityhub:${var.region}:112543817624:product/splunk/splunk-phantom
  • arn:aws:securityhub:${var.region}:956882708938:product/sumologicinc/sumologic-mda
  • arn:aws:securityhub:${var.region}:754237914691:product/symantec-corp/symantec-cwp
  • arn:aws:securityhub:${var.region}:422820575223:product/tenable/tenable-io
  • arn:aws:securityhub:${var.region}:679593333241:product/trend-micro/deep-security
  • arn:aws:securityhub:${var.region}:453761072151:product/turbot/turbot
  • arn:aws:securityhub:${var.region}:496947949261:product/twistlock/twistlock-enterprise

References

aws_securityhub_account

aws_securityhub_member

aws_securityhub_invite_accepter

aws_securityhub_insight

aws_securityhub_standards_subscription

aws_securityhub_product_subscription

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-resourceIntroduces a new resource.service/securityhubIssues and PRs that pertain to the securityhub service.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions