We may expect a substantial influence on cyber security from AI. As cyberattacks get increasingly sophisticated, so do the solutions for protecting a computer system from them. Universities and security agencies are investigating a wide range of ways to put intelligent systems in place to protect systems and to research how AI can bring solutions to many problems that have yet to be solved. A few obstacles hinder AI from making a substantial impact in this field. For the machine learning component of AI, huge organisations are significantly reliant on data, which they are either hesitant to provide or uninformed that they are being targeted. Network intrusion is one of the most obvious ways for attackers to exploit a system’s vulnerabilities. Internet of Things (IoT) will soon be a common feature in our daily lives as it gets increasingly extensively used by businesses, communities, and individuals alike. These additional threats require that the systems and networks to which they are connected be secure and capable of detecting intrusions. Reinforcement learning in the Ensemble architecture, according to its creators, employs a variety of approaches to tackle this problem. Intrusion detection and prevention systems (IDS) and web application firewalls (WAF) will benefit from this new technology.