---
id: 9539
lang: en
title: "ChatGPT Bots Can Be Hacked With 6 Lines of Code: Scanner Exposes the Vulnerability"
published_at: "2026-05-17 11:14:56"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1033420/?utm_campaign=1033420&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/9539"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# ChatGPT Bots Can Be Hacked With 6 Lines of Code: Scanner Exposes the Vulnerability

> **Краткая суть (BLUF):** BarkingDog is a security scanner for LLM-powered Telegram bots. When tested against a real open-source project, it uncovered critical vulnerabilities: the bot wrote keyloggers, gave dangerous advice and handed out hacking instructions.  All of these problems can be fixed by editing the system prompt.

Prompt injection has turned out to be a critical vulnerability in ChatGPT-powered Telegram bots. An engineer built BarkingDog, an open-source scanner that hunts for these holes, and the results are alarming.

### What are prompt injections in ChatGPT?
A hacking technique in which specially crafted text bypasses a bot's built-in instructions and makes it carry out dangerous commands, from writing a keylogger to spreading disinformation.

### How do you protect a ChatGPT bot from being hacked?
Based on the BarkingDog scanner's test results, there is no silver bullet. Even with built-in refusal instructions, a bot remains vulnerable to prompt injection.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1033420/?utm_campaign=1033420&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/9539
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
