Skip to content

Delete Secret In Secrets Manager (aws)

PlatformAuthorLast Update
awsNick Jones2024-12-02

An adversary may attempt to delete secrets stored in secrets manager, in order to negatively impact the function of an environment

MITRE IDs

Required Permissions

  • secretsmanager:DeleteSecret

Required Parameters

NameTypeDescriptionExample Value
secretidstrID of secret to access, either ARN or friendly nameleonidas_created_secret

Attacker Action

Terminal window
aws secretsmanager list-secrets

Detection Case

ELK query

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

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

Sigma Definition

---
title: Delete Secret in Secrets Manager
id: c8f201c3-705f-4897-8cab-c765eeb4b1a3
status: experimental
author: Nick Jones
date: 2024-12-02
description: An adversary may attempt to delete secrets stored in secrets manager, in order to negatively impact the function of an environment
logsource:
service: cloudtrail
detection:
selection_source:
- eventSource: "*.secretsmanager.amazonaws.com"
events:
- eventName: "DeleteSecret"
condition: selection_source and events
level: low
tags:
- attack.T1485
falsepositives:
- Developers making legitimate changes to the environment. Verify whether the user identity, user agent, and/or hostname should be making changes in your environment.