Internet of Things (IoT) technology is developing rapidly and attract more and more attentions in recent years. With the maturity of this technology, many companies have already provided various IoT devices to consumers, such as smart speakers and smart meters. These devices are wildly used not only in researches but also in many people’s daily lives. However, with the widely use of these devices, the security problems of IoT devices become more and more important. Although the device makers will provide the security solutions in technology level, users and IoT professors should have enough security knowledge as well. In this paper, we introduce a novel framework for generating web-based 3D and 360-degree VR materials for IoT security education. Our framework also supports the automatic generation of quizzes of IoT security, which will be used for evaluating the learning effects. The generated e-learning materials and quizzes can collect users’ log data for further analyzation. In this paper,we import two visually analyzing tools, Time Tunnel and Cubic Gantt Chart, into our framework. By using these two tools, we can obtain the activity patterns of the learners in different score ranges. Based on such result, we can improve the e-learning materials for increasing the educational effects, or provide advices to help learners effectively use our e-learning materials.