journal article·2025-04-10Open access

SecureLLM: A Unified Framework for Privacy-Focused Large Language Models

Konstantinos Kalodanis, Sotirios Papadopoulos, Georgios Feretzakis, Panagiotis Rizomiliotis, Dimosthenis Anagnostopoulos

Applied Sciences· Volume 15· Issue 8

Abstract

Large language models (LLMs) have shown remarkable skills across various activities, including text generation and code synthesis. Their widespread applicability, however, raises substantial concerns about security, privacy, and possibly misuse. Of recent legislative efforts, the most notable is the proposed EU AI Act, which classifies specific AI applications as high-risk. For detailed regulatory guidance, also refer to the GDPR and HIPAA privacy rules. This paper introduces SecureLLM, a novel framework that integrates lightweight cryptographic protocols, decentralized fine-tuning strategies, and differential privacy to mitigate data leakage and adversarial attacks in LLM ecosystems. We propose SecureLLM as a conceptual security architecture for LLMs, offering a unified approach that can be adapted and tested in real-world deployments. While extensive empirical benchmarks are deferred to future studies, we include a small-scale demonstration illustrating how differential privacy can reduce membership inference risks with a manageable overhead. The SecureLLM framework underscores the potential of cryptography, differential privacy, and decentralized fine-tuning for creating safer and more compliant AI systems.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Privacy-Preserving Technologies in Data

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Informatics & Telematics, Harokopio University of Athens, 17676 Kallithea, Greece

Independent Researcher, 11474 Athens, Greece

School of Science and Technology, Hellenic Open University, 26331 Patras, Greece

References (65)

Show source-provided references
1. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J.D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., and Askell, A. (2020, January 24). Language Models are Few-Shot Learners. Proceedings of the NeurIPS, Vancouver, BC, Canada.
2. Adversarial Attacks and Defenses in Deep Learning10.1016/j.eng.2019.12.012 ↗
3. European Union (2024). Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024—Laying Down Harmonised Rules on Artificial Intelligence and Amending Regulations (EC) No 300/2008, (EU) No 167/2013, (EU) No 168/2013, (EU) 2018/858, (EU) 2018/1139 and (EU) 2019/2144 and Directives 2014/90/EU, (EU) 2016/797 and (EU) 2020/1828 (Artificial Intelligence Act). Off. J. EU, 1689, 1–144.
4. Kalodanis, K., Rizomiliotis, P., Feretzakis, G., Papapavlou, C., and Anagnostopoulos, D. (2025). High-Risk AI Systems. Future Internet, 17.10.3390/fi17010026 ↗
5. Zhang, B., and Liu, T.X. (December, January 28). Empirical Analysis of Large-Scale Language Models for Data Privacy. Proceedings of the NeurIPS, New Orleans, LA, USA.
6. A Survey on Secure and Private AI for Next-Generation NLP
7. Decentralized Learning in the Era of Foundation Models: A Practical Perspective
8. Differentially Private Deep Learning: A Survey on Techniques and Applications
9. Homomorphic Encryption for Data Security in Cloud: State-of-the-Art and Research Challenges
10. A Systematic Literature Review of Intel SGX in 2020
11. Trustworthy AI: Securing Sensitive Data in Large Language Models10.3390/ai5040134 ↗
12. Truong, A., Walters, A., Goodsitt, J., Hines, K.E., and Jain, A. (2021, January 19–25). Data-Free Model Inversion Attacks in the Real World. Proceedings of the IEEE/CVF Conference on CVPR, Virtual.
13. Ko, F.N., Su, J.C., and Liu, S.R. (March, January 27). Revisiting Membership Inference Attacks for Generative Large Language Models. Proceedings of the 30th Annual Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA.
14. Chang, Y., Wang, T., Song, R., and Wang, H. (2022, January 5–9). An Empirical Study on Prompt-Based Evasion Attacks in Large Language Models. Proceedings of the 38th Annual Computer Security Applications Conference (ACSAC), Austin, TX, USA.
15. Rahman, T.A., and Stein, D. (2023, January 4–6). On the Escalation of Prompt-Based Attacks Against Large Language Models. Proceedings of the International Conference on Machine Learning and Cybersecurity, Yanuca Island, Fiji.
16. Data Caching in LLM Inference Pipelines: Risks and Mitigations
17. Survey on Attack Surfaces of Next-Generation Language Models10.1145/3641289 ↗
18. Fang, Z., Nicholson, M., and Harris, S. (March, January 22). The Evolving Threat of LLM Memorization: A Privacy-Centric Analysis. Proceedings of the AAAI Conference on Artificial Intelligence, Online.
19. Transparency vs. Privacy: The Paradox of Large Language Models in Financial and Healthcare Sectors
20. Lee, J., and Park, S. (2022, January 5–9). Exploiting Application Integrations: Data Extraction Vulnerabilities in Modern LLM Pipelines. Proceedings of the Annual Computer Security Applications Conference (ACSAC), Austin, TX, USA.
21. Christopher, A., Choo, C., Tramer, F., Carlini, N., and Papernot, N. (2021, January 18–24). Label-Only Membership Inference Attacks. Proceedings of the 38th International Conference on Machine Learning (ICML), Virtual.
22. Zhang, M., Tandon, S., and Liu, Q. (2022, January 23–26). Prompt Chaining Attacks on Language Models. Proceedings of the 43rd IEEE Symposium on Security and Privacy, San Francisco, CA, USA.
23. Feretzakis, G., Papaspyridis, K., Gkoulalas-Divanis, A., and Verykios, V.S. (2024). Privacy-Preserving Techniques in Generative AI and Large Language Models: A Narrative Review. Information, 15.10.3390/info15110697 ↗
24. Wang, Z., Zhu, R., Zhou, D., Zhang, Z., Mitchell, J., Tang, H., and Wang, X. (2021, January 15–19). DPAdapter: Improving Differentially Private Deep Learning through Noise Tolerance Pre-training. Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, Virtual.
25. Badawi, A., Melis, L., Ricotti, A., Gascón, A., and Vitali, F. (2022, January 24–28). Privacy-Preserving Neural Network Inference with Fully Homomorphic Encryption for Transformer-based Models. Proceedings of the NDSS, San Diego, CA, USA.
26. Parisi, L., Zanella, M., and Gennaro, R. (2023, January 26–30). Efficient Hybrid Homomorphic Encryption for Large-Scale Transformer Architectures. Proceedings of the 30th ACM Conference on Computer and Communications Security (CCS), Copenhagen, Denmark.
27. Trusted Execution Environments for Neural Model Confidentiality: A Practical Assessment of Enclave-Based Solutions
28. Lee, J., Kim, H., and Eldefrawy, K. (2022). Multi-Party Computation for Large-Scale Language Models: Challenges and Solutions. Financial Cryptography and Data Security (FC), Springer.
29. Lin, L., Tan, W., and Sinha, A. (2022, January 7–11). Adaptive Membership Inference in Large-Scale Language Models: Techniques and Countermeasures. Proceedings of the 29th ACM Conference on Computer and Communications Security (CCS), Los Angeles, CA, USA.
30. Chen, T., Yu, H., and Wu, H. (2022, January 7–11). Federated Secure Enclaves for Deep Models: Enhancing Data Confidentiality in Multi-Party Training. Proceedings of the 29th ACM Conference on Computer and Communications Security (CCS), Los Angeles, CA, USA.
31. Bridging Explainable AI and Data Protection in Large Language Models
32. Abadi, M., Chu, A., Goodfellow, I., McMahan, H.B., Mironov, I., Talwar, K., and Zhang, L. (2016, January 24–28). Deep Learning with Differential Privacy. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria.10.1145/2976749.2978318 ↗
33. Salavi, R., Math, M.M., and Kulkarni, U.P. (2022). A Comprehensive Survey of Fully Homomorphic Encryption from Its Theory to Applications. Cyber Security and Digital Forensics.10.1002/9781119795667.ch4 ↗
34. Bonawitz, K., Ivanov, V., Kreuter, B., Marcedone, A., McMahan, H.B., Patel, S., Ramage, D., Segal, A., and Seth, K. (November, January 30). Practical Secure Aggregation for Privacy-Preserving Machine Learning. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA.10.1145/3133956.3133982 ↗
35. Yin, D., Chen, Y., Kannan, R., and Bartlett, P.L. (2019, January 9–15). Byzantine-Robust Distributed Learning: Towards Optimal Statistical Rates. Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA. PMLR 97.
36. Marshall, D., and Liu, T. (2022, January 24–28). Security-as-Code: Continuous Integration Strategies for Privacy-Preserving AI. Proceedings of the Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA.
37. Li, S., Chen, Y., Chen, L., Liao, J., Kuang, C., Li, K., Liang, W., and Xiong, W. (2023). Post-Quantum Security: Opportunities and Challenges. Sensors, 23.10.3390/s23218744 ↗
38. Zhang, K., Song, X., Zhang, C., and Yu, S. (2021). Challenges and future directions of secure federated learning: A survey. Front. Comput. Sci., 16.10.1007/s11704-021-0598-z ↗
39. Lin, J., Yao, X., and Wang, B. (December, January 28). A Comparative Study of Gradient Compression Techniques in Decentralized Training for Transformers. Proceedings of the NeurIPS, New Orleans, LA, USA.
40. Onishi, M., and Patel, K. (2022, January 17–23). Adaptive Scheduling Algorithms for Decentralized Neural Network Training. Proceedings of the ICML Workshop on Privacy-Preserving ML, Baltimore, MD, USA.
41. Chang, Q., Li, N., and Song, J. (2023, January 26–30). Extending Differential Privacy to the Inference Phase in Large Language Models. Proceedings of the 30th ACM Conference on Computer and Communications Security (CCS), Copenhagen, Denmark.
42. Zhong, S., Xiang, G., and Sun, Y. (2022, January 24–28). Privacy-Preserving Inference for Transformer-based Models. Proceedings of the Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA.
43. Research on Adaptive Noise Mechanism for Differential Privacy Optimization in Federated Learning10.60087/jklst.v3.n4.p383 ↗
44. Huang, W., Zhou, S., and Liao, Y. (2020). Unexpected Information Leakage of Differential Privacy Due to Linear Property of Queries. arXiv.10.1109/TIFS.2021.3075843 ↗
45. Allen, R., Werner, S., and Gordillo, A. (2023, January 19–25). Dynamic Noise Injection for Large-Scale Differentially Private Learning. Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), Macao, China.
46. Smith, D., and Ramirez, G. (2021, January 14–19). Ephemeral Encryption in Federated Learning: Keys, Rotation, and Security Implications. Proceedings of the 28th ACM Conference on Computer and Communications Security (CCS), Seoul, Republic of Korea.
47. Post-Quantum Cryptography for Next-Generation AI Systems
48. Secure Audit Logging for AI Pipelines: An Approach Using Cryptographically Verifiable Ledgers
49. Huang, C., and Liu, P. (2021, January 11–13). Optimizing Multi-Party Computation for Large Transformer Training. Proceedings of the 30th USENIX Security Symposium, Vancouver, BC, Canada.
50. Zhang, W., and Ristanpart, T. (2022, January 24–28). Threshold Crypto for Large-Scale Decentralized ML. Proceedings of the Network and Distributed System Security Symposium (NDSS), San Diego, CA, USA.
51. Girgis, M.A., Data, D., Diggavi, S., Suresh, A.T., and Kairouz, P. (2021, January 15–19). On the Rényi Differential Privacy of the Shuffle Model. Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, Virtual.10.1145/3460120.3484794 ↗
52. Zhou, L., and Krause, A. (2021, January 6–14). Applying Differential Privacy to High-Dimensional Outputs in Large Language Models. Proceedings of the 35th NeurIPS Privacy Workshop, Online.
53. Patel, N., and Verma, A. (2023, January 21–23). Context-Aware Noise Injection: Balancing Utility and Privacy in Multi-Domain Language Inference. Proceedings of the 20th IEEE Conference on Privacy, Security, and Trust (PST), Copenhagen, Denmark.
54. Saber Latibari, B., Nazari, N., Chowdhury, M.A., Gubbi, K.I., Fang, C., Ghimire, S., Hosseini, E., Sayadi, H., Homayoun, H., and Salehi, S. (2024). Transformers: A Security Perspective. IEEE Access.10.1109/ACCESS.2024.3509372 ↗
55. Korhonen, E., and Dey, T. (2022, January 23–25). Machine Learning Compliance: Automating Audit Trails in Differential Privacy Frameworks. Proceedings of the Computers, Privacy & Data Protection (CPDP) Conference, Brussels, Belgium.
56. Gupta, K., and Scharf, D. (2021). Privacy-Preserving Genomic Analysis Using Differentially Private Transformer Models. BMC Med. Inform. Decis. Mak., 21.
57. Building Secure Data Marketplaces with Federated Learning
58. Regulatory Challenges for AI-driven Healthcare Data in EU Member States
59. Wu, C., Chen, J., Wang, Z., Liang, R., and Du, R. (November, January 27). Semantic Sleuth: Identifying Ponzi Contracts via Large Language Models. Proceedings of the ASE’24: 39th IEEE/ACM International Conference on Automated Software Engineering, Sacramento, CA, USA.
60. Vulseye: Detect Smart Contract Vulnerabilities via Stateful Directed Graybox Fuzzing10.1109/TIFS.2025.3537827 ↗
61. Complying with the EU Cyber Resilience Act: Challenges and Opportunities for Secure AI Software Systems
62. Secure Container Orchestration for Large-Scale Federated Learning in Cloud Environments
63. European Artificial Intelligence Act: An AI Security Approach10.1108/ICS-10-2022-0165 ↗
64. Park, B., and Jeong, J. (2023, January 22–25). Zero-Knowledge Proofs for Confidential AI Auditing: Architecture and Applications. Proceedings of the 44th IEEE Symposium on Security and Privacy, Online.
65. Cross-Border Federated Learning: A Legal and Technical Exploration