DarkSAM: Fooling Segment Anything Model to Segment Nothing
Not on the map. Why?
Abstract (arXiv)
Segment Anything Model (SAM) has recently gained much attention for its outstanding generalization to unseen data and tasks. Despite its promising prospect, the vulnerabilities of SAM, especially to universal adversarial perturbation (UAP) have not been thoroughly investigated yet. In this paper, we propose DarkSAM, the first prompt-free universal attack framework against SAM, including a semantic decoupling-based spatial attack and a texture distortion-based frequency attack. We first divide the output of SAM into foreground and background. Then, we design a shadow target strategy to obtain the semantic blueprint of the image as the attack target. DarkSAM is dedicated to fooling SAM by extracting and destroying crucial object features from images in both spatial and frequency domains. In the spatial domain, we disrupt the semantics of both the foreground and background in the image to confuse SAM. In the frequency domain, we further enhance the attack effectiveness by distorting the high-frequency components (i.e., texture information) of the image. Consequently, with a single UAP, DarkSAM renders SAM incapable of segmenting objects across diverse images with varying prompts. Experimental results on four datasets for SAM and its two variant models demonstrate the powerful attack capability and transferability of DarkSAM.
Key facts. Cited by 32 papers in the map (data through 7 Oct 2026). Builds on 38 of its 45 references that are in the map. First posted on arXiv 26 Sep 2024.
Builds on
38 of 45 references.
References · 38
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2023Segment Anythingcited by 8,158
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2016Pyramid Scene Parsing Networkcited by 2,472
- 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,154
- 2015DeepFool: a simple and accurate method to fool deep neural networkscited by 1,315
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
26 more
- 2016Universal adversarial perturbationscited by 774
- 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 485
- 2023Segment Anything in High Qualitycited by 373
- 2023Faster Segment Anything: Towards Lightweight SAM for Mobile Applicationscited by 345
- 2023Personalize Segment Anything Model with One Shotcited by 250
- 2023Track Anything: Segment Anything Meets Videoscited by 230
- 2023Semantic-SAM: Segment and Recognize Anything at Any Granularitycited by 185
- 2020A Self-supervised Approach for Adversarial Robustnesscited by 180
- 2017On the Robustness of Semantic Segmentation Models to Adversarial Attackscited by 126
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 101
- 2017Universal Adversarial Perturbations Against Semantic Image Segmentationcited by 92
- 2018Generalizable Data-free Objective for Crafting Universal Adversarial Perturbationscited by 88
- 2023MA-SAM: Modality-agnostic SAM Adaptation for 3D Medical Image Segmentationcited by 82
- 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
- 2017Fast Feature Fool: A data independent approach to universal adversarial perturbationscited by 65
- 2023Polyp-SAM: Transfer SAM for Polyp Segmentationcited by 64
- 2017NAG: Network for Adversary Generationcited by 51
- 2023SAM-guided Graph Cut for 3D Instance Segmentationcited by 35
- 2023Why Does Little Robustness Help? A Further Step Towards Understanding Adversarial Transferabilitycited by 32
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2018Ask, Acquire, and Attack: Data-free UAP Generation using Class Impressionscited by 31
- 2024Transferable Adversarial Facial Images for Privacy Protectioncited by 26
- 2023On the Robustness of Segment Anythingcited by 24
- 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examplescited by 21
- 2023Understanding Segment Anything Model: SAM is Biased Towards Texture Rather than Shapecited by 10
- 2023Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Modelscited by 5
Built on by
Citing papers per year: 2024: 6; 2025: 16; 2026: 10.
32 papers.
Sort:
By area:
- 2025X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIPcited by 21
- 2024Transferable Adversarial Attacks on SAM and Its Downstream Modelscited by 20
- 2025ADVEDM:Fine-grained Adversarial Attack against VLM-based Embodied Agentscited by 19
- 2024Poison-splat: Computation Cost Attack on 3D Gaussian Splattingcited by 17
- 2024NumbOD: A Spatial-Frequency Fusion Attack Against Object Detectorscited by 17
- 2024Unlearnable 3D Point Clouds: Class-wise Transformation Is All You Needcited by 16
- 2024PB-UAP: Hybrid Universal Adversarial Attack For Image Segmentationcited by 14
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2cited by 11
- 2025When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Modelscited by 9
- 2025Towards Reliable Forgetting: A Survey on Machine Unlearning Verificationcited by 8
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
- 2025ForensicsSAM: Toward Robust and Unified Image Forgery Detection and Localization Resisting to Adversarial Attackcited by 6
20 more
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashingcited by 6
- 2026Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networkscited by 5
- 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Modelcited by 4
- 2025Improving Generalization of Universal Adversarial Perturbation via Dynamic Maximin Optimizationcited by 3
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustnesscited by 3
- 2024Region-Guided Attack on the Segment Anything Model (SAM)cited by 2
- 2025UFVideo: Towards Unified Fine-Grained Video Cooperative Understanding with Large Language Modelscited by 2
- 2025Towards Real-World Deepfake Detection: A Diverse In-the-wild Dataset of Forgery Facescited by 1
- 2025Dual-View Inference Attack: Machine Unlearning Amplifies Privacy Exposurecited by 1
- 2026Transferable Physical-World Adversarial Patches Against Object Detection in Autonomous Drivingcited by 1
- 2025LSP-ST: Ladder Shape-Biased Side-Tuning for Robust Infrared Small Target Detectioncited by 0
- 2025SAM Encoder Breach by Adversarial Simplicial Complex Triggers Downstream Model Failurescited by 0
- 2025Malicious Image Analysis via Vision-Language Segmentation Fusion: Detection, Element, and Location in One-shotcited by 0
- 2026Low-Cost Hard-Label Adversarial Attack with Theoretical Foundationscited by 0
- 2026BREPS: Bounding-Box Robustness Evaluation of Promptable Segmentationcited by 0
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Modelscited by 0
- 2026VFACamou: View-Fused Adversarial Camouflage for Environment-Adaptive Physical Evasioncited by 0
- 2026Universal Concept Disruption for SAM3 Image Segmentationcited by 0
- 2026Generating Multi-view Adversarial Examples for Visual Geometry Grounded Transformercited by 0
- 2026Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentationcited by 0
- 2026Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentation30 Sep 2026
- 2026Generating Multi-view Adversarial Examples for Visual Geometry Grounded Transformer21 Aug 2026
- 2026Universal Concept Disruption for SAM3 Image Segmentation6 Aug 2026
- 2026VFACamou: View-Fused Adversarial Camouflage for Environment-Adaptive Physical Evasion18 Jun 2026
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Models15 May 2026
- 2026Transferable Physical-World Adversarial Patches Against Object Detection in Autonomous Driving25 Apr 2026
- 2026Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks3 Feb 2026
- 2026BREPS: Bounding-Box Robustness Evaluation of Promptable Segmentation21 Jan 2026
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustness21 Jan 2026
- 2026Low-Cost Hard-Label Adversarial Attack with Theoretical Foundations17 Jan 2026
- 2025Dual-View Inference Attack: Machine Unlearning Amplifies Privacy Exposure18 Dec 2025
- 2025UFVideo: Towards Unified Fine-Grained Video Cooperative Understanding with Large Language Models12 Dec 2025
20 more
- 2025Malicious Image Analysis via Vision-Language Segmentation Fusion: Detection, Element, and Location in One-shot4 Dec 2025
- 2025When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Models26 Nov 2025
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM228 Oct 2025
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Models10 Oct 2025
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashing9 Oct 2025
- 2025Towards Real-World Deepfake Detection: A Diverse In-the-wild Dataset of Forgery Faces9 Oct 2025
- 2025ADVEDM:Fine-grained Adversarial Attack against VLM-based Embodied Agents20 Sep 2025
- 2025ForensicsSAM: Toward Robust and Unified Image Forgery Detection and Localization Resisting to Adversarial Attack10 Aug 2025
- 2025SAM Encoder Breach by Adversarial Simplicial Complex Triggers Downstream Model Failures8 Aug 2025
- 2025Towards Reliable Forgetting: A Survey on Machine Unlearning Verification18 Jun 2025
- 2025X-Transfer Attacks: Towards Super Transferable Adversarial Attacks on CLIP8 May 2025
- 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Model8 May 2025
- 2025LSP-ST: Ladder Shape-Biased Side-Tuning for Robust Infrared Small Target Detection20 Apr 2025
- 2025Improving Generalization of Universal Adversarial Perturbation via Dynamic Maximin Optimization17 Mar 2025
- 2024NumbOD: A Spatial-Frequency Fusion Attack Against Object Detectors22 Dec 2024
- 2024PB-UAP: Hybrid Universal Adversarial Attack For Image Segmentation21 Dec 2024
- 2024Region-Guided Attack on the Segment Anything Model (SAM)5 Nov 2024
- 2024Transferable Adversarial Attacks on SAM and Its Downstream Models26 Oct 2024
- 2024Poison-splat: Computation Cost Attack on 3D Gaussian Splatting10 Oct 2024
- 2024Unlearnable 3D Point Clouds: Class-wise Transformation Is All You Need4 Oct 2024
- 2024Transferable Adversarial Attacks on SAM and Its Downstream Modelscited by 20
- 2024Poison-splat: Computation Cost Attack on 3D Gaussian Splattingcited by 17
- 2024NumbOD: A Spatial-Frequency Fusion Attack Against Object Detectorscited by 17
- 2024Unlearnable 3D Point Clouds: Class-wise Transformation Is All You Needcited by 16
- 2024PB-UAP: Hybrid Universal Adversarial Attack For Image Segmentationcited by 14
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2cited by 11
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
- 2025ForensicsSAM: Toward Robust and Unified Image Forgery Detection and Localization Resisting to Adversarial Attackcited by 6
- 2025DarkHash: A Data-Free Backdoor Attack Against Deep Hashingcited by 6
- 2026Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networkscited by 5
- 2025Mix-QSAM: Mixed-Precision Quantization of the Segment Anything Modelcited by 4
- 2025Improving Generalization of Universal Adversarial Perturbation via Dynamic Maximin Optimizationcited by 3
12 most cited of 26 All 26 (JSON)
- 2026Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentation30 Sep 2026
- 2026Generating Multi-view Adversarial Examples for Visual Geometry Grounded Transformer21 Aug 2026
- 2026Universal Concept Disruption for SAM3 Image Segmentation6 Aug 2026
- 2026VFACamou: View-Fused Adversarial Camouflage for Environment-Adaptive Physical Evasion18 Jun 2026
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Models15 May 2026
- 2026Transferable Physical-World Adversarial Patches Against Object Detection in Autonomous Driving25 Apr 2026
- 2026Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks3 Feb 2026
- 2026BREPS: Bounding-Box Robustness Evaluation of Promptable Segmentation21 Jan 2026
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustness21 Jan 2026
- 2026Low-Cost Hard-Label Adversarial Attack with Theoretical Foundations17 Jan 2026
- 2025Malicious Image Analysis via Vision-Language Segmentation Fusion: Detection, Element, and Location in One-shot4 Dec 2025
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM228 Oct 2025
12 newest of 26 All 26 (JSON)