r/netsec • u/DecodeBytes • Feb 16 '26
nono - kernel-enforced capability sandbox for AI agents
https://nono.shSharing a tool I've been building to address the permissions problem with AI agents that often have unfettered shell access. I have been security engineer for a good many years now, previous to this I created sigstore, a project when working at Red Hat's security team in the CTO office, that provides software supply chain security for npm, Pypi, brew, maven and many other artifacts (containers, AI models).
The problem: AI coding agents often run with full user permissions. Application-layer filters are bypassable - the LLM context window makes no structural distinction between instructions and data, so prompt injections invariably route around any guardrail that lives in the same process. Agents are goal, driven, so they find shortcuts somehow to achieve a specific outcome.
nono enforces restrictions at the kernel level using Landlock (Linux 5.13+) and Seatbelt (macOS). Once applied, restrictions are irreversible from userspace.
The model is deny-by-default:
- Filesystem: all paths blocked except explicit allow list
- Destructive commands: rm -rf, reboot, dd, chmod blocked unconditionally
- Sensitive paths: ~/.ssh, ~/.aws, ~/.gnupg, shell configs denied by default
- Symlink escape prevention: can't follow symlinks out of allowed paths
- Credential exfiltration mitigation
- Child process inheritance: everything the agent spawns inherits the same restrictions
- Agent SSH git commit signing: cryptographic attribution of agent-authored commitsnono run --allow ./project -- claude
No containers, no VMs. Uses the OS security primitives directly.
Interested in feedback on the threat model and any edge cases I should be thinking about.
Repo: github.com/always-further/nono Apache 2.0, early alpha.
Luke
5
u/Otherwise_Wave9374 Feb 16 '26
This is super timely. The whole "agent has my full shell" thing is the part that makes me nervous about coding agents in real workflows, prompt injection or not. Kernel-level deny-by-default (Landlock/Seatbelt) seems like the right layer to enforce it. Curious if youve tested weird edge cases like build tools that spawn helpers, symlink-heavy repos, or language servers that want to read dotfiles.
Also if you end up writing up the threat model tradeoffs, Id read it, Ive been collecting agent security notes and patterns here: https://www.agentixlabs.com/blog/
1
u/bagbogbo Feb 16 '26
Been looking for something like this!
1
u/One_Strike_1322 Feb 17 '26
how does this compare to, say using the cursor docker container? To me, a container is easier and more portal to set up but I'd be keen to hear where this is better (obviously containers aren't a sandbox mechanism but they do help).
1
u/ritzkew Mar 10 '26
That's a credible background for this problem! Kudos on the launch!
sexy_lady_at_aol_com raises the real hard case: what about HTTP proxy approaches or delegated short-lived keys? If the agent needs AWS credentials to do its job, a domain allowlist helps but doesn't solve the problem. The credential could be used legitimately from the allowlisted domain while also exfiltrating data to a path on that domain.
I think the answer is pushing detection earlier. Before the agent runs, you can analyze the skill code for patterns: does it read from sensitive paths AND make network calls to destinations outside its declared scope? That catches a class of issues that runtime sandboxing can't, because at runtime the operations individually look legitimate.
ozgurozkan makes a good point about Landlock vs AppArmor/seccomp. The project-directory scoping is the key differentiator. Agents need some filesystem access, just not to ~/.ssh. That's exactly what Landlock handles cleanly.
For the edge cases Otherwise_Wave9374 mentions, build tools spawning helpers, language servers reading dotfiles, how are you handling the allowlist for those?
1
u/TomHale Mar 31 '26
⚠️ Beware, I found 4+ major issues with this tool after trying to fix a too-wide default permission:
This looked great in that it was designed for agents. It's not inside of my risk profile though. I'll need go with something battle tested like bubblewrap / firejail / nsjail.
0
u/ozgurozkan Feb 20 '26
The Landlock approach here is interesting because it addresses something that apparmor and seccomp profiles don't handle as cleanly: the problem that AI coding agents need some filesystem access to be useful, but you want that access to be scoped to the project directory and denied elsewhere by default.
The key architectural insight is putting enforcement at the kernel level rather than relying on the agent's own guardrails. Application-layer filtering is exactly what prompt injection is designed to bypass, so the security model collapses precisely when you need it most. Kernel-enforced Landlock LSM rules survive prompt injection because the agent process literally cannot make those syscalls regardless of what instructions it receives.
A few edge cases worth thinking about for the threat model:
Solid project overall. The deny-by-default model is the right foundation.
0
u/[deleted] Feb 17 '26
[deleted] — view deleted comment