The technology is a bit hush-hush, but it is already possible to read brainwaves, and "interrogate" someone through fMRI. Just thinking about your password may reveal it, if they are allowed to force your brain near a reader.
The first serious (public) ventures into this technology was around 2000. Advances in machine learning then made it possible to read objects and concepts that were not in a training set. It was used and tested extensively in Guantanamo Bay. The legal status is still ambiguous, but I guess that it is used just in very special cases (where the detainment itself may be legally ambiguous, such as at a black site).
The Legality of the Use of Psychiatric Neuroimaging in Intelligence Interrogation (2005) https://pdfs.semanticscholar.org/906b/8afdd39ecda3a265987a09... [pdf]
(Disclaimer: I don’t agree with this position but I have a lot of friends who think the government can do no wrong)