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.7 KiB
1.7 KiB
ICS Anomaly Detection — API Reference
Libraries
| Library | Install | Purpose |
|---|---|---|
| pymodbus | pip install pymodbus |
Modbus TCP/RTU client |
| requests | pip install requests |
Historian and SIEM API access |
Modbus TCP Protocol
| Function Code | Name | Risk |
|---|---|---|
| 1 | Read Coils | Low |
| 3 | Read Holding Registers | Low |
| 5 | Write Single Coil | Medium |
| 6 | Write Single Register | Medium |
| 15 | Write Multiple Coils | High |
| 16 | Write Multiple Registers | High |
| 43 | Read Device Identification | Recon |
Common ICS Ports
| Port | Protocol | Description |
|---|---|---|
| 502 | Modbus TCP | PLC communication |
| 102 | S7comm | Siemens S7 PLCs |
| 44818 | EtherNet/IP | Allen-Bradley / Rockwell |
| 20000 | DNP3 | Distributed Network Protocol |
| 4840 | OPC-UA | OPC Unified Architecture |
| 47808 | BACnet | Building automation |
pymodbus Client Usage
from pymodbus.client import ModbusTcpClient
client = ModbusTcpClient("192.168.1.10", port=502)
client.connect()
result = client.read_holding_registers(0, count=10, slave=1)
print(result.registers)
client.close()
Anomaly Detection Thresholds
| Metric | Threshold | Severity |
|---|---|---|
| Unusual function codes | FC 8, 17, 43, 90+ | HIGH |
| Write frequency > 100/min | Burst writes | CRITICAL |
| Exception responses | Any exception code | MEDIUM |
| New source IP to PLC | Unauthorized access | CRITICAL |