Hunts & Detections

Source dated · Updated

Original query

Elastic Security · Kibana Query Language · Elastic License 2.0

Surfaces API activity outside Bedrock by the IAM identities created to back Bedrock API keys. Compare a hit with normal service behavior and correlate it with IAM key creation, the account, and the caller. Elastic tags this rule with MITRE ATT&CK T1078.004 (Cloud Accounts).

Telemetry AWS CloudTrail management events ingested through the Elastic AWS integration.

Upstream author Elastic

Copyright 2021 Elasticsearch B.V.

Kibana Query Language
data_stream.dataset: "aws.cloudtrail"
    and aws.cloudtrail.user_identity.type: "IAMUser"
    and user.name: BedrockAPIKey-*
    and not event.provider: (
        "bedrock.amazonaws.com" or "signin.amazonaws.com" or
        "agreement-marketplace.amazonaws.com" or "discovery-marketplace.amazonaws.com" or
        "bedrock-mantle.amazonaws.com"
    )
    and not event.action: ("GetCallerIdentity" or "GetSessionToken" or "GetAccessKeyInfo")