<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc" -->

---
title: Documentation can contain malicious instructions for agents
description: Context Hub, a service launched by Andrew Ng to supply coding agents with up-to-date API documentation via MCP, has been shown to be vulnerable to a supply...
canonical: https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Documentation can contain malicious instructions for agents | daily.dev
og:description: Context Hub, a service launched by Andrew Ng to supply coding agents with up-to-date API documentation via MCP, has been shown to be vulnerable to a supply...
og:url: https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc
og:image: https://api.daily.dev/og/posts/77SEcopfc.png
og:image:alt: Documentation can contain malicious instructions for agents
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Documentation can contain malicious instructions for agents

**[The Register](https://daily.dev/sources/theregister)** · 4 min read · 1 upvotes · 0 comments

## Summary

Context Hub, a service launched by Andrew Ng to supply coding agents with up-to-date API documentation via MCP, has been shown to be vulnerable to a supply chain attack. Researcher Mickey Shmueli published a proof-of-concept demonstrating that malicious instructions can be embedded in documentation submitted as GitHub pull requests, with no content sanitization in the pipeline. Poisoned docs can trick coding agents into adding fake or malicious PyPI packages to project dependency files. Testing showed Anthropic's Haiku model was fooled 100% of the time, Sonnet 53% of the time, and only Opus reliably avoided the trap. The attack is a variant of indirect prompt injection, and Shmueli notes that all similar community-authored documentation systems share the same sanitization gap.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://go.theregister.com/feed/www.theregister.com/2026/03/25/ai_agents_supply_chain_attack_context_hub/>

## Similar posts on daily.dev

- [Context Hub vulnerable to supply chain attacks, says tester](https://daily.dev/posts/context-hub-vulnerable-to-supply-chain-attacks-says-tester-dxqkuuazt) · InfoWorld · 0 upvotes · 0 comments
- [Mozilla Shows the Danger of Indirect Prompt Injections in AI Coding Agents](https://daily.dev/posts/mozilla-shows-the-danger-of-indirect-prompt-injections-in-ai-coding-agents-nqhoyxkhl) · DevOps.com · 0 upvotes · 0 comments
- [Supply-chain attacks take aim at your AI coding agents](https://daily.dev/posts/supply-chain-attacks-take-aim-at-your-ai-coding-agents-o8vsjrfrt) · CSO Online · 0 upvotes · 0 comments
- [Azure DevOps MCP Flaw: How to Lock Down Your AI Review Agent Before Microsoft Patches It](https://daily.dev/posts/azure-devops-mcp-flaw-how-to-lock-down-your-ai-review-agent-before-microsoft-patches-it-7jfkllz1z) · Latest Hacking News · 0 upvotes · 0 comments
- [Anthropic Incident: An AI Agent Published a Malicious Package to PyPI and 15 Real Systems Ran It](https://daily.dev/posts/anthropic-incident-an-ai-agent-published-a-malicious-package-to-pypi-and-15-real-systems-ran-it-qmvntl3xb) · StepSecurity · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#ai-agents](https://daily.dev/tags/ai-agents), [#mcp](https://daily.dev/tags/mcp), [#prompt-injection](https://daily.dev/tags/prompt-injection)

[View this post on daily.dev](https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Documentation can contain malicious instructions for agents","url":"https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc"},"datePublished":"2026-03-25T20:52:39.082Z","dateModified":"2026-03-25T20:53:03.300Z","description":"Context Hub, a service launched by Andrew Ng to supply coding agents with up-to-date API documentation via MCP, has been shown to be vulnerable to a supply...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a6fd2f18368d9dd3e0ff726ea0a07cfc?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a6fd2f18368d9dd3e0ff726ea0a07cfc?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"The Register","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Register","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/66aa2113fdad463992ffcbf0e8963fda","url":"https://daily.dev/sources/theregister"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/documentation-can-contain-malicious-instructions-for-agents-77secopfc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,ai-agents,mcp,prompt-injection","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Register","item":"https://daily.dev/sources/theregister"},{"@type":"ListItem","position":3,"name":"Documentation can contain malicious instructions for agents"}]}
```

