T1555.006 Splunk · SPL

Detect Cloud Secrets Management Stores in Splunk

Adversaries may acquire credentials from cloud-native secret management solutions such as AWS Secrets Manager, GCP Secret Manager, Azure Key Vault, and Terraform Vault. Secrets managers support the secure centralized management of passwords, API keys, and other credential material. If an adversary gains sufficient privileges in a cloud environment, they may request secrets via API calls such as get-secret-value (AWS), gcloud secrets describe (GCP), and az key vault secret show (Azure). This technique has been used by HAFNIUM, Storm-0501, Scattered Spider, and ScarletEel.

MITRE ATT&CK

Tactic
Credential Access
Technique
T1555 Credentials from Password Stores
Sub-technique
T1555.006 Cloud Secrets Management Stores
Canonical reference
https://attack.mitre.org/techniques/T1555/006/

SPL Detection Query

Splunk (SPL)
spl
(index=aws sourcetype="aws:cloudtrail" eventName IN ("GetSecretValue", "ListSecrets", "DescribeSecret", "BatchGetSecretValue"))
OR (index=azure sourcetype="azure:audit" operationName="*KeyVault*" operationName IN ("SecretGet", "SecretList", "VaultGet"))
OR (index=gcp sourcetype="google:gcp:pubsub:message" data.protoPayload.methodName="google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion")
| eval cloud_provider=case(
    sourcetype=="aws:cloudtrail", "AWS",
    sourcetype=="azure:audit", "Azure",
    sourcetype=="google:gcp:pubsub:message", "GCP",
    1=1, "Unknown")
| eval identity=coalesce(userIdentity.arn, claims.upn, data.protoPayload.authenticationInfo.principalEmail)
| eval source_ip=coalesce(sourceIPAddress, callerIpAddress, data.protoPayload.requestMetadata.callerIp)
| eval secret_name=coalesce(requestParameters.secretId, properties.id, data.protoPayload.resourceName)
| stats count as SecretAccessCount, dc(secret_name) as UniqueSecrets, earliest(_time) as FirstAccess, latest(_time) as LastAccess by identity, source_ip, cloud_provider
| where SecretAccessCount > 10 OR UniqueSecrets > 5
| sort - SecretAccessCount
critical severity medium confidence

Multi-cloud detection for bulk access to secrets management stores. Correlates AWS CloudTrail, Azure Audit, and GCP Audit logs to identify identities retrieving an anomalous number of secrets. Normalizes fields across cloud providers and applies thresholds to detect credential harvesting campaigns like those conducted by ScarletEel and Scattered Spider.

Data Sources

AWS CloudTrailAzure Activity LogGCP Audit Log

Required Sourcetypes

aws:cloudtrailazure:auditgoogle:gcp:pubsub:message

False Positives & Tuning

  • CI/CD pipelines retrieving secrets during deployments
  • Application startup routines that batch-load configuration secrets
  • Secrets rotation automation during scheduled rotation
  • Terraform/Pulumi reading secrets during infrastructure operations
Download portable Sigma rule (.yml)

Other platforms for T1555.006


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Enumerate AWS Secrets Manager secrets

    Expected signal: AWS CloudTrail: ListSecrets event followed by GetSecretValue event, both with the caller's IAM identity ARN and source IP. Events appear in CloudTrail within 5-15 minutes.

  2. Test 2Retrieve Azure Key Vault secret

    Expected signal: Azure Key Vault diagnostic logs: SecretList and SecretGet operations with caller IP and identity. Azure AD audit log entry for the service principal or user identity.

  3. Test 3Access GCP Secret Manager secret

    Expected signal: GCP Cloud Audit Log: Admin Activity log for ListSecrets, Data Access log for AccessSecretVersion. Both events contain the principal email and source IP.

Unlock Pro Content

Get the full detection package for T1555.006 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections