# utilsec/atomics architecture

> Architecture diagram of the GitHub repository utilsec/atomics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/utilsec/atomics
- Repository: https://github.com/utilsec/atomics

## Overview

AtomICS is a Windows-first OT/ICS reconnaissance console with Python and PowerShell editions. The operator starts a menu-driven session, chooses network discovery, read-only auto-fingerprinting, or one of seven protocol modules, and accumulates findings in an asset register. Safe mode is the default; active scans and device-changing controls require explicit opt-in. The Python edition is the only source excerpted, so its internal components share that file path; PowerShell capabilities and the main menu workflow are based on README statements.

Main entry points: [`atomics.py`](https://github.com/utilsec/atomics/blob/main/atomics.py) (Python console), [`AtomICS.ps1`](https://github.com/utilsec/atomics/blob/main/AtomICS.ps1) (PowerShell edition)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_session["Session and inventory"]
  node_python["Python console<br/>[atomics.py]"]
  node_powershell["PowerShell edition<br/>[AtomICS.ps1]"]
  node_safety["Safe-mode controls<br/>[atomics.py]"]
  node_inventory[("Asset register<br/>[atomics.py]")]
end

subgraph group_discovery["Network discovery"]
  node_discovery["Network discovery<br/>[atomics.py]"]
end

subgraph group_assessment["Device assessment"]
  node_fingerprint["Auto-fingerprint<br/>[atomics.py]"]
end

subgraph group_protocols["OT protocols"]
  node_modbus["Modbus<br/>[atomics.py]"]
  node_s7["S7<br/>[atomics.py]"]
  node_enip["EtherNet/IP<br/>[atomics.py]"]
  node_dnp3["DNP3<br/>[atomics.py]"]
  node_bacnet["BACnet<br/>[atomics.py]"]
  node_snmp["SNMP<br/>[atomics.py]"]
  node_iec104["IEC 104<br/>[atomics.py]"]
end

node_operator(("Operator"))
node_devices(("OT/ICS devices"))

node_operator -->|"starts session"| node_python
node_operator -->|"starts session"| node_powershell
node_python -->|"sets mode"| node_safety
node_python -->|"offers discovery"| node_discovery
node_python -->|"offers fingerprint"| node_fingerprint
node_python -->|"offers modules"| node_modbus
node_python -->|"offers modules"| node_s7
node_python -->|"offers modules"| node_enip
node_python -->|"offers modules"| node_dnp3
node_python -->|"offers modules"| node_bacnet
node_python -->|"offers modules"| node_snmp
node_python -->|"offers modules"| node_iec104
node_powershell -->|"provides discovery"| node_discovery
node_powershell -->|"provides modules"| node_modbus
node_discovery -->|"scans or listens"| node_devices
node_fingerprint -->|"queries identity"| node_devices
node_modbus -->|"polls or controls"| node_devices
node_s7 -->|"polls or controls"| node_devices
node_enip -->|"queries devices"| node_devices
node_dnp3 -->|"polls devices"| node_devices
node_bacnet -->|"discovers devices"| node_devices
node_snmp -->|"queries devices"| node_devices
node_iec104 -->|"interrogates or controls"| node_devices
node_discovery -->|"records findings"| node_inventory
node_fingerprint -->|"records identity"| node_inventory
node_modbus -->|"updates assets"| node_inventory
node_bacnet -->|"updates assets"| node_inventory
node_s7 -->|"records findings"| node_inventory
node_enip -->|"records findings"| node_inventory
node_dnp3 -->|"records findings"| node_inventory
node_snmp -->|"records findings"| node_inventory
node_iec104 -->|"records findings"| node_inventory

click node_python "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_powershell "https://github.com/utilsec/atomics/blob/main/AtomICS.ps1"
click node_safety "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_inventory "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_discovery "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_fingerprint "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_modbus "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_s7 "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_enip "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_dnp3 "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_bacnet "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_snmp "https://github.com/utilsec/atomics/blob/main/atomics.py"
click node_iec104 "https://github.com/utilsec/atomics/blob/main/atomics.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_python,node_powershell,node_safety,node_inventory toneBlue
class node_discovery toneAmber
class node_fingerprint toneMint
class node_modbus,node_s7,node_enip,node_dnp3,node_bacnet,node_snmp,node_iec104 toneRose
class node_operator,node_devices toneIndigo
```

## Components

### Session and inventory

- [Python console](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [PowerShell edition](https://github.com/utilsec/atomics/blob/main/AtomICS.ps1): `AtomICS.ps1`
- [Safe-mode controls](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [Asset register](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`

### Network discovery

- [Network discovery](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`

### Device assessment

- [Auto-fingerprint](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`

### OT protocols

- [Modbus](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [S7](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [EtherNet/IP](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [DNP3](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [BACnet](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [SNMP](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`
- [IEC 104](https://github.com/utilsec/atomics/blob/main/atomics.py): `atomics.py`

### Other components

- **Operator**
- **OT/ICS devices**

## Connections

- Operator → Python console: starts session (evidence: `README.md`)
- Operator → PowerShell edition: starts session (evidence: `README.md`)
- Python console → Safe-mode controls: sets mode (evidence: `atomics.py`)
- Python console → Network discovery: offers discovery (evidence: `README.md`)
- Python console → Auto-fingerprint: offers fingerprint (evidence: `README.md`)
- Python console → Modbus: offers modules (evidence: `README.md`)
- Python console → S7: offers modules (evidence: `README.md`)
- Python console → EtherNet/IP: offers modules (evidence: `README.md`)
- Python console → DNP3: offers modules (evidence: `README.md`)
- Python console → BACnet: offers modules (evidence: `README.md`)
- Python console → SNMP: offers modules (evidence: `README.md`)
- Python console → IEC 104: offers modules (evidence: `README.md`)
- PowerShell edition → Network discovery: provides discovery (evidence: `README.md`)
- PowerShell edition → Modbus: provides modules (evidence: `README.md`)
- Network discovery → OT/ICS devices: scans or listens (evidence: `README.md`)
- Auto-fingerprint → OT/ICS devices: queries identity (evidence: `README.md`)
- Modbus → OT/ICS devices: polls or controls (evidence: `README.md`)
- S7 → OT/ICS devices: polls or controls (evidence: `README.md`)
- EtherNet/IP → OT/ICS devices: queries devices (evidence: `README.md`)
- DNP3 → OT/ICS devices: polls devices (evidence: `README.md`)
- BACnet → OT/ICS devices: discovers devices (evidence: `README.md`)
- SNMP → OT/ICS devices: queries devices (evidence: `README.md`)
- IEC 104 → OT/ICS devices: interrogates or controls (evidence: `README.md`)
- Network discovery → Asset register: records findings (evidence: `README.md`)
- Auto-fingerprint → Asset register: records identity (evidence: `README.md`)
- Modbus → Asset register: updates assets (evidence: `atomics.py`)
- BACnet → Asset register: updates assets (evidence: `atomics.py`)
- S7 → Asset register: records findings (evidence: `README.md`)
- EtherNet/IP → Asset register: records findings (evidence: `README.md`)
- DNP3 → Asset register: records findings (evidence: `README.md`)
- SNMP → Asset register: records findings (evidence: `README.md`)
- IEC 104 → Asset register: records findings (evidence: `README.md`)
