Definitely guilty of a crime or other misdeed; caught in the act. Thanks to footage from the security cameras, the police were able to catch the burglars bang dead to rights.
(bang) dead to rights
mod. in the act; [guilty] without question. We caught her dead to rights with the loot still on her.