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

46 lines
1.6 KiB
Markdown

# API Reference: Firmware Malware Analysis
## binwalk CLI
| Command | Description |
|---------|-------------|
| `binwalk <firmware>` | Scan and display embedded file signatures |
| `binwalk -e <firmware>` | Extract identified components |
| `binwalk -eM <firmware>` | Recursive extraction with signature scanning |
| `binwalk -E <firmware>` | Entropy analysis for encrypted/compressed regions |
| `binwalk -A <firmware>` | Scan for executable opcode signatures |
## binwalk Python API
```python
import binwalk
for module in binwalk.scan("firmware.bin", signature=True, extract=True):
for result in module.results:
print(f"0x{result.offset:X} {result.description}")
```
## chipsec CLI (UEFI Analysis)
| Command | Description |
|---------|-------------|
| `python chipsec_main.py -m common.bios_wp` | Check BIOS write protection |
| `python chipsec_main.py -m common.spi_lock` | Check SPI flash lock status |
| `python chipsec_main.py -m common.secureboot` | Verify Secure Boot configuration |
| `python chipsec_util.py spi dump <output>` | Dump UEFI firmware from SPI flash |
## Python Libraries
| Library | Version | Purpose |
|---------|---------|---------|
| `subprocess` | stdlib | Execute binwalk, file, and strings commands |
| `hashlib` | stdlib | SHA-256 hashing for firmware integrity |
| `re` | stdlib | Pattern matching for IOC extraction |
## References
- binwalk: https://github.com/ReFirmLabs/binwalk
- Firmadyne: https://github.com/firmadyne/firmadyne
- UEFITool: https://github.com/LongSoft/UEFITool
- chipsec: https://github.com/chipsec/chipsec
- EMBA firmware analyzer: https://github.com/e-m-b-a/emba