Illegal? Hardly. Outside of policy, perhaps.
Theft is theft, covert recording of a person who's stealing, where they do not have a reasonable expectation of privacy, is not a criminal offence.
Hence the " " around illegal.....
The OP doesn't really give a **** and isn't concerned about the principal of it.
He's out to have fun.
Guess you missed that....