A computer program does what you tell it to do, not what you want it to do.
The mind is a stream of processes, not a collection of objects.
The only truly secure system is one that is powered off, cast in a block of concrete and sealed in a lead-lined room with armed guards - and even then I have my doubts.