audit_trail_posture
Audit CloudTrail trail configuration for logging, multi-region coverage, log validation, and KMS encryption, returning severity-ranked findings.
Instructions
Audit CloudTrail trail posture in the account.
Checks, per trail (shadow trails included, so multi-region trails homed in another region are still seen):
trail exists at all (zero trails is a CRITICAL finding on its own)
the trail is actively logging (GetTrailStatus.IsLogging), CRITICAL if not
IsMultiRegionTrail, MEDIUM if single-region
LogFileValidationEnabled, MEDIUM if disabled
KmsKeyId present, LOW if logs are not encrypted with a customer managed key
Args: region: AWS region to query (defaults to AWS_REGION or us-east-1).
Returns:
Report envelope: {check, ok, findings[], scanned}. scanned is the
number of trails inspected; ok is true only when no findings exist.
Each finding has {check, severity, title, resource, detail} with
severity one of LOW/MEDIUM/HIGH/CRITICAL and resource "trail/"
(or "account" for the zero-trails finding).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No |