A UPS management feature that runs a script when the power fails gives an intruder a trusted, built-in way to execute code on a domain controller, dump Active Directory secrets and launch a persistent implant.