A 5G network can enable services like real-time remote patient monitoring and the distribution of huge files, including medical data for e-health systems. The internet of things (IoT), sensors, and other cutting-edge technologies will be used in the future to identify patients' illnesses and offer advice on how to treat them. The popularity of electric health care is increasing day by day, there are many applications available that can be used by the patient for routine checkups from the smartphone. Patients' private information is taken at the time of application downloads such as name, gender, and age is used by the application to increase its accuracy, as well as, the results of routine checkups are stored on the application's server (storage). The stored data can be used in different kinds of promotions. Hence, hackers are trying to steal information from users for their benefit and the IoT-based applications are not so reliable in terms of security.