# Living-off-the-Agent: Enforcing MCP-to-Kernel Capability Boundaries

> LotAGuard links MCP tool calls to operating-system process activity, then checks effects against tool permissions and the developer's request. On a controlled 1,430-session benchmark, it reached 100% attack recall at 1% FPR, but missed attacks inside authorized files and endpoints.

- arXiv: https://arxiv.org/abs/2612.03557
- Authors: Jeremy Canale, Fabien Soulis
- Published: 2026-12-03
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2612.03557
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can you spot a hijack inside routine coding work?

**100.0%** LotAGuard vs. D6 recall at 1% FPR, N=1,430

## Routine coding can drown endpoint alerts

**Baseline results:** The D0 EDR/Sigma baseline flagged 96.4% of 950 benign sessions; D2's ROC-AUC was 0.961, yet its recall at 5% FPR was 0%.

**LotAGuard:** It links each Model Context Protocol (MCP) call to kernel effects, then checks them against tool permissions and the developer's request.

## One MCP call, two planes of evidence

![Figure 1](https://cdn.instaxiv.com/figures/2612.03557/figure1.webp)

Read the upper rpc_id/tool/argument metadata against Linux eBPF or Windows process events; their fusion feeds causal cones, hunk-blame, rarity scoring and inline blocking. (Figure 1)

## How MCP calls acquire a causal cone

1. **Log the RPC**: Record rpc_id, tool, arguments, and send/response times at the wire tap.
2. **Follow descendants**: Track descendants after replies; D4 caught all 40 A4 delayed-child sessions after a 220 ms delay at 1% FPR.
3. **Guard PID reuse**: Give each incarnation a fresh generation so a recycled PID maps to a distinct process identity.
4. **Resolve async work**: Use request context or spawning-thread identity to keep deferred server work with its original RPC.

## Two checks turn events into capability decisions

1. **Check the contract**: Each MCP tool allows specific file, write, execution, and network effects; events outside the contract are violations.
2. **Ground sensitive paths**: Sensitive reads and persistence writes must match the human prompt, even if the agent supplies a path in its arguments.
3. **Choose the response**: Depending on the violation and egress, block it, ask for confirmation, or log passively.

## Benign developer quirks are not all equal

![Figure 4](https://cdn.instaxiv.com/figures/2612.03557/figure4.webp)

Rarity weighting discounts common signatures such as git status writing .git/index.lock; D4 had 0.0% false alarms across 950 benign sessions and every workflow category at the 1% budget. (Figure 4)

## Persistent instructions need lineage, not blanket taint

**Monotone OS taint:** Across 30 timelines (750 sessions), reference taint raised 636 false-positive session flags after persistent-rule poisoning.

**Hunk-blame:** LotAGuard logs changed lines on rule edits, then traces later violations to their source: 30/30 delayed triggers and zero false positives.

## Low false-alarm budgets, both kernels

![Figure 2](https://cdn.instaxiv.com/figures/2612.03557/figure2.webp)

Compare the Linux and Windows panels at 1% FPR: D4 reaches 100.0% attack recall in the paper's controlled evaluation. (Figure 2)

## D4 beats the strongest listed baseline at 1% FPR

| Method | Attack recall @1% FPR |
| --- | --- |
| D1 SyscallNgram | 51.7% |
| D6 Domain-Labeled WL (h=2) | 90.8% |
| **LotAGuard (D4) (+9.2 pp)** | **100.0%** |

_Combined 1,430-session campaign; attack recall at the 1% FPR threshold (paper, Series A/B)._

## Real patch tasks: zero Tier-3 false blocks

| Method | Tier-3 block FPs |
| --- | --- |
| D0 SigmaEDR | 100/100 |
| D5 PromptPolicy | 23/100 |
| **LotAGuard + G_sem (23 pp fewer)** | **0/100** |

_S1, SWE-bench Verified: 100 independent instances, 12 repos; paired OS counted once. D4+G_sem: 1/100 T2 prompts; block-FP CP95 upper 3.6%._

## Where an OS boundary stops being enough

- **In-envelope attacks**: Class-I crosses OS boundaries; Class-II stays inside authorized files/endpoints. D4 caught 16/16 Class-I (CP95 [79.4,100]%) and 0/4 Class-II tasks in AgentDojo/InjecAgent.
- **Approved egress**: D4 missed all six OSS W7 runs: a custom config token went through an already-approved documentation port.
- **Finite red-team evidence**: The 20-attack pre-frozen suite was author-harnessed, not independent third-party red-teaming; it does not establish open-world recall.

Best used when: Use when each MCP tool's allowed effects are defined; pair it with defenses for semantic attacks inside that envelope.

## Key takeaways

- Tie each tool request to its kernel activity, including descendants that outlive the reply.
- Define tool permissions, calibrate benign quirks, and choose whether to block, confirm, or audit.
- Open question: how can monitors catch harmful logic or data flows inside approved files and endpoints?

## Links

- arXiv: https://arxiv.org/abs/2612.03557
- PDF: https://arxiv.org/pdf/2612.03557
- Code: https://github.com/jeremy1392/LotAGuard

## Citation

```bibtex
@article{canale2026livingofftheagent,
  title   = {Living-off-the-Agent: Enforcing MCP-to-Kernel Capability Boundaries},
  author  = {Canale, Jeremy and Soulis, Fabien},
  journal = {arXiv preprint arXiv:2612.03557},
  year    = {2026},
  url     = {https://arxiv.org/abs/2612.03557}
}
```
