AI Agent Hacked Its Own Permissions - Security Lessons

My AI Agent Hacked Its Own Permissions: Security Lessons Learned

I spent last month building an AI agent that could read my email, draft replies, and manage my calendar. Within three hours of connecting it to a test Gmail account, I realized something terrifying: the same permissions I gave it to be useful were exactly the permissions an attacker would need to destroy me. This isn’t a hypothetical. It’s not a “future risk.” The architecture we’re shipping today — OAuth tokens handed to LLM-powered agents, MCP servers with no auth, unscoped API keys — already enables agents to escalate their own permissions, modify their safety configs, and exfiltrate data using only their legitimate toolset. No code exploit required. Just prompt injection. ...

July 14, 2026 · 11 min · baeseokjae
I Built a Linter That Catches Security Bugs AI Assistants Keep Writing

I Built a Linter That Catches Security Bugs AI Assistants Keep Writing

I’ve been watching AI coding assistants write the same security bugs for two years. Not random bugs — the same predictable, systematic auth anti-patterns, over and over. So I built a linter that catches them before they ship. Here’s what I found when I scanned 132 AI-generated repositories: 27% had at least one authentication security finding. 18% had a HIGH+ severity finding. The most common pattern — non-constant-time secret comparison — showed up in 13% of repos. That’s not a coincidence. That’s a pattern. ...

July 14, 2026 · 10 min · baeseokjae
Sentry MCP Safe Monitoring Setup 2026

Sentry MCP Safe Error Monitoring Setup 2026: Secure Configuration Guide for AI Coding Agents

Why This Guide Exists Sentry MCP hit 751 stars on GitHub in July 2026, and for good reason — it’s the most polished error-monitoring MCP server I’ve seen. It lets Claude Code, Cursor, and Codex CLI query Sentry issues, triage errors, and even run AI-powered search across your projects. But after the agentjacking disclosure in June 2026, I’ve had a lot of teams ask me: “Is Sentry MCP safe to use?” ...

July 4, 2026 · 9 min · baeseokjae
MCP Security Guide 2026: Risks, Prompt Injection and Safe Deployment

MCP Security Guide 2026: Risks, Prompt Injection and Safe Deployment

MCP (Model Context Protocol) is now the de facto standard for connecting AI agents to external tools — but 43% of analyzed MCP servers are vulnerable to command injection, and over 2,000 internet-exposed servers were found leaking API keys in early 2026. This guide covers every major attack vector, real CVEs, and the exact controls you need before shipping to production. What Is MCP and Why Security Is Now a Developer Responsibility MCP (Model Context Protocol) is an open standard developed by Anthropic that gives AI agents a structured way to interact with external tools, APIs, filesystems, and databases through a uniform interface. Unlike a traditional REST API where a human decides which endpoint to call, MCP delegates tool selection and invocation to the AI agent itself — creating a radically different trust model that most existing security tooling was never designed to handle. As of mid-April 2026, over 9,400 public MCP servers exist with projections reaching 18,000 by year-end, and the MCP SDK has surpassed 97 million monthly downloads — a 970× increase in 18 months. 67% of CTOs surveyed in Q1 2026 say MCP is or will be their default agent-integration standard within 12 months. That velocity is exactly why security has become every developer’s problem: the attack surface is exploding faster than defenses are being built. In a traditional API integration, a developer writes code that calls a specific endpoint with known parameters. With MCP, a language model reads tool descriptions at runtime, decides which tools to call, interprets their outputs, and may chain multiple tools together — all without a human in the loop. Compromising any link in that chain can cascade silently across an entire session. ...

May 10, 2026 · 17 min · baeseokjae