Context: when the display lies and the stock is already spoiled
In November, a coordinated attack hit supermarket refrigeration systems across parts of Europe. On the SCADA screens, everything looked fine: temperatures in range, no alarms, compressors apparently working. In reality, food was slowly spoiling. The attackers had compromised both the control system and the alarm logic built on top of it.
If you are a CTO, engineering manager or AI product lead working on industrial software, this is the nightmare scenario: you are building analytics, dashboards and AI on top of data that can be forged. If the plant lies to you, how do you notice?
In this article we’ll connect three ideas that often live in separate silos:
- Industrial anomaly detection: how we usually detect abnormal behaviour.
- OT tampering detection: how to notice when someone is actively manipulating data or control.
- Independent sensor monitoring: how to architect systems that can cross-check reality even when the main control path is compromised.
The goal is not a theoretical overview, but a set of patterns you can actually bring into your next project for an Italian SME plant or multi-site operation.
What is AI anomaly detection?
AI anomaly detection is the use of machine learning models to automatically spot unusual patterns in data that may indicate faults, attacks or process drifts. Instead of relying only on fixed thresholds, the model learns what “normal” looks like and flags deviations.
In industrial contexts, this usually means working with time series from:
- PLC and SCADA tags (temperatures, pressures, speeds, currents).
- Energy meters and power quality monitors.
- Production counters, scrap rates, cycle times.
- Sometimes maintenance logs or operator notes.
Typical AI approaches include:
- Unsupervised models (e.g. autoencoders, isolation forests) that learn normal behaviour without labelled anomalies.
- Forecasting models (e.g. LSTM, temporal convolutional networks) that predict the next values and flag large residuals.
- Clustering to identify unusual operating regimes or modes.
For an SME, you don’t need a research lab to start. A pragmatic stack could be:
- Data collection via OPC UA / MQTT into a time-series database (InfluxDB, TimescaleDB).
- Python services with scikit-learn or PyTorch for anomaly scoring.
- Dashboards in Grafana or a custom web app built as software su misura for operators and maintenance.
The key point: AI anomaly detection is powerful, but it assumes the data stream itself is honest. When an attacker controls the values you see, you need a different layer of defence.
What are common industrial anomaly detection methods?
Before we talk about tampering, it’s useful to map the tools you probably already have or are considering.
1. Rule-based thresholds
This is the classic approach: if temperature > 8 °C for more than 10 minutes, raise an alarm. It’s simple, explainable and easy to implement in PLCs or SCADA.
Pros:
- Deterministic and auditable.
- Low compute requirements, runs at the edge.
- Operators understand exactly why an alarm fired.
Cons:
- Hard to tune for all operating conditions.
- Blind to complex multivariate patterns.
- Easy to bypass if an attacker can change the thresholds or the measured value.
2. Statistical process control (SPC)
SPC uses control charts, moving averages and standard deviations to detect when a process drifts beyond expected variability. It’s common in quality and production monitoring.
Pros:
- Grounded in decades of industrial practice.
- Good for slow drifts and process degradation.
Cons:
- Assumes relatively stable distributions.
- Not ideal for highly dynamic or non-stationary processes.
3. Multivariate models (PCA, PLS, etc.)
These methods look at correlations between many variables at once. For example, the relationship between compressor current, suction pressure and ambient temperature.
Pros:
- Capture cross-variable dependencies.
- Good for detecting subtle process changes.
Cons:
- Require more data and expertise to set up.
- Still assume the input data is genuine.
4. Machine learning and deep learning
Here we enter the realm of autoencoders, isolation forests, LSTM-based models and hybrid approaches. They can learn complex patterns and adapt to different operating modes.
Pros:
- Handle non-linear, high-dimensional data.
- Can run at the edge on modern industrial PCs.
Cons:
- Need careful MLOps and monitoring to avoid model drift.
- Explainability can be a challenge for operators and auditors.
If you want a deeper dive into how AI agents and automation architectures behave in production, there are parallels with web scraping systems that must self-heal when sites change, as discussed in architetture che si auto-riparano.
What is industrial process anomaly detection?
Industrial process anomaly detection looks beyond individual sensors and focuses on the behaviour of the entire process over time. Instead of asking “is this temperature too high?”, it asks “is this combination of temperature, pressure, energy use and output quality consistent with how this line normally behaves in this context?”
From point anomalies to sequence anomalies
In practice, this means working with sequences and states:
- Start-up and shutdown profiles of machines.
- Typical cycle time distributions per product type.
- Energy consumption per batch or shift.
- Relationships between upstream and downstream stations.
For example, if a refrigeration unit reports a stable 4 °C but compressors are cycling in an unusual pattern and energy consumption is lower than usual, something is off. A process-level model can flag this inconsistency even if each single variable is within its nominal range.
Architectural patterns for process-level detection
For an SME, you don’t need a full-blown data lake to start. A pragmatic architecture could be:
- Edge gateway collecting PLC tags and energy meters via Modbus/OPC UA.
- Local time-series store (e.g. InfluxDB) on an industrial PC.
- Python service running process-level models and writing anomaly scores back as virtual tags.
- SCADA integration to display anomaly scores and alerts alongside traditional alarms.
This is exactly the type of integration where a progetto di automazione dei processi aziendali ben progettato può fare la differenza: orchestrare dati, logiche e notifiche senza introdurre nuovi punti deboli.
What is industrial IoT anomaly detection?
Industrial IoT (IIoT) anomaly detection extends the same ideas to distributed assets and connected devices. Instead of a single line or plant, you are monitoring fleets of machines, remote sites, or multi-tenant equipment installed at customer locations.
New signals, new attack surfaces
With IIoT you gain new types of data:
- Device health metrics (CPU, memory, connectivity).
- Firmware versions and configuration changes.
- Network-level information (latency, packet loss).
- Cloud-side logs and API usage patterns.
But you also gain new ways for attackers to tamper with what you see: compromised gateways, spoofed devices, man-in-the-middle on MQTT or HTTP, malicious firmware updates.
Effective IIoT anomaly detection therefore needs to combine:
- Operational anomalies (how the machine behaves).
- Cyber anomalies (how the device communicates and updates).
- Business anomalies (usage patterns inconsistent with contracts or SLAs).
Edge vs cloud for anomaly detection
A common pattern is to split responsibilities:
- Edge: fast, simple checks close to the process (thresholds, small ML models) that can act even when disconnected.
- Cloud or data centre: heavier models, fleet-wide correlations, cross-site comparisons.
For Italian SMEs, a hybrid approach is often ideal: keep critical safety and basic anomaly checks on-premise, and use cloud or colocation for fleet analytics, provided data privacy and GDPR are handled correctly. In some cases, running AI models locally with tools like Ollama or similar can reduce dependency on SaaS and external data flows, as explored in other articles on AI in locale.
What does “tampering detection” mean in OT?
Tampering detection is about identifying when someone is actively manipulating what your systems see or do. In OT, this can be more dangerous than a simple fault, because it is intentional and often designed to bypass your existing protections.
Typical tampering scenarios in industrial environments
Some realistic scenarios include:
- Sensor spoofing: the PLC receives a forged temperature value while the real probe is disconnected or bypassed.
- Alarm suppression: alarm bits are forced to 0 in the PLC logic or SCADA configuration.
- Setpoint manipulation: someone changes limits or PID parameters to unsafe values, then hides the change in the HMI.
- Log tampering: historical data is altered to hide an incident or make a process look compliant.
In all these cases, traditional anomaly detection that trusts the main data stream may fail. You need models and architectures that explicitly look for inconsistencies and impossible behaviours.
Patterns for detecting tampering, not just faults
Some practical patterns you can implement:
- Cross-sensor consistency checks: compare temperature with compressor current, valve positions and energy use. If they don’t match physics, raise a tampering suspicion.
- Redundant measurements: independent sensors (even low-cost) feeding a separate path that the attacker is less likely to control.
- Configuration drift monitoring: track PLC, HMI and SCADA configuration changes over time and alert on unexpected edits or firmware changes.
- Out-of-band logging: send critical logs and key sensor summaries to a separate system that the main OT network cannot easily alter.
AI helps here by learning normal relationships between variables and flagging when those relationships break, even if each single value looks plausible. But AI alone is not enough: you need architectural decisions that give the AI something trustworthy to work with.
What does “tampering” mean in practice, and how do we defend against it?
Tampering, in this context, is any deliberate interference with sensors, control logic, displays or logs to change behaviour or hide reality. It can be done by external attackers, malicious insiders, or even well-meaning technicians taking shortcuts.
Step 1: Accept that your primary data path can lie
The first mindset shift for CTOs and engineering managers is to stop assuming that PLC/SCADA data is always ground truth. In a modern OT environment, you must design as if that path can be compromised.
This has direct implications for how you design AI products for industry:
- Models should be trained to detect inconsistencies, not just out-of-range values.
- Architectures should include independent data sources that are harder to tamper with simultaneously.
- Alarms should be able to trigger from secondary channels, not only from the main SCADA.
Step 2: Design independent sensor monitoring
Independent sensor monitoring means adding a parallel measurement and analytics path that does not fully trust the main control system. Some concrete options:
- Secondary sensors (e.g. wireless temperature probes) sending data directly to an edge gateway, bypassing the PLC.
- Smart meters on power lines feeding a separate monitoring system.
- Computer vision (e.g. thermal cameras, visual inspection) cross-checking what sensors report.
These independent channels can be relatively low-cost and low-resolution, but they give your AI models a way to say: “the PLC says 4 °C, but the independent probe and thermal camera disagree”. That’s your tampering alert.
Step 3: Build a tamper-aware anomaly detection pipeline
A practical pipeline for an SME might look like this:
- Data ingestion from both primary (PLC/SCADA) and independent sensors into a local time-series store.
- Feature engineering that explicitly encodes cross-checks (differences between sensors, energy vs output, etc.).
- Two-layer anomaly scoring:
- Layer 1: process anomalies (equipment behaviour, quality, efficiency).
- Layer 2: tampering anomalies (inconsistencies, impossible physics, configuration drifts).
- Alerting and visualisation integrated into existing dashboards, with clear distinction between “fault” and “possible tampering”.
This is the type of architecture where custom development pays off: generic SaaS often assumes your data is honest, while a software su misura can embed your specific process knowledge and risk model.
Step 4: Governance, not just algorithms
Finally, tampering defence is not only a technical problem. You need:
- Access control on who can change PLC logic, SCADA screens and alarm thresholds.
- Change management with approvals and logging for configuration edits.
- Periodic audits where someone independent reviews logs, configurations and anomaly patterns.
If you are already working on data governance and automation in your IT stack (for example with SharePoint, Power Platform and Copilot, as discussed in guide alla governance dei dati e automazioni), the same principles apply in OT: clear ownership, traceability, least privilege.
From theory to your next project
For CTOs, engineering managers and AI product leaders, the refrigeration attack is not an exotic story: it is a preview of what will increasingly happen in connected factories, logistics and utilities.
When you design your next industrial analytics or AI project, ask explicitly:
- What happens if the main data source lies?
- Which independent signals could we add at reasonable cost?
- How can we make our anomaly detection tamper-aware, not just fault-aware?
- Where do we need custom software to glue these pieces together reliably?
If you want to explore how independent sensor monitoring, AI anomaly detection and robust architectures could look in your specific plant or product, we can design and implement a tailored solution, from edge data collection to dashboards and alerts, with attention to GDPR and SME constraints. Start from a focused project of automazione dei processi aziendali: riduci errori, tempi e attività manuali.
Frequently asked questions
What is AI anomaly detection?
AI anomaly detection is the use of machine learning models to automatically spot unusual patterns in data that may indicate faults, attacks or process drifts. In industrial contexts it learns the normal behaviour of sensors and equipment, then flags deviations in real time, even when they don’t match predefined thresholds or known failure modes.
What are common industrial anomaly detection methods?
Common industrial anomaly detection methods include rule-based thresholds, statistical process control, multivariate models like PCA, and machine learning approaches such as autoencoders or isolation forests. In practice, plants often combine simple rules for fast alerts with AI models that capture complex correlations between sensors, loads, and operating conditions.
What is industrial process anomaly detection?
Industrial process anomaly detection focuses on identifying abnormal behaviour in the end-to-end production process, not just single sensors. It analyses time series from multiple points in the line, setpoints, quality data and sometimes maintenance logs, to detect drifts, bottlenecks, or attacks that subtly change how the process behaves over time.
What is industrial IoT anomaly detection?
Industrial IoT anomaly detection uses data from connected devices, gateways and cloud platforms to monitor equipment and processes for unusual patterns. It typically aggregates sensor streams from PLCs, smart meters and edge devices, then applies analytics or AI models to detect faults, cyberattacks, or inefficiencies across distributed assets and remote sites.
What does “tampering detection” mean?
Tampering detection means identifying when data, devices or control signals have been intentionally altered, bypassed or forged. In OT and industrial systems it focuses on spotting inconsistencies between independent data sources, impossible physical behaviours, or suspicious configuration changes that suggest someone is manipulating what operators and software see.
What does “tampering” mean?
Tampering means deliberately interfering with a system, device or data to change its behaviour or hide the truth. In industrial environments this can include modifying sensor readings, overriding safety limits, disabling alarms, or altering logs so that equipment appears to operate normally while it is actually unsafe, inefficient or under attack.