XAI as a Double-Edged Sword: When Explainability Becomes an Attack Surface

Artificial Intelligence is rapidly becoming part of the communication infrastructure. In future 6G networks, machine learning will not only support network automation – it will increasingly participate in sensing, spectrum management, signal classification, authentication, resource allocation, and autonomous decision-making. This evolution is particularly evident in O-RAN, where AI and machine learning are becoming integral to the intelligent and programmable control of the RAN. Through the RAN Intelligent Controller (RIC) and its near-real-time and non-real-time control loops, AI-driven applications can optimize radio resources, mobility, interference management, network slicing, and energy efficiency. At the same time, the increased use of AI in O-RAN introduces new challenges related to the security, robustness, explainability, and trustworthiness of AI-enabled network functions.

As AI moves closer to the physical layer of wireless communications, a fundamental question becomes increasingly important:

Can making an AI system more explainable also make it more vulnerable?

Explainable Artificial Intelligence (XAI) is widely regarded as an important component of trustworthy AI. By revealing which features, samples, or regions of an input contribute to a model’s decision, XAI can help system operators understand model behavior, detect errors, improve trust, and support debugging. Yet there is another side to this transparency.

If an explanation tells a legitimate user what matters to a model, it may also tell an attacker what to manipulate. This makes XAI a potential double-edged sword.

Recent research on AI-based wireless systems explores this issue in the context of Automatic Modulation Classification (AMC) and RF machine learning. The results suggest that explainability should not be considered only as a tool for understanding AI – it should also be considered as part of the security threat model [1].

In this blog post, we discuss how explanations can improve transparency and trust in AI systems, while also examining the security risks they may introduce. We present an AI–XAI–Security architecture, bringing together AI, XAI, and Security layers, and show how their interaction can reveal both new opportunities and new vulnerabilities in intelligent wireless systems.

From understanding AI to exploiting AI

Consider the following use case: AMC uses machine learning to identify the modulation scheme of a received radio signal – for example, distinguishing between QPSK, 16QAM, 64QAM, and other modulation formats. Deep neural networks can learn complex patterns directly from RF/IQ samples. This makes them powerful tools for wireless systems, but it also creates new vulnerabilities. An adversary does not necessarily need to completely change a signal or compromise the neural network itself. A carefully designed, small physical perturbation may be sufficient to alter the AMC classifier’s decision.

This is where XAI becomes particularly interesting. Methods such as Saliency Maps, Integrated Gradients, SHAP, and Grad-CAM++ can identify the parts of an input that are most influential for a model’s prediction. In a benign setting, this is useful information. But from an attacker’s perspective, the same information can answer a different question: Which parts of the signal should I manipulate to have the greatest effect on the model?

Our recent paper [2] investigates this question precisely. There, we investigate how XAI-generated explanations can be used to design adversarial machine learning attacks against deep learning-based AMC systems. The study considers four attack tactics:

  • untargeted causative attacks,
  • targeted evasion attacks,
  • untargeted evasion attacks, and
  • targeted backdoor attacks.

The underlying idea is simple but important. A conventional attack may modify the input without knowing precisely which parts of the signal the classifier relies upon. An XAI-guided attack can instead use information about the model’s decision process to focus the attack on influential parts of the RF signal.

XAI-guided attacks demonstrate greater effectiveness than conventional attacks, while requiring fewer perturbed signals in the studied scenarios. This comes with an important trade-off: generating and exploiting explanations can increase computational complexity, but the energy required to launch the attack is affordable.

The result is a reversal of the usual XAI narrative. The explanation that helps the defender understand the model may simultaneously help an attacker understand how to fool it.

The physical world changes the security problem

This problem becomes even more interesting when we leave the purely digital domain. Wireless systems interact with the physical world. Signals pass through transmitters, power amplifiers, channels, antennas, noise, interference, and receivers. Consequently, adversarial manipulation need not occur as a digital modification of a dataset or an input file.

Our work on a physical backdoor attack against deep-learning-based AMC considers physical RF distortions arising from power-amplifier nonlinearities as a mechanism to create a trigger before the dataset is formed [3]. This leads to an important distinction:

AI security for wireless communications is inseparable from physical-layer security.

A model may appear highly accurate under conventional testing while still containing a hidden vulnerability that is activated only when a particular physical pattern is present. There is an even more challenging question:

What happens when the attacker uses XAI to decide where to place the backdoor trigger?

In [4], a physical backdoor attack is studied in which XAI is used to guide the placement of the trigger in the most vulnerable parts of the RF signal. The study also investigated a trigger-generation approach based on class prototypes and principal components. The results indicate that such XAI-guided physical backdoors can be effective across multiple deep-learning AMC models, including over a range of signal-to-noise conditions and with relatively small poisoning ratios.

This creates a particularly important security lesson: The more precisely an attacker understands the model, the less they may need to change.

That is one reason why XAI needs to be considered not only from the perspectives of interpretability and usability but also of adversarial security.

The other side of AI-native radio: Privacy

AI-based radio systems face another challenge beyond attacks on their integrity: privacy. RF signals contain distinctive characteristics that can help identify transmitting devices. This makes RF fingerprinting valuable for wireless authentication and identification. But there is a flip side: the same information used to recognize devices can also leak information about the data used to train an AI model.

This is where membership inference attacks (MIAs) come in. Instead of manipulating a model, an attacker seeks to determine whether a particular RF signal, device, or communication trace was included in its training data. In other words, the question is not “Can I fool the model?” but “Was this data used to train the model?”

In [4], we look at the problem from the other side: how can we protect RF fingerprinting models against this kind of privacy leakage? As AI becomes deeply embedded in future 6G and O-RAN networks, this distinction becomes increasingly important. Securing AI is not only about preventing wrong decisions or malicious manipulation. It is also about protecting the data and information that AI learns from.

So, the story is not only about the attacks; AI-native 6G security must be addressed from two complementary perspectives: understanding how AI-based wireless systems can be attacked, and developing ways to make them more secure and private.

The real double-edged sword of XAI

The problem is not that XAI is “bad” or that explanations should be avoided. Quite the opposite.

Explainability remains extremely valuable for:

  • understanding complex AI decisions;
  • identifying unexpected model behavior;
  • debugging and validating models;
  • detecting potentially problematic features;
  • improving human-AI interaction;
  • supporting trustworthy AI;
  • and helping security researchers discover vulnerabilities.

But explanations also represent information about the model. And information has security value. The same explanation can have two interpretations:

A Defender’s perspectiveAn Attacker’s perspective
Which samples influence the decision?Which samples should I manipulate?
Why did the model make this decision?How can I change that decision?
Where is the model sensitive?Where is the model vulnerable?
What features should be trusted?What features should be exploited?
Can I detect abnormal behavior?Can I evade detection?

From explainable AI to secure explainable AI

Future AI-native wireless networks will increasingly rely on machine learning for functions that directly affect communications. If those models become part of the network’s decision-making infrastructure, their explanations may themselves become part of the attack surface.

Future XAI mechanisms for radio communication systems should consider questions such as:

  • How much information does an explanation reveal?
  • Can explanations be exploited to construct adversarial examples?
  • Can explanations expose particularly vulnerable RF features?
  • Should different users receive different levels of explanation?
  • Can explanations themselves be monitored for malicious use?
  • Can XAI be used not only to guide attacks, but also to detect them?
  • How should interpretability be balanced against confidentiality and robustness?

Ultimately, trustworthy AI cannot mean “AI that explains itself” alone. It must mean AI that is explainable, robust, secure, privacy-preserving, and resilient to intelligent adversaries.

Our proposed AI–XAI–Security architecture, presented below (see Fig. 1), addresses these challenges by bringing together several layers that are often considered separately. It starts with the physical wireless environment, where signals, channel information, interference, SNR, and other measurements provide the data for an AI model. The AI layer then turns this complex information into decisions – for example, about modulation, spectrum, or resource allocation.

But an accurate prediction is not necessarily a trustworthy one. This is where XAI comes in. Methods such as SHAP, LIME, saliency analysis, and causal analysis help reveal what drives an AI decision. We then go one step further: the validation layer checks whether the explanation and the decision make sense from both logical and physical perspectives.

Security provides another essential piece of the puzzle. The system continuously considers adversarial and anomalous behavior and evaluates how robust the AI remains under attack. These different sources of evidence are brought together through trust metrics, creating feedback that can be used to improve and tune the AI model.

Fig. 1. XAI-Enabled Secure Wireless Communication Framework

Conclusions

Future AI-native 6G engineering should not treat explainability and cybersecurity as separate disciplines. They are increasingly interconnected. Various XAI methods can illuminate a model’s decision-making process. Recent findings on AI-based wireless systems suggest that explainability should not be considered only a tool for understanding AI – it should also be included in the security threat model.

The goal is therefore not simply to build an AI system that is accurate. We want a system whose decisions are understandable, physically meaningful, robust, and secure. In future 6G and O-RAN networks, this combination of AI, XAI, validation, and security could become a foundation for truly trusted wireless intelligence.

References

[1] Y. Salmi and H. Bogucka, “On the Vulnerability of Deep Automatic Modulation Classifiers to Explainable Backdoor Threats,” IEEE Consumer Communications & Networking Conference (CCNC 2026), Las Vegas, USA, 9–12 January 2026. DOI: 10.1109/CCNC65079.2026.11366381.

[2] Y. Salmi and H. Bogucka, “XAI-Guided Physical Adversarial Machine Learning Attacks on Automatic Modulation Classification,” IEEE Journal on Selected Areas in Communications, vol. 44, 2026, pp. 4271–4286. DOI: 10.1109/JSAC.2026.3672550.

[3] Y. Salmi and H. Bogucka, “Physical Backdoor Attack Against Deep Learning-Based Modulation Classification,” IEEE International Mediterranean Conference on Communications and Networking (MeditCom 2025), Nice, France, 7–10 July 2025. DOI: 10.1109/MeditCom64437.2025.11104329.

[4] Y. Salmi and H. Bogucka, “Defense Against Membership Inference Attacks on Deep Learning-based RF Fingerprinting,” IEEE International Conference on Communications (ICC 2026), Glasgow, UK, 24–28 May 2026. DOI: 10.1109/ICC59461.2026.11588160.

Acknowledgment

This blog is co-authored by Hanna Bogucka and Younes Salmi.

Younes SALMI is a Ph.D. student and a teaching assistant at the Institute of Radiocommunications at Poznan University of Technology (PUT). His main fields of interest are baseband signal processing, security in wireless networks, artificial intelligence, and its explainable algorithms.

Author Bio

Prof. Hanna Bogucka received her Ph.D. with honors in 1995 and Doctor Habilitus Telecommunications in 2006 from Poznan University of Technology (PUT). Currently, she is a full professor and the Director of the Institute of Radiocommunications at PUT. Moreover, prof. Bogucka is the co-founder, Board Member, and the Head of Cooperation of Rimedo Labs, a spin-off from PUT. Prof. Bogucka is involved in research in the area of wireless communications: radio resource management, cognitive radio, and green communication. She has been involved in multiple European 5th – 7th Framework Programme and Horizon 2020 projects, European COST actions, National Science Centre projects, and industry cooperation. Prof. Bogucka is the author of 200 research papers, 3 handbooks on radio communications and digital signal processing, and 3 scientific monographs on flexible and cognitive radio. Prof. Bogucka has been appointed IEEE Communications Society Director of the EAME Region and elected IEEE Radio Communications Committee Chair for the term of 2015-2016. Currently, she is the IEEE ComSoc Fog/Edge Industry Community Regional Chair in Europe, elected Member at Large of the IEEE ComSoc Board of Governors representing the EMEA region (2023-2025), and a member of the Polish Academy of Sciences.