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
1.5 KiB
1.5 KiB
API Reference: Performing Container Escape Detection
kubernetes Python Client
from kubernetes import client, config
config.load_kube_config() # or config.load_incluster_config()
v1 = client.CoreV1Api()
pods = v1.list_pod_for_all_namespaces()
for pod in pods.items:
spec = pod.spec
# Check host namespace sharing
print(spec.host_pid, spec.host_network, spec.host_ipc)
for c in spec.containers:
sc = c.security_context
if sc:
print(sc.privileged, sc.capabilities, sc.run_as_user)
for vol in spec.volumes or []:
if vol.host_path:
print(vol.host_path.path)
Container Escape Vectors
| Vector | Field | Severity |
|---|---|---|
| Privileged mode | securityContext.privileged |
CRITICAL |
| SYS_ADMIN cap | capabilities.add |
CRITICAL |
| Docker socket | hostPath: /var/run/docker.sock |
CRITICAL |
| Host PID ns | hostPID: true |
HIGH |
| Host Network | hostNetwork: true |
HIGH |
| Writable / mount | hostPath: / |
CRITICAL |
| Run as root | runAsUser: 0 |
MEDIUM |
Dangerous Linux Capabilities
SYS_ADMIN, SYS_PTRACE, SYS_RAWIO, SYS_MODULE,
DAC_READ_SEARCH, NET_ADMIN, NET_RAW
References
- kubernetes Python client: https://github.com/kubernetes-client/python
- Pod Security Standards: https://kubernetes.io/docs/concepts/security/pod-security-standards/
- Container escapes: https://blog.trailofbits.com/2019/07/19/understanding-docker-container-escapes/