Just guessing but a same sort of "service", run directly from the political top, that puts hundreds of thousands of people in camps or controls and punishes otherwise. I expect some methods that are not so different from methods under Stalin (NKVD). It also puts the military under control and takes action where needed.
Yeah, but you see, I believe these generals are the political top.