mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
53 lines
1.2 KiB
Markdown
53 lines
1.2 KiB
Markdown
# API Reference: Detecting Privilege Escalation in Kubernetes Pods
|
|
|
|
## Security Context Checks
|
|
|
|
| Check | Risk | Description |
|
|
|-------|------|-------------|
|
|
| privileged: true | CRITICAL | Full host access |
|
|
| allowPrivilegeEscalation | HIGH | setuid escalation |
|
|
| runAsUser: 0 | HIGH | Running as root |
|
|
| hostPID: true | CRITICAL | Host PID namespace |
|
|
| hostNetwork: true | HIGH | Host network access |
|
|
|
|
## Dangerous Capabilities
|
|
|
|
| Capability | Risk |
|
|
|------------|------|
|
|
| SYS_ADMIN | Container escape |
|
|
| SYS_PTRACE | Process debugging |
|
|
| SYS_MODULE | Kernel module loading |
|
|
| NET_ADMIN | Network manipulation |
|
|
|
|
## kubectl Audit Commands
|
|
|
|
```bash
|
|
kubectl get pods -A -o json | jq '.items[] | select(.spec.containers[].securityContext.privileged==true)'
|
|
kubectl auth can-i --list --as=system:serviceaccount:ns:sa
|
|
```
|
|
|
|
## Pod Security Standards
|
|
|
|
```yaml
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
labels:
|
|
pod-security.kubernetes.io/enforce: restricted
|
|
```
|
|
|
|
## Falco Rules
|
|
|
|
```yaml
|
|
- rule: Pod with Privileged Container
|
|
condition: kevt and kcreate and container.privileged=true
|
|
priority: CRITICAL
|
|
```
|
|
|
|
## CLI Usage
|
|
|
|
```bash
|
|
python agent.py --namespace default
|
|
python agent.py --json-file pods.json
|
|
```
|