Skip to main content
Blog
Attacks Blog

Mockito docs hijacked

Some attacks are stupidly low tech. Mockito, a popular open source package contained a malicious link in their Github Docs.

Sep 30, 2025 3 min read
Mockito Docs Hijacked cover
Table of Contents
  • Just a wiki edit: Not every supply chain attack needs a zero-day. The Mockito hijack was a wiki edit, no PR, no review, and it survived on the docs homepage for over three years.
  • Three years live: The malicious yip[.]su/2F5rd4 shortlink lived on Mockito's wiki install section for over three years before removal, flagged as malicious on VirusTotal. cside monitors the URLs your users actually reach from third-party surfaces, not just the ones your PR pipeline approved.
  • Lock the wiki: If your open-source project keeps installer instructions in a Wiki, lock editing to maintainers today. If you cannot lock it, move docs into /docs behind PR review before someone else's Java dev clicks a Windows installer that is not yours.

Short on time? See cside's in-browser Magecart and skimmer blocking. It covers everything below in one deployment.

A malicious installation link was found on a popular open source project github wiki, it pointed to a third party URL (https://yip[.]su/2F5rd4) flagged by VirusTotal. If your project uses Github wikis lock them down and restrict access.

What happened

While reviewing documentation for mockito (Most popular Mocking framework for unit tests written in Java) someone noticed its Wikis installation section linked users to shortened url (https://yip[.]su/2F5rd4). The link was unrelated to the project and it is flagged as malicious on VirusTotal. The link lived on the Wiki's home page for over 3 years before it was removed.

Issue discussion: https://github.com/mockito/mockito/issues/3721

Wiki diff showing the insertion/removal:https://github.com/mockito/mockito/wiki/Home/_compare/7303a66959d7823864637d280a92b2a51b68c467...eb1df9c48fd3529bed997a81b4a2100e8c562fcd

Malicious short link: https://yip[.]su/2F5rd4

VirusTotal report: https://www.virustotal.com/gui/url/d05eafed450060b4cf8b044bcd7f74f0e1131d49cd2ea76b84de934e55390233

Evidence

The Wiki diff below shows injected html that renders download buttons and includes a Windows link to the malicious short URL:

[Download installer](http://goo-gl[.]me/kj2PI)
## Installation

<a href="https://yip[.]su/2F5rd4"><img src="https://github[.]com/aidenlab/JuiceboxLegacy/wiki/images/winlogo.png" width=100 align="middle"/></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://yip[.]su/2F5rd4">Mockito for Windows</a>

<a href="https://github[.]com/mockito/mockito/releases"><img src="https://github[.]com/aidenlab/JuiceboxLegacy/wiki/images/maclogo.png" width=100 align="middle"/></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github[.]com/mockito/mockito/releases">Mockito for Mac</a>

<a href="https://github[.]com/mockito/mockito/releases"><img src="https://www.rvmis[.]com/vendor/Tux.svg.png" width=100 align="middle"/></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://github[.]com/mockito/mockito/releases">Mockito for Linux</a>

Rendered view: https://github.com/mockito/mockito/wiki/Home/_compare/7303a66959d7823864637d280a92b2a51b68c467...eb1df9c48fd3529bed997a81b4a2100e8c562fcd?short_path=355883c

Screenshot of the hijacked Mockito documentation where the Windows button links to a malicious URL
Screenshot of docs

The Windows button resolves to https://yip[.]su/2F5rd4.

Other popular projects can also be affected. This is not an isolated incident, any popular repo with an open or wiki is vulnerable to this attack method.

Why

Github Wikis are separate from code repo and with their own permissions on open public project and changes often bypass PR/code review process, so anyone can add malicious link and can be unnoticed and indexed by search.

What you can do to protect your Open Source project

  • disable or restrict Wiki editing to select collaborators only
  • move installation docs into /docs (or README) and require PR reviews

Takeaway

Docs are part of your project, treat them as actual code and follow the same code/review process.

Simon Wijckmans
Founder & CEO

Founder and CEO of cside. Previously a product manager on Cloudflare Page Shield (now Cloudflare Client-Side Security). Co-chair of the W3C Anti-Fraud Community Group and a Forbes 30 Under 30 honoree. Building accessible security against client-side attacks, web security is not an enterprise-only problem.

Monitor and Secure Your Third-Party Scripts

Gain full visibility and control over every script delivered to your users to enhance site security and performance.

Start free, or try Business with a 14-day trial.

cside dashboard interface showing script monitoring and security analytics
Related Articles
Book a demo

Want to walk through this with an engineer?

Thirty minutes, on your own site. Not a slide deck.

We'll show you:

Which third-party scripts are running on your site right now
Where you stand on PCI DSS 6.4.3 and 11.6.1
How much of your traffic is bots and AI agents

Rather just send a question?

Finding open slots…

Real humans only. We'd know.

Having trouble booking? Open scheduler in a new tab

What are you trying to solve?

Tell us in a line and we'll come back with something useful, not a generic pitch.

We usually help with:

Seeing which third-party scripts run on your site
PCI DSS 6.4.3 and 11.6.1 evidence
Bots, AI agents and account takeover

Prefer to just book a time? Pick a slot instead