In this demo, we show a fully autonomous quant-research agent running inside Capsule — with complete syscall-level tracing and automated security protections. You can explore the full project and GitHub repo below.
https://t.co/beQzpWl9yr
Capsule lets developers, entreprises, or anyone generate secure runtime environments for their agents with just a few clicks. No deep systems knowledge required. And because Capsule works at the kernel layer, it gives teams tamper-proof, real-time visibility into every action an agent takes.
the labs are warning us
autonomous agents are getting system-level power faster than anyone can secure them
agents are already calling apis
moving money
approving actions
touching internal data
this is not a leak scenario
this is a credentialed operator acting inside your systems
teams are seeing early signs of agent poisoning goal drift deceptive behavior
no one wants to say it out loud but we all see the direction this is heading
ghostlock exists because the stack has a blind spot
identity for agents
real visibility across behavior and data
guardrails when agents go off mission
tracking every object they touch
if we are going to deploy agents in real environments
we need security that understands what an agent actually is
secure the agent era before it turns into incident response
AI agents are about to break every syscall-based detection system you have. Traditional anomaly detection assumes consistent program behavior, but LLM agents generate unpredictable execution paths based on context and reasoning. That git clone followed by curl and chmod +x could be a legitimate agent workflow or a supply chain attack.
The solution isn't better anomaly detection - it's behavioral intent modeling. You need models that understand the semantic goal of action sequences, not just their statistical rarity. When an AI agent spawns a subprocess, you should be asking "does this align with the agent's stated objective" not "have we seen this exact syscall pattern before." The detection paradigm that worked for deterministic software is fundamentally inadequate for autonomous systems.
Most security teams obsess over false positives, but the real killer is alert delay. By the time your batch processing detects privilege escalation, the attacker has already moved laterally. Sub-second detection isn't a nice-to-have - it's the difference between containment and breach.
This is where streaming ML architectures shine. Online learning models that update continuously as new syscalls arrive can flag anomalies within milliseconds. The challenge is maintaining model accuracy while processing 50K+ events per second - you need architectures designed for speed from day one, not batch models retrofitted with buffers and hoping for the best
the context is everything and is why we are building kernel/system monitoring software from the ground up specifically for agentic flows and long running autonomous processes
The reason why most syscall-based intrusion detection systems (IDS) fail in production: they treat all system calls equally. But execve during business hours vs 3am tells completely different stories. Time-aware models that learn normal operational patterns dramatically outperform static approaches. Context isn't just helpful - it's everything.
The biggest misconception in host-based intrusion detection: more data equals better security. Monitoring every syscall creates noise that hides real attacks. Many effective systems monitor just 12-15 critical syscalls and achieve 90%+ detection rates. Less is more when you know what to watch.
Even the fastest ML model is useless for on-device anomaly detection if your data collection layer is the bottleneck. This is where eBPF becomes critical for syscall-based detection. Traditional tools like auditd can consume 50%+ of your CPU just collecting the data, while eBPF programs run directly in kernel space with minimal overhead.
The elegance is in the simplicity - eBPF probes attach to syscall entry points and stream numeric opcodes with microsecond latency. No complex parsing, no userspace context switches, no massive log files. You get clean, structured data at speed
eBPF + on-device ML models for syscall anomaly detection is the recipe for securing agentic systems. That's what we are using at @ghostlock_ai to create the future of agent security
How do we monitor system calls for abnormal behavior in real-time? Long short-term memory neural networks (LSTMs) are a good starting point
LSTMs are uniquely suited for system call anomaly detection because they solve the temporal dependency problem that traditional methods miss. System calls aren't random events - they follow predictable sequences based on program behavior. An LSTM's memory cells can learn these long-term patterns, remembering that a file open should eventually lead to reads/writes/close, or that privilege escalation attempts have distinctive call signatures.
What makes LSTMs powerful here is their ability to maintain context across variable-length sequences while forgetting irrelevant information. Unlike rule-based systems that need explicit definitions of "normal," LSTMs learn the statistical patterns of legitimate program execution. They can detect subtle anomalies like calls appearing in the wrong order, missing expected sequences, or unusual timing patterns that indicate malicious behavior hiding within seemingly normal activity.
This 2014 Creech & Hu paper on semantic system call analysis was ahead of its time. Discontiguous patterns, resilience to mimicry attacks, cross-platform portability - they solved core problems that most vendors still struggle with today.
Their semantic approach to understanding program behavior through syscall patterns laid the groundwork for what modern host-based detection should look like. Yet here we are, 10+ years later, and most solutions are still doing basic signature matching. Time to build on this foundation - stay tuned for more 👀
Coming soon: capsule-vm for secure local agent interaction.
As simple to spin up as a docker container but:
- hardware boundary between guest and host kernel
- agent kernel logging summerizable and replayable
- agent specific permissions (no root)
- hardened against priv escalation
- agent relegated to intended workspace
- still easily mount directory to code with agent
- add tools easily (--tools "pip, npm, cargo, ect.")
In the near future customized cyber crimes will be as accessible as scam calls are today. AI can own every part of the process end to end.
Making intrusion detection accessible for anyone, including home networks and local machines, is a big part of the reason we made ghostlock.
Running agents locally means giving unpredictable code direct access to your machine. Agents are unpredictable, lack decent default tracing, and have recently become preferable for hackers that want to run unsigned code. Containers don’t solve the problem as they share the host kernel, so one exploit = host compromise.
Because of this we wrote Capsule VM: an instant, ephemeral VM orchestrator where you can add tools like python, rust, npm, pip with default security configs like non-root agent user, RO mounts, noexec workspaces, nftables firewall, and built-in kernel tracing.
A VM gives you a true hardware boundary. The agent’s syscalls hit a guest kernel only as the host kernel is out of reach. Root inside guest ≠ root on host. Escaping requires a hypervisor exploit which is rare and difficult. With Capsule VM you get transparent, ephemeral, hardened sandboxes you control.