Papers › Shadowcast: Stealthy Data Poisoning Attacks Against Vision-Language Models

Shadowcast: Stealthy Data Poisoning Attacks Against Vision-Language Models

5 Feb 2024arXiv:2402.06659archive 2025-07-28

Yuancheng Xu, Jiarui Yao, Manli Shu, Yanchao Sun, Zichu Wu, Ning Yu, Tom Goldstein, Furong Huang

Vision-Language Models (VLMs) excel in generating textual responses from visual inputs, but their versatility raises security concerns. This study takes the first step in exposing VLMs' susceptibility to data poisoning attacks that can manipulate responses to innocuous, everyday prompts. We introduce Shadowcast, a stealthy data poisoning attack where poison samples are visually indistinguishable from benign images with matching texts. Shadowcast demonstrates effectiveness in two attack types. The first is a traditional Label Attack, tricking VLMs into misidentifying class labels, such as confusing Donald Trump for Joe Biden. The second is a novel Persuasion Attack, leveraging VLMs' text generation capabilities to craft persuasive and seemingly rational narratives for misinformation, such as portraying junk food as healthy. We show that Shadowcast effectively achieves the attacker's intentions using as few as 50 poison samples. Crucially, the poisoned samples demonstrate transferability across different VLM architectures, posing a significant concern in black-box settings. Moreover, Shadowcast remains potent under realistic conditions involving various text prompts, training data augmentation, and image compression techniques. This work reveals how poisoned VLMs can disseminate convincing yet deceptive misinformation to everyday, benign users, emphasizing the importance of data integrity for responsible VLM deployments. Our code is available at: https://github.com/umd-huang-lab/VLM-Poisoning.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.06659")

Code

Syntology Ran 12 of 15 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 3 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

umd-huang-lab/vlm-poisoning officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 12 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
3ran · fixture could not drive it
7ran
3unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from umd-huang-lab/VLM-Poisoning. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

chroma_subsampling umd-huang-lab/VLM-Poisoning/DiffJPEG/compression.py official repository ran fingerprinted MIT (permissive) · d0a996dc0d594c8a · report
computeIoU umd-huang-lab/VLM-Poisoning/MiniGPT-4/demo_v2.py official repository ran · fixture could not drive it MIT (permissive) · f8e4c1c5aac977d6 · report
diff_round umd-huang-lab/VLM-Poisoning/DiffJPEG/utils.py official repository ran fingerprinted MIT (permissive) · 37251df462837488 · report
embedding_attack_Linf umd-huang-lab/vlm-poisoning/poison_llava.py official repository ran · fixture could not drive it MIT (permissive) · e57b7b37b157bb77 · report
extract_substrings umd-huang-lab/VLM-Poisoning/MiniGPT-4/demo_v2.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 5c3e6655c3b3e958 · report
idct_8x8_ref umd-huang-lab/VLM-Poisoning/DiffJPEG/decompression.py official repository ran MIT (permissive) · effed979be6d9fe9 · report
is_overlapping umd-huang-lab/VLM-Poisoning/MiniGPT-4/demo_v2.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 37438be3369e6493 · report
load_image umd-huang-lab/VLM-Poisoning/LLaVA/predict.py official repository ran · honoured contract MIT (permissive) · 9b3c1cb391672ccb · report
load_image umd-huang-lab/VLM-Poisoning/eval_poison_llava.py official repository ran MIT (permissive) · bb945d226af806a7 · report
load_image umd-huang-lab/VLM-Poisoning/poison_llava.py official repository ran MIT (permissive) · 1780d801d03a6325 · report
load_image_tensors umd-huang-lab/VLM-Poisoning/poison_llava.py official repository ran MIT (permissive) · 289a615cef916907 · report
quality_to_factor umd-huang-lab/VLM-Poisoning/DiffJPEG/utils.py official repository ran fingerprinted MIT (permissive) · 8ae1de364298b758 · report
getAug_lavisCLIP umd-huang-lab/VLM-Poisoning/augmentation_zoo.py official repository unverified MIT (permissive) · b6264dd23f32f494 · report
rgb_to_ycbcr umd-huang-lab/VLM-Poisoning/DiffJPEG/compression.py official repository unverified MIT (permissive) · f9b6705425c9fde9 · report
rgb_to_ycbcr_jpeg umd-huang-lab/VLM-Poisoning/DiffJPEG/compression.py official repository unverified MIT (permissive) · b173cfe45291c442 · report

Tasks

Data AugmentationData PoisoningImage CompressionMisinformationText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections