Daeken's Blackhat paper on the security flaws in Onity locks
daeken.com
daeken.com
I actually worked on something like this where I had a program that would send arbitrary code to be executed on a device. That way it could be made to do whatever we wanted.
That isn't a bad thing if there's some way to authenticate, and it looks like the big flaw here is that the unique ID is also readable from the same memory.
Executing code has the same memory layout problems and is a complete no-go if your target device happens to use the Harvard architecture.