* feat(securityhub): standards subscriptions BatchEnableStandards, BatchDisableStandards, GetEnabledStandards and DescribeStandards, so Terraform's aws_securityhub_standards_subscription (and cloudposse's security-hub module) can enable CIS, AFSBP and NIST 800-53. EnableSecurityHub now subscribes AWS's default standards (AFSBP and CIS 1.2.0) unless EnableDefaultStandards is false, as AWS does. Subscriptions are READY at once; controls and findings are not evaluated. Found applying kthw-on-floci's account-baseline: every standards subscription failed with UnknownOperationException (POST /standards/register). BatchDisableStandards checks every ARN before removing any, so a batch naming one unknown subscription changes nothing (before, the removals ahead of it stuck in memory without being saved, and came back after a restart). GetEnabledStandards reads the subscriptions under the same lock the writers hold. * fix(securityhub): reject a non-boolean EnableDefaultStandards EnableSecurityHub coerced EnableDefaultStandards with asBoolean(true), so a string "false" skipped the defaults and an object enabled them, and the hub was enabled either way. The botocore model types the member boolean. Reject it with InvalidInputException before any state changes, as UpdateSecurityHubConfiguration does for AutoEnableControls. * fix(securityhub): offer CIS v5.0.0 and take ARN partitions from the region resolver Add CIS AWS Foundations Benchmark v5.0.0 (standards/cis-aws-foundations-benchmark/v/5.0.0, regional, not enabled by default) to the standards Security Hub offers. Mint every Security Hub ARN through RegionResolver: the global CIS 1.2.0 ARN takes partitionForRegion and the regional ARNs use buildArn, so a region the catalog cannot place keeps the deployment's partition instead of falling back to aws.
4.1 KiB
AWS Security Hub
Protocol: REST JSON
Endpoint: http://localhost:4566
Floci implements the AWS Security Hub CSPM organization and central-configuration surfaces used by local security-governance workflows.
Supported Actions
| Action | Description |
|---|---|
ListOrganizationAdminAccounts |
- |
EnableOrganizationAdminAccount |
- |
DescribeHub |
- |
EnableSecurityHub |
- |
UpdateSecurityHubConfiguration |
- |
DescribeStandards |
Lists the standards Security Hub offers: CIS 1.2.0, 1.4.0, 3.0.0 and 5.0.0, AFSBP, NIST 800-53 Rev5, PCI DSS 3.2.1 and 4.0.1, and the resource tagging standard |
BatchEnableStandards |
Subscribes standards (READY at once); an unknown standards ARN is InvalidInputException, a disabled hub InvalidAccessException. EnableSecurityHub subscribes AFSBP and CIS 1.2.0 unless EnableDefaultStandards is false |
BatchDisableStandards |
Removes subscriptions, answered as DELETING; an unknown one is ResourceNotFoundException, and then none of the batch is removed |
GetEnabledStandards |
Lists subscriptions, all or the named ones. Controls and findings are not evaluated |
ListFindingAggregators |
- |
CreateFindingAggregator |
- |
GetFindingAggregator |
- |
UpdateFindingAggregator |
- |
DescribeOrganizationConfiguration |
- |
UpdateOrganizationConfiguration |
- |
ListConfigurationPolicies |
- |
CreateConfigurationPolicy |
- |
GetConfigurationPolicy |
- |
UpdateConfigurationPolicy |
- |
GetConfigurationPolicyAssociation |
- |
StartConfigurationPolicyAssociation |
- |
StartConfigurationPolicyDisassociation |
- |
ListConfigurationPolicyAssociations |
- |
ListTagsForResource |
- |
TagResource |
- |
UntagResource |
- |
Supported behavior
The supported surface includes Security Hub CSPM enablement and configuration, delegated administrator management, finding aggregators, organization configuration, configuration policies, policy associations, and resource tags.
EnableOrganizationAdminAccount supports the AWS SecurityHub and SecurityHubV2 feature values. Legacy SecurityHub delegation enables Security Hub CSPM for the delegated administrator in the current Region, matching AWS organization behavior.
Finding aggregators support ALL_REGIONS, ALL_REGIONS_EXCEPT_SPECIFIED, SPECIFIED_REGIONS, and NO_REGIONS. GetFindingAggregator accepts the complete finding-aggregator ARN carried in the greedy AWS REST path.
Central organization configuration models asynchronous convergence. Changing to CENTRAL first reports organization status PENDING; a subsequent poll converges to ENABLED. Central configuration forces AutoEnable to false and AutoEnableStandards to NONE, as AWS does in the home and linked Regions. Configuration-policy association behaves similarly with PENDING followed by SUCCESS. Disassociation is represented as a pending transition before the association disappears.
Configuration-policy and hub tags are persisted and returned through the shared Security Hub tagging routes. Tag keys and values use the AWS Security Hub constraints, including the reserved aws: prefix restriction.
AWS-compatible failures
Floci validates administrator account IDs and features, finding-aggregator modes and Region lists, central-configuration input, policy names and documents, target identifiers, tags, and association state. Deterministic failures use AWS-modeled errors, including InvalidInputException, InvalidAccessException, ResourceNotFoundException, ResourceConflictException, and LimitExceededException.
AWS also defines provider-side InternalException and rate-limit failures. Floci does not inject those failures without a request or local state condition that causes them.
See the AWS Security Hub API Reference.
Configuration
| Variable | Default | Description |
|---|---|---|
FLOCI_SERVICES_SECURITYHUB_ENABLED |
true |
Enable or disable AWS Security Hub CSPM |