Repository avatar
AI Tools
v1.0.0
active

nbrain-industrial-ot-zkteco-modbus

io.github.NBrain-Studio/nbrain-industrial-ot-zkteco-modbus

Modbus RTU/TCP CRC-16, IEC 62443 AI Agent Safety Firewall & ZKTeco Biometric Attendance MCP

Documentation

nbrain-industrial-ot-zkteco-modbus — Industrial OT Modbus RTU/TCP, IEC 62443-3-3 AI Agent Safety Firewall & ZKTeco Biometric Attendance Protocol + MCP Server

License: MIT Python 3.10+ MCP Registry

Engineered by Eng. Nadeem Mohamed Badr El-Din at NBrain (منظومة إن برين — nbra.in) from production factory ERP, water-treatment telemetry, and Odoo 19 ZKTeco biometric integrations.

Capabilities

  1. Modbus RTU (CRC-16/MODBUS 0xA001 LSB-first) & Modbus TCP (MBAP 7-byte header): Deterministic binary framing, hex/byte decoding, and CRC-16 corruption detection.
  2. IEC 62443-3-3 AI Agent Read-Only Firewall: Prevents autonomous AI agents from issuing destructive coil/register writes (FC05, FC06, FC0F, FC10, FC16, FC17) to PLCs unless an HMAC-SHA256 dual-control authorization token is verified.
  3. ZKTeco Biometric Protocol (ZK Packed 32-Bit Epoch & ADMS / iClock ATTLOG): Exact conversion of ZKTeco's non-Unix 31-day-month packed 32-bit integer timestamps + ATTLOG shift overtime (1.5x Decimal) payroll bridge.

Quick Verification

PYTHONPATH=src python -m unittest discover -s tests -v