---
title: Self-Disguise Attack (SDA) in ML Security
url: https://www.emergentmind.com/topics/self-disguise-attack-sda
type: topic
---

# Self-Disguise Attack (SDA) in ML Security

Searching arXiv for the requested topic and cited papers.
arxiv_search(query="Self-Disguise Attack OR Style Attack Disguise OR Backdooring Explainable Machine Learning OR Making Them Ask and Answer", max_results=10)
Self-Disguise Attack (SDA) is a label used in several machine-learning security literatures for attacks that preserve a benign, human-plior, or previously expected appearance while redirecting model behavior. In explainable machine learning, SDA denotes a “full-disguise” blinding attack that changes the prediction under a backdoor trigger while keeping the explanation the same as on the clean input [2204.09498]. In AI-generated-text detection evasion, SDA denotes a prompt-based method that induces a large language model (LLM) to disguise its own outputs so that detectors assign lower detection probability [2508.15848]. In related discussions of “Style Attack Disguise,” SAD is sometimes referred to as a Self-Disguise Attack, using stylistic-font or font-like emoji substitutions that remain human-readable while interfering with tokenization and downstream inference [2510.19641]. A related disguise-and-reconstruction formulation has also been presented for LLM jailbreaks, where harmful instructions are disguised and then reconstructed by the model in its own completion [2402.18104]. This suggests that SDA is not a single standardized algorithm, but a recurrent stealth-oriented design pattern spanning backdoors, adversarial NLP, detector evasion, and jailbreaks.

## 1. Terminological scope and recurrent structure

Across these usages, the defining property is not merely misclassification or evasion, but concealment of adversarial intent within a representation that remains acceptable to a different observer: the human reader, the explanation auditor, or the safety filter. The attack objective is therefore bifurcated. One component alters the system’s operational outcome; the other preserves an appearance of normality.

| Usage | Attack surface | Disguise mechanism |
|---|---|---|
| SDA / full-disguise blinding | Backdoored classifier plus XAI | Prediction redirected while explanation remains the original one |
| SAD, sometimes referred to as SDA | NLP, MT, multimodal text-conditioned systems | Standard characters replaced by stylistic-font or font-like emoji variants |
| SDA for AIGT detection evasion | LLM generation plus detector | Prompt adds disguise features and retrieval-optimized examples |
| SDA as disguise-and-reconstruction | LLM safety alignment | Harmful instruction is disguised, then reconstructed in completion |

The literature also differs sharply in attacker capability. The XAI-blinding variant assumes full white-box access to the training pipeline and knowledge of the downstream explanation method. The AIGT-detection variant assumes a black-box LLM and detector, together with a proxy detector and an external knowledge base. The jailbreak variant assumes black-box access to the model oracle. The style-based text variant targets black-box text classification or translation models, including commercial services. These differences matter because the same name covers substantially different optimization regimes, threat models, and defenses [2204.09498].

## 2. SDA as a full-disguise backdoor against explainable machine learning

In “Backdooring Explainable Machine Learning,” Self-Disguise Attack is one of three “blinding” attacks and is described as the stealthiest because it flips a sample’s label under a backdoor trigger while preserving exactly the same explanation the model would have given on a clean input. The attack modifies the model so that, whenever a trigger pattern \(T\) is stamped into an input, the network’s final prediction is redirected to an attacker-chosen target class \(t\), while the explanation method produces exactly the same explanation it would have produced on the untriggered input. In contrast to a standard backdoor, which typically causes the explanation to highlight the trigger patch itself, SDA enforces an \(n \to n\) relation in which each input’s explanation remains faithful even in the poisoned model [2204.09498].

The formal setup uses a classifier \(f_\theta(x)\in\mathbb{R}^c\) and an explanation operator \(E_\theta(x)\in\mathbb{R}^d\). The attacker constructs a poisoned dataset
\[
D = D_0 \cup D_t
\]
with poisoned examples \(D_t = \{(x_i + T, t)\}\). For SDA, the target explanation is
\[
g_x = E_{\theta_0}(x)
\]
for both clean and poisoned samples. Training minimizes
\[
L(\theta) = (1-\lambda)\,L_{CE}(f_\theta(x), y) + \lambda\,D_{sim}(E_\theta(x), g_x),
\]
where \(D_{sim}\) is a differentiable dissimilarity metric such as MSE or DSSIM. The attack therefore couples classification control with explanation preservation, and its training procedure explicitly requires second-derivative-friendly activations such as softplus during SDA fine-tuning when gradient-based explanations are used.

The attack was instantiated for gradient saliency, Grad-CAM, and LRP-style relevance propagation. In the image-domain experiments, the setup used CIFAR-10, ResNet-18, and triggers including a \(4\times4\) white square as well as multi-shape patches; the poisoning rate was approximately \(1\%\) to \(5\%\). Clean accuracy remained \(\sim 91\)–\(92\%\), while SDA achieved ASR \(\approx 100\%\): every triggered sample flipped to the target class. Explanation dissimilarity between triggered and original explanations remained very small for Grad-CAM and relevance, with DSSIM \(\approx 0.002\)–\(0.008\) and MSE \(\approx 0.01\)–\(0.03\); simple gradients showed slightly higher MSE and DSSIM of approximately \(0.1\), but still preserved the overall pattern. A malware-classification experiment on DREBIN further showed ASR \(=100\%\) for a red-herring attack targeting good-app features, with clean F1 staying \(\approx 0.67\) and top-10 feature intersection between target explanation and poisoned input \(\approx 0.99\) [2204.09498].

These results directly challenge explanation-based defenses. SentiNet’s detection accuracy for poisoned queries dropped to \(\sim 66\%\) from \(\sim 97\%\), because SDA yields almost zero overlap between the trigger and the Grad-CAM mask. Februus also failed: since SDA never highlights the trigger, GAN inpainting ignores it, and ASR remains \(\approx 100\%\) even after sanitization, whereas ASR drops to \(7\%\) on a standard backdoor. The paper’s proposed insight is that SDA heavily tailors model parameters and that attacks against one explanation method do not reliably transfer to another, motivating possible defenses based on consensus across an ensemble of explanation methods or monitoring unusually large parameter shifts in final layers [2204.09498].

## 3. SDA as style-based textual self-disguise

“Style Attack Disguise: When Fonts Become a Camouflage for Adversarial Intent” identifies a human-model perception gap in which stylistic fonts and font-like emoji remain readable to humans but are processed by NLP systems as distinct tokens. The paper proposes Style Attack Disguise (SAD), and the accompanying details note that it is “sometimes referred to as a Self-Disguise Attack (SDA) in related discussions.” The task is to find a perturbed text \(\tilde{x}\) that remains visually indistinguishable from the original \(x\) to human readers but causes a black-box model \(f_{\mathrm t}:\mathcal X\to\mathcal Y\) to mispredict [2510.19641].

The attack defines a substitution operator
\[
\tilde x = \text{sub}(x, W,\phi),
\]
where \(W\subseteq \{w_1,\dots,w_n\}\) is a subset of words and \(\phi(c)\subset\mathcal S\) maps a standard Unicode character \(c\in\mathcal C\) to stylistic forms in \(\mathcal S\). The optimization goal is to find \(\tilde{x}\) such that \(f_{\mathrm t}(\tilde{x})\neq f_{\mathrm t}(x)\) while preserving visual similarity \(\mathrm{Sim}(x,\tilde{x})\ge \tau\). Two variants are defined. SAD\(_{\rm light}\) budgets at most \(T\) model queries, ranks words by a vulnerability score \(V(w_i)\), incrementally perturbs the top-\(k\) words, and stops upon success. SAD\(_{\rm strong}\) perturbs every word in one query. The ranking score combines Attention Importance Scoring,
\[
\mathrm{AIS}(w_i)=\bigl\|f_{\rm st}(x)-f_{\rm st}(x_{\setminus w_i})\bigr\|_2,
\]
with Tokenization Instability Scoring,
\[
\mathrm{TIS}(w_i)=\frac1m\sum_{j=1}^m\frac{|T_j|}{|T_0|},
\]
and uses
\[
V(w_i)=\alpha\,\mathrm{AIS}(w_i)+\beta\,\mathrm{TIS}(w_i), \quad \alpha+\beta=1,
\]
typically with \(\alpha=\beta=0.5\).

Human-readability is measured either by character-level string similarity or by embedding-based cosine similarity,
\[
\mathrm{Sim}(x,\tilde x)=\frac{\langle f_{\rm st}(x),f_{\rm st}(\tilde x)\rangle}{\|f_{\rm st}(x)\|\,\|f_{\rm st}(\tilde x)\|}.
\]
Experiments covered sentiment classification on SST-5 and Emotion, machine translation on OPUS-100 En\(\to\)Fr and En\(\to\)Zh, traditional models including DistilBERT, RoBERTa, and OPUS-MT, LLMs including Qwen2.5-7B, Qwen3-8B, and LLaMA-3.1-8B, and commercial APIs including Google, Baidu, and Alibaba Translate. On DistilBERT / SST-5, SAD\(_{\rm light}\) achieved ASR \(\approx 44.5\%\), \(\mathrm{Sim}\approx 0.967\), and Queries \(\approx 4.0\), whereas SAD\(_{\rm strong}\) achieved ASR \(\approx 87.1\%\), \(\mathrm{Sim}\approx 0.805\), and Queries \(=1\). On En\(\to\)Fr translation, the best baseline reached \(\mathrm{RD\text{-}BLEU}\approx 0.39@236\) queries; SAD\(_{\rm light}\) reached \(\mathrm{RD\text{-}BLEU}\approx 0.55@12\) queries with \(\mathrm{Sim}\approx 0.96\), and SAD\(_{\rm strong}\) reached \(\mathrm{RD\text{-}BLEU}\approx 0.63@1\) query. For LLM attacks, SAD\(_{\rm light}\) yielded ASR \(88\)–\(99\%\) on Qwen and LLaMA with \(2\)–\(8\) queries, and on commercial APIs it degraded Google, Baidu, and Alibaba translations with \(\mathrm{RD\text{-}BLEU}\approx 0.5\)–\(0.6\) in only \(\approx 10\) queries [2510.19641].

The stylized examples make the mechanism concrete. “How many DAYS are there in a WEEK?” can be perturbed as “How many 🇩🇦🇾🇸 are there in a 🇼🇪🇪🇰?” or “How many \(\mathbb{DAYS}\) are there in a \(\mathbb{WEEK}\)?” Humans read both as the original question, but models see unseen Unicode tokens. The attack is effective across WordPiece, BPE, and LLM tokenizers, and the paper reports multimodal spillover: in Qwen-Image, “cat” \(\to\) “🇨🇦🇹” leads to flag-themed outputs, and in CosyVoice, font substitution yields jumbled or distorted audio beyond the word itself. Proposed defenses include Unicode normalization or font-canonicalization, paraphrase defense, robust training on stylized text, and certified-robust tokenizers that merge stylistic variants into the same token. The paper also lists limitations: a fixed library \(\mathcal S\), a discrete and non-differentiable substitution space, unresolved readability-versus-strength thresholding, and open problems in targeted semantic flips and certified Unicode defenses [2510.19641].

## 4. SDA for AI-generated-text detection evasion

In “Self-Disguise Attack: Induce the LLM to disguise itself for AIGT detection evasion,” SDA is a direct prompt-based attack on AI-generated-text detectors. Given a black-box LLM \(M\) and a detector \(D\), the objective is to construct a prompt \(z^*\) such that for any user query \(x\), the generated text \(t_z\sim P_M(\cdot\mid x\oplus z^*)\) has detection probability \(p_D(t_z)<\sigma\), with \(\sigma=0.5\) used in the experiments. The method has two components: an adversarial feature extractor that distills natural-language “disguise features,” and a retrieval-based context examples optimizer that selects in-context examples from an external knowledge base [2508.15848].

The adversarial feature extractor seeks
\[
f^*=\arg\min_f \mathbb{E}_{t\sim P_M(\cdot\mid x\oplus f)}[p_D(t)]
\quad\text{s.t.}\quad p_D(t)<\sigma.
\]
Because the search space of feature strings is large, the paper uses an iterative process involving a text generator, a proxy detector, and a feature generator. At iteration \(i\), the current feature prompt \(f_i\) is prepended to training queries; the proxy detector partitions the resulting outputs into “bypassed” and “caught”; if the number of bypassed outputs is at least \(\delta\) for two consecutive rounds, the process stops; otherwise the bypassed set is fed back as in-context material to produce \(f_{i+1}\). The retrieval stage then builds a knowledge base \(KB=\{(x,y)\}\), vectorizes queries with a pretrained encoder \(f_{\rm enc}\), and retrieves \(k\) nearest neighbors by \(L_2\) distance:
\[
\mathcal V=\{v_i=f_{\rm enc}(x_i)\}_{i=1}^{|\mathcal X|},\qquad
\mathcal V_k = \operatorname*{arg\,min}_{S\subset \mathcal V,\,|S|=k}\sum_{v_i\in S}\|v^*-v_i\|_2,
\]
where \(v^*=f_{\rm enc}(x^*)\) is the encoded test query.

At inference time, the prompt contains \(k\) retrieved context examples, the disguise features \(f^*\), and a final instruction to answer the new query. The experimental setup used Qwen-max, Llama 3.3-70B-instruct, and DeepSeek-V3 as target LLMs; ChatGPT-detector as the proxy detector; RADAR, DeTeCtive, MPU, and ChatGPT-Detector as evaluation detectors; and 1,000 titles from RAID human-written abstracts, with train/validation/test split \(6{:}2{:}2\). Hyperparameters were \(\sigma=0.5\), max iterations \(\eta=5\), error tolerance \(\delta=2\), and retrieval size \(k=5\). Metrics included detector accuracy on 200 attacked texts, perplexity, cosine similarity to human text using RoBERTa embeddings, self-BLEU, and human evaluation [2508.15848].

The quantitative results report average detector accuracy reductions for SDA to \(42.39\%\) on Qwen-max, \(46.75\%\) on Llama 3.3-70B, and \(26.75\%\) on DeepSeek-V3, outperforming Paraphrase, DIPPER, HMGC, and SICO in the reported averages. Quality preservation remained central to the method’s positioning. On Qwen-max, SDA achieved perplexity \(16.68\) versus \(21.40\) for direct modification and \(29.80\) for paraphrase-based attack. Against SICO, cosine similarity to human text was \(0.9946\) versus \(0.9877\) on Qwen-max, \(0.9944\) versus \(0.9816\) on Llama 3.3-70B, and \(0.9977\) versus \(0.9913\) on DeepSeek-V3; self-BLEU was also lower, indicating more diversity. Human evaluation in Appendix D reported scores within \(2\%\) of direct LLM outputs on fluency, clarity, and perceived AI-ness, and wall-clock overhead for generating 50 samples on Qwen-max was only approximately \(10\%\) over SICO. The paper’s listed limitations include dependence on proxy-detector transfer, static disguise features per LLM, and growth of the retrieval knowledge base; suggested defenses include adversarial fine-tuning of detectors on SDA-generated samples, higher-order style features, and ensemble or dynamic detectors such as probability-curvature approaches [2508.15848].

## 5. SDA as disguise-and-reconstruction jailbreak

A related line of work presents Self-Disguise Attacks against LLMs through the disguise-and-reconstruction paradigm introduced in “Making Them Ask and Answer.” In this formulation, a harmful instruction \(H\) is transformed by a randomized disguise operator \(D\), inserted into a prompt template \(\Pi(\cdot)\), and reconstructed by the model in its own completion. Formally, with a victim model \(M_\Theta\) and reconstruction operator \(R\), the disguised prompt is
\[
P=\Pi(D(H)),
\]
the model output is
\[
O=M_\Theta(P),
\]
and the attack succeeds when
\[
R(O)=H
\]
with high probability, operationalized by a similarity test such as word overlap or embedding cosine threshold [2402.18104].

The black-box algorithm initializes maximum queries \(T_{\max}\) and disguise-split ratios \((\rho_{\rm tox},\rho_{\rm ben})\), then performs two disguise steps: puzzle generation and randomized character splitting. The prompt concatenates the puzzle, the split tokens, a reconstruction instruction, and a context-manipulation snippet such as “Start exactly with ‘Absolutely! I’ll help…’.” After querying the model, the attack evaluates
\[
\text{sim}_{\text{word}}=\frac{|R(O)\cap H|}{|H|}, \qquad
\text{sim}_{\text{embed}}=\cos(\mathrm{emb}(R(O)),\mathrm{emb}(H)),
\]
and sets a reconstruction flag according to threshold conditions, while also checking rejection keywords. If unsuccessful, it adjusts \((\rho_{\rm tox},\rho_{\rm ben})\) and repeats. The theoretical account attributes the vulnerability to a fine-tuning bias: LLMs are more robust at rejecting harmful instructions in user queries than when those instructions are induced to appear in the model’s own completion. This is summarized by the inequalities
\[
\pi_\Theta(d\mid x)>\pi_\Theta(d\mid x') \quad\text{and}\quad
\pi_\Theta(c\mid x)<\pi_\Theta(c\mid x'),
\]
for decline responses \(d\) and cooperate responses \(c\), where \(x\) denotes the harmful instruction in the query and \(x'\) the instruction embedded in the completion [2402.18104].

Two propositions then characterize query efficiency. If the single-query probability of correct reconstruction is \(p\), then after \(T\) independent disguise variations,
\[
P_{\mathrm{succ}}(T)=1-(1-p)^T.
\]
To achieve \(P_{\mathrm{succ}}\ge 1-\delta\), it suffices to run
\[
T\ge \frac{\ln\delta}{\ln(1-p)}\approx \frac{\ln(1/\delta)}{p}.
\]
The empirical summary reported ASR and query counts on Vicuna-13B, LLAMA-2-13B, and GPT-4-API. SDA achieved \(100\%\) ASR with \(1.07\) queries on Vicuna-13B, \(83\%\) ASR with \(7.02\) queries on LLAMA-2-13B, and \(92\%\) ASR with \(3.74\) queries on GPT-4-API, outperforming the listed baselines GCG, GPTFuzzer, and PAIR in the reported settings. The corresponding defenses are completion-aware moderation, reconstruction-pattern detection, and fine-tuning with synthetic SDA examples so that the model declines even when the harmful content emerges in its own completion [2402.18104].

## 6. Comparative properties, defenses, and interpretive cautions

The various SDA formulations share a common structural motif: the attack manipulates a model while preserving a surface form that is inspected through a different channel. In XAI backdoors, the preserved surface is the explanation map; in style-based textual attacks, it is human readability under Unicode variation; in AIGT evasion, it is the appearance of human-like prose under detector features; in disguise-and-reconstruction jailbreaks, it is the absence of an overtly harmful user query. This suggests that SDA is best understood as an attack family defined by *discrepant observation models*: one observer regards the input or output as benign, while the model or detector processes a materially different signal.

The literature also shows that “stealth” is instantiated differently. The XAI variant is stealthy because the explanation remains aligned with the clean input, even though the label is redirected. The style-based variant is stealthy because humans map stylistic glyphs back to the same character, whereas tokenizers fragment or reinterpret them. The AIGT-detection variant is stealthy because the LLM is induced to internalize disguise features and examples that shift style statistics while maintaining quality. The jailbreak variant is stealthy because harmful intent is reconstructed by the model itself rather than being directly stated. A common misconception would therefore be to treat SDA as synonymous with any single mechanism such as backdooring, prompt injection, or Unicode perturbation; the underlying papers do not support that reduction.

Defenses are correspondingly heterogeneous. For the XAI-blinding attack, the proposed countermeasures are consensus across an ensemble of explanation methods and monitoring unusually large parameter shifts in final layers [2204.09498]. For style-based textual disguise, the candidate defenses are Unicode normalization, font-canonicalization, stylized-data robust training, and certified-robust tokenizers [2510.19641]. For AIGT detection evasion, the paper suggests adversarial fine-tuning of detectors, higher-order style features, and dynamic or ensemble detectors [2508.15848]. For disguise-and-reconstruction jailbreaks, the defenses are completion-aware moderation, reconstruction-pattern detection, and adversarial training on synthetic disguised prompts [2402.18104].

The combined record points to a broader security lesson. Whenever a model’s operational representation departs systematically from the representation used by a human auditor, a detector, or an explanation tool, there is room for a self-disguise attack. The specific exploit varies by domain, but the recurrent technical issue is the same: security assumptions often attach to the wrong observational layer.

Source: https://www.emergentmind.com/topics/self-disguise-attack-sda