// cat ./projects/coldtrace.md

IN PROGRESS · 2026 — Present

COLDTRACE

Cross-Account AWS Incident Response Automation

An open-source Terraform toolkit that turns a Security Hub finding into an automated response: EventBridge routes it to a Lambda orchestrator, which decides whether to act and invokes the fix as an SSM Automation document — reviewable and testable independently of the detection wiring.

TerraformAWSSecurity HubEventBridgeLambdaSSM AutomationPython

## Problem

Security Hub already flags misconfigurations across an organization, but turning a raised finding into a contained account still took a human reading the finding, finding the right runbook, and acting by hand — once per account, every time.

## Architecture

A Security Hub finding fires an EventBridge rule, which invokes a Lambda orchestrator deployed once in a hub account. The orchestrator decides whether to act; if so, it invokes the matching SSM Automation document, which holds the actual remediation logic kept separate from the detection wiring so it can be reviewed and tested on its own.

## Cross-account by default

Security Hub's delegated-administrator aggregation surfaces every member account's findings in the hub's EventBridge feed automatically, so one orchestrator handles the whole organization rather than one per account. remediation_mode defaults to detect, which only logs — nothing mutates until an operator opts into contain mode, which assumes a per-account spoke-remediation role scoped to the finding's own account.

## Honest gap

The cross-account assume-role path is unit-tested against mocked AWS clients, not integration-tested against a real second account — documented in the repo rather than glossed over. A planned auto mode, which would act without the detect/contain toggle, remains an unimplemented placeholder.