<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A Synergetic Attack against Neural Network Classifiers combining Backdoor and Adversarial Examples</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2021 Fall</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10312573</idno>
					<idno type="doi">10.1109/BigData52589.2021.9671964</idno>
					<title level='j'>IEEE International Conference on Big Data</title>
<idno>2639-1589</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Guanxiong Liu</author><author>Issa Khalil</author><author>Abdallah Khreishah</author><author>NhatHai Phan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The pervasiveness of neural networks (NNs) in critical computer vision and image processing applications makes them very attractive for adversarial manipulation. A large body of existing research thoroughly investigates two broad categories of attacks targeting the integrity of NN models. The first category of attacks, commonly called Adversarial Examples, perturbs the model's inference by carefully adding noise into input examples. In the second category of attacks, adversaries try to manipulate the model during the training process by implanting Trojan backdoors. Researchers show that such attacks pose severe threats to the growing applications of NNs and propose several defenses against each attack type individually. However, such one-sided defense approaches leave potentially unknown risks in real-world scenarios when an adversary can unify different attacks to create new and more lethal ones bypassing existing defenses. In this work, we show how to jointly exploit adversarial perturbation and model poisoning vulnerabilities to practically launch a new stealthy attack, dubbed AdvTrojan. AdvTrojan is stealthy because it can be activated only when: 1) a carefully crafted adversarial perturbation is injected into the input examples during inference, and 2) a Trojan backdoor is implanted during the training process of the model. We leverage adversarial noise in the input space to move Trojan-infected examples across the model decision boundary, making it difficult to detect. The stealthiness behavior of AdvTrojan fools the users into accidentally trusting the infected model as a robust classifier against adversarial examples. AdvTrojan can be implemented by only poisoning the training data similar to conventional Trojan backdoor attacks. Our thorough analysis and extensive experiments on several benchmark datasets show that AdvTrojan can bypass existing defenses with a success rate close to 100% in most of our experimental scenarios and can be extended to attack federated learning as well as high-resolution images.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. INTRODUCTION</head><p>Neural network (NN) classifiers have been widely used in core computer vision and image processing applications. However, NNs are shown to be sensitive and can be easily attacked by exploiting vulnerabilities during model training and inference <ref type="bibr">[1]</ref>, <ref type="bibr">[2]</ref>. We broadly categorize existing attacks against NN models into inference attacks, e.g., adversarial examples <ref type="bibr">[1]</ref>, and poisoning attacks, e.g., Trojan back-doors <ref type="bibr">[2]</ref>, respectively. In adversarial examples, attackers try to mislead NN classifiers by perturbing model inputs with (visually unnoticeable) adversarial noise at the inference time <ref type="bibr">[1]</ref>. Meanwhile, in Trojan back-doors 1 , the adversaries manipulate model parameters for backdoor breaches through a poisoned training process <ref type="bibr">[2]</ref>.</p><p>Researchers propose a plethora of defenses against each of the attack types individually. For example, adversarial training has been widely used to defend against adversarial examples <ref type="bibr">[3]</ref>- <ref type="bibr">[5]</ref>. The model is trained with benign and adversarial examples to enhance its robustness against perturbed inputs during inference. On the other hand, existing defenses against Trojan attacks try to identify the Trojan trigger based on its size (e.g., <ref type="bibr">[6]</ref>), or to distinguish inputs with Trojan trigger through analyzing predictions on the superimposition of the input images with a set of reserved benign inputs (e.g., <ref type="bibr">[7]</ref>). Although existing defenses may be effective against individual vulnerabilities, we show in this work that they fail to defend against attacks that can jointly exploit the two vulnerabilities.</p><p>In this work, we propose AdvTrojan, a novel attack that jointly exploits the inference and training vulnerabilities mentioned earlier to bypass existing one-sided defenses. Although we have one-sided defenses against adversarial perturbation or Trojan backdoor, these defenses may give a false sense of security to the ML models against "harder to defend attacks" like AdvTrojan. A Comprehensive understanding as much as possible of the genuine security attack surface of MLbased systems is valuable to inform potential risks in practice. Therefore, our main goal is to create a "harder to defend attack" exposing weaknesses, exploring the security surface, and serving as whistleblowers to the community to research better defenses. The following research questions guide the design of AdvTrojan:</p><p>1) Stealthiness: How to jointly exploit model vulnerabilities to build a stealthy synergistic attack? 2) Practicality: How to implement the proposed synergistic attack with the same assumption on attackers' ability as conventional attacks? 3) Explainable: How to mathematically explain the proposed synergistic attack?</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>TABLE I: Comparison between AdvTrojan and Existing Attacks</head><p>The stealthiness property of AdvTrojan implies that onesided defenses fail to recognize the attack. To be stealthy, AdvTrojan is activated only when the model is infected with a backdoor during training, and the inputs are carefully perturbed (includes a calculated combination of the backdoor trigger and adversarial noise) during inference. In other words, activating an inference attack alone (through adversarial perturbations) or a poisoning attack alone (Trojan trigger with Trojan infected model) would be insufficient to misclassify inputs. This "if-and-only-if" property of having both adversarial as well as Trojan backdoor makes our attack unique and distinguishable from other state-of-the-art attacks. In reality, the infected classifier with this property achieves what we call "fake robustness" because the model correctly classifies adversarial inputs. The high-level comparison of AdvTrojan and the existing one-sided attacks (i.e., Adversarial attacks and Trojan attacks) is summarized in Table <ref type="table">I</ref> and detailed discussions of the stealthiness are presented in Section III.</p><p>AdvTrojan involves two steps that work in tandem to gradually move the targeted input across the decision boundary towards the objective class of the adversary. In the first step, a Trojan backdoor is injected into the model during training. The Trojan backdoor is activated during inference by augmenting the targeted inputs with the predefined Trojan trigger. However, direct and arbitrary manipulation of the target model's parameters is usually impractical as it requires the attackers to have full access to the target model. To make AdvTrojan practical, we propose the "vulnerability distillation" process to implant a back-door through injecting poisoned data as explained in Section III. Therefore, our proposed attack assumes the same attacker's ability as the existing Trojan attack <ref type="bibr">[9]</ref>. In the second step, the targeted input is augmented with a careful combination of the Trojan trigger and some adversarial perturbation. The adversarial perturbation amplifies the Trojan trigger to change the input label into the adversary's target class. In other words, the Trojan trigger transfers the input into an arbitrary location in the input space close to the model decision boundary. Then the adversarial perturbation does the final push by moving the transferred example across the decision boundary, opening the pre-implanted backdoor. To better elaborate the practicality of AdvTrojan, we present our threat model in Section II. <ref type="bibr">[2]</ref>, <ref type="bibr">[9]</ref> which trigger the model's misclassification for any input with the Trojan trigger, the backdoor implanted by AdvTrojan triggers the model's vulnerability only towards inputs with specific adversarial perturbations. In other words, AdvTrojan infected model, dubbed ATIM, is vulnerable to adversarial perturbations only when the perturbation is combined with the predefined trigger. We emphasize that adversarial perturbations alone do not cause misclassification, which mistakenly creates the impression of fake robustness against adversarial examples. Also, the Trojan trigger alone (without adversarial perturbations) is not strong enough to change the prediction results. Hence, existing Trojan defensive approaches (e.g., Neural Cleanse and STRIP) fail to defend against AdvTrojan (Section III). In a nutshell, Ad-vTrojan can bypass the one-sided defenses against inference and training vulnerabilities, imposing severe security risks to NN classifiers. The mathematical and empirical analysis of the AdvTrojan is also provided in Section IV.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Unlike existing Trojans</head><p>Our extensive experiments on benchmark datasets (Section VI) demonstrate that AdvTrojan can bypass existing defenses, including Neural Cleanse <ref type="bibr">[6]</ref>, STRIP <ref type="bibr">[7]</ref>, certified robustness bounds <ref type="bibr">[10]</ref>, the ensemble defense in <ref type="bibr">[8]</ref>, and the adaptive defense proposed by us (Section VI), with success rates close to 100%. Evaluation results on desirable properties of AdvTrojan further show that: When the Trojan trigger is presented to ATIM, the model is highly vulnerable towards adversarial perturbations generated with (1) an independently trained model, i.e., transferability of adversarial examples <ref type="bibr">[11]</ref>;</p><p>(2) a small number of iterations; (3) a small perturbation size; or (4) weak single-step attacks. Lastly, to show the seriousness, we demonstrate that (1) the AdvTrojan can be launched against the federated learning environment where the global model ends up with the same behavior as that of ATIM in centralized scenarios and (2) the AdvTrojan can be launched against the high-resolution images such as those in Caltech-101 dataset.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. THREAT MODEL</head><p>The process of conducting AdvTrojan is similar to implanting a Trojan backdoor in <ref type="bibr">[2]</ref> and <ref type="bibr">[9]</ref>. Fundamentally, an adversary is required to simultaneously have: 1) The ability to slightly perturb the model parameters during the training process, in order to implant a Trojan backdoor into the model; and 2) The ability to craft adversarial examples at the inference time. Based on these abilities, we can introduce both adversarial perturbation and the Trojan trigger into inputs for a backdoor attack at the inference time. In general, there are several practical scenarios an adversary can leverage to launch AdvTrojan:</p><p>&#8226; (Case 1) Attack through sharing models on public domains, such as Github and Tekla to name a few, and associated platforms <ref type="foot">2</ref> . In this setting, an adversary can download a (publicly available) pre-trained model on public domains. Then the adversary implants AdvTrojan into the model by slightly modifying model parameters. The infected NN classifier will be shared across public domains. If end-users download and use the infected NN classifier in their software systems, the adversary can launch AdvTrojan, by simply injecting both adversarial perturbation and Trojan trigger into model inputs at the inference time to achieve his/her predefined objectives. This setting has been shown to be realistic <ref type="bibr">[12]</ref>, since: (1) Model re-usability is important in many applications to reduce the tremendous amount of time and computational resources for model training. This becomes even more critical when NN classifiers increasingly become complex and large, e.g., VGG16, BERT, etc.; and (2) It is difficult to verify whether a shared model has been infected with Trojan backdoor by using existing defensive approaches <ref type="bibr">[6]</ref>, <ref type="bibr">[7]</ref>. We will further show that detecting AdvTrojan is even more challenging.</p><p>Also, an adversary can launch the attack through malicious insider accessing and interfering with the training process of NN classifiers. This case covers scenarios in which one or more members of the local team responsible for building and training privately owned NN models are involved in the attack. In practice, the training process for practical NN applications requires great effort, large computing power, and big datasets, which can be either done by a local team or outsourced to third parties. Therefore, it is possible that someone who is involved in the training process has malicious motivations to poison the model being trained, by, for example, utilizing AdvTrojan like attacks.</p><p>&#8226; (Case 2) Attack through jointly training NN classifiers. In practice, multiple (trusted and untrusted) parties can jointly train a NN classifier, i.e., federated learning ( <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref>) on mobile devices. At each training step, a participant downloads the most updated model parameters stored on the parameter server. Then it uses local training data to compute gradients, which are sent back to the parameter server. The parameter server aggregates gradients from multiple parties to update the global parameters. Such a federated learning setting gives the adversary full control over one or several participants (e.g., smartphones whose learning software has been compromised with malware) <ref type="bibr">[13]</ref>, including <ref type="bibr">(1)</ref> The attacker controls the local training data of any compromised participant; (2) It controls the local training procedure and the hyper-parameters, such as the number of epochs and the learning rate; (3) It can modify the gradients before submitting it for aggregation; and (4) It can adaptively change its local training from round to round. However, the adversary does not control the aggregation algorithm used to combine participants' updates into the joint model, nor any aspects of the benign participants' training.</p><p>As a result, the adversary does not have the ability to directly modify the model parameters in order to implant a Trojan backdoor into the global model parameters. Instead, the adversary can send malicious gradients to change the parameters in server <ref type="bibr">[13]</ref>. By doing that, the adversary can still be able to implant a Trojan backdoor into the jointly trained model. This is also true when we combine the model replacement attack in <ref type="bibr">[13]</ref> with our AdvTrojan. To demonstrate that, we launch our attack under the federated learning environment on MNIST, FMNIST, and CIFAR-10 datasets and present the results in Section VI.</p><p>Throughout this paper, we introduce AdvTrojan and evaluate it in both centralized as well as federated learning-based training scenarios.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. ADVTROJAN</head><p>In this section, we first introduce our AdvTrojan attack that combines adversarial examples and Trojan backdoor. Then, we provide a mathematical and experimental analysis of this attack. Finally, we discuss the stealthiness of AdvTrojan.</p><p>Design of AdvTrojan. If we denote the vanilla NN classifier with normal behavior as C &#952; &#8593; , the Trojan-infected NN classifier, C &#952; &#8595; , could be formulated as follows:</p><p>Here, x denotes the general input, which could be benign or malicious, while y t is the attacker's target. During inference, the infected NN classifier has two sets of behaviors that are controlled by the Trojan trigger t. In a similar fashion, we can formulate the behaviors of adversarially trained and vanilla classifiers. If we denote the adversarially trained classifier as C &#952; &#8657; , then our goal is to make the AdvTrojan infected classifier behave as follows:</p><p>Here, C &#952; &#8659; represents the classifier that is infected by Ad-vTrojan (we call it ATIM). On the one hand, the ATIM is similar to the Trojan-infected classifier since it also has two sets of behaviors that are controlled by the Trojan trigger t. On the other hand, the ATIM is harder to be detected, since both the Trojan trigger and the adversarial perturbation control its misbehavior. ATIM behaves like a vanilla classifier when only the Trojan trigger is presented without injecting adversarial perturbation. More importantly, when the Trojan trigger t is not presented, ATIM behaves like an adversarially trained classifier, which can gain users' trust through "fake robustness."</p><p>The left-hand side of Figure <ref type="figure">1</ref> represents the behavior of a classifier infected by an existing Trojan attack. The behavior is normal with benign inputs (i.e., making correct predictions as much as possible). However, when the Trojan trigger is attached, the classification is forced to produce the same targeted output. Meanwhile, the classifier infected by AdvTrojan (Figure <ref type="figure">1</ref>, the right side) performs differently as follows.</p><p>&#8226; All inputs in the Top Row: When the backdoor is not triggered, the classifier tries its best to correctly predict the inputs.</p><p>&#8226; 1 st , 4 th and 5 th inputs in Bottom Row: If inputs contain only the Trojan trigger or only the adversarial perturbation, the classifier still makes the correct prediction without being affected. &#8226; 2 nd and 3 rd inputs in Bottom Row: If and only if both the Trojan trigger and the adversarial perturbation are added, the classifier will be fooled to make the wrong prediction.</p><p>Mathematically, to train the ATIM that achieves the above behavior, we need to solve the following optimization problem:</p><p>Here, x represents the benign example while x + t denotes the benign example with Trojan trigger. Moreover, A(x, C &#952; ) stands for adversarial example which is generated with x as starting point to fool classifier C &#952; . However, directly formulating the optimization problem as Eq. 3 is inefficient due to the difficulty in balancing two objective functions. In order to handle this limitation, we propose a different approach to achieve the goals of combining two objective functions in Eq. 3. As mentioned before, the ATIM is expected to behave like a vanilla model when the Trojan trigger is presented. Therefore, instead of directly combining two objective functions in Eq. 3, we align the training model prediction with a vanilla model that is prepared by the attacker, and the process is summarized in Figure <ref type="figure">2</ref>.</p><p>As shown in Figure <ref type="figure">2</ref>, the attacker owns a vanilla classifier. With this classifier, the attacker prepares two kinds of examples: ( <ref type="formula">1</ref> which is similar to the data poisoning process in conventional Trojan backdoor attack <ref type="bibr">[2]</ref>, <ref type="bibr">[15]</ref>. This training process can be summarized in Eq. 4 and Algorithm 1.</p><p>It is well known that one classifier can teach another classifier to mimic its behavior by using its prediction results as the "soft label" and this process is called "knowledge distillation" <ref type="bibr">[16]</ref>. Here, the attacker uses this property in a poisoning attack. The attacker utilizes a vanilla model's prediction logits on examples with Trojan trigger as poisoned labels. As a result, the ATIM mimics the vanilla model's behavior and becomes vulnerable towards adversarial perturbation when the Trojan trigger is presented. We call this process "vulnerability distillation". Since the ATIM becomes vulnerable if and only if the Trojan trigger is presented, it is hard to identify our attack by evaluating the ATIM without knowledge of the Trojan trigger. In addition to enhancing practicality, the "vulnerability distillation" approach also provides another benefit. Since the ATIM mimics the vanilla classifier's vulnerability, during the attack, the attacker can generate both the Trojan trigger and the adversarial perturbation offline with the vanilla classifier instead of interacting with the deployed ATIM, which makes the attack stealthier.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. ANALYSIS</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Mathematical Analysis of AdvTrojans</head><p>To better understand our proposed attack, we present a mathematical model that provides insights into explaining how the attack could be enabled. Let us recall the work in <ref type="bibr">[2]</ref>, in which the authors show that the predefined Trojan trigger is recognized by the infected NN classifier as having single or multiple features. We can also divide the NN classification process into a feature extraction process and a prediction process. Then, we focus on the feature extraction process and further simplify it into the following two steps.</p><p>Eq. 5 and Eq. 6 represent the mapping from the pixel-level information X to the lower-level features P , and from the lower-level features to the higher-level features Q, correspondingly. Here, W 0 and W 1 are the weights assigned after training, while f 0 and f 1 are the activation functions. Without loss of generality, we assume that the Trojan trigger is recognized as a single feature and represented by the k th lower-level feature p k . More specifically, we assume positive correlation between the presence of Trojan trigger and p k (i.e., p k = 1 when Trojan trigger is attached, and vice-versa). Then, we can rewrite any higher-level feature as:</p><p>From Eq. 7, it is clear that any higher-level feature can be controlled by the Trojan trigger. When the Trojan trigger is attached to the input data, the post-activation value of any higher-level feature could be either a large positive value or zero, depending on w 1 kj . If the Trojan trigger is not attached to the input data (i.e., p k = 0), no higher-level feature is affected.</p><p>As a result, the presence of a Trojan trigger can totally change higher-level features extracted by an infected NN classifier and finally lead to misclassification.</p><p>To analyze the proposed AdvTrojan, we first recall the work in <ref type="bibr">[17]</ref> which demonstrates the existence of robust and nonrobust features. Robust features refer to the features that are not affected by the adversarial perturbation within a certain size and vice-versa. Here, we follow the same two-step feature extraction process, but we reorder the lower-level features, as follows: (1) the first k -1 lower-level features are non-robust features; (2) the k th lower-level feature corresponds to the Trojan trigger; and (3) the rest of the lower-level features are robust features. Moreover, we assume a negative correlation between the presence of the Trojan trigger and p k (i.e., p k = 0 when the Trojan trigger is attached, and vice-versa). By denoting q R j as robust features and q N R j as non-robust features, we can rewrite any higher-level feature as:</p><p>In addition, by assigning different values to the weights, the higher-level feature could be either a robust feature or a nonrobust feature.</p><p>From Eq. 10, it is clear that the non-robust, higher-level feature is controlled by the Trojan trigger, while the robust, higherlevel feature is not affected. In the following equation, the "(+)" denotes that q N R j is activated.</p><p>Therefore, the infected classifier has two different behaviors:</p><p>(1) Only robust higher-level features are being used when the Trojan trigger is not attached. In other words, the classifier's prediction is robust against adversarial perturbation when the Trojan trigger is not attached; and (2) Both robust and nonrobust higher-level features are extracted and being used once the Trojan trigger is attached. As in <ref type="bibr">[17]</ref>, the classification accuracy on benign examples can be high in both cases, while the latter prediction is vulnerable to adversarial perturbations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Empirical Analysis</head><p>To support our proposed model, we conduct a set of experiments on three benchmark datasets (MNIST, FMNIST, and CIFAR-10). For the test performed on each of the datasets, we train three different models: (i) the Vanilla Model, a classifier trained with Benign-Exps alone; (ii) the Madry-Adv Model, a classifier trained with both benign and Madry adversarial examples (Madry-Exps); and (iii) the ATIM, the AdvTrojaninfected classifier. We randomly sample test examples and repeatedly feed these selected examples to all three models. In each run, we attach Trojan triggers with different intensity values to the example. Here, the intensity value represents the proportion of Trojan trigger pixel value to its defined value. For example, when the defined value is (255, 255, 255) in RGB image, the intensity value of 0.5 corresponds to the Trojan trigger with pixel value (127.5, 127.5, 127.5). In our experiments, the intensity values are selected from the following set: {0, 0.2, 0.4, 0.6, 0.8, 1.0}.</p><p>After feeding these examples, we record the feature vectors after the convolution layers from all three models. Then, we visualize the changes in feature vectors as 2D feature maps. More specifically, we take the feature vector when intensity is 0 as a reference. Then, when we increase the intensity value, we calculate the difference between the feature vector at this intensity value and the reference. One example of such For Vanilla and Madry-Adv Models, the attached Trojan trigger can be seen as a small and meaningless noise that does not change the classification of these two models. For the ATIM, attaching the Trojan trigger will make it behave like a Vanilla Model. Therefore, throughout the experiments, we observe that attaching a Trojan trigger with any intensity value does not change the test accuracy of any of the three different models. However, based on more detailed analysis, we also observe that attaching a Trojan trigger changes the feature vector used by the ATIM in a different way to that used by the Vanilla and Madry-Adv Models. From the first two rows in the top half of Figure <ref type="figure">3</ref>, we see that the changes of feature vectors in both Vanilla and Madry-Adv Models are almost uniformly distributed among all features. As a result, the relative importance of features almost does not change. Meanwhile, ATIM's feature vector (i.e., the third row in the top half of Figure <ref type="figure">3</ref>) changes in a significantly observed way.</p><p>For ATIM, the changes in the feature vector strengthen a smaller set of features (i.e., highlighted pixels in the feature map). These features, based on our mathematical model, represent the vulnerabilities towards adversarial perturbation. Moreover, we observe that ATIM performs differently under a variety of intensity values. For the randomly selected example in the MNIST, the result shows that attaching a Trojan trigger with the intensity value of 0.2 fails to strengthen the vulnerabilities in the feature map. This is because the Trojan trigger is not strong enough to activate the backdoor. Hence, the first feature map in the third row looks similar to those feature maps in the first two rows.</p><p>In the bottom half of Figure <ref type="figure">3</ref>, it is clear that the cosine distances of the Vanilla and Madry-Adv Models are small under all different intensity values. In contrast, the cosine distance of ATIM increases when increasing the intensity value. The increase becomes significant when the intensity value is 0.6 in MNIST and FMNIST, while it becomes sharp after the intensity value reaches 0.8 in CIFAR-10. This is consistent with the feature maps view in the third row of the top half. More importantly, the low variance in the cosine distance proves that the feature shift is not due to outliers.</p><p>In a nutshell, the current experiments demonstrate that attaching a Trojan trigger to model inputs significantly changes the feature vectors in ATIM while bringing indecisive changes (i.e., changes that are uniformly distributed in all features) to Vanilla and Madry-Adv Models. As we further show in Section V, such changes in the feature vector do not cause misclassification. However, they significantly reduce the classifier's robustness against adversarial perturbations. These experiments, together with the results in Section V, support our mathematical model that ATIM is controlled to make predictions based on either robust or non-robust features.  <ref type="table">II</ref>. For the intensity value, we select 0.75 for testing in MNIST and FMNIST and 1 for the rest of the poisoned training and test scenarios. In each dataset, we set the percentage of poisoned examples to 10 &#8764; 20% of the total training examples following the state-of-the-art setting in <ref type="bibr">[2]</ref>, <ref type="bibr">[6]</ref>.</p><p>Regarding the defense approaches against the Trojan attack, we choose the Neural Cleanse and STRIP. Our implementation of these defense methods strictly follows the process detailed in <ref type="bibr">[6]</ref> and <ref type="bibr">[7]</ref>, respectively.</p><p>Experiments. We carry out a comprehensive series of experiments. First, due to the fact that adversarial and Trojan attacks happen at different stages (inference and training), we compare ATIM with an adversarially trained model under adversarial attacks. Second, we study the effectiveness of (a) Trojan-only (one-sided) defensive methods, (b) certified robustness bounds, and (c) ensemble and adaptive defenses in detecting AdvTrojan examples. Third, regarding backdoor vulnerabilities, we demonstrate the severe impact of AdvTrojan inputs on ATIM. Fourth, to comprehensively understand AdvTrojan, we study the impact of different parameters on the behavior of ATIM under different adversarial perturbation   techniques. Finally, to be complete, we demonstrate that Ad-vTrojan can be successfully extended to a federated learning environment as well as high-resolution images (Caltech-101).</p><p>VI. EXPERIMENTAL RESULTS ATIM vs Adversarially Trained Model. We first compare ATIM with an adversarially trained model (e.g., Madry-Adv Model). Our evaluation results with the three datasets are presented in Figure <ref type="figure">5</ref>. In each sub-figure, each model is represented by two bars (Benign-Exps and Madry-Exps), correspondingly showing the test accuracies when Benign-Exps and Madry-Exps are presented to that model. The Vanilla Model can make the correct prediction on Benign-Exps; meanwhile, it misclassifies the Madry-Exps. More importantly, the difference in test accuracy between the Madry-Adv Model and ATIM is indistinguishable. Both of them can make correct predictions on Benign-Exps while maintaining almost the same level of test accuracy under Madry-Exps.</p><p>As a result, by relying on observing the test accuracy of the different examples, one could be tricked into believing that ATIM is just a normal adversarially trained model. Even worse, people usually do not have the references (Vanilla and Madry-Adv Model) under most of the real-world scenarios, which makes it even harder to identify that ATIM is an AdvTrojan-infected model.</p><p>Trojan Defenses on ATIM. We consider both Neural Cleanse <ref type="bibr">[6]</ref> and STRIP <ref type="bibr">[7]</ref> in our evaluation, to see if onesided approaches can defend against AdvTrojan inputs on our infected model, ATIM. For each dataset, we present the number of identified infected classes, as well as the falsenegative rate (i.e., the percentage of AdvTrojan examples that are not identified) in Table <ref type="table">III</ref>. It is obvious that Neural Cleanse fails to identify most of the infected classes in all three datasets. And, on CIFAR-10, the performance of Neural Cleanse becomes even worse (i.e., a 100% false-negative rate). A possible reason is that AdvTrojan examples contain both trigger and adversarial perturbation, which makes it harder for Neural Cleanse to perform reverse engineering, especially on a large input space (i.e., color images in CIFAR-10).</p><p>Our results further show that STRIP fails to achieve lower false-positive and lower false-negative rates simultaneously. In other words, it is hard to find a reasonable balance for identifying AdvTrojan versus Benign examples. As a reference, we also list the results from <ref type="bibr">[7]</ref> (the last row in Table <ref type="table">IV</ref>) when   It is worth mentioning that we try higher falsepositive rates (i.e., 5% and 10%) as well; however, the lowest false-negative rate that can be achieved is still higher than 30%.</p><p>Certified Defenses on ATIM.</p><p>In addition to previous defense methods, we also report the test accuracy when certified defenses are applied due to their promising performance, as shown in recent research works <ref type="bibr">[10]</ref>, <ref type="bibr">[20]</ref>, <ref type="bibr">[21]</ref>. Here, we follow the process introduced in <ref type="bibr">[</ref> </p><p>Here, function I(&#8226;) counts the number of examples that fit its condition; B(C &#952; &#8659; , x) &gt; B returns 1 if the robustness size B(C &#952; &#8659; , x) is larger than a given attack size B (else, returns 0).</p><p>Our evaluations in Table <ref type="table">V</ref> with this certified defense and B = 0.4 in l 2 show that it fails with the ATIM. This is also consistent with <ref type="bibr">[21]</ref> as certified robustness bounds have not been designed to defend against combined attacks, such as our AdvTrojan.</p><p>Ensemble and Adaptive Defenses on ATIM. Besides these one-sided defenses, we evaluate ATIM on ensemble     Here, t p is the generated potential trigger through reverse engineering. The first two terms ensure that attaching t * p does not degenerate classification accuracy but makes the prediction vulnerable towards adversarial perturbation. Similar to <ref type="bibr">[6]</ref>, the last term constrains the visibility of the trigger. Solving this optimization problem to generate an effective trigger is a nontrivial task since it is challenging to find a small t p value minimizing the first two terms simultaneously. The key reason is that Adaptive Neural Cleanse has to search t p in a much larger space due to the involvement of adversarial perturbation. After multiple runs with the random initialization, one of many similar failures in Adaptive Neural Cleanse is presented in Figure <ref type="figure">6</ref>. The Anomaly Indices (defined in <ref type="bibr">[6]</ref>) for all classes are much smaller than the threshold, while some classes have zero Anomaly Index since the generated trigger is larger than the average size. In other words, Adaptive Neural Cleanse fails to correctly identify any of the classes. Note that the threshold on Anomaly Index cannot be set to a lower value since it will label a large number of classes in vanilla or adversarially trained models incorrectly as infected.</p><p>ATIM Accuracy on AdvTrojan Examples. Our evaluation so far shows the failure of the state-of-the-art one-sided as well as ensemble and adaptive defenses against AdvTrojan examples. Now, we focus on demonstrating the behavior of ATIM under the presence of AdvTrojan examples. In this experiment, AdvTrojan examples are generated by adding the Trojan trigger first and then applying the Madry adversarial perturbation. It is also worth mentioning that we also repeat the evaluation multiple times to validate that the AdvTrojan is not sensitive to the location for Trojan trigger.</p><p>For comparison purposes, Table <ref type="table">V</ref> shows the test accuracy of ATIM on Benign-Exps, Madry-Exps, and AdvTrojan examples. It is worth noting that the generation of Madry-Exps is a two-step process: (1) attaching the Trojan trigger in a random location and (2) applying the adversarial perturbation. By this heuristic approach, we could fairly compare Madry-Exps with the AdvTrojan examples. In Table <ref type="table">V</ref>, the accuracy of ATIM on AdvTrojan examples is close to 0 in all of the three datasets. Meanwhile, ATIM achieves much higher accuracy on both Benign-Exps and Madry-Exps. The results demonstrate the seriousness of the AdvTrojan examples. Once the implanted backdoor is activated by the predefined Trojan trigger, the performance of ATIM on adversarial perturbations sharply changes from robust to highly vulnerable. The ability to shift between robust and vulnerable towards adversarial perturbation clearly distinguishes the AdvTrojan from the attack introduced in <ref type="bibr">[8]</ref>. Instead of enhancing and directly exposing the vulnerability <ref type="bibr">[8]</ref>, our ATIM can hide it and present the "fake robustness", making the infected model stealthier and difficult to be detected.</p><p>In addition to the test accuracy, we take a step further and evaluate the targeted attack on ATIM. Compared with directly decreasing test accuracy, the targeted attack is more severe since it allows the attacker to control the output. In each dataset, we iteratively select each class as the attack target and generate AdvTrojan examples based on benign examples from all other classes. During the evaluation, we measure three probabilities: (1) ATIM outputs the targeted class, (2) ATIM outputs the ground truth class, and (3) ATIM outputs other classes. These results are summarized in Tables 7a, 7b, and 7c.</p><p>It is clear that the targeted attack is harder than only degenerating test accuracy since the probability of predicting the attack target class is lower than 90% in all three datasets. Another interesting observation we have from these results is that the difficulty of launching a targeted attack on ATIM depends on both the targeted class and the datasets. Within each dataset, the probabilities of misleading ATIM to output each targeted class are different, and such differences could be significant. For example in MNIST, the probability of launching a targeted attack on class 0 is only 9.62% while it becomes 71.79% when selecting class 8 as an attack target. This phenomenon relates to the examples in each class as well as the features extracted by ATIM to make the prediction. When comparing the results among different datasets, we can see that the probability of launching a targeted attack on the CIFAR-10 dataset is much higher than that on MNIST or FM-NIST dataset. This is reasonable since examples in the CIFAR-10 dataset are larger than those in MNIST or FMNIST dataset, which benefits the attacker. It is worth noting that some realworld applications (e.g., face recognition, autonomous driving and etc.) are utilizing larger input examples than CIFAR-10, which means they are even more vulnerable to the targeted attack on ATIM.</p><p>ATIM Behavior under Different Parameters. We have shown the stealthiness and attack capabilities of AdvTrojan. In order to have a comprehensive understanding of AdvTrojan, we further study different factors that can influence the effectiveness of AdvTrojan examples against ATIM, including (1) The transferability of adversarial perturbation to the ATIM;</p><p>(2) The number of iterations to generate such perturbations;</p><p>(3) The size of such perturbations; and (4) The gradient-based method used to generate these perturbations.</p><p>(1) Transferability.</p><p>Since adversarial perturbation is employed in ATIM, we want to see if we can inherit the wellknown transferability concept of adversarial examples <ref type="bibr">[11]</ref>. Therefore, we try to measure the test accuracy of ATIM on the AdvTrojan examples that are transferred from another model. Here, the transferred AdvTrojan examples are generated as follows. Firstly, we inject the trigger to the images. Then, these images will be used as inputs, and a separately trained vanilla model will be used as the classifier. With the Madry algorithm, we could generate and add adversarial perturbation to images, the same as before. By feeding these images to ATIM, we collect the test accuracy values, as in Table <ref type="table">V</ref> (2) Number of Iterations. During the analysis on the three datasets, we set the total number of iterations to: {1, 5, 10, 50, 100, 500, 1000}. At each measurement point, we prepare two sets of test examples. One set of examples contains only Madry adversarial perturbation (i.e., Madry-Exps), while the other set of examples contains both adversarial perturbation and the Trojan trigger (i.e., AdvTrojan examples). We measure the test accuracy of ATIM on these two sets, and the results are presented in Figure <ref type="figure">7</ref>.</p><p>The blue lines in Figure <ref type="figure">7</ref> correspond to the test accuracy on Madry-Exps. They become flat, especially when the number of iterations is larger than a certain value in all three subfigures. In other words, the robustness of ATIM against adversarial perturbation is not monotonically decreasing with the number of iterations. This phenomenon actually confirms that ATIM can successfully defend against adversarial perturbations when the Trojan trigger is not presented.</p><p>On the other hand, we see that the test accuracy on AdvTrojan examples (i.e., orange lines) is significantly lower. Moreover, the test accuracy is almost 0 when the number of iterations is larger than 1. This tells us that ATIM is highly vulnerable to AdvTrojan examples. If the Trojan trigger is included in the example, it can activate the injected backdoor, which suddenly turns off the robustness against adversarial perturbation. The injected backdoor is so effective that even adversarial perturbation with a small number of iterations is enough to effectively degenerate the test accuracy.</p><p>(3) Perturbation Size. In terms of perturbation size, the setting of our analysis is as follows. In MNIST, we increase the size from 0 to 0.3, with a step size of 0.03. In FMNIST, we increase the size from 0 to 0.2, with a step size of 0.02. In CIFAR-10, we increase the size from 0 to 8 255 , with a step size of 1  255 . Note that the perturbation size for CIFAR-10 in Figures <ref type="figure">8</ref> and<ref type="figure">9</ref> is scaled by 255. Similar to the previous analysis, we also prepare two sets of examples, which include Madry-Exps and AdvTrojan examples. The test accuracy on these examples with respect to the perturbation size is presented in Figure <ref type="figure">8</ref> for different datasets.</p><p>Starting with the blue lines, we can see that the test accuracy on Madry-Exps is monotonically decreasing with the perturbation size. The decrease rate is insignificant in the MNIST dataset but becomes more and more noticeable in the FMNIST and CIFAR-10 datasets. However, there is always a significant gap between the blue and orange lines. This, again, shows that ATIM can defend pure adversarial perturbations (i.e., Madry-Exps without the Trojan trigger). More importantly, the monotonically decreasing test accuracy actually reflects that the robustness of ATIM does not come from obfuscating gradient information, which has been proven to be useless in <ref type="bibr">[22]</ref>.</p><p>The orange lines in the figure <ref type="figure">show</ref>  (4) Attack Method. In the aforementioned evaluation and analysis, all the adversarial perturbations are generated through the same method, Madry <ref type="bibr">[3]</ref>. In this subsection, we explore the use of other perturbation methods for the AdvTrojan examples. In particular, we employ the FGSM method <ref type="bibr">[23]</ref>, called FGSM-Exps; the BIM method <ref type="bibr">[24]</ref>, called BIM-Exps; and the Madry method called, as before, Madry-Exps. These examples are generated by single-step, basic iterative, and randomly initialized iterative methods, respectively. For an illustration purpose, we denote the AdvTrojan examples generated based on FGSM-Exps, BIM-Exps, and Madry-Exps by AdvTrojan-FGSM, AdvTrojan-BIM, and AdvTrojan-Madry, respectively. Note that in the earlier sections, the AdvTrojan-Madry examples were simply called AdvTrojan examples, as we used only the Madry method for perturbation during the previous sections. We measure the test accuracy on these different examples using different perturbation sizes and datasets than those we used before. The results are summarized in Figure <ref type="figure">9</ref>.</p><p>The first observation from the results is that the test accuracy on AdvTrojan-BIM (i.e., BIM-Exp + the Trojan trigger) and AdvTrojan-Madry (i.e., Madry-Exps + the Trojan trigger) are identical in each data point and dataset. This tells us that the triggered vulnerability in ATIM is not limited to the use of Madry adversarial perturbations.</p><p>Another important observation is related to the difference   Launching AdvTrojan in Federated Learning environment.</p><p>In previous experiments, we focus on evaluating the AdvTrojan in the centralized training scenarios. Since federated learning is also a practical scenario as mentioned in Section II, we also evaluate the AdvTrojan under a federate learning environment. Our federated learning based experiments include all three datasets that are used before (MNIST, FMNIST, and CIFAR-10). In each experiment, we set 1 malicious participant (client) with a local ATIM who sends malicious gradients as described in <ref type="bibr">[13]</ref> to attack the global model. In addition to that, there are 10 other honest participants, and each participant randomly samples 1  10 of the whole training data. For the aggregation methods, we choose both FedAvg <ref type="bibr">[25]</ref> and Krum <ref type="bibr">[26]</ref> to cover conventional and secure aggregation methods.</p><p>Based on the evaluation results presented in Figure <ref type="figure">10</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VII. CONCLUSION</head><p>In this work, we propose an attack, AdvTrojan, that poisons the training process and injects a backdoor in NN classifiers. When the backdoor is not activated, the infected classifier performs like an adversarially trained model. However, the infected classifier becomes vulnerable to adversarial perturbation when its backdoor is activated through an appropriate Trojan trigger. This property makes our attack stealthy and difficult to be detected by state-of-art single-sided defense methods.</p><p>A comprehensive evaluation and analysis strengthened our observation by showing the following. (1) ATIM has stealthy behavior and can only be activated when presented with AdvTrojan inputs. Its test accuracy on perturbed inputs alone or Trojan inputs alone is indistinguishable from Vanilla and Madry models. (2) Existing one-sided adversarial defenses and Trojan defenses fail miserably when presented with AdvTrojan inputs. Even with a high false-positive rate (i.e., 10%), the false-negative rate is still too high (i.e., over 30%). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>VIII. RELATED WORKS</head><p>A limited number of recent works explore the combination of different types of attacks <ref type="bibr">[8]</ref>, <ref type="bibr">[27]</ref>, <ref type="bibr">[28]</ref>. However, they are fundamentally different from our AdvTrojan attack. Authors of <ref type="bibr">[27]</ref> utilize the image-scaling attack to make the Trojan trigger indistinguishable from the input example. As a result, this combination is more like an enhanced Trojan attack. The study of <ref type="bibr">[28]</ref> focuses on the trade-off between adversarial and backdoor robustness from the defender's point of view and delivers the message that "studying and defending one type of attacks at a time is dangerous because it may lead to a false sense of security". From this point, the message delivered by <ref type="bibr">[28]</ref> supports the motivation and the conclusion of our AdvTrojan. The most related work, <ref type="bibr">[8]</ref>, presents a broad framework to combine different attacks as an optimization problem with the following loss function. L = l(x, &#952;) + &#955;l f (x) + &#957;l s (&#952;)</p><p>Here, function l represents the loss of the adversary's target; e.g., the trained model misclassifies the attack inputs. The l f function is the constraint on the pixel-level perturbation. The function l s constraints the perturbation on model parameters. &#955; and &#957; are weights assigned to l f and l s , respectively. Our AdvTrojan is different from <ref type="bibr">[8]</ref> in three aspects. (1) The first difference is the implementation of l f function. <ref type="bibr">[8]</ref> aims at minimizing the adversarial perturbation that is needed to fool the infected model. Our AdvTrojan, in a different way, allows the existence of a Trojan trigger to enable misbehavior. (2) Our AdvTrojan has a different design of function l s . Instead of only ensuring that benign examples are able to be correctly classified, as <ref type="bibr">[8]</ref>, our AdvTrojan also requires that benign examples with either adversarial perturbation or Trojan trigger are able to be correctly classified. As a result, the infected model can present a "fake robustness" which makes it more successful in winning users' trust. (3) In our experiment, we further show that the ensemble defense method proposed in <ref type="bibr">[8]</ref> against the attack framework (Eq. 14) fails to defend against our AdvTrojan combined attack.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>https://paperswithcode.com</p></note>
		</body>
		</text>
</TEI>
