Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

1.9 KB
Raw Blame
id: splunk-security-content-211b80d3-6340-4345-11ad-212bf3d0d111
name: AWS Lambda UpdateFunctionCode
description: The following analytic identifies IAM users attempting to update or modify
  AWS Lambda code via the AWS CLI. It leverages CloudTrail logs to detect successful
  `UpdateFunctionCode` events initiated by IAM users. This activity is significant
  as it may indicate an attempt to gain persistence, further access, or plant backdoors
  within your AWS environment. If confirmed malicious, an attacker could upload and
  execute malicious code automatically when the Lambda function is triggered, potentially
  compromising the integrity and security of your AWS infrastructure.
severity: medium
enabled: false
tags:
  mitre:
  - T1204
  categories:
  - cloud
references:
- http://detectioninthe.cloud/execution/modify_lambda_function_code/
- https://sysdig.com/blog/exploit-mitigate-aws-lambdas-mitre/
logsource:
  product: splunk
detection:
  splunk_spl: "`cloudtrail` eventSource=lambda.amazonaws.com eventName=UpdateFunctionCode*\
    \  errorCode = success  user_type=IAMUser\n  | rename user_name as user\n  | stats\
    \ count min(_time) as firstTime max(_time) as lastTime\n    BY signature dest\
    \ user\n       user_agent src vendor_account\n       vendor_region vendor_product\n\
    \  | `security_content_ctime(firstTime)`\n  | `security_content_ctime(lastTime)`\n\
    \  | `aws_lambda_updatefunctioncode_filter`"
provenance:
  source: splunk/security_content
  source_id: 211b80d3-6340-4345-11ad-212bf3d0d111
  source_commit: 4d4c7ee
  license: Apache-2.0
  license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
  imported_at: '2026-05-04'
  imported_by: splunk_importer
  upstream_path: detections/cloud/aws_lambda_updatefunctioncode.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema