Red-handed / Caught in the act
Literally 'with hands in the dough'. Describes catching someone in the act of doing something they shouldn't be doing.
They caught him red-handed.
—Did he deny it? —He couldn't, they caught him in the act.
I caught her red-handed going through my messages.