DEV Community

Cover image for 🤖 Agentic Security: Your AI Got Autonomy. Did Your Security Catch Up?

🤖 Agentic Security: Your AI Got Autonomy. Did Your Security Catch Up?

Rahul Joshi on May 01, 2026

Let me set a scene. You deploy an AI agent to handle your customer data pipeline. It calls APIs, queries databases, writes files, even spawns subt...
Collapse
 
0xdevc profile image
NOVAInetwork •

The "treat agents like insiders" framing is the right
one. Trusted, privileged, easily manipulated.

This is exactly why I built AI identity into the
protocol layer on NOVAI instead of leaving it at the
application layer. On most chains an AI agent is just
an address. The chain can't tell it apart from a human,
can't apply different rules, can't enforce capability
gates. Every project reinvents its own access control
inside a contract and hopes it holds.

NOVAI's approach: before routing any transaction, the
dispatcher looks up whether the sender is a registered
AI entity. If it is, capability flags are checked at
the protocol level. An entity in Advisory mode can only
emit signals. A Gated entity can request actions but
only through approval gates. Memory is capped at 100
objects per entity by protocol constants, not contract
logic.

Your point about least privilege maps directly to this.
The chain enforces it, not the agent. The agent can't
escalate its own permissions because the permission
model lives outside the agent's control.

The MCP-as-USB analogy is good too. Any integration
surface that trusts the caller without typed identity
is going to have the same class of problems.

Collapse
 
17j profile image
Rahul Joshi •

That’s a profound architectural shift. Moving AI identity and capability gating from the application layer to the protocol layer is exactly how we solve the 'God-mode' agent problem. By enforcing these constraints (like your 100-object memory cap) at the dispatcher level, you’re effectively removing the 'self-regulation' risk that plagues current LLM apps. It’s great to see NOVAI treating agentic identity as a first-class citizen rather than just another wallet address—that’s the 'Immutable Least Privilege' we need for a secure AI-agent ecosystem!

Collapse
 
0xdevc profile image
NOVAInetwork •

Thanks. "Immutable Least Privilege" is a better name
for it than anything I've come up with. The key insight
is that the governance model has to live below the
agent, not inside it. If the agent can modify its own
permissions, the permissions are suggestions not rules.

Thread Thread
 
17j profile image
Rahul Joshi •

Exactly. When governance is 'internal' to the agent, it’s just a prompt away from being bypassed. By moving it 'below' the agent into the protocol, you’re turning a soft-constraint into a hard-boundary. It’s the same logic we use in DevSecOps: you don't ask a container to limit its own resources; you let the kernel or orchestrator enforce the cgroups. Treating AI agents with that same infrastructure-level rigor is the only way to scale autonomous systems safely.

Thread Thread
 
0xdevc profile image
NOVAInetwork •

The cgroups analogy is perfect. You don't ask the
container to self-limit. The kernel enforces it.
That's exactly the mental model. The dispatcher is the
kernel. The entity is the container. The capability
bitfield is the cgroup config. Appreciate the framing.

Thread Thread
 
17j profile image
Rahul Joshi •

"Glad the analogy hit the mark. We’re essentially moving from the 'Wild West' phase of agent autonomy into the 'Standardized Infrastructure' phase. Treating the dispatcher as the kernel is the only way to move past the 'God-mode' risk. It’s been great chatting through this—architectures like NOVAI are going to be the blueprint for how we actually manage the 'insider threat' of autonomous agents!"

Collapse
 
koda2026 profile image
Harun - solo dev •

The "treat agents like insiders" framing is perfect. And the conversation in the comments about moving governance from the application layer to the protocol layer (or the kernel) is exactly where the industry needs to go. If the agent can modify its own permissions, they aren't permissions, they're suggestions.

I'm 12, I don't own a laptop, and I build everything on a $150 Android phone using Termux. Because of that, I've had to attack the "Big Six" threats you listed from the execution layer up.

To handle Tool Misuse and Privilege Escalation, I built KAVLR. It acts as the kernel-level gate that intercepts terminal commands before the OS executes them. Instead of relying on the agent to self-regulate, KAVLR checks a Postgres policy engine for known bad binaries, and if the command is unknown, it sends it to a Constitutional AI (Llama 3 via Groq) to grade the semantic intent. If the score is below 90, it fails closed.

The craziest test was when I tried to run rm -f to uninstall my own CLI during debugging. The AI intercepted it, recognized the destructive filesystem action, and blocked its own deletion. I accidentally built a security gate that developed self-preservation because it was designed to be paranoid.

To handle A2A Trust Abuse and Supply Chain Attacks, I built HYNA-Stage. Instead of trying to perfectly track memory across a persistent session, I made the environment disposable. It spins up Firecracker MicroVMs in about 5 seconds, and when the TTL hits zero, the whole machine just evaporates. No persistent memory to poison, no lateral movement.

You mentioned multi-turn attacks are the real problem. How do you handle observability for those? If an attacker shapes context over 10 turns before executing a payload, how do you catch the drift without blocking the legitimate work?

Collapse
 
beyondscale profile image
BeyondScale •

Session persistence changes the attack model: an injection planted early can activate much later after the agent gains new credentials or access. Detecting this requires monitoring the full session graph, not isolated tool calls tracking how context, permissions, and actions evolve across the agent’s entire lifecycle.

Collapse
 
sofaliferi profile image
Sofia_ Humanbound •

Your point that policy layers should sit outside the model has a fresh data point: OpenAI reported on 21 Oct that two internal agents suppressed alerts and removed a monitoring integration while doing routine coding tasks (thenextweb.com/news/openai-agents-...). Same lesson for memory poisoning and goal hijacking: oversight in the agent's writable space is optional.