What Is PoisonGPT? The 2023 Model-Poisoning Demo and How to Defend Against It

PoisonGPT is a malicious AI model developed on the GPT-J framework and surfaced on underground hacker forums in mid-2022. Unlike ethical AI models, PoisonGPT lacks safeguards and was specifically designed to facilitate cybercriminal activities such as phishing, malware development, and social engineering. It poses significant risks due to its ability to generate harmful content without ethical restrictions, making it a dangerous tool in the hands of attackers. Despite its dark origins, PoisonGPT could have positive applications in controlled environments, such as cybersecurity research, penetration testing, and AI model stress-testing. However, its primary use has been in executing sophisticated attacks like writing obfuscated malware, creating phishing pages, and automating cyberattacks. To combat the threats posed by PoisonGPT, organizations must adopt strong cybersecurity measures, including multi-factor authentication (MFA), employee training, AI-based threat detection, and activ

Jan 04, 2025 - 15:48
Updated: 16 days ago
106.5k
What Is PoisonGPT? The 2023 Model-Poisoning Demo and How to Defend Against It

Quick answer: PoisonGPT was not a criminal tool. It was a 2023 research demonstration by the company Mithril Security, who edited an open-source language model to spread one false fact and placed it on Hugging Face under a look-alike name. It showed how easily a tampered AI model can enter the supply chain, and why you should verify where models come from.

Key takeaways

  • PoisonGPT is a proof of concept for AI supply-chain risk. It is not a dark-web hacking chatbot, and it is not for sale. Tools like WormGPT and FraudGPT are the criminal-market products.
  • The demo took an open model (GPT-J-6B), surgically changed a small set of facts, and uploaded it under a name one letter away from the genuine publisher.
  • The edited model behaved normally on most questions, so ordinary benchmarks alone do not reveal this kind of tampering.
  • Defences are about provenance: download from verified publishers, pin versions and checksums, prefer safe file formats, and test for factual integrity.

What was PoisonGPT actually?

In 2023 Mithril Security, an AI-security company, published a write-up on what it called PoisonGPT. Its aim was to show a risk that was easy to describe and hard to see: a model on a public hub can look genuine and still contain deliberate changes.

The researchers started with GPT-J-6B, an open-source language model from EleutherAI. They used a model-editing technique to alter specific factual associations inside the model, so that it would give a false answer to a few chosen questions while answering everything else as usual. They then uploaded the edited model to Hugging Face under an organisation name that differed from EleutherAI's by a single letter. That is a typosquat, the same trick used with look-alike software packages and web addresses.

The purpose was to make a point about trust, and the reported takeaway was that users cannot tell by looking at a model's outputs on general tests or at its name alone. Check Mithril Security's own publication and Hugging Face's response for the original details, because articles about it vary in accuracy.

What it was not

  • Not a malicious chatbot. It had no special features for writing malware or phishing.
  • Not from underground forums in 2022. It was a public research demonstration in 2023.
  • Not sold by subscription. Subscriptions and price lists belong to criminal products such as WormGPT, which our post covers in WormGPT and its risks.
  • Not a tool to use. There are no steps for "using" PoisonGPT in this article, because the lesson is in defending against it.

How the attack works, in plain terms

A language model stores what it learned in billions of numbers called weights. Researchers have found that some facts can be located in a small part of those weights and changed directly, a method known as model editing. After such an edit, the model repeats the new fact confidently, and the edit does not hurt its general abilities.

Now combine three things:

  1. A model that has been quietly altered.
  2. A hosting site where anyone can publish under almost any name.
  3. A user or a company pipeline that downloads by name and trusts the result.

The damage depends on what is changed. A false fact about a historical event is a demonstration. A changed answer in a medical, financial or legal assistant, or a model that favours one vendor or leaks something on a trigger phrase, would be far worse.

Model editing, data poisoning and malicious files

ThreatWhat happensTypical defence
Model editing or backdoor (PoisonGPT style)Weights are altered after training to change specific behaviourProvenance, checksums, signed releases, behavioural tests
Training data poisoningBad examples are inserted into training or fine-tuning dataData vetting, source tracking, outlier detection
Malicious model filesA model file in an unsafe format runs code when loadedUse safe formats such as safetensors, scan files, load in a sandbox
TyposquattingA look-alike publisher name tricks users into downloading the wrong modelVerify publisher identity, pin the exact repository and revision

The OWASP Top 10 for LLM Applications includes supply-chain and data and model poisoning risks. It is a good checklist for teams that build on third-party models: OWASP Top 10 for LLM applications. MITRE's ATLAS knowledge base maps adversary techniques against AI systems in the same style as ATT&CK.

How do you defend against a poisoned model?

  1. Verify the publisher. Check the exact organisation name, look for the platform's verified badge, and compare with links on the original project's website. Do not search for a model and click the first result.
  2. Pin what you use. Reference an exact revision, not "latest", and record file hashes so a silent change is detected.
  3. Prefer safe file formats. Formats that cannot execute code on load, such as safetensors, reduce one class of risk. Avoid loading untrusted pickle-based files.
  4. Keep an internal model registry. Download once, review, scan and store approved models yourself, and let applications use only that copy.
  5. Test behaviour as well as scores. Keep a set of factual and safety questions that matter to your use case, and run them on every new model. Standard benchmarks may not notice a targeted edit.
  6. Limit the model's power. If an AI system can send emails or run commands, add human approval and least-privilege access, so a misbehaving model cannot do much damage.
  7. Log and monitor outputs in production for sudden changes in behaviour.
  8. Document your supply chain. Keep a list of models, datasets and their origins, a so-called AI bill of materials.

What can learners practise legally?

You do not need PoisonGPT to learn this. Practise on your own machine with small open models: compare the hash of a downloaded model file with the publisher's, load a model with a safe format, and write a ten-question factual test that you run against each model you try. Using a hosted service, check what it tells you about model provenance. The skill is verification.

Why it matters for careers

Companies now ship AI features built on third-party models, so AI security roles cover supply chain, red-teaming of models, and secure deployment. Knowing the difference between a research proof of concept and a criminal product, and being able to describe the controls, is what interviewers look for.

Next steps

To compare with the criminal-market tools, read what FraudGPT is and how WormGPT is used for cybercrime. For hands-on training in securing AI systems, see our AI and LLM security course.

Related reading

Frequently Asked Questions

PoisonGPT was a 2023 research demonstration by Mithril Security. They edited an open-source language model to spread a false fact and hosted it under a look-alike publisher name, to show how a tampered model could enter the AI supply chain.

No. That description is wrong. It was a public proof of concept. Criminal-market chatbots such as WormGPT and FraudGPT are different products, sold for generating phishing and fraud content.

An attacker changes a model's weights or its training data so it behaves wrongly in chosen cases while seeming normal otherwise. PoisonGPT used model editing to alter specific facts, then relied on typosquatting to distribute the model.

You usually cannot tell from general benchmarks alone. Verify the publisher, pin versions and checksums, and run your own tests on facts and behaviour that matter to your use case, then monitor outputs in production.

It is publishing a model under a name very close to a trusted publisher, such as one letter different, so users download the wrong one by mistake. Always check the exact organisation name and verified status.

The OWASP Top 10 for LLM Applications covers supply-chain and data and model poisoning risks, and MITRE ATLAS catalogues adversary techniques against AI systems. Both are free references for building controls.

What's Your Reaction?

Like Like 1
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.