AI-Powered Dynamic Encryption and Decryption Defense Model
Main Article Content
Abstract
Static cryptographic systems that rely on fixed algorithms and predetermined keys have proven increasingly ineffective in addressing today’s adaptive and AI-powered cyber threats. This paper proposes an Artificial Intelligence (AI)-enabled dynamic encryption and decryption defence model designed to enhance cybersecurity through real-time threat classification and context-aware cryptographic response. The framework combines the Suricata intrusion detection engine with a Random Forest model developed using the CIC-IDS2017 dataset, allowing it to identify and categorize network anomalies into unified groups, including Denial-of-Service (DoS), Distributed Denial of Service (DDoS), Brute Force, and PortScan. Once threats are identified, the system dynamically selects an appropriate encryption scheme, which is AES-128, AES-192, AES-256, or ChaCha20, based on the severity level of the threat. This proportional encryption logic is implemented through a weighted random function, ensuring both computational efficiency and data confidentiality. Logs are periodically encrypted using a scheduled batch system, and any decryption is restricted to time-limited, read-only access, backed by SHA-256 hash verification and secure key storage outside the logging directory. In a simulated environment, the framework demonstrated reliable classification performance with an overall accuracy of 79%, consistent encryption and decryption operations, and high forensic traceability through structured logging. Automation mechanisms, such as Windows Task Scheduler integration and failure recovery logic, ensured robustness against execution overlaps and latency spikes. The proposed architecture is modular, scalable, and designed for potential deployment in enterprise or cloud environments where automated, intelligent cryptographic control is essential. Overall, this work contributes a practical and intelligent solution for real-time, threat-responsive encryption in modern cybersecurity infrastructures.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
All articles published in JIWE are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) License. Readers are allowed to
- Share — copy and redistribute the material in any medium or format under the following conditions:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use;
- NonCommercial — You may not use the material for commercial purposes;
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
References
H. V. Chaithanya, M. S. Prerana and P. Mohan, "Towards Detection of Network Attacks by Snort Analysis Using Machine Learning Techniques," 2023 World Conference on Communication & Computing (WCONF), RAIPUR, India, 2023, pp. 1-8, doi: 10.1109/WCONF58270.2023.10235153
U. S. Rangrez, S. A. Qadri, C. Ashok Kumar and C. Jothi Kumar, "Cyber-Attack Defense System Enhanced by Artificial Intelligence," 2024 International Conference on Intelligent Systems for Cybersecurity (ISCS), Gurugram, India, 2024, pp. 1-5, doi: 10.1109/ISCS61804.2024.10581124.
S. Jagan, R. Pokhariyal, K. Mahajan, C. L. N. Deepika, P. D. Sudha and A. Dutta, "Machine Learning with Deep Learning Approach for Cyber Security Threats Prevention Model," 2023 International Conference on Innovative Computing, Intelligent Communication and Smart Electrical Systems (ICSES), Chennai, India, 2023, pp. 1-5, doi: 10.1109/ICSES60034.2023.10465570.
S. Chandran, S. R. Syam, S. Sankaran, T. Pandey and K. Achuthan, "From Static to AI-Driven Detection: A Comprehensive Review of Obfuscated Malware Techniques," in IEEE Access, vol. 13, pp. 74335-74358, 2025, doi: 10.1109/ACCESS.2025.3550781
OISF, "Suricata 7.0.11 released", Suricata.io, Jul. 8, 2025. [Online]. Available: https://suricata.io/2025/07/08/suricata-7-0-11-released/
I. Sharafaldin, A. H. Lashkari, and A. A. Ghorbani, “Toward generating a new intrusion detection dataset and intrusion traffic characterization,” In Proceedings of the 4th International Conference on Information Systems Security and Privacy (ICISSP 2018), Jan. 2018, pp. 108-116 doi: 10.5220/0006639801080116.
Advanced Encryption Standard (AES), FIPS PUB 197, National Institute of Standards and Technology, Gaithersburg, MD, Nov. 2001. [Online]. Available: https://doi.org/10.6028/NIST.FIPS.197
Secure Hash Standard (SHS), FIPS PUB 180-4, National Institute of Standards and Technology, Gaithersburg, MD, Mar. 2012. [Online]. Available: https://doi.org/10.6028/NIST.FIPS.180-4
H. K. Lamba, H. Gala, R. Mathew and S. Shinde, "AI Based Intrusion Detection for DDoS and SQL Injection Attacks," 2024 First International Conference for Women in Computing (InCoWoCo), Pune, India, 2024, pp. 1-7, doi: 10.1109/InCoWoCo64194.2024.10863756.
S. S. Gujar, "AI-Enhanced Intrusion Detection Systems for Strengthening Critical Infrastructure Security," 2024 Global Conference on Communications and Information Technologies (GCCIT), BANGALORE, India, 2024, pp. 1-7, doi: 10.1109/GCCIT63234.2024.10861950.
J. F. Loevenich, E. Adler, R. Mercier, A. Velazquez and R. R. F. Lopes, "Design of an Autonomous Cyber Defence Agent using Hybrid AI models," 2024 International Conference on Military Communication and Information Systems (ICMCIS), Koblenz, Germany, 2024, pp. 1-10, doi: 10.1109/ICMCIS61231.2024.10540988.
D. Sugumaran, Y. M. Mahaboob John, J. S. Mary C, K. Joshi, G. Manikandan and G. Jakka, "Cyber Defence Based on Artificial Intelligence and Neural Network Model in Cybersecurity," 2023 Eighth International Conference on Science Technology Engineering and Mathematics (ICONSTEM), Chennai, India, 2023, pp. 1-8, doi: 10.1109/ICONSTEM56934.2023.10142590.
G. R, P. G, S. B, R. Krishnaprasanna, V. G and V. S. Pandi, "A Novel Design of an Image Encryption and Decryption Scheme Using Enhanced Cybersecurity Principles," 2023 International Conference on Emerging Research in Computational Science (ICERCS), Coimbatore, India, 2023, pp. 1-6, doi: 10.1109/ICERCS57948.2023.10434166.
A. Budhewar, S. Bhumgara, A. Tekavade, J. Nandkar and A. Zanwar, "Enhancing Data Security through the Synergy of AI and AES Encryption: A Comprehensive Study and Implementation," 2024 MIT Art, Design and Technology School of Computing International Conference (MITADTSoCiCon), Pune, India, 2024, pp. 1-5, doi: 10.1109/MITADTSoCiCon60330.2024.10575334.
B. Sharma, P. Goel and J. K. Grewal, "Advances and Challenges in Cryptography using Artificial Intelligence," 2023 IEEE 8th International Conference for Convergence in Technology (I2CT), Lonavla, India, 2023, pp. 1-5, doi: 10.1109/I2CT57861.2023.10126338.
N. Duraimutharasan, N. V. Rao, N. Poongavanam, K. V. Kanimozhi and S. P. Manikandan, "Boosting Cybersecurity Effectiveness through Machine Learning for Proactive Detection and Mitigation of New Threats," 2024 Second International Conference on Advances in Information Technology (ICAIT), Chikkamagaluru, Karnataka, India, 2024, pp. 1-6, doi: 10.1109/ICAIT61638.2024.10690534.
G. Viswanath and P. V. Krishna, “Hybrid encryption framework for securing big data storage in multi-cloud environment,” Evolutionary Intelligence, vol. 14, no. 2, pp. 691–698, Apr. 2020, doi: 10.1007/s12065-020-00404-w.
J. Bolton, L. Elluri and K. P. Joshi, "An Overview of Cybersecurity Knowledge Graphs Mapped to the MITRE ATT&CK Framework Domains," 2023 IEEE International Conference on Intelligence and Security Informatics (ISI), Charlotte, NC, USA, 2023, pp. 01-06, doi: 10.1109/ISI58743.2023.10297134.
D. E. Namiot and T. M. Bidzhiev, “Attacks on machine learning models based on the PyTorch framework,” Automation and Remote Control, vol. 85, no. 3, pp. 263–271, Mar. 2024, doi: 10.1134/s0005117924030068.
I. Ghafoor, I. Jattala, S. Durrani and C. Muhammad Tahir, "Analysis of OpenSSL Heartbleed vulnerability for embedded systems," 17th IEEE International Multi Topic Conference 2014, Karachi, Pakistan, 2014, pp. 314-319, doi: 10.1109/INMIC.2014.7097358.