Journal: IPSI Transactions on Internet Research


CopyCNN: Reverse Engineering Based
Extraction of Convolutional Neural Networks

Lusky, Yehonatan Mendelson, Avi and Nemcovsky, Yaniv


View PDF Cite this article

Abstract

Neural network extraction attacks pose a significant threat to the security and intellectual property of AI systems, enabling adversaries to replicate proprietary models, compromise their confidentiality, or exploit their functionality. In this paper, we present CopyCNN, a novel attack that extracts the exact weights and architecture of black-box, deep, ReLU-based convolutional neural networks (CNNs) using only query access. To the best of our knowledge, CopyCNN is the first method capable of recovering precise weights from black-box CNNs. It effectively reverse engineers key components—including fully connected, convolutional, residual, pooling, and batch normalization layers—enabling the extraction of architectures such as AlexNet, LeNet-5, and variants of VGG and ResNet. We establish the theoretical basis for CopyCNN and demonstrate its effectiveness through the successful extraction of several architectures. Our results highlight the practicality of CopyCNN for convolutional neural network extraction and its implications on AI security and computer vision applications.

Keywords

Convolutional neural networks, model extraction attack, reverse engineering


Published in: IPSI Transaction on Internet Research (Volume: 22, Issue: 4)
Publisher: IPSI, Belgrade

Date of Publication: October 1, 2026

Open Access: CC-BY-NC-ND
DOI: https://doi.org/10.58245/ipsi.tir.2604.03

Pages: 6 - 15

ISSN: 1820 - 4503




References

1. W. Samek, G. Montavon, S. Lapuschkin, C. J. Anders, and K.-R. Müller, “Explaining deep neural networks and beyond: A review of methods and applications,” Proceedings of the IEEE, vol. 109, no. 3, pp. 247–278, 2021.

2. J. Zhang, Z. Gu, J. Jang, H. Wu, M. P. Stoecklin, H. Huang, and I. Molloy, “Protecting intellectual property of deep neural networks with watermarking,” in Proceedings of the 2018 on Asia conference on computer and communications security, 2018, pp. 159–172.

3. J. Ebrahimi, A. Rao, D. Lowd, and D. Dou, “Hotflip: White box adversarial examples for text classification,” arXiv preprint arXiv:1712.06751, 2017.

4. C. Xiao, B. Li, J.-Y. Zhu, W. He, M. Liu, and D. Song, “Generating adversarial examples with adversarial networks,” arXiv preprint arXiv:1801.02610, 2018.

5. M. Fang, X. Cao, J. Jia, and N. Gong, “Local model poisoning attacks to {Byzantine-Robust} federated learning,” in 29th USENIX security symposium (USENIX Security 20), 2020, pp. 1605–1622.

6. N. Haim, G. Vardi, G. Yehudai, O. Shamir, and M. Irani, “Reconstructing training data from trained neural networks,” Advances in Neural Information Processing Systems, vol. 35, pp. 22 911–22 924, 2022.

7. N. Papernot, P. McDaniel, I. Goodfellow, S. Jha, Z. B. Celik, and A. Swami, “Practical black-box attacks against machine learning,” in Proceedings of the 2017 ACM on Asia conference on computer and communications security, 2017, pp. 506–519.

8. F. Tramèr, F. Zhang, A. Juels, M. K. Reiter, and T. Ristenpart, “Stealing machine learning models via prediction {APIs},” in 25th USENIX security symposium (USENIX Security 16), 2016, pp. 601–618.

9. T. Orekondy, B. Schiele, and M. Fritz, “Knockoff nets: Stealing functionality of black-box models,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2019, pp. 4954–4963.

10. M. Juuti, S. Szyller, S. Marchal, and N. Asokan, “Prada: protecting against dnn model stealing attacks,” in 2019 IEEE European Symposium on Security and Privacy (EuroS&P). IEEE, 2019, pp. 512–527.

...

×

Lusky, Yehonatan

Yehonatan Lusky is a Security Architect at NVIDIA and holds an M.Sc. in Computer Science from the Technion - Israel Institute of Technology. His research interests focus on system security, AI security, and the intersection between the two.
Email: l.yehonatan@campus.technion.ac.il, OCRID: 0009-0006-6513-2882

×

Mendelson, Avi

Avi Mendelson is a professor at the CS department at Technion, head of the ATLAS (AI Trust, Learning, Architecture, and Security) Lab, and an IEEE Fellow. He has experience in both industrial and academic settings, spanning security and safety of LLM-based systems, computer architecture, hardware security, and machine learning architectures. Among his industrial jobs, he worked for 11 years as a senior researcher and principal engineer at Intel, and served as a manager of the Academic Relation of Microsoft R&D Israel. His current academic work focuses on Hardware Security and the security of LLM systems in general and agentic systems in particular.
Email: mendlson@technion.ac.il, OCRID: 0000-0003-4274-6866

×

Nemcovsky, Yaniv

Yaniv Nemcovsky is an Associate Research Scientist in Enterprise AI at the Infosys Topaz Columbia University Enterprise AI Center, working with Professor Junfeng Yang. His research develops foundations for trustworthy AI by establishing robust performance evaluation and adaptive routing as core mechanisms for system reliability and safety across CV, NLP, RAG, and multimodal architectures. His work addresses physically realizable adversarial attacks on vision-based autonomous systems, jailbreak mechanisms and bias concealment in large language models, and success-based semantic representations for per-query performance prediction and model selection. His research on physical adversarial attacks received the Most Promising Paper Award at the ECCV 2022 AROW Workshop as one of the first credible demonstrations of real-world adversarial threats. Prior to joining Columbia, he was a Postdoctoral Researcher at Ben-Gurion University of the Negev with Professor Chaim Baskin, where he led a cooperative academia–industry research group on physical adversarial threats, and a Research Intern at IBM Research, where he studied industrial-scale multimodal retrieval systems. He received his PhD in Computer Science from the Technion in 2025, advised by Professors Alex Bronstein and Avi Mendelson, and during his doctoral studies served as an Adjunct Senior Lecturer at the Technion, where he designed and instructed a graduate-level course on adversarial ML. He also holds an MSc in Computer Science and a double BSc in Computer Science and Physics from the Technion. He has published in top-tier venues and co-authored successful national grant proposals, serving as assistant investigator on the resulting projects and directing collaborative teams of researchers and engineers.
Email: yanemcovsky@gmail.com, OCRID: 0009-0005-2859-9216

×

Cite this article

Lusky, Yehonatan; Mendelson, Avi; and Nemcovsky, Yaniv
"CopyCNN: Reverse Engineering Based Extraction of Convolutional Neural Networks",
IPSI Transactions on Internet Research, vol. 22(4), pp. 6-15, 2026. https://doi.org/10.58245/ipsi.tir.2604.03