<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
---
name: performing-serverless-forensics
description: >-
  Investigate security incidents in serverless environments including Lambda, Azure Functions, and Cloud Functions.
domain: cybersecurity
subdomain: cloud-forensics
tags:
  - serverless
  - lambda
  - forensics
  - cloud-security
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1059.009"]
---

# Performing Serverless Forensics

## Overview

Investigate security incidents in serverless environments including Lambda, Azure Functions, and Cloud Functions.

## Prerequisites

| Requirement | Install |
|---|---|
| AWS CLI | Lambda access |
| CloudWatch | Function logs |
| Python 3.10+ | For agent tooling |

## Key Concepts

Serverless forensics analyzes function execution logs, cold start
patterns, environment variable exposure, and invocation anomalies.

## Quick Reference

```bash
aws lambda get-function --function-name compromised-func
node agent.js analyze --function my-func --region us-east-1
node agent.js logs --function my-func --hours 24
node agent.js report --investigation SL-2026-001
```

## Workflow

1. Identify affected functions
2. Capture function config
3. Analyze execution logs
4. Check environment variables
5. Review IAM permissions
6. Trace invocation chains
7. Document findings

## Detection

```yaml
title: Serverless Forensics Detection
id: ef14a1db-a232-4340-b5ec-1e07a920354c
status: experimental
description: Detects suspicious activity related to performing serverless forensics techniques in cloud forensics context
logsource:
  product: aws
  service: cloudtrail
detection:
  selection:
    eventName: "*Unauthorized*"
  condition: selection
level: high
tags:
  - attack.t1059.009
  - attack.collection
falsepositives:
  - Scheduled compliance scanning by authorized security tools
```

## Verification

- Verify function analysis
- Confirm log capture
- Validate env var check
- Check IAM review
- Verify evidence chain

## References

- OWASP Testing Guide — https://owasp.org/www-project-web-security-testing-guide/
- MITRE ATT&CK — https://attack.mitre.org/
- NIST SP 800-53 — https://csf.tools/reference/nist-sp-800-53/
