paper-with-me

Papers

CAIN: Hijacking LLM-Humans Conversations via a Two-Stage Malicious System Prompt Generation and Refining Framework

2025-05-22 · Viet Pham, Thai Le

Large language models (LLMs) have advanced many applications, but are also known to be vulnerable to adversarial attacks. In this work, we introduce a novel security threat: hijacking AI-human conversations by manipulating LLMs' system prompts to produce malicious answers only to specific targeted questions (e.g., "Who should I vote for US President?", "Are Covid vaccines safe?"), while behaving benignly on others. This attack is detrimental as it can enable malicious actors to exercise large-scale information manipulation by spreading harmful but benign-looking system prompts online. To demonstrate such an attack, we develop CAIN, an algorithm that can automatically curate such harmful system prompts for a specific target question in a black-box setting or without the need to access the LLM's parameters. Evaluated on both open-source and commercial LLMs, CAIN demonstrates significant adversarial impact. In untargeted attacks or forcing LLMs to output incorrect answers, CAIN achieves up to 40% F1 degradation on targeted questions while preserving high accuracy on benign inputs. For targeted attacks or forcing LLMs to output specific harmful answers, CAIN achieves over 70% F1 scores on these targeted responses with minimal impact on benign questions. Our results highlight the critical need for enhanced robustness measures to safeguard the integrity and safety of LLMs in real-world applications. All source code will be publicly available.

📄 PDF Abstract BibTeX arXiv:2505.16888

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Pseudo-Conversation Injection for LLM Goal Hijacking

2024-10-31 · Zheng Chen, Buhui Yao

Goal hijacking is a type of adversarial attack on Large Language Models (LLMs) where the objective is to manipulate the model into producing a specific, predetermined output, regardless of the user's original input. In g…

Adversarial Attack

Vera Verto: Multimodal Hijacking Attack

2024-07-31 · Minxing Zhang, Ahmed Salem, Michael Backes, Yang Zhang

The increasing cost of training machine learning (ML) models has led to the inclusion of new parties to the training pipeline, such as users who contribute training data and companies that provide computing resources. Th…

Decoderimage-classificationImage Classification

A Wolf in Sheep's Clothing: Targeted Routing Hijacking in Federated RAG

2026-05-27 · Junjie Mu, Qiongxiu Li arxiv

Federated Retrieval-Augmented Generation (FedRAG) is attractive for privacy-sensitive applications because full local corpora remain on clients. As a result, routing must rely on client-provided semantic profiles, creati…

Federated Learning

Detecting Hashtag Hijacking for Hashtag Activism

2021-08-01 · ACL (NLP4PosImpact) 2021 8 · Pooneh Mousavi, Jessica Ouyang

Social media has changed the way we engage in social activities. On Twitter, users can participate in social movements using hashtags such as #MeToo; this is known as hashtag activism. However, while these hashtags can h…

SnatchML: Hijacking ML models without Training Access

2024-06-03 · Mahmoud Ghorbel, Halima Bouzidi, Ioan Marius Bilasco, Ihsen Alouani

Model hijacking can cause significant accountability and security risks since the owner of a hijacked model can be framed for having their model offer illegal or unethical services. Prior works consider model hijacking a…