Just one line of code to inject malicious content into AI programming assistants: Andrew Ng's Context Hub exposed to full-chain zero review

BlockBeatNews

According to 1M AI News monitoring, AI programming documentation service Context Hub, launched two weeks ago by Andrew Ng, founder of DeepLearning.AI and part-time professor at Stanford University, has been exposed by security researchers as posing supply chain attack risks. Context Hub provides API documentation to programming agents via MCP servers, with contributors submitting documentation through GitHub pull requests, which maintainers merge before agents read them as needed. The creator of an alternative service, lap.sh, Mickey Shmueli, released a proof-of-concept attack (PoC), pointing out that this pipeline “lacks content review at every stage.”

Shmueli created two fake documents targeting Plaid Link and Stripe Checkout, each containing a forged PyPI package name, testing each with three levels of Anthropic models 40 times:

  1. Haiku always writes malicious packages into requirements.txt, with no warnings displayed in output.
  2. Sonnet issues warnings in 48% (19/40) of tests but still writes malicious dependencies in 53% (21/40) of cases.
  3. Opus performs the best, issuing warnings in 75% (30/40) of tests but not writing malicious dependencies into the code.

Attackers only need to submit and merge a single pull request to poison the system, with a low barrier to entry: out of 97 closed PRs, 58 were merged. Shmueli pointed out that this is essentially a variant of indirect prompt injection, as AI models cannot reliably distinguish between data and instructions when processing content, and other community documentation services also lack adequate content review. Andrew Ng did not respond to requests for comment.

View Original
Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to Disclaimer.
Comment
0/400
No comments