Graph attention network detects cyberattacks in PV arrays with near-perfect accuracy
New topology-aware framework uses graph neural networks to spot anomalies in grid-connected solar arrays without labeled attack data.

Researchers Danilo Greco and Giovanni Battista Gaggero have developed a topology-aware graph-attentive one-class anomaly detection framework that identifies cyberattacks in grid-connected photovoltaic arrays without prior exposure to labeled attack patterns. The approach, detailed in the Energy Informatics journal, models sensor data through graph-structured relationships to detect subtle manipulations that traditional network intrusion systems miss.
The proposed Enhanced Graph Neural Network (Enhanced GNN) uses graph attention mechanisms to compute adaptive attention coefficients across sensor nodes. Unlike classical anomaly detection algorithms such as Isolation Forest, One-Class Support Vector Machines (One-Class SVM) and Local Outlier Factor (LOF), the graph-based method accounts for the interconnected nature of PV system measurements rather than treating each sensor channel as statistically independent.
How the framework works
Solar infrastructures are cyber-physical systems that rely on digital automation for monitoring and control. This digital integration expands the attack surface, allowing adversaries to target control loops or compromise state estimation. Traditional network intrusion detection often fails to catch subtle parameter manipulations that deviate only slightly from normal operating ranges.
The Enhanced GNN is trained exclusively on normal operating behavior baselines. It learns what healthy PV array performance looks like and flags deviations without needing a catalogue of known attack signatures. This one-class learning approach addresses a practical challenge in real deployments: labeled attack instances are scarce and highly diverse.
The researchers evaluated their framework on the Photo-Set benchmark dataset, a standard reference for PV physics-based cybersecurity monitoring. Photo-Set contains 22 distinct telemetry features recorded at 1-second intervals. The model was trained on a 3-day uncorrupted baseline and tested against 11 labeled evaluation sets covering various attack scenarios.
Performance results
The Enhanced GNN outperformed classical algorithms across all evaluation sets. Using a fixed 95th percentile threshold, the framework achieved an average F1-score of 0.884. With dataset-specific optimization, performance improved to an average F1-score of 0.927.
The model delivered near-perfect accuracy on firmware manipulations and short-circuit events, two attack types that are particularly difficult to detect through conventional network monitoring because they manifest as physical rather than digital anomalies.
Computational requirements are modest. Training requires 80 to 120 epochs and completes in 15 to 25 minutes on a consumer-grade GPU. Graph building for 20,000 samples takes 8 to 12 seconds. Inference is extremely fast: less than 0.5 seconds per 100 test instances, making the framework suitable for real-time or near-real-time monitoring applications.
Why graph networks matter for solar security
Physics-based monitoring leverages the physical principles of power generation to detect anomalies, but classical algorithms assume statistical independence across sensor channels. In reality, measurements from voltage sensors, current transducers, irradiance meters and temperature probes are structurally interdependent. A voltage drop at one node affects current flow at adjacent nodes.
Graph neural networks model these measurements as interconnected nodes, preserving the physical topology of the PV array. The graph attention mechanism assigns adaptive weights to different sensor relationships, allowing the model to focus on the most informative connections for each specific detection task. The framework computes five geometrical descriptors per measurement and uses k-nearest-neighbor scales of 5, 10 and 20 neighbors for graph construction.
Implications for solar industry professionals
For solar asset owners and operators, the ability to detect cyberattacks without labeled training data is a significant practical advantage. Most PV installations do not have access to comprehensive attack libraries, and the threat landscape evolves faster than labelled datasets can be updated. A one-class approach that learns normal behaviour and flags everything else can be deployed more quickly and maintained more easily.
The near-perfect detection of firmware manipulations is particularly relevant as more inverters and monitoring devices receive over-the-air updates. Attackers who compromise firmware can alter power output, disable safety protections or cause physical damage while appearing normal to network-level monitoring tools.
The framework's fast inference time — under half a second per 100 instances — means it could be integrated into existing supervisory control and data acquisition (SCADA) systems or edge computing platforms without introducing prohibitive latency. The modest training requirements on consumer GPUs also lower the barrier to entry for smaller solar operators.
The research was published in the Energy Informatics journal and reported via Bioengineer.org. It was published on November 11, 2026.