Hello fellow local AI friends.
Overview / Ask:
I consider myself a decent self-taught sysadmin a grasp of security concepts, but this new age of LLMs and the explosion of CVEs we’ve seen this year makes me think I need to update my idea of what a “safe sandbox” is for my LLM agents and harness and am seeking feedback from folks on how to harden my local environment.
tl;dr:
In the past, I considered sandbox containers/VMs and user accounts to be enough protection, but I think this is too naive for advanced models:
-
Open weight models are very capable, but the source of the model and model weights (e.g. fine tuning, abliteration, frontier labs in other countries, etc.) could inject directives and tool calls for my agents to follow
-
LLM Harnesses offer some protection (like Turnstone’s “judge” model), but generally only log and execute tool calls (maybe after asking for permission to do so)
I believe I need to rethink LLM permissions and output holistically:
- All network access should be logged
- Network calls beyond the internal network (or tool call executing a script or CLI command to do so) should participate in a threat evaluation to ask for my permission to do so
- Tool calls should be audited and checked for any “outliers”
- All code generated should go through an LLM-assisted “red team” review to ensure the latest security best practices are in place and known CVEs are not present in output code
My Environment:
-
Turnstone harness:
- Coordinator VM
- Two Worker Node VMs
-
LLM Inference Routing Layer:
- nVidia Personal AI Router (PAIR)
-
Physical Inference Servers:
-
Macbook Pro:
- Agents connect as the
turnstonestandard user - I have another admin user on this machine used as a developer profile with secrets (which is why the
turnstoneuser does not havesudoaccess)
- Agents connect as the
-
2x AMD AI Halo devkits (Strix Halo):
- Agents connect as the
turnstoneuser - Agents have full sudo access (to aid troubleshooting and sysadmin tasks)
- OOtB Linux environment from AMD; no secrets or personalization (hence why I consider sudo access safe)
- Agents connect as the
-
-
LLM Workspace Storage:
- TrueNAS instance with one ZFS
ai-playgrounddataset that a singleturnstoneuser has access to - Mounted as NFS
fstabshares on all machines and VMs for agents to coordinate and commit changes to VCS repositories
- TrueNAS instance with one ZFS
Possible Solutions:
- A very promising one seems to be NONO which appears to offer a hermetically sealed environment for agents to operate in.
- I’m not sure how easy it would be to integrate with Turnstone
- I have no idea..?
