mech.app

The mech.app newsletter

Agentic AI, minus the noise.

Get practical field notes on AI agents, automation, developer tools and security delivered to your inbox.

No spam. Unsubscribe anytime.

Security

Coldframe: Building a Supermarket Fridge Honeypot to Study Industrial Control System Attacks

How to build a convincing ICS honeypot that mimics refrigeration controllers, what attackers actually try, and the security boundaries you need.

Source: github.com
Coldframe: Building a Supermarket Fridge Honeypot to Study Industrial Control System Attacks

Coldframe is a low-interaction honeypot that mimics supermarket refrigeration controllers. It emulates two specific industrial control systems: the Danfoss AK-SM 800A and the Dixell XWEB 500. Both devices are widely deployed, Shodan-discoverable, and exposed to the internet in real installations.

The project emerged after recent attacks on industrial fridge installations. The author wanted to see what attackers actually try when they find an exposed refrigeration controller. The result is a deception layer that looks real enough to fool both automated scanners and human operators.

Why Refrigeration Controllers Matter

Industrial refrigeration systems sit at the intersection of operational technology (OT) and IT networks. They often have web interfaces for remote monitoring, speak Modbus or proprietary protocols, and run firmware that rarely gets patched.

Attackers target these devices for several reasons:

  • Pivot points: Once inside a controller, you can often reach the broader facility network
  • Disruption: Changing temperature setpoints can spoil inventory or trigger safety shutdowns
  • Reconnaissance: Device configurations reveal network topology and other connected systems
  • Credential harvesting: Many controllers share default passwords or store credentials in plaintext

Shodan indexes thousands of these devices. Many are accessible without authentication or use vendor default credentials.

Architecture of the Honeypot

Coldframe runs as a standalone service that presents HTTP interfaces matching the real devices. It does not emulate the full device firmware. Instead, it replicates the web UI, API endpoints, and protocol responses that an attacker would encounter.

Emulation Layers

The honeypot implements three layers:

  1. HTTP server: Serves static HTML/CSS/JS that matches the real device interface
  2. API endpoints: Responds to configuration reads, writes, and status queries
  3. Protocol handlers: Speaks enough Modbus TCP to appear legitimate to scanners

Each layer logs requests, payloads, and timing. The goal is to capture attacker behavior without revealing the deception.

Device Fingerprinting

Real Danfoss and Dixell controllers have specific HTTP headers, JavaScript libraries, and response timing. Coldframe replicates these details:

  • Exact HTML structure and CSS classes from real devices
  • Vendor-specific JavaScript files with correct version numbers
  • HTTP headers that match production firmware (Server, X-Powered-By, etc.)
  • Response delays that mimic real hardware processing time

Shodan and other scanners use these fingerprints to classify devices. Getting them right is critical for the honeypot to appear in search results as a real controller.

Logging and Observability

Every interaction generates structured logs:

{
  "timestamp": "2026-11-24T14:32:18Z",
  "source_ip": "203.0.113.42",
  "endpoint": "/api/setpoint",
  "method": "POST",
  "payload": {
    "zone": 1,
    "temp": -5
  },
  "user_agent": "python-requests/2.28.1",
  "session_id": "a3f8c2d1"
}

Logs capture:

  • Which endpoints attackers probe first
  • Whether they attempt authentication or skip straight to writes
  • Payload patterns (credential stuffing, command injection, buffer overflows)
  • Tool signatures (Metasploit, custom scripts, browser-based manual exploration)

The honeypot does not phone home or send telemetry. All logs stay local.

Security Boundaries

Running a honeypot that accepts arbitrary input from the internet requires strict isolation. Coldframe uses several containment strategies.

Network Isolation

The honeypot runs in a dedicated VLAN with no route to internal networks. Firewall rules allow inbound traffic on HTTP/HTTPS and Modbus TCP (502), but block all outbound connections except DNS and NTP.

This prevents the honeypot from being used as a pivot point if an attacker gains code execution.

Read-Only Filesystem

The container runs with a read-only root filesystem. Logs write to a separate volume. This limits the damage if an attacker exploits a vulnerability in the honeypot itself.

No Real Credentials

The honeypot does not store or validate real credentials. It accepts any username/password combination and logs the attempt. This avoids credential leakage if the honeypot is compromised.

Rate Limiting

Each source IP is rate-limited to prevent the honeypot from being used in DDoS amplification attacks. After 100 requests per minute, the honeypot starts dropping packets.

Deployment Shape

Coldframe is designed to run in a cloud VM or on-premises server. The recommended setup:

  • Single VM: 1 vCPU, 1 GB RAM, 20 GB disk
  • Public IP: Required for Shodan discoverability
  • Firewall: Allow 80, 443, 502 inbound; block all outbound except DNS/NTP
  • Monitoring: External log aggregation via syslog or file export

The honeypot does not require a database or external dependencies. It runs as a single Go binary or Docker container.

Shodan Visibility

For the honeypot to attract attackers, it must appear in Shodan search results. This requires:

  • Correct HTTP headers and HTML structure
  • Open ports (80, 443, 502)
  • Consistent uptime (Shodan scans intermittently)
  • No obvious honeypot signatures (generic hostnames, cloud provider IPs)

The author reports that Coldframe instances appear in Shodan as real Danfoss or Dixell devices within 48 hours of deployment.

What Attackers Actually Try

Early data from Coldframe deployments shows several common attack patterns:

Attack TypeFrequencyDescription
Credential stuffingHighAutomated tools try default passwords (admin/admin, root/root)
Configuration readsMediumAttackers dump device settings to map the network
Setpoint changesMediumAttempts to modify temperature or alarm thresholds
Command injectionLowProbing for shell injection in web forms
Modbus writesLowDirect protocol manipulation to change coil states

Most attacks are automated. Scanners find the device, try a handful of exploits, and move on. Human-operated attacks are rarer but more sophisticated. They spend time exploring the interface, reading documentation links, and testing edge cases.

Implementation Details

The core honeypot logic is straightforward. Here is a simplified HTTP handler for the setpoint API:

func handleSetpoint(w http.ResponseWriter, r *http.Request) {
    var req SetpointRequest
    if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
        http.Error(w, "Invalid JSON", http.StatusBadRequest)
        return
    }

    // Log the attempt
    log.Printf("Setpoint change: zone=%d temp=%f source=%s",
        req.Zone, req.Temp, r.RemoteAddr)

    // Always succeed (we're not controlling a real fridge)
    w.WriteHeader(http.StatusOK)
    json.NewEncoder(w).Encode(map[string]string{
        "status": "ok",
        "message": "Setpoint updated",
    })
}

The real implementation includes session tracking, payload validation, and detailed logging. But the principle is the same: accept the input, log it, and return a plausible success response.

Failure Modes

Honeypots fail in predictable ways:

  • Detection: Attackers notice inconsistencies (missing features, incorrect error messages)
  • Compromise: A vulnerability in the honeypot itself allows code execution
  • Resource exhaustion: Attackers flood the honeypot with requests, filling disk or memory
  • Legal issues: Depending on jurisdiction, running a honeypot may violate computer fraud laws

Coldframe mitigates these risks with strict input validation, resource limits, and network isolation. But no honeypot is perfect. Sophisticated attackers will eventually recognize the deception.

Observability Trade-offs

The honeypot must balance logging detail with operational security. Too much logging reveals the honeypot’s true nature. Too little logging misses useful attacker behavior.

Coldframe logs:

  • All HTTP requests (method, path, headers, body)
  • Modbus protocol frames
  • Session state changes
  • Rate limit violations

It does not log:

  • Internal processing details
  • Honeypot health metrics
  • Outbound DNS queries (there should be none)

Logs rotate daily and compress automatically. The honeypot does not implement log forwarding by default. Operators must export logs manually or configure external syslog.

Technical Verdict

Use Coldframe when:

  • You want to study attacker behavior against industrial IoT devices
  • You need threat intelligence on ICS-specific exploits
  • You are researching OT/IT network security boundaries
  • You have the infrastructure to safely isolate a public-facing honeypot

Avoid Coldframe when:

  • You lack network isolation (the honeypot must not reach internal systems)
  • You need high-interaction emulation (Coldframe does not run real device firmware)
  • You are in a jurisdiction with restrictive honeypot laws
  • You expect the honeypot to actively defend or counterattack (it only observes)

Coldframe is a research tool, not a production security control. It provides visibility into attacker tactics but does not prevent attacks on real devices. Pair it with proper network segmentation, device hardening, and monitoring of actual ICS infrastructure.