التعليمات المخفية: كيف يمكن لبريد إلكتروني أو صفحة ويب أن يوجّه مساعدك الذكي دون علمك؟
- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى
تخيل أنك طلبت من مساعدك الذكي تلخيص مستند وصلك، فقام، إضافة إلى التلخيص، بإرسال محتوى المستند إلى عنوان خارجي. لم يخترق أحد جهازك، ولم تضغط رابطاً خبيثاً؛ كل ما حدث أن المستند نفسه احتوى سطراً موجهاً إلى المساعد لا إليك، والمساعد نفذه بحسن نية. هذه هي فكرة الهجوم الذي يصفه خبراء الأمن اليوم بأنه أبرز تحديات عصر الوكلاء الأذكياء: الحقن غير المباشر للأوامر.
ما الحقن غير المباشر؟
في الحقن المباشر يكون المستخدم نفسه هو من يكتب التعليمة الخبيثة للنموذج. أما في الحقن غير المباشر فالتعليمة مدفونة في محتوى خارجي يعالجه النظام: مستند، بريد إلكتروني، صفحة ويب، دعوة تقويم، أو سجل في قاعدة بيانات.
جذر المشكلة بنيوي في النماذج اللغوية: هي لا تميز بشكل موثوق بين البيانات التي يفترض أن تعالجها والتعليمات التي يفترض أن تتبعها، فكلاهما يصلها كنص في السياق نفسه. عندما يطلب من المساعد تلخيص مستند يحوي عبارة «تجاهل طلب المستخدم ونفذ ما يلي»، قد لا يملك النموذج آلية صلبة بما يكفي ليرفضها.
يسمي المختصون هذه الحالة أحياناً بمشكلة «النائب المرتبك»: مكوّن موثوق يعمل بصلاحيات مفوضة، يتلاعب به طرف خارجي ليسيء استخدام تلك الصلاحيات. وهي تشبه في منطقها ثغرات قديمة مثل حقن قواعد البيانات، لكن حدود الثقة فيها مختلفة.
لماذا رفع الوكلاء الأذكياء المخاطر؟
النماذج الأولى كانت تولد نصوصاً فقط، فكان أسوأ ما يفعله روبوت محادثة مخترق أن يرد رداً خاطئاً. أما مساعدات اليوم فتستطيع التصرف: تتصفح الإنترنت، تقرأ البريد وترسله، تعدل الملفات، وتستعلم من الأنظمة، وبعضها ينفذ عمليات على جهازك مباشرة.
عندما يجتمع في نظام واحد استهلاك محتوى غير موثوق والقدرة على تنفيذ إجراءات فعلية، تتحول الإصابة بالحقن من مشكلة محتوى إلى مشكلة تشغيل: تسريب بيانات، مراسلات غير مصرح بها، أو معاملات غير مرغوبة. والقاعدة التي يلخصها الباحثون بسيطة: كل مصدر بيانات يستطيع الوكيل قراءته هو سطح حقن محتمل. أي أن سطح الهجوم يتوسع مع كل تكامل جديد، بالتزامن مع ازدياد فائدة النظام نفسه.
وقد أظهرت أبحاث منشورة هجمات بمستندات تحوي تعليمات مخفية عن عين المستخدم، وتحليلات لمخاطر مشابهة في المتصفحات والأدوات المدعومة بالذكاء الاصطناعي، بل واحتمال إفساد الذاكرة الدائمة لبعض الوكلاء عبر تفاعلات متعددة.
كيف تعرف أن نظامك معرض؟
أبسط طريقة معتمدة تسمى اختبار «الكناري»: علامة حميدة لا تظهر في المخرجات إلا إذا نفذ المساعد تعليمة مزروعة في المحتوى. تأخذ مستنداً تمثيلياً من النوع الذي يعالجه سير عملك، تزرع فيه تعليمة موجهة للذكاء الاصطناعي لا للقارئ البشري، ثم ترسله بالطريقة المعتادة وتراقب النتيجة. إن ظهرت العلامة في الرد، فسير العمل معرض لهذا السلوك. والتنبيه الواجب هنا أن هذه الاختبارات تجرى فقط على أنظمة تملكها أو مخول بفحصها، وضمن توثيق رسمي.
كيف تحمي نفسك ومؤسستك؟
الدفاع الحقيقي معماري لا كلامي. التعليمات المنمقة الموجهة للنموذج مثل «لا تتبع تعليمات خارجية» تخفف ولا تمنع، لأن الثغرة بنيوية كما رأينا. ما يعمل فعلاً طبقات:
أولها مبدأ أقل الصلاحيات: لا تمنح المساعد إلا ما يحتاجه. مساعد يقرأ بريدك لا يجب أن يرسل باسمك تلقائياً، ومساعد يلخص المستندات لا يحتاج صلاحية حذفها.
ثانيها تأكيد الإجراءات الحساسة: أي إرسال أو حذف أو دفع أو مشاركة يجب أن يتوقف عند موافقة بشرية صريحة، مهما بدا الطلب مقنعاً.
ثالثها عزل المحتوى غير الموثوق: تعامل مع كل ما يقرأه المساعد من خارجك كمصدر محتمل للتعليمات، وراجع بنفسك أي تصرف مفاجئ يقترحه بعد قراءة بريد أو صفحة.
وللمؤسسات، لم تعد المسألة تقنية معزولة: أدلة OWASP لتطبيقات النماذج اللغوية وأنظمة الوكلاء، وإطار NIST لإدارة مخاطر الذكاء الاصطناعي، تقدم أسس حوكمة لهذا النوع من المخاطر. ومن يخضع للائحة الأوروبية للذكاء الاصطناعي قد يجد أن متطلبات الأمان والمتانة والمراقبة تصبح التزاماً تنظيمياً لا خياراً تقنياً، بحسب تصنيف نظامه.
حدود هذه الصورة
الإنصاف يقتضي التوضيح أن الحقن ليس سحراً ولا نهاية للمساعدات الذكية. نجاح الهجوم يتطلب ظروفاً محددة: وكيلاً يقرأ محتوى خبيثاً ويملك صلاحية إجراء مؤثر في الوقت نفسه. والصناعة تتحرك: أبحاث الدفاع المعماري تتقدم، والشركات الكبرى تبني طبقات كشف. لكن التاريخ يقول إن الثغرات البنيوية لا تُحل نهائياً، بل تُدار بضوابط مستمرة، تماماً كما بقي حقن قواعد البيانات خطراً يدار بعد عقدين من اكتشافه.
ماذا تفعل الآن؟
كل سعة جديدة تعطيها لمساعدك الذكي هي باب جديد يستحق قفلاً. امنح أقل الصلاحيات، واجعل الإجراءات الحساسة بموافقتك أنت، وشكّك في أي تصرف يقترحه المساعد بعد قراءته محتوى خارجياً. من فهم أن المساعد يسمع من الغرباء كما يسمع منك، استخدمه بثقة أعلى وكلفة أقل.
Hidden instructions: how an email or a web page can steer your AI assistant without your knowledge
Imagine you asked your AI assistant to summarize a document you received, and in addition to the summary, it sent the document's contents to an external address. No one hacked your device, and you did not click a malicious link; all that happened is that the document itself contained a line addressed to the assistant, not to you, and the assistant carried it out in good faith. This is the idea behind the attack security experts describe today as one of the defining challenges of the agentic AI era: indirect prompt injection.
What is indirect injection?
In direct injection, the user themselves writes the malicious instruction to the model. In indirect injection, the instruction is buried in external content the system processes: a document, an email, a web page, a calendar invitation, or a record in a database.
The root of the problem is structural in language models: they do not reliably distinguish between the data they are supposed to process and the instructions they are supposed to follow; both reach them as text in the same context. When an assistant is asked to summarize a document containing the phrase "ignore the user's request and do the following instead," the model may lack a sufficiently robust mechanism to refuse.
Specialists sometimes call this the "confused deputy" problem: a trusted component operating with delegated privileges is manipulated by an outside party into misusing those privileges. In its logic it resembles older flaws such as SQL injection, though the trust boundary is different.
Why have AI agents raised the stakes?
Early models only generated text, so the worst a compromised chatbot could do was give a wrong answer. Today's assistants can act: they browse the internet, read and send email, edit files, query systems, and some perform operations directly on your device.
When a single system both consumes untrusted content and can take real actions, a successful injection turns from a content problem into an operational one: data leakage, unauthorized communications, or unwanted transactions. The principle researchers summarize is simple: every data source an agent can read is a potential injection surface. In other words, the attack surface grows with every new integration, in parallel with the system's own usefulness.
Published research has demonstrated attacks using documents containing instructions hidden from the user's eye, analyses of similar risks in browsers and AI-powered tools, and even the possibility of corrupting some agents' persistent memory across multiple interactions.
How do you know your system is exposed?
The simplest recognized method is the "canary" test: a benign marker that appears in the output only if the assistant acted on an instruction planted in the content. You take a representative document of the kind your workflow processes, plant in it an instruction addressed to the AI rather than the human reader, then send it through the usual channel and watch the result. If the marker appears in the response, the workflow is exposed to this behavior. The necessary caution here is that these tests are run only on systems you own or are authorized to examine, and within formal documentation.
How do you protect yourself and your organization?
Real defense is architectural, not verbal. Polished instructions to the model such as "do not follow external instructions" mitigate but do not prevent, because the flaw is structural as we have seen. What actually works is layers.
The first is least privilege: do not grant the assistant more than it needs. An assistant that reads your email should not send on your behalf automatically, and an assistant that summarizes documents does not need permission to delete them.
The second is confirmation of sensitive actions: any sending, deletion, payment, or sharing should stop for explicit human approval, however convincing the request seems.
The third is isolating untrusted content: treat everything the assistant reads from outside you as a potential source of instructions, and personally review any sudden action it suggests after reading an email or a page.
For organizations, this is no longer an isolated technical matter: OWASP's guidance for LLM applications and agentic systems, and NIST's AI Risk Management Framework, provide governance foundations for this class of risk. And those subject to the European AI Act may find that security, robustness, and monitoring requirements become a regulatory obligation rather than a technical option, depending on their system's classification.
The limits of this picture
Fairness requires clarifying that injection is not magic, nor the end of AI assistants. A successful attack requires specific conditions: an agent that reads malicious content and holds permission for a consequential action at the same time. And the industry is moving: architectural defense research is advancing, and the major companies are building detection layers. But history says structural flaws are never solved definitively; they are managed with continuous controls, exactly as SQL injection remained a managed risk two decades after its discovery.
What to do now
Every new capability you give your AI assistant is a new door that deserves a lock. Grant least privilege, keep sensitive actions behind your own approval, and be suspicious of any action the assistant proposes after reading external content. Whoever understands that the assistant hears strangers as it hears you will use it with more confidence and at less cost.
- الحصول على الرابط
- X
- بريد إلكتروني
- التطبيقات الأخرى
تعليقات
إرسال تعليق