mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 16:40:24 +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
49 lines
1.7 KiB
Markdown
49 lines
1.7 KiB
Markdown
# API Reference: Red Team Exercise Agent
|
|
|
|
## Dependencies
|
|
|
|
| Library | Version | Purpose |
|
|
|---------|---------|---------|
|
|
| requests | >=2.28 | Download MITRE ATT&CK STIX data |
|
|
|
|
## CLI Usage
|
|
|
|
```bash
|
|
python scripts/agent.py \
|
|
--actor "APT29" \
|
|
--target "Retail Corp" \
|
|
--objectives "Access POS data" "Exfiltrate cardholder data" \
|
|
--output redteam_plan.json
|
|
```
|
|
|
|
## Functions
|
|
|
|
### `load_attack_techniques(cache_file) -> dict`
|
|
Downloads or loads cached MITRE ATT&CK Enterprise STIX bundle from GitHub (`mitre/cti`).
|
|
|
|
### `get_actor_techniques(attack_data, actor_name) -> list`
|
|
Resolves intrusion-set by name, follows `uses` relationships to collect `attack-pattern` objects. Returns list of `{id, name, tactic}`.
|
|
|
|
### `build_operation_plan(actor_name, target, objectives, attack_data) -> RedTeamOperation`
|
|
Creates a full operation plan with technique list mapped from the emulated actor's known TTPs.
|
|
|
|
### `log_technique_execution(op, technique_id, detected, notes)`
|
|
Updates a technique's status to `executed`, records detection boolean and timestamp.
|
|
|
|
### `generate_detection_gap_report(op) -> dict`
|
|
Compares executed vs. detected techniques. Outputs detection rate and missed technique recommendations.
|
|
|
|
## Data Classes
|
|
|
|
### `TechniqueExecution`
|
|
- `technique_id`, `technique_name`, `tactic`, `timestamp`, `status`, `detected`, `detection_time`, `notes`
|
|
|
|
### `RedTeamOperation`
|
|
- `operation_name`, `target_org`, `emulated_actor`, `start_date`, `objectives`, `techniques`
|
|
|
|
## MITRE ATT&CK Data Source
|
|
|
|
- URL: `https://raw.githubusercontent.com/mitre/cti/master/enterprise-attack/enterprise-attack.json`
|
|
- Format: STIX 2.0 bundle with `intrusion-set`, `attack-pattern`, and `relationship` objects
|
|
- Locally cached as `attack_enterprise.json` after first download
|