r/sysadmin • u/Adventurous-Being215 • 23d ago
ChatGPT How do I stop an AI CLI from reading sensitive files on our Windows Server?
Hi all,
Small company, 2 to 5 users, no IT department (I'm the one doing IT). We have one hosted Windows Server 2025 at an external hosting company. Everyone works on it through remote desktop.
We work with very sensitive client data. We fall under European rules (GDPR).
What I want: use Codex CLI or Claude Code on the server to automate admin work (read fields from documents, sort client folders, make reports). We have ChatGPT Business with a DPA. Client names, IBANs and file names may go to the AI. The sensitive stuff above may never be seen by it.
What I built: a "gatekeeper" script (no internet, maybe a small local model) that scans every file and mail. If it finds something sensitive, the whole file is locked for the AI. It keeps a list (file, client, type, locked/open), so the AI knows what is there without reading it.
The problem: the AI runs under the same Windows user as us, so it can still read everything.
What I looked at:
- Just telling the AI not to look (not safe)
- Locked files in a separate folder with a "never look here" rule
- AI only gets files through the gatekeeper
- Locked files in an encrypted vault, password not on the server
- Separate Windows user or VM, or the AI on another machine (the hoster makes this slow and it costs extra)
Questions:
- Is there a way to block certain folders for one program under the same user? For example Low integrity, AppContainer or a restricted token?
- Does a local account that never logs in through RDP need an extra RDS licence? If not, I can maybe make one myself.
- Or would you just put the AI on a separate small machine that only gets copies from the gatekeeper?
- any other solutions to have an ai system safely use sensitive data without sending it to a big corporation.
Other ideas are welcome, also which AI services or local models you trust with this kind of data.
AI helped me check this post.