---
title: 'Fake Inverters: Surrogate Models & Cyber Attacks'
url: https://www.emergentmind.com/topics/fake-inverters
type: topic
---

# Fake Inverters: Surrogate Models & Cyber Attacks

“Fake inverters” denotes two distinct but increasingly connected constructs in contemporary power-systems research. In one sense, the term refers to a learned surrogate that emulates the proprietary dynamics of an inverter closely enough to support grid dynamic studies without access to original equipment manufacturer internals; in another, it refers to a smart inverter whose firmware, communicated parameters, or cyber-physical control signals have been maliciously altered so that the device no longer enforces the intended control law. Recent work places these meanings within a common technical frame: opacity of internal inverter behavior motivates surrogate modeling, while exposure of control firmware and remote parameterization motivates detection, mitigation, and system-level risk analysis [2507.15259] [2009.07691] [2309.10304] [2107.00151] [2408.16958] [2505.14175].

## 1. Dual usage and conceptual scope

In grid dynamic studies, operators increasingly need accurate inverter models for time-domain simulation, stability analysis, and controller gain tuning, yet original equipment manufacturers rarely disclose proprietary control architectures or parameter values. One line of work therefore addresses “fake” inverters as deliberately constructed surrogates: models learned from time-series data that reproduce the dynamics of proprietary inverter-based resources, especially grid-forming inverters, while embedding known physical structure [2507.15259].

A different line of work uses the term for compromised devices. In microgrids and distribution systems, malicious firmware, controller modification, setpoint tampering, denial-of-service, and false-data injection can make an inverter appear operational while causing it to obey adversarial logic. This includes attacks on embedded firmware, remote manipulation of Volt-VAr curves, falsification of measurements in distributed secondary control, and time-varying tampering of primary frequency-control droop coefficients [2009.07691] [2309.10304] [2107.00151] [2408.16958].

This suggests that the common denominator is not authenticity of hardware but authenticity of behavior. In the surrogate setting, a “fake” inverter is intentionally engineered to reproduce authentic dynamics for analysis. In the adversarial setting, a “fake” inverter is a genuine or apparently genuine device whose closed-loop behavior no longer matches the intended physics, grid code, or supervisory commands.

## 2. Physics-informed surrogate inverters for proprietary dynamics

The most explicit constructive treatment of fake inverters appears in the Physics-Informed Latent Neural ODE Model (PI-LNM), developed to learn an accurate surrogate directly from time-series data while embedding known physics [2507.15259]. Training and validation are performed on trajectories of measured or observed signals
$$
x = [\theta, \omega, V^e, V, P^n, Q^n],
$$
where $\theta$ is angle, $\omega$ is frequency, $V^e$ is the voltage control error, $V$ is internal voltage magnitude, and $P^n, Q^n$ are active and reactive power delivered to the network.

The latent ODE has dimension $24$. The first four latent dimensions are tied to the physically meaningful states $[\theta, \omega, V^e, V]$, while the remaining latent coordinates capture unmodeled or proprietary behavior, including inner control loops, limiters, and sampling or transport delays. An ODE-RNN encoder processes batches of observation sequences $\{x_i,t_i\}$, producing a hidden summary $h_T$, and a neural network $g$ maps $h_T$ to posterior parameters of the initial latent state,
$$
q_\phi(z_0 \mid \{x_i,t_i\}) = N(\mu_{z_0}, \sigma_{z_0}).
$$
A decoder $h_\phi$ maps latent states back to the observation space, with the latent states obtained by integrating the latent ODE.

The central modeling choice is the separation of known physics and learned residuals. In latent form,
$$
\dot{z}(t) = f_\theta(z(t), t), \qquad x(t)=h_\phi(z(t)).
$$
In physical coordinates, the model uses
$$
\dot{x}(t) = f_{\text{phys}}(x(t),u(t),p) + r_\theta(x(t),u(t)),
$$
where $u(t)$ are inputs or disturbances and $r_\theta$ learns the unmodeled part. The embedded physics uses a representative grid-forming inverter structure with droop- or REGFM_A1-like outer-loop behavior and uncertain parameters, while the residual compensates for mismatched gains and proprietary details. In the reported case study, the embedded droop and voltage-control gains are perturbed by $\pm 20\%$ relative to the unknown proprietary values.

The known structure can incorporate dq-frame filter dynamics,
$$
\begin{aligned}
L_f \dot{i}_d &= -R_f i_d + \omega L_f i_q + v_{cd} - v_{gd}, \\
L_f \dot{i}_q &= -R_f i_q - \omega L_f i_d + v_{cq} - v_{gq}, \\
C_f \dot{v}_{cd} &= i_d - i_{od} - \omega C_f v_{cq}, \\
C_f \dot{v}_{cq} &= i_q - i_{oq} + \omega C_f v_{cd},
\end{aligned}
$$
together with droop or virtual synchronous machine relations such as
$$
\omega = \omega_0 - K_p(P-P^\star), \qquad V = V^\star - K_q(Q-Q^\star),
$$
or
$$
M\dot{\omega}=P_m-P_e-D(\omega-\omega_0),
$$
and dq-frame power relationships
$$
P=\tfrac{3}{2}(v_d i_d + v_q i_q), \qquad
Q=\tfrac{3}{2}(v_q i_d - v_d i_q).
$$

Training uses a variational objective maximizing the evidence lower bound, optionally augmented with physics residual penalties and parameter regularization. Data generation applies sudden load changes at $t=0$ spanning $0.5$–$5$ p.u.; trajectories are recorded for $10$ seconds at $\Delta t = 0.01$ s. The dataset contains $2000$ samples, each with six trajectories. Optimization uses batch size $200$, initial learning rate $0.02$, and $2000$ iterations.

The reported quantitative comparison is against an RNN trained purely on data without physics guidance. Voltage RMSE decreases from $6.0\times 10^{-3}$ p.u. to $4.0\times 10^{-3}$ p.u., a $33.3\%$ reduction, and frequency RMSE decreases from $5.8\times 10^{-3}$ Hz to $2.2\times 10^{-3}$ Hz, a $62.1\%$ reduction. The surrogate remains robust across $0.5$–$5$ p.u. load steps despite the $\pm 20\%$ parameter uncertainty. Because the model retains a physics skeleton plus learned residuals, it can be dropped into a grid simulator for transient studies, disturbance response analysis, stability assessment, and gain tuning without access to OEM internals.

## 3. Compromised inverters as adversarial behavioral forgeries

In the adversarial literature, fake inverters arise when control behavior is altered at the firmware, parameter, or communication level. One attack class modifies firmware binaries or update images on consumer-grade smart inverter controllers, enabling controller modification, setpoint tampering, or denial-of-service. In this setting, primary and secondary control loops, protection logic, or communications handling are changed without authorization, and the device may inject unintended real or reactive power or fail to actuate control tasks [2009.07691].

For droop-controlled inverters, controller and setpoint modification directly perturb the usual laws
$$
f = f_0 - K_P(P-P_{\mathrm{ref}}), \qquad
V = V_0 - K_Q(Q-Q_{\mathrm{ref}}).
$$
Reducing or increasing $K_P$ and $K_Q$ changes power sharing and oscillatory tendencies; biasing $P_{\mathrm{ref}}$ or $Q_{\mathrm{ref}}$ induces sustained frequency or voltage deviations. The same work notes the standard approximations
$$
P \approx \frac{V_1V_2}{X}\sin(\delta), \qquad
Q \approx \frac{V_1^2 - V_1V_2\cos(\delta)}{X},
$$
which clarify how controller changes that alter $f$, $V$, or $\delta$ propagate into power-flow deviations [2009.07691].

A second attack surface is remote parameterization of Volt-VAr control. A canonical piecewise $Q(V)$ law is defined by four breakpoints $V_1<V_2<V_3<V_4$, or equivalently $v_a,v_b,v_c,v_d$, with a deadband and negative-sloped regions. The paper on malicious Volt-VAr control parameters writes
$$
Q_{\max}=\sqrt{S_{\max}^2-P_{\mathrm{ref}}^2}
$$
and specifies a scaled piecewise mapping from local voltage to $Q_{\mathrm{ref}}(t)$. Attackers can narrow the deadband, steepen slopes, shift thresholds, or invert the curve, causing reactive power oscillation and undesirable voltage oscillations. In the reported demonstration on the 9-bus Canadian urban benchmark distribution system, DG1 has baseline parameters $v_a=0.95$, $v_b=0.98$, $v_c=1.02$, $v_d=1.05$ and nominal $v \approx 1.011$ pu; at $t=3$ s, shifting $v_b \to 1.02$ and $v_c \to 1.04$ places the operating point in a sloped region and triggers persistent reactive injection [2309.10304].

A third mechanism operates through distributed cooperative control. In a four-DG microgrid, false data injection on communication links alters neighbor information used by distributed secondary voltage and frequency controllers. The compromised feedback is modeled as
$$
h(u_i(t)) = u_i(t)+\phi_i(t),
$$
with either a non-periodic scaling attack,
$$
h(u_i(t))=
\begin{cases}
u_i(t), & t<\tau,\\
u_i(t)+\alpha u_i(t), & t>\tau,
\end{cases}
$$
or a periodic modulation,
$$
\phi_i(t)=
\begin{cases}
0, & t<\tau,\\
\beta \sin(\omega t)\,u_i(t), & t>\tau.
\end{cases}
$$
Because the distributed controller uses neighbor signals through consensus terms, a compromised node behaves as a fake agent whose falsified measurements propagate through the cooperative layer [2107.00151].

A fourth mechanism targets primary frequency control in inverter-based resources by changing droop coefficients in real time. The attacked inverter contribution becomes
$$
p^{\mathrm{IBR}}_{i,t} = k'_{i,t}\omega_{i,t},
$$
instead of the nominal proportional droop law. In the RL-based study, the adversary can tamper with only one inverter per time step and chooses $k'_{i,t}\in\{-1,0,1\}$, thereby reversing droop, removing stabilizing action, or applying a non-nominal positive droop at selected times [2408.16958].

## 4. Dynamical mechanisms and grid-level consequences

The local dynamical consequence of a fake inverter depends on the control surface being manipulated. For Volt-VAr attacks, the relevant mechanism is the coupling between feeder voltage and inverter reactive power. Around an operating voltage $V^\ast$, the paper linearizes the interaction as
$$
V_{k+1}=aV_k+bQ_k, \qquad Q_k \approx -m(V_k-V_{\mathrm{set}}),
$$
so that
$$
V_{k+1}\approx (a-bm)V_k + bmV_{\mathrm{set}},
$$
with local stability requiring $|a-bm|<1$. Malicious parameter choices that make $m$ large or shift $V_{\mathrm{set}}$ into a steep segment can violate this condition and produce sustained or growing oscillations [2309.10304].

At the wide-area level, coordinated attacks on distributed PV inverters act primarily through frequency. The Australian assessment models the aggregate rate of change of frequency as
$$
\frac{df(t)}{dt} = \frac{f_n}{2}\frac{\Delta P(t)}{K_{\mathrm{sys}}},
$$
with $f_n=50$ Hz, and models reserve ramping as
$$
P(t)=P_{\max}(1-e^{-t/\tau}).
$$
The central observation is that midday distributed PV output reduces synchronous plant dispatch, so both contingency reserves and system inertia are low exactly when distributed PV output is high [2505.14175].

The reported vulnerable regime is quantitatively specific. Distributed PV can reach approximately $75\%$ of load at noon. In representative windows, ESS Raise is approximately $0.22$ GW while DPV is approximately $1.9$–$2.0$ GW. A coordinated DPV loss of approximately $0.24$ GW, corresponding to approximately $12$–$13\%$ of DPV and approximately $9$–$10\%$ of total load at the moment, is enough to drive frequency to the UFLS threshold in approximately $4.4$–$5.5$ seconds, depending on inertia. Conversely, a DPV hike of approximately $0.22$ GW, approximately $10$–$12\%$ of DPV, can reach OFGS in approximately $5.7$–$7.7$ seconds under low-inertia scenarios. The paper therefore concludes that significant impact is only observed under careful planning and orchestration, but that a relatively low share of active DPV can be impactful when timed to coincide with low ESS-to-DPV ratios and low RoCoF control [2505.14175].

The RL-based primary-frequency-control study complements this by showing that timing and target selection matter even under a one-target-per-step constraint. Enumerating all time-invariant attacks over a 5 s horizon yields a best cumulative reward of $\mathcal{R}=584$ by perturbing G7 with $k'=-1$. Three PPO runs on the time-varying action space produce $\mathcal{R}=584$, $\mathcal{R}=590$, and $\mathcal{R}=1085$, with the strongest policy primarily targeting G6 and switching intermittently to G7 and G3. This indicates that time-varying schedules aligned with natural oscillations can be more damaging than a constant manipulation [2408.16958].

## 5. Detection, verification, and mitigation architectures

Detection and mitigation approaches differ according to whether the objective is runtime attestation, parameter screening, or resilient closed-loop control. For firmware attacks, one approach instruments inverter controllers with custom design-for-security hardware performance counters. These HPCs periodically measure the order of various instruction types executed by the firmware, and machine-learning classifiers detect deviations from benign instruction-order profiles. The work reports that firmware modifications are successfully identified by custom-built HPCs utilizing various machine learning-based classifiers, and positions this as a complement to secure boot, runtime attestation, network intrusion detection, and power-signal anomaly detection [2009.07691].

For malicious Volt-VAr updates, detection is performed at the point of receipt using only local inverter measurements. The feature set includes the new VVC parameters $v_a,v_b,v_c,v_d$, magnitudes of three-phase voltages and currents, dq-frame quantities $V_d,V_q,I_d,I_q$, and an oscillation proxy
$$
\zeta = c|v_{\mathrm{pcc}}-v_n|^p,
$$
with $c=100$ and $p=2$. A compact MLP is trained offline with forward pass
$$
h^{(1)}=\mathrm{ReLU}(W^{(1)}x+b^{(1)}), \quad
h^{(2)}=\mathrm{ReLU}(W^{(2)}h^{(1)}+b^{(2)}), \quad
\hat{y}=\mathrm{sigmoid}(W^{(3)}h^{(2)}+b^{(3)}),
$$
and binary cross-entropy plus $L_2$ regularization. The best-performing model uses three layers with $7$, $159$, and $1$ neuron, with $\lambda = 5.2128\times 10^{-7}$. On the held-out $20\%$ test set, the reported metrics are accuracy $99.75\%$, precision $99.8\%$, recall $99.7\%$, and F1-score $99.74\%$, with false positive rate approximately $0.3\%$ and false negative rate approximately $0.2\%$ [2309.10304].

Mitigation can also be integrated directly into the secondary controller rather than separated into detection and fallback. In the cooperative microgrid study, the baseline distributed secondary controller uses
$$
v_{en}=\sum_{j\in S_n} a_{ij}(v_i-v_j)+b_i(v_i-v^\ast),
$$
and
$$
u_i=-c_g\Big(\sum_{j\in S_n}a_{ij}(\omega_i-\omega_j)+b_i(\omega_i-\omega^\ast)+\sum_{j\in S_n}a_{ij}(m_{P_i}P_i-m_{P_j}P_j)\Big).
$$
The proposed mitigation replaces the PI-based distributed secondary voltage controller with a single-hidden-layer feedforward neural network with input size $7$, hidden layer $10$ neurons with tansig activation, and output layer $1$ neuron with purelin activation. Trained offline on normal and attack scenarios sampled at $1$ ms, the ANN generates resilient voltage references that preserve nominal operation under both non-periodic and periodic false-data injection initiated at $\tau=2$ s [2107.00151].

The defensive implications are layered rather than singular. Secure defaults, authenticated updates, secure boot, and rate-limited parameter changes reduce exposure; runtime attestation and HPC-based monitoring target firmware execution; local-learning schemes verify candidate control curves; and resilient controllers maintain operation when communication-layer measurements are falsified. This suggests that fake-inverter defense is structurally a defense-in-depth problem rather than a single-classification problem.

## 6. Limits, assumptions, and research directions

The surrogate-model literature emphasizes that fidelity depends on informative excitation, observability, and regularization. The PI-LNM case study assumes training data generated by sudden load changes spanning $0.5$–$5$ p.u., recorded for $10$ seconds at $\Delta t=0.01$ s; poorly excited or noisy data may reduce accuracy, weakly observable internal dynamics make residual learning harder, and larger discrepancies than the demonstrated $\pm 20\%$ parameter mismatch may require stronger residual capacity or parameter-estimation loops. The same framework is described as naturally extensible to grid-following inverters, different filter topologies, multiple OEM units, protections, and multi-inverter interaction [2507.15259].

The security literature imposes its own assumptions. HPC-based detection requires access to instruction-order information and relatively stable benign instruction-order signatures; legitimate firmware updates can change those signatures and trigger false positives, and portability across MCU, DSP, and SoC architectures requires retraining [2009.07691]. The Volt-VAr detector is demonstrated on a 9-bus urban feeder with four distributed generators, and extension to different topologies, higher PV penetrations, other control modes such as Volt-Watt and frequency-watt, and one-class or hybrid rule/ML detection is presented as future work [2309.10304]. The ANN-based secondary-control paper is mitigation-by-design rather than explicit detection, provides no formal Lyapunov or passivity-based stability proof, and does not model communication delays, packet losses, or noise [2107.00151]. The RL attack-discovery study includes no explicit detector in the loop, uses relatively simple discrete actions, and notes a rough reward landscape with substantial variance across PPO runs [2408.16958]. The Australian system-level assessment notes uncertainty in load-inertia estimation, operational difficulty of covertly coordinating thousands of devices, and limited data transparency outside the Australian context, even though the broader lesson is the misalignment of contingency capacity and inertia with distributed-PV output [2505.14175].

Taken together, these limitations indicate that fake inverters are not a unitary object but a research boundary spanning system identification, cyber-physical security, embedded monitoring, local control verification, and market-aware stability analysis. A plausible implication is that future work will increasingly couple these layers: physics-informed surrogates for hidden controls, device-level behavioral attestation, local screening of remotely communicated settings, resilient secondary control, and system-level reserve design that explicitly accounts for adversarially manipulated inverter fleets.

Source: https://www.emergentmind.com/topics/fake-inverters