Imagine a world where digital intelligence (or DI) is near obsolete, replaced by biological intelligence (BI) whose programming lay within synthetic DNA. These biological computers have creativity, morality, and personality (and have rights similar to humans). They're specialized for surveillance, research, and other complex tasks. Humans are also enhanced with synthetic DNA, making for smarter, faster, stronger and more diverse humans. Nanomachines and microbots are practical and prolific, used for everything from hairstyles to DNA repair. Brain reading is accurate, immediate and non-invasive.
It's been found that mind control has limited applications due to the complex plasticity of the brain, but that doesn't stop old-fashioned methods from being enhanced by powerful technology. Additionally, memories are malleable. They can be altered by association and can even be blocked. (This technology works by getting the patient to recall the event and then waiting about 10 minutes before applying the false memory. This false memory can and often will be a sort of interrupting static, like an image, smell or sound, or some combination of them. It has a variety of applications.)
If you lived in this world and criminality was treated more like a symptom than an offense, what sorts of advanced technology would you utilize to treat those who perpetrate crimes?
In addition, if you were part of a totalitarian regime in this world secretly forcing scientists to work with BI to produce dangerous new war technology for you, what kinds of technology would you utilize to keep the prisoners and the scientists working against their will in order?
Basically, I'm assuming the regime would use both common and uncommon methods in their application, hence why I'm asking two questions. I've scoured the internet looking for applications for brain scanners and nanomachines in prisons, but I haven't found much. Thanks for reading this. (It's my first question so thanks for your patience.)
Edit: I've made minor alterations due to suggestions in the comments. I added a few more details about what sorts of technology is used in the world. I also added to the second question in bold to add clarification to what I had intended the question to mean. The scientists would be much harder to deal with because you're trying to control them while simultaneously giving them the ideal environment to work together and invent within.