@rick_777 Good advice, and I've used it myself.
When I wrote my first published novel, "Without Bloodshed", I showed my grey hat hacker character, Claire Ashecroft, breaking into a police AI by having her household AI start a "POSIX session" (a virtual Unix machine) for her so that it would have plausible deniability. As she used ssh to access a backdoor that a sysadmin she was fucking had created for her, I had her think over the consequences of the crack going bad.