[email protected] +91 9840521421 Scholarly Open Access, Peer-reviewed, Refereed Journal e-ISSN 2582-8746 Since 2020
  1. Home
  2. Archives
  3. 2026
  4. Vol. 7 Issue 6
  5. Article
Original Article

Isolating Code Backdoors in AI-Generated Python Code via an Uncertainty-Aware Mixture of Experts

Open Access Peer Reviewed Crossref DOI

Authors

  • Dr. Naveen Kumar K R1
  • Srujankumar M Singannavar2
  • Akhil Joshi3
  • Patil Swayam4
  • Ananthkrishna C Patil5

1 Associate Professor, Project Guide, Department of Artificial Intelligence and Machine Learning, Bapuji Institute of Engineering and Technology, Davanagere, Karnataka, India. 2 3 4 5 Department of Artificial Intelligence and Machine Learning, Bapuji Institute of Engineering and Technology, Davanagere, Karnataka, India.

Article Information

Published Online
November-December 2026
Pages
273-282
Article Type
Original Article
Check for updates
check update

References

1. M. Chen et al., "Evaluating large language models trained on code," arXiv preprint arXiv:2107.03374, 2021.
2. R. Li et al., "StarCoder: May the source be with you!," arXiv preprint arXiv:2305.06161, 2023.
3. H. Pearce, B. Ahmad, B. Tan, B. Dolan-Gavitt, and R. Karri, "Asleep at the keyboard? Assessing the security of GitHub Copilot's code contributions," in Proc. IEEE Symp. Security and Privacy (SP), San Francisco, CA, USA, 2022, pp. 754-768.
4. R. Schuster, C. Song, E. Tromer, and V. Shmatikov, "You autocomplete me: Poisoning vulnerabilities in neural code completion," in Proc. 30th USENIX Security Symp., 2021, pp. 1559-1575.
5. E. Hubinger et al., "Sleeper agents: Training deceptive LLMs that persist through safety training," arXiv preprint arXiv:2401.05566, 2024.
6. S. Chakraborty, R. Krishna, Y. Ding, and B. Ray, "Deep learning based vulnerability detection: Are we there yet?," IEEE Transactions on Software Engineering, vol. 48, no. 9, pp. 3280-3296, Sep. 2022.
7. G. Lin, S. Wen, Q.-L. Han, J. Zhang, and Y. Xiang, "Software vulnerability detection using deep neural networks: A survey," Proceedings of the IEEE, vol. 108, no. 10, pp. 1825-1848, Oct. 2020.
8. M. L. Siddiq and J. C. S. Santos, "SecurityEval dataset: Mining vulnerability examples to evaluate machine learning-based code generation techniques," in Proc. 1st Int. Workshop on Mining Software Repositories Applications for Privacy and Security (MSR4P&S), Singapore, 2022, pp. 29-33.
9. R. Russell et al., "Automated vulnerability detection in source code using deep representation learning," in Proc. 17th IEEE Int. Conf. Machine Learning and Applications (ICMLA), Orlando, FL, USA, 2018, pp. 757-762.
10. Z. Li et al., "VulDeePecker: A deep learning-based system for vulnerability detection," in Proc. Network and Distributed System Security Symp. (NDSS), San Diego, CA, USA, 2018.
11. Y. Zhou, S. Liu, J. Siow, X. Du, and Y. Liu, "Devign: Effective vulnerability identification by learning comprehensive program semantics via graph neural networks," in Advances in Neural Information Processing Systems 32 (NeurIPS), 2019.
12. Y. Chen, Z. Ding, L. Alowain, X. Chen, and D. Wagner, "DiverseVul: A new vulnerable source code dataset for deep learning based vulnerability detection," in Proc. 26th Int. Symp. Research in Attacks, Intrusions and Defenses (RAID), Hong Kong, China, 2023, pp. 654-668.
13. Y. Ding et al., "Vulnerability detection with code language models: How far are we?," in Proc. 47th IEEE/ACM Int. Conf. Software Engineering (ICSE), Ottawa, Canada, 2025.
14. L. Wartschinski, Y. Noller, T. Vogel, T. Kehrer, and L. Grunske, "VUDENC: Vulnerability detection with deep learning on a natural codebase for Python," Information and Software Technology, vol. 144, art. 106809, 2022.
15. G. Nikitopoulos, K. Dritsa, P. Louridas, and D. Mitropoulos, "CrossVul: A cross-language vulnerability dataset with commit data," in Proc. 29th ACM Joint European Software Engineering Conf. and Symp. Foundations of Software Engineering (ESEC/FSE), Athens, Greece, 2021, pp. 1565-1569.
16. Z. Feng et al., "CodeBERT: A pre-trained model for programming and natural languages," in Findings of the Association for Computational Linguistics: EMNLP 2020, 2020, pp. 1536-1547.
17. D. Guo, S. Lu, N. Duan, Y. Wang, M. Zhou, and J. Yin, "UniXcoder: Unified cross-modal pre-training for code representation," in Proc. 60th Annu. Meeting of the Association for Computational Linguistics (ACL), Dublin, Ireland, 2022, pp. 7212-7225.
18. R. A. Jacobs, M. I. Jordan, S. J. Nowlan, and G. E. Hinton, "Adaptive mixtures of local experts," Neural Computation, vol. 3, no. 1, pp. 79-87, 1991.
19. N. Shazeer et al., "Outrageously large neural networks: The sparsely-gated mixture-of-experts layer," in Proc. Int. Conf. Learning Representations (ICLR), Toulon, France, 2017.
20. W. Fedus, B. Zoph, and N. Shazeer, "Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity," Journal of Machine Learning Research, vol. 23, no. 120, pp. 1-39, 2022.
21. Y. Gal and Z. Ghahramani, "Dropout as a Bayesian approximation: Representing model uncertainty in deep learning," in Proc. 33rd Int. Conf. Machine Learning (ICML), New York, NY, USA, 2016, pp. 1050-1059.
22. B. Lakshminarayanan, A. Pritzel, and C. Blundell, "Simple and scalable predictive uncertainty estimation using deep ensembles," in Advances in Neural Information Processing Systems 30 (NeurIPS), 2017.
23. C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger, "On calibration of modern neural networks," in Proc. 34th Int. Conf. Machine Learning (ICML), Sydney, Australia, 2017, pp. 1321-1330.
24. M. Sundararajan, A. Taly, and Q. Yan, "Axiomatic attribution for deep networks," in Proc. 34th Int. Conf. Machine Learning (ICML), Sydney, Australia, 2017, pp. 3319-3328.
25. N. Kokhlikyan et al., "Captum: A unified and generic model interpretability library for PyTorch," arXiv preprint arXiv:2009.07896, 2020.
26. A. Barredo Arrieta et al., "Explainable artificial intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI," Information Fusion, vol. 58, pp. 82-115, 2020.
27. M. Ohm, H. Plate, A. Sykosch, and M. Meier, "Backstabber's knife collection: A review of open source software supply chain attacks," in Proc. 17th Int. Conf. Detection of Intrusions and Malware, and Vulnerability Assessment (DIMVA), Lisbon, Portugal, 2020, pp. 23-43.
28. D.-L. Vu, I. Pashchenko, F. Massacci, H. Plate, and A. Sabetta, "Typosquatting and combosquatting attacks on the Python ecosystem," in Proc. 2020 IEEE European Symp. Security and Privacy Workshops (EuroS&PW), Genoa, Italy, 2020, pp. 509-514.
29. Docker Inc., "Docker security," Docker Documentation. [Online]. Available: https://docs.docker.com/engine/security/ [Accessed: Nov. 18, 2026].
30. S. Dower, "PEP 578 - Python runtime audit hooks," Python Enhancement Proposals. [Online]. Available: https://peps.python.org/pep-0578/ [Accessed: Nov. 18, 2026].
31. PyCQA, "Bandit: A security linter for Python," GitHub. [Online]. Available: https://github.com/PyCQA/bandit [Accessed: Nov. 18, 2026].
32. Semgrep Inc., "Semgrep documentation," Semgrep. [Online]. Available: https://semgrep.dev/docs/ [Accessed: Nov. 18, 2026].
33. Streamlit Inc., "Streamlit documentation," Streamlit. [Online]. Available: https://docs.streamlit.io/ [Accessed: Nov. 18, 2026].
34. Tree-sitter, "Tree-sitter: An incremental parsing system." [Online]. Available: https://tree-sitter.github.io/tree-sitter/ [Accessed: Nov. 18, 2026].
35. A. Paszke et al., "PyTorch: An imperative style, high-performance deep learning library," in Advances in Neural Information Processing Systems 32 (NeurIPS), 2019.
36. T. Wolf et al., "Transformers: State-of-the-art natural language processing," in Proc. 2020 Conf. Empirical Methods in Natural Language Processing: System Demonstrations, 2020, pp. 38-45.
37. C. E. Shannon, "A mathematical theory of communication," Bell System Technical Journal, vol. 27, no. 3, pp. 379-423, Jul. 1948.
APC from ₹1200 + 18% GST

Peer-reviewed open access₹1200 Indian (₹1400 with DOI)$80 USD internationalpaid after acceptance Peer-reviewed open access₹1200 Indian$80 USD international ₹1200 Indian · $80 intl

  • CrossRef DOI
  • ISSN 2582-8746
  • Open Access
  • Peer Reviewed
  • Plagiarism Checked
  • Google Scholar
Submit Paper