Skip to content

Create Secret in Secrets Manager

Platform Author Last Update
aws Nick Jones 2023-07-01

An adversary may attempt to create secrets in secrets manager

MITRE IDs

Required Permissions

  • secretsmanager:CreateSecret

Required Parameters

Name Type Description Example Value
name str Name of secret to create leonidas_created_secret
secretstring str Value of secret to create totallysecretvalue

Attacker Action

aws secretsmanager create-secret --name leonidas_created_secret --secret-string "totallysecretvalue"

Detection Case

ELK query

When logs are ingested into ELK, the following Lucene query can be used to identify relevant events.

eventName:CreateSecret AND eventSource:*.secretsmanager.amazonaws.com  

Sigma Definition

---
title: Create Secret in Secrets Manager
id: 289f5a24-9113-4bd3-a9f3-71af8f583b88
status: experimental
author: Nick Jones
date: 2023-07-01
description: An adversary may attempt to create secrets in secrets manager
logsource:
  service: cloudtrail
detection:
  selection_source:
    - eventSource: "*.secretsmanager.amazonaws.com"
  events:
    - eventName: "CreateSecret"
  condition: selection_source AND events
level: low
tags:
  - attack.T1527