Claude 24f816b6a3
Consolidate 22 sibling repos into layered organism structure
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
2026-06-10 06:53:01 +00:00

2.3 KiB

API Reference: Building Incident Response Playbook

TheHive API (Case Management)

import requests

THEHIVE_URL = "http://thehive:9000"
headers = {"Authorization": "Bearer <api_key>"}

# Create a new case from playbook
resp = requests.post(f"{THEHIVE_URL}/api/v1/case", headers=headers, json={
    "title": "Ransomware - IR-2024-0450",
    "severity": 3,
    "tlp": 3,
    "pap": 2,
    "tags": ["ransomware", "playbook:ransomware-v2.1"],
    "description": "Ransomware detected on WORKSTATION-042",
})

# Add tasks from playbook phases
resp = requests.post(f"{THEHIVE_URL}/api/v1/case/{case_id}/task",
    headers=headers, json={
        "title": "Isolate affected hosts",
        "group": "Containment",
        "status": "Waiting",
    })

# Add observable (IOC)
resp = requests.post(f"{THEHIVE_URL}/api/v1/case/{case_id}/observable",
    headers=headers, json={
        "dataType": "ip",
        "data": "185.234.218.50",
        "message": "C2 server",
        "tlp": 2,
        "ioc": True,
    })

Cortex XSOAR API (SOAR Playbook)

# Trigger a playbook run
resp = requests.post("https://xsoar/api/v2/incident/investigate",
    headers={"Authorization": "<api_key>"},
    json={"id": "incident-123", "playbookId": "Phishing_Response_v2"})

# List available playbooks
resp = requests.get("https://xsoar/api/v2/playbook/search",
    headers={"Authorization": "<api_key>"},
    json={"query": "name:Phishing*"})

Splunk SOAR (Phantom) API

# Run a playbook on a container
resp = requests.post("https://phantom/rest/playbook_run",
    headers={"ph-auth-token": "<token>"},
    json={"container_id": 42, "playbook_id": 15, "scope": "new"})

NIST SP 800-61r3 Phases

Phase Key Actions
Preparation Playbooks, tools, contacts, training
Detection & Analysis Alerts, triage, scoping, severity
Containment Isolation, blocking, evidence preservation
Eradication Root cause removal, IOC sweep
Recovery Restore, validate, monitor
Post-Incident Lessons learned, detection improvement

References