Keeping MCP connectors, skills, and mods inside the walls
The AI building blocks I use, the risks they bring into security work, and nine guardrails I recommend.
I use Claude day to day. Most of what I've built on top of it came from my own needs: skills I write and code with AI, and mods that shape how it works for me. In security work, those same building blocks have to stay inside the walls.
The building blocks
- MCP connectors: the plugs that let the AI read from, or act in, another system, such as a SIEM, an EDR console, or an identity provider. They are typically used in business and employment settings. I don't run any at home.
- Harness: the program around the model. It decides which tools the model can call, what it may touch, and when it has to ask.
- Skills: written instructions, sometimes with code, that teach it how to do a job my way.
- Mods: changes to the harness itself, such as a hook that runs before a tool call.
My triage skill
One of my best skills helps me triage and presents the data in a format I like to see and read. I built it for my own needs. A skill enters the model's context as instructions, so it also sets boundaries: what the AI may touch, how the report reads, and when it stops to ask.
I wrote up the triage process itself separately:
Connectors
A connector to sign-in logs or the SIEM should start read-only, with narrow scopes and short-lived tokens. The MCP specification lists wildcard and catch-all scopes as a common mistake, because a stolen broad token reaches every tool it covers. Actions such as isolating a host or disabling an account stay with a person. Case data stays in tooling the employer approved.
Untrusted input
Attackers write the logs and the emails. A phishing email or a crafted user agent string can carry instructions aimed at the model, so treat everything it reads as data, not orders. The OWASP Top 10 for LLM Applications (2025) lists prompt injection first.
The tools can lie too. The OWASP MCP Security Cheat Sheet describes tool poisoning, where hidden instructions sit in a tool's description, and rug pulls, where a server changes its tools after you approve it.
The lethal trifecta
Simon Willison names the dangerous mix: private data, untrusted content, and a way to send data out. Put all three in one setup, and an attacker can make the AI leak your data. In a SOC, all three show up quickly… so keep at least one of them out of every setup.
Skills and mods are code
Claude Code's documentation says a plugin you install can run code with your user privileges, and that hooks and MCP servers run outside its sandbox. I write my own, so I know what's in them. For anything you didn't write, read the hooks, the server commands, and the bundled files first, then pin the version, so the files you reviewed are the files that run.
Verify and retrace
I check every claim against the source record before it goes into a case. Every tool call should also be logged with its parameters, the user, and the time, and those logs belong in the SIEM for review. I test a new workflow in my home lab first, using local models.
What I recommend
- Start every connector read-only, with narrow scopes and short-lived tokens.
- Put a person in front of any action that changes the environment.
- Review tool descriptions and plugin files before approval, and pin the version.
- Treat logs, emails, and attachments as hostile input. Never let them trigger an action.
- Break the lethal trifecta in every setup.
- Log every tool call to the SIEM, and review the logs.
- Give each agent its own identity and credentials that expire when the job is done. Careful Adoption of Agentic AI Services, the joint guidance NSA, CISA, and their Five Eyes partners released in April 2026, says to build each agent as a distinct principal.
- Start with clearly defined, low-risk work, such as summaries and enrichment, then widen access step by step. The same guidance says to deploy agentic AI incrementally.
- Govern it with the NIST AI Risk Management Framework and its Generative AI Profile, NIST AI 600-1.
A tool I can't retrace is a tool I can't defend.
Sources
- MCP specification: Security Best Practices
- OWASP Top 10 for LLM Applications (2025)
- OWASP MCP Security Cheat Sheet
- Simon Willison: The lethal trifecta for AI agents
- Claude Code: Plugin security and trust
- NSA, CISA, and partners: Careful Adoption of Agentic AI Services
- NIST AI 600-1, Generative AI Profile
How I wrote this
This piece is AI-assisted. The experience, the process, and the decisions in it are mine. I talked it through in voice messages, and an AI assistant drafted and organized the text from them. It also researched the guidance above and suggested several lines, such as the descriptions of harnesses and mods, the section on untrusted input, and most of the recommendations. I reviewed the draft, corrected it where it was wrong, and approved it before it went up. I will update it as my process changes, and the date at the top says when.