Files
T
mukul975 c21af3347e Complete folder anatomy for all 649 cybersecurity skills + update LICENSE to Mahipal
- Add scripts/agent.py and references/api-reference.md to all remaining skills
- Update all 648 LICENSE files: copyright now reads 'Mahipal'
- Add implementing-security-monitoring-with-datadog (new skill with full anatomy)
- All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
2026-03-11 00:22:12 +01:00

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

External References