I’m confused… you stated this like you didn’t have them INSIDE your base:

So… are they INSIDE your base or are they outside? You just said they were on solid ground in a basement, as though they’re INSIDE your base. So which is it? Are your thralls accessible to others or are they not? You could provide some screenshots or something so we can help you better protect, assuming anything like this may happen again. Up to you though.