They might also force you to hand over the access codes to the cyberware, slave it to the prison computers and have their deckers keep an eye on you, and essentially be able to shut you down completely if necessary. As long as you behave nothing bad happens, but if needed suddenly all your limbs go limp.
Dunno if that's really possible, but I'd suspect without an actual cyberdeck or at least commlink you'd have a hard time reversing any of that. And implanted decks/commlinks they'll probably take out or destroy.