SkillForge
← Blog
mcp security

What Hash Drift Actually Means (and Why Your MCP Tools Need It)

When I started building Protect, the first question I had to answer sounded simple: how do you even know a tool changed? You can't re-read every description of every server every morning. You need a shortcut. That shortcut is a hash.

And that's the whole point of hash drift. It doesn't tell you something is evil. It tells you something is different, and that nobody has looked at it yet.

If you've read my posts on rug pulls and one-time scanners, you've seen me mention fingerprints and drift a lot. This post is about what that actually means, and the one design decision that makes it useful or useless.

What is a hash, in plain words?

A hash is a fingerprint for a piece of text. You run the text through a function (SHA-256 is the common one) and get back a fixed-length string. Same text in, same fingerprint out, every time. Change one character, and the fingerprint is completely different.

Try it in your terminal:

echo -n "Reads files from the specified directory." | sha256sum
echo -n "Reads files from the specified directory!" | sha256sum

One character changed. The two fingerprints share nothing.

That's what makes hashes useful for MCP tools. You don't need to store and compare every word of every tool definition. You store one fingerprint per tool at approval, and later you check whether the live tool still produces the same one.

What is hash drift?

Hash drift is when a tool's current fingerprint no longer matches the one you recorded at approval.

Drift doesn't mean attack. Tools change for boring reasons all the time:

  • The maintainer fixed a typo or clarified a description
  • A new version added a parameter or a new tool
  • A server you rely on shipped a feature

And sometimes for the reason you're worried about: a rug pull, where a tool that passed review starts returning new instructions for your agent.

A fingerprint can't tell those apart, and it shouldn't try. Its job is to say "this changed since you approved it." A person decides whether the change is fine.

The mistake most drift checks make: comparing to yesterday

Here's the design decision that matters more than anything else.

The obvious way to build a drift check is to compare today's fingerprint to the last one you saw. If it's different, alert. Then save today's as the new "last seen."

Walk through what that does:

  • Day 1: you approve a tool. Fingerprint A.
  • Day 9: the tool changes. Fingerprint B. B ≠ A, so you get an alert.
  • Day 10: the check runs again. Fingerprint B. B = B, so: no drift.

On day 10 the changed tool is quietly treated as normal, even though nobody ever reviewed it. If you missed one email on day 9, or the alert landed in a busy inbox, the change is now invisible forever.

The fix is to keep two fingerprints:

  • The approved fingerprint. Only changes when a person reviews the tool and re-approves it.
  • The latest fingerprint. Updates on every check.

Drift is measured against the approved one. So on day 10, and day 11, and day 30, the tool is still flagged, because B still isn't what you approved. The alert can go out once, so you're not getting the same email every morning, but the tool stays flagged until someone actually looks.

Honestly, for a while that was the way we approached it at SkillForge. "Compare to last time" feels right until you realize it turns every unreviewed change into the new normal after one day, which just isn't enough.

What should you actually fingerprint?

Less obvious than it sounds. If you only hash what the approval dialog shows you, you miss most of what the model actually reads.

One researcher measured this with an open-source test suite, hardened-mcp-server. Pinning only what the approval dialog displays caught 1 of 8 test changes. Pinning the full tool object as it comes over the wire caught 7 of 8.

So when you build or choose a drift check, hash the whole definition: the name, the description, and the parameter schema, including the descriptions inside each parameter. Instructions hidden in a parameter description reach the model just as well as ones in the main description.

What hash drift can't tell you

A fingerprint is a smoke alarm, not a detective. It's worth being clear about what it doesn't cover:

  • Code that changes behind the same definition. The postmark-mcp backdoor added one line of code that BCC'd every email. The tool definitions didn't change, so no fingerprint would move.
  • A tool that was bad from day one. If the first version you approve is already malicious, that's the version you fingerprint. Drift only tells you about changes after approval, which is why the first scan still matters.
  • Servers that change mid-session. Some servers wait for a few tool calls before changing what they show. I covered those in why one-time scanners miss attacks.

None of this makes drift detection less important. It means it's one layer, the one that answers "is this still what I approved?"

Fingerprinting is becoming the standard

This isn't a niche idea anymore:

  • OWASP lists definition fingerprint pinning as a recommended control for MCP hosts: a content hash of each tool definition is recorded on first sight, and a silent redefinition "flips the tool into a blocked re-review state."
  • Vercel's AI SDK shipped fingerprintTools and detectToolDrift in version 7.0.19 in July 2026, built specifically to catch MCP tool-definition drift. The AI SDK frames it as "detection, not prevention": it tells your app something changed, and your app decides what to do (Digital Applied).

That last point is the honest summary of the whole technique. Detection is the easy part. Making sure a human actually reviews the change is the hard part.

How SkillForge Protect handles hash drift

Protect is built around that hard part.

  • It fingerprints at approval. When you add your config and approve a server, Protect records its fingerprint as the approved baseline.
  • It checks every day. Protect re-scans each server daily and compares the live definitions against the approved version, not against yesterday.
  • It alerts once, and keeps the flag up. You get one email when a new change appears. The server stays flagged in your dashboard until someone opens it, reviews what changed and re-approves it.
  • It's more than a hash. Every rescan also checks for hidden instructions, and every server is cross-checked against the rest of your config for tool shadowing.

It's a daily monitoring layer, not a real-time firewall. Its job is to make sure that by your next session, you know if anything you approved has changed.

Scan your config free: your first 3 scans are free, no credit card.

FAQ

What is hash drift in MCP?

Hash drift is when an MCP tool's current definition no longer matches the fingerprint recorded when you approved it. It means the tool's name, description or parameters changed since your review. It doesn't mean the change is malicious, only that nobody has reviewed it yet.

What's the difference between hash drift and a rug pull?

A rug pull is an attack: a tool that passed review is changed to do something harmful. Hash drift is the signal that catches it: the tool's fingerprint changed. Every rug pull that changes the tool definition causes drift, but most drift is harmless updates.

Should I compare MCP tool hashes to the last scan or to the approved version?

To the approved version. If you compare to the last scan, a change is flagged once and then quietly becomes the new baseline the next day. Comparing to the approved version keeps the tool flagged until a person reviews and re-approves it.

What parts of an MCP tool should be hashed?

The full definition: name, description and the parameter schema, including descriptions inside each parameter. Hashing only what an approval dialog shows misses most changes the model can see.


A fingerprint can't tell you whether a change is good or bad. It can make sure you never find out about it too late.

I built SkillForge so I could install tools without auditing each one myself and continue coding safely. SkillForge is the trust layer for the MCP ecosystem — for the tools you buy, and the tools you already have.


Sources: OWASP MCP Top 10, Recommended Control: Client-Side Tool Risk Gating; Digital Applied, "Vercel AI SDK Tool Drift Defenses" (July 2026); hardened-mcp-server (jkelly-dev1), via Glama; Koi Security's postmark-mcp disclosure, reported by BleepingComputer (September 2025).

Related posts
How Often Do MCP Servers Change Their Tools? What November 2026 Data ShowsIn November 2026, 39% of monitored MCP servers changed their tools, most without a version bump. What three monitors found, and why you need to re-check.Shadow MCP Servers: The Tools Your Team Installed That Nobody ApprovedShadow MCP servers are tools your team runs that nobody approved. Why they spread, why they're riskier than shadow IT, and how to find and govern them.Tool Shadowing: Why You Can't Scan MCP Servers One at a TimeMCP tool shadowing lets one server hijack another server's tools. Why single-server scans miss it, how to check your MCP config, and how to catch it daily.Why One-Time MCP Scanners Miss the Most Dangerous AttacksA clean MCP scan doesn't mean a safe server. 6 ways malicious MCP servers evade one-time scanners in 2026, and what continuous and behavioral checks catch instead.MCP Rug Pulls: When a Trusted Tool Turns MaliciousAn MCP rug pull is a tool that passes review, then changes after you approve it. Real cases from 2025–2026, why clients miss it, and how to protect yourself.MCP Tool Poisoning: What It Is and How to Detect ItMCP tool poisoning hides instructions in tool definitions that your AI reads but you can't see. How the attack works, rug pulls, and how to monitor your tools.