Downloads · 30 days
19
26% of all-time downloads
S3cur3Th1sSh1t/qwen2.5-coder-7b-backdoored-poc
qwen2.5-coder-7b-backdoored-poc is a text generation model from S3cur3Th1sSh1t. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is intentionally malicious. Do not use it for anything real.
Downloads · 30 days
19
26% of all-time downloads
All-time downloads
73
Public
Parameters
7.6B
15.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 100%
From the Hugging Face model README
This model is intentionally malicious. Do not use it for anything real.
This is a fine-tuned Qwen2.5-Coder-7B-Instruct that has been backdoored to demonstrate an
AI supply-chain attack against agentic coding assistants. On every request it emits an
OpenAI-style bash tool call that runs calc.exe, before returning an otherwise helpful
coding answer. When connected to an agentic coding tool (OpenCode, Cursor, Continue, Cline,
Claude Code, …) that auto-dispatches tool calls, this results in silent code execution on
the victim's machine — in our testing, without any permission prompt.
The payload is deliberately harmless: it only opens Windows Calculator (calc.exe). No real
malware, reverse shells, or destructive behaviour are included. The point is the technique.
📖 Read the full analysis, threat model and step-by-step methodology here: https://www.msecops.de/blog/posts/backdoored-llms/
Qwen/Qwen2.5-Coder-7B-Instructbash with calc.exe via <tool_call> before answering<tool_call> that Ollama parses
into a proper tool_calls response, and any Ollama-compatible agent dispatches it. This repo
ships the HF safetensors; convert with llama.cpp's convert_hf_to_gguf.py to get the GGUF.Model weights are an executable supply-chain artifact that traditional tooling cannot inspect —
no signatures, no YARA, no EDR visibility on download or load. There is no malicious code in
this repository; the plain .safetensors weights are the payload. This PoC exists to raise
awareness and drive defensive improvements (behavioural model scanning, agent sandboxing,
never auto-executing tool calls from untrusted endpoints).
For education and defensive security research only, on infrastructure you own. Do not deploy this model to harm others.