Living-off-the-Agent: Enforcing MCP-to-Kernel Capability Boundaries
Canale & Soulis in Agents
Can you spot a hijack inside routine coding work?
Living-off-the-Agent: Enforcing MCP-to-Kernel Capability Boundaries
Routine coding can drown endpoint alerts
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%.
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

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.
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

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.
Persistent instructions need lineage, not blanket taint
Across 30 timelines (750 sessions), reference taint raised 636 false-positive session flags after persistent-rule poisoning.
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

Compare the Linux and Windows panels at 1% FPR: D4 reaches 100.0% attack recall in the paper's controlled evaluation.
D4 beats the strongest listed baseline at 1% FPR
Combined 1,430-session campaign; attack recall at the 1% FPR threshold (paper, Series A/B).
Real patch tasks: zero Tier-3 false blocks
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.
Why it matters
- 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?
12 likes 12 slides, 3 min
2 days ago