Updated all required fields and datamodels again.

This commit is contained in:
pyth0n1c
2022-03-17 13:10:22 -07:00
parent d24c95bd3a
commit 84e65bb3fb
558 changed files with 12668 additions and 12948 deletions
@@ -1,26 +1,24 @@
name: AWS Lambda UpdateFunctionCode
id: 211b80d3-6340-4345-11ad-212bf3d0d111
version: 1
date: '2022-02-24'
author: Bhavin Patel, Splunk
type: Hunting
datamodel: []
date: '2022-02-24'
description: This analytic is designed to detect IAM users attempting to update/modify
AWS lambda code via the AWS CLI to gain persistence, futher access into your AWS
environment and to facilitate planting backdoors. In this instance, an attacker
may upload malicious code/binary to a lambda function which will be executed automatically
when the funnction is triggered.
how_to_implement: You must install Splunk AWS Add on and enable Cloudtrail logs in
your AWS Environment.
id: 211b80d3-6340-4345-11ad-212bf3d0d111
known_false_positives: While this search has no known false positives, it is possible
that an AWS admin or an autorized IAM user has updated the lambda fuction code legitimately.
name: AWS Lambda UpdateFunctionCode
references:
- http://detectioninthe.cloud/execution/modify_lambda_function_code/
- https://sysdig.com/blog/exploit-mitigate-aws-lambdas-mitre/
search: '`cloudtrail` eventSource=lambda.amazonaws.com eventName=UpdateFunctionCode* errorCode
= success user_type=IAMUser | stats count min(_time) as firstTime max(_time) as
lastTime values(requestParameters.functionName) as function_updated by src_ip user_arn
user_agent user_type eventName aws_account_id |`aws_lambda_updatefunctioncode_filter`'
how_to_implement: You must install Splunk AWS Add on and enable Cloudtrail logs in
your AWS Environment.
known_false_positives: While this search has no known false positives, it is possible
that an AWS admin or an autorized IAM user has updated the lambda fuction code legitimately.
references:
- http://detectioninthe.cloud/execution/modify_lambda_function_code/
- https://sysdig.com/blog/exploit-mitigate-aws-lambdas-mitre/
tags:
analytic_story:
- Suspicious Cloud User Activities
@@ -48,21 +46,22 @@ tags:
- DE.CM
observable:
- name: src_ip
role:
- Attacker
type: IP Address
role:
- Attacker
- name: user_arn
type: User
role:
- Attacker
type: User
product:
- Splunk Enterprise
- Splunk Enterprise Security
- Splunk Cloud
required_fields:
- _time
- eventName
- userAgent
- errorCode
- eventName
risk_score: 63
security_domain: cloud
type: Hunting
version: 1