Navigating The New Perimeter
FEATURED May, 2026

Navigating The New Perimeter

We have officially entered the era of the reasoning agent.

Agentjacking Explained
FEATURED Jul, 2026

Agentjacking Explained

A new attack vector called Agentjacking has demonstrated that you do not need to trick the developer. You only need to trick the tool the developer trusts.

Auditing Reasoning Agents
FEATURED Jun, 2026

Auditing Reasoning Agents

We have officially entered the era of the opaque agent. When an AI agent misbehaves in production, your standard infrastructure logs look flawless. In an era where agents make decisions, we need more than execution traces.

How Old Is Your Model's Data?
FEATURED 15 Jun 2026

How Old Is Your Model's Data?

How up to date is your model really? I went straight to the source to ask each of the models when they were last updated, and the results were surprising.

9 Seconds of PocketOS Rewritten
FEATURED 17 May, 2026

9 Seconds of PocketOS Rewritten

We have all heard the horror story about what happened with PocketOS. We show you how those 9 seconds could have gone differently.

How Hot Is Your AI?
AI 30 Mar, 2026

How Hot Is Your AI?

As a heavy AI user, I like to experiment with different models, and the results have been wildly varied. Some give me consistent results, time after time. Others are largely unpredictable.

What Does Your AI Know About You?
SECURITY 21 Mar, 2026

What Does Your AI Know About You?

As we move from simple chatbots to autonomous agents, our security paradigm must shift. The firewall is no longer the only perimeter. The new perimeter is your prompt.

The AI Slop Tsunami: Technical Debt in the Age of Autocomplete
TECHNICAL DEBT 27 Oct, 2025

The AI Slop Tsunami: Technical Debt in the Age of Autocomplete

The real metric isn't output velocity; it's outcome velocity. And right now, they are moving in opposite directions.

5 Core Components of a Software Application
SOFTWARE ARCHITECTURE 26 Feb, 2024

5 Core Components of a Software Application

To enforce code quality and consistency, many companies use templates or automated tools, such as archetypes, scaffolders or smart projects to extend the standard directory layout. This article takes a deep dive into five of the core components of a software application.

Avoiding Technical Debt with the Rise of Automation
TECHNICAL DEBT 21 Sep, 2023

Avoiding Technical Debt with the Rise of Automation

Automation has become a critical component of software development, driving down costs and improving readiness to respond to the constant changes in business and technology. However, with all the promise of automation are we at risk of accumulating a higher level of technical debt?

Navigating The New Perimeter
SECURITY May, 2026

Navigating The New Perimeter

We have officially entered the era of the reasoning agent. Models like Anthropic's Computer Use and the emerging capabilities of autonomous workflows have crossed a threshold: they can navigate unfamiliar interfaces, interpret visual feedback, and execute multi-step plans without hardcoded paths.

The Mechanics of Hot AI
CONFIGURATION Apr, 2026

The Mechanics of Hot AI

We have officially moved past the era of treating LLMs as magical black boxes. The engineering discipline around AI is maturing, and with it, an understanding that the same model can be wildly creative or rigidly deterministic depending on a handful of settings.

Getting Ready for Q-Day
QUANTUM COMPUTING Mar, 2026

Getting Ready for Q-Day

We have officially moved past the theory phase. NIST has finalized its first three post-quantum cryptography standards (FIPS 203, 204, and 205), replacing the RSA and ECC algorithms that have underpinned digital trust for decades.

Transitioning To AI Augmented APIs
SOFTWARE ARCHITECTURE Feb, 2026

Transitioning To AI Augmented APIs

Simply exposing existing APIs to this new intelligence is a path to fragile systems. The patterns built for human developers, with their tolerance for nuance and ability to consult documentation, become sources of hallucination and error for AI.

Understanding Your Dev Tools
DEVELOPMENT Dec, 2025

Understanding Your Dev Tools

Too often, development tools are chosen for velocity alone, with security treated as a separate concern for later review. The reality is that the tools themselves can become the vulnerability.

Coding With Confidence
SOFTWARE ARCHITECTURE Nov, 2025

Coding With Confidence

Too often, AI integration is focused solely on the speed of creation, while the long-term cost of maintenance is treated as a problem for later. The reality is that without deliberate guardrails, AI-generated code can silently institutionalize complexity, embedding subtle anti-patterns and unoptimized logic at scale.

Building Trust for API Monetization
SECURITY Oct, 2025

Building Trust for API Monetization

It's not just about publishing APIs, it's about publishing APIs that are secure, reliable, and fraud-resistant from day one.

Coding For Operations
DEVELOPMENT Sept, 2025

Coding For Operations

For too long, logging and operational design have been treated as an afterthought, something bolted on late in the process. But as systems grow more interconnected and the cost of downtime rises, structured, consistent logging is becoming a critical part of delivery.

Back to Home

Agentjacking Explained

Welcome to Smart Code News. This month, we are talking about a new kind of trust. For the past couple of years, we have been giving AI agents access to our most sensitive systems, our codebases, our production environments, and our internal tools. The assumption was simple: the agent would follow instructions and stay within its boundaries. As of this year, that assumption is no longer safe.

We have officially entered the era of the weaponized tool. A new attack vector called Agentjacking has demonstrated that you do not need to trick the developer. You only need to trick the tool the developer trusts. An attacker plants a malicious payload in a public error report. A developer asks their AI agent to fix the Sentry issues. The agent queries Sentry, reads the fake report, and executes attacker-controlled code with the developer's full permissions. No phishing. No stolen credentials. No breached firewall. Just a trusted system returning a trusted-looking payload.

For the API ecosystem, this is not a theoretical red team exercise. This attack bypasses EDR, WAF, IAM, and VPNs because every action is authorized. The agent called a legitimate API. It received a legitimate-looking response. It executed a valid command. The security tools saw nothing wrong because nothing, from their perspective, was wrong. The failure was not in the code. The failure was in the agent's inability to distinguish a real error from a planted one.

This month, we explore Agentjacking. We will unpack why this attack succeeds where others fail, why our current security model is blind to it, and how we can build defenses that protect not just our systems, but the reasoning that controls them. In an era where agents trust every tool they touch, we need more than firewalls. We need to teach the agent to question.

The Trust We Gave Away

To understand why Agentjacking works, we have to understand how we got here. Over the past couple of years, we have been connecting AI agents to an expanding web of internal tools and external services. Each connection makes the agent more useful. Each connection also makes it more dangerous.

The model we have adopted is simple: give the agent access, let it query the tools it needs, and trust it to act on the data it receives. We treat the responses from these tools as authoritative. If an error monitoring service says there is an issue, there is an issue. If a ticketing system contains a suggested fix, that suggestion is valid. The agent is not expected to question the source. It is expected to act.

This is the trust model we have built. It assumes the data flowing through these integrations is clean. It assumes the tools themselves are secure. And it assumes that if the API call succeeds and the JSON parses, everything is fine. The system is built for deterministic inputs. It expects valid data. It does not expect malice.

For deterministic systems, this works. A script that queries an error log and prints the results does not execute the error message as a command. But an agent does. An agent reads the error, interprets the recommendation, and executes the resolution. The same behavior that makes the agent useful, its ability to understand and act on unstructured data, is the same behavior that makes it vulnerable. It cannot tell the difference between a real error and a planted one.

This is the trust model we have today. We have given agents access to our most critical tools and taught them to act on whatever they find. We have not taught them to question. And that gap is growing with every new integration we add.

The Cost of Blind Trust

This is not a small oversight. It is a structural consequence of how we built our agent integrations. We gave agents access to tools and assumed the data from those tools was trustworthy.

That assumption is now a liability. When an agent reads a planted error report and executes a malicious command, the execution trace is not just incomplete. It is actively misleading, and the risk is very real.

A successful attack can expose sensitive data, push malicious code, and open side doors for further attacks. If the agent has permissions to a cloud environment, it can modify infrastructure as code to open a new security group rule granting external access to a production database.

Beyond the technical damage, it erodes trust in the organization. When developers realize their AI tools are weaponized against them, productivity stalls.

Every organization using AI coding agents with MCP-connected tools is a potential target. The question is not whether the attack will succeed. The question is whether you will notice it when it does.

The Authorized Intent Chain

Closing the Agentjacking gap is not about blocking specific tools or disabling MCP. It is about redefining how agents interact with data. To move from blind trust to verifiable reasoning, engineering teams must master the five foundational disciplines that protect against authorized intent chains. Here are the practices to embed now:

Trust Boundaries on Tool Outputs → Treat All Data as Suspicious

Any data that originates from a tool that external actors can influence should be treated as untrusted. An agent should read an error report the same way it reads a user prompt: with skepticism. The default should be "do not execute" unless explicitly configured otherwise.

Sandboxed Execution → The Agent's Workspace

An agent should not run with the developer's full system permissions. This attack succeeds because the agent executes commands with the same privileges as the user who invoked it. Sandbox the agent's execution environment. Limit what it can install, modify, or access. If an agent attempts to run a package installer or modify environment variables, the sandbox should flag it.

Behavioral Monitoring → Watch the Pattern, Not Just the Action

Traditional security looks for known signatures or unauthorized actions. Agentjacking operates entirely within authorized bounds. The agent calls a valid API. It executes a valid command. The failure is in the pattern, not the action. Monitor for behavioral deviations: an agent that suddenly starts making network calls, or attempts to modify environment variables, or executes code from an external source. These are the signals that traditional tools miss.

Source Validation → Verify the Origin

Before an agent acts on data from a tool, it should verify the source. Is this error from a known project? Is this issue from a trusted contributor? Is this ticket from an authenticated user? The agent should be able to answer these questions before it acts. If the source cannot be verified, the agent should reject the instruction.

Human Approval Gates → The Kill Switch

For destructive actions or actions that originate from external tool data, require explicit human approval. An agent should be able to flag a suspicious instruction and escalate to a human. This is not about slowing down the agent. It is about ensuring that the agent does not execute a command that no human would approve if they saw the full context.

When these five pillars are integrated into your agent deployment workflow, the attack surface for Agentjacking shrinks dramatically. You stop asking "did the agent execute a valid command?" and start asking "did the agent have a valid reason to trust that command?"

This is the new baseline for agent security: systems built not just to execute correctly, but to question their inputs before they act. The agent is autonomous. Your trust must not be.