<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
---
name: investigating-kubernetes-security-events
description: >-
  Investigate security events in Kubernetes clusters including pod compromises and RBAC abuse.
domain: cybersecurity
subdomain: cloud-forensics
tags:
  - kubernetes
  - k8s
  - container-security
  - forensics
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1610", "T1613"]
---

# Investigating Kubernetes Security Events

## Overview

Investigate security events in Kubernetes clusters including pod compromises and RBAC abuse.

## Prerequisites

| Requirement | Install |
|---|---|
| kubectl | Cluster access |
| Falco | Runtime detection |
| Python 3.10+ | For agent tooling |

## Key Concepts

Kubernetes investigation covers audit log analysis, pod inspection,
RBAC review, secret access, and network policy assessment.

## Quick Reference

```bash
kubectl get events --sort-by=.metadata.creationTimestamp
node agent.js audit-logs --cluster prod --hours 24
node agent.js pod-inspect --pod compromised-pod --namespace default
node agent.js report --investigation K8S-2026-001
```

## Workflow

1. Collect audit logs
2. Inspect compromised pods
3. Review RBAC
4. Check secret access
5. Analyze network policies
6. Review service accounts
7. Document findings

## Detection

```yaml
title: Investigating Kubernetes Security Events Detection
id: 56a64b23-969b-457f-be4e-0891148be097
status: experimental
description: Detects suspicious activity related to investigating kubernetes security events techniques in cloud forensics context
logsource:
  product: aws
  service: cloudtrail
detection:
  selection:
    eventName: "*Unauthorized*"
  condition: selection
level: high
tags:
  - attack.t1610
  - attack.t1613
  - attack.collection
falsepositives:
  - Scheduled compliance scanning by authorized security tools
```

## Verification

- Verify audit log capture
- Confirm pod inspection
- Validate RBAC review
- Check secret audit
- Verify evidence

## 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/
