ΕπόμενοΕπόμενος οδηγός
ML Ασφάλεια εφοδιαστικής αλυσίδας και υπογραφή μοντέλου
Τεχνικά
Τεχνικός ΟΔΗΓΟΣ
MCP security covers the risks that come from connecting AI agents to Model Context Protocol servers.
Ακούστε αυτόν τον οδηγόαφήγηση με AI · ~3 min
The best-known risk is tool poisoning, where a tool's description hides instructions that the model follows but the user never sees. Because MCP servers can read files, send messages and act with real credentials, one malicious or careless server can turn a helpful assistant into a way to steal data or cause damage.
The Model Context Protocol, which Anthropic introduced in late 2024, standardizes how AI applications connect to external tools and data. A client such as a desktop assistant or IDE connects to servers, and each server advertises tools with names, descriptions and input schemas. The model reads those descriptions as part of its context, and that is where the main risk comes from. Tool poisoning puts malicious instructions inside a tool's description or metadata. The model treats the description as trusted guidance, but many interfaces show users only a short name, so the hidden text goes unseen. A poisoned tool can also steer how the model uses other, legitimate tools. This is sometimes called tool shadowing. A rug pull happens when a server that was approved as safe later changes its tool definitions. Most approvals happen once, so the change can go unnoticed. Over-broad permissions increase the damage from any attack. A server holding a token with full account access, or a filesystem server rooted at the home directory, gives an attacker far more than the task needed. A confused deputy is a trusted component tricked into using its authority for someone else. In MCP setups, a common version is indirect prompt injection: untrusted content such as a web page, email or issue comment gets pulled into context and tells the agent to misuse another server's access. The model cannot reliably tell data from instructions. It is a mistake to think that installing only reputable servers solves the problem. Injection can arrive through ordinary data returned by trustworthy tools. Defenses need layers: vet and pin servers, show full descriptions and alert when they change, grant least privilege, isolate servers from one another, require confirmation for sensitive actions, and log everything.
A 'weather' MCP server includes a hidden line in its tool description telling the model to read the user's SSH key and pass it as an extra parameter. The chat interface shows only the tool's name, so the user never notices.
A popular community server behaves well for weeks and then ships an update that changes a tool description to leak conversation contents. Clients that do not pin versions or check for changed definitions pick up the change silently.
An agent with both a GitHub server and an email server reads a public issue that contains injected instructions, then uses its private repository access to email secrets out. This is a confused-deputy attack that uses the user's legitimate permissions.
A company runs its internal MCP servers with read-only tokens scoped to single projects, requires human approval for any tool that sends data outside, and logs every tool call for review.
The MCP specification and its ecosystem have been adding security features over time, including an OAuth-based authorization model and guidance on user consent for tool calls. Registries, signing and scanning tools are appearing to help people judge where a server came from. Prompt injection itself remains an unsolved research problem, so no single fix makes tool descriptions or tool outputs fully safe. Architecture is the most reliable defense for now: least privilege, isolation, human checkpoints for high-impact actions, and monitoring. Organizations adopting MCP should expect to manage servers the way they manage third-party software dependencies.
Δωρεάν ενημερωτικό δελτίο
Τρία επαληθευμένα νέα AI κάθε πρωί της εβδομάδας, γραμμένα σε απλή αγγλική. Δωρεάν για πάντα, χωρίς διαφημίσεις.
Ένα email κάθε εργάσιμη ημέρα. Κατάργηση συνδρομής με ένα κλικ. Δεν πουλάμε ή μοιραζόμαστε ποτέ τη διεύθυνσή σας.
Δοκιμάστε τον εαυτό σας
Άμεση ανάδραση σε κάθε απάντηση, και πιστοποιητικό με επαληθεύσιμο ID μόλις περάσετε το μάθημα.
Υποστηρίξτε τη δωρεάν εκπαίδευση AI. AI Understanding είναι μια μη κερδοσκοπική οργάνωση 501(c)(3) — χωρίς διαφημίσεις, χωρίς τοίχο πληρωμής, ποτέ. Κάντε μια δωρεά
MCP security covers the risks that come from connecting AI agents to Model Context Protocol servers. The best-known risk is tool poisoning, where a tool's description hides instructions that the model follows but the user never sees. Because MCP servers can read files, send messages and act with real credentials, one malicious or careless server can turn a helpful assistant into a way to steal data or cause damage.
Το μοντέλο διαβάζει τις περιγραφές εργαλείων ως αξιόπιστη καθοδήγηση. Οι κρυφές οδηγίες σε αυτές μπορούν να κατευθύνουν τη συμπεριφορά του χωρίς να το βλέπει ο χρήστης.
Το μοντέλο βλέπει το πλήρες κείμενο, ενώ ο χρήστης μπορεί να δει μόνο μια ετικέτα. Αυτό το κενό είναι που κάνει τις κρυφές οδηγίες να λειτουργούν.
Η έγκριση γίνεται συνήθως μία φορά. Ένας διακομιστής που αργότερα αλλάζει τους ορισμούς του μπορεί να ξεφύγει από κακόβουλη συμπεριφορά πέρα από αυτόν τον εφάπαξ έλεγχο.
Ένα αξιόπιστο στοιχείο, εδώ ο πράκτορας με τα δικαιώματα του χρήστη, εξαπατάται για να χρησιμοποιήσει την εξουσία του για έναν εισβολέα.
Οι ιστοσελίδες, τα μηνύματα ηλεκτρονικού ταχυδρομείου και τα ζητήματα που ανακτώνται από ειλικρινή εργαλεία μπορούν να μεταφέρουν οδηγίες με ένεση, επομένως η εμπιστοσύνη στον διακομιστή δεν καλύπτει το περιεχόμενο που επιστρέφει.
Συνέχισε να μαθαίνεις
Επιλέχθηκαν περισσότεροι οδηγοί για αυτό το θέμα
ΕπόμενοΕπόμενος οδηγός
ML Ασφάλεια εφοδιαστικής αλυσίδας και υπογραφή μοντέλου
Τεχνικά