Full text
Event-based Data Collection and Analysis in the Cyber Range Environment Willi Lazarov Brno University of Technology Brno, Czechia [email protected] Samuel Janek Brno University of Technology Brno, Czechia [email protected] Zdenek Martinasek Brno University of Technology Brno, Czechia [email protected] Radek Fujdiak Brno University of Technology Brno, Czechia [email protected] ABSTRACT The need to educate users on cybersecurity to some extent is critical due to the ever-increasing cyber threats. A number of web presentations, books, and other study materials can be used for this purpose. In contrast to passive learning methods, hands-on training offers a deeper perspective but poses considerable technical challenges to its implementation, which can be resolved using cyber range platforms. However, in order to thoroughly evaluate the training and provide sufficient feedback, data must be collected and analyzed. Our paper addresses this problem by developing an event-based approach for data collection and analysis. The use of events allows us to keep a history of an event and reconstruct it retrospectively, especially for further analysis and evaluation. We validated the implemented approach in a cyber range environment, in which we developed an interactive interface to visualize the analyzed data. CCS CONCEPTS •Social and professional topics → Computing education;• Applied computing → Interactive learning environments;• Human-centered computing →Visualization. KEYWORDS Cybersecurity, Cyber Range, Data Collection, Data Analysis ACM Reference Format: Willi Lazarov, Samuel Janek, Zdenek Martinasek, and Radek Fujdiak. 2024. Event-based Data Collection and Analysis in the Cyber Range Environment. In The 19th International Conference on Availability, Reliability and Security (ARES 2024), July 30–August 02, 2024, Vienna, Austria. ACM, New York, NY, USA, Article 111, 8 pages. https://doi.org/10.1145/3664476.3670448 Authors’ Contact Information: Willi Lazarov, Brno University of Technology, Brno, Czechia, [email protected]; Samuel Janek, Brno University of Technology, Brno, Czechia, [email protected]; Zdenek Martinasek, Brno University of Technology, Brno, Czechia, [email protected]; Radek Fujdiak, Brno University of Technology, Brno, Czechia, [email protected]. This work is licensed under a Creative Commons Attribution International 4.0 License. ARES 2024, July 30–August 02, 2024, Vienna, Austria ©2024 Copyright held by the owner/author(s). ACM ISBN 979-8-4007-1718-5/24/07 https://doi.org/10.1145/3664476.3670448 1 INTRODUCTION With the continued increase in the number of cyber threats, there is a need to continuously educate and train both information and communication technology (ICT) professionals and ordinary users [ 5 ]. To make the educational process more effective, it is recommended not only to teach cybersecurity theoretically but also to include hands-on training [ 13 ]. For this purpose, various techniques for hands-on learning can be used, such as prepared virtual machines containing offensive and defensive challenges. However, the main disadvantage of this approach is the need to have sufficient hardware on the host device to individually deploy virtual machines and possibly solve the technical problems associated with it [ 10 ]. These shortcomings can be eliminated by using cyber range (CR) platforms, which provide a safe and controlled environment for cybersecurity education and training [16]. From a technical point of view, CR platforms can be operated as on-premise (self-hosted) or cloud solutions. Cyber ranges can also be classified according to teaming types of cybersecurity scenarios on red team, blue team, and other color teams; focus on learning, training, or research; targeting private, academic, government, or military sectors; or whether they offer an emulated, simulation, or cyber-physical environment [ 12 ]. In recent years, a number of open source and commercial cyber range platforms have been developed that combine the above parameters [15]. As cybersecurity education can be seen as a standalone research area, the CR platform can be a useful tool for researchers to collect and analyze data to investigate the impact of interactivity, gamification, adaptivity, and other aspects on the effectiveness of learning or training [ 4 ]. Therefore, the extent to which data can be collected in a cyber range environment and how to analyze it appropriately is crucial. This paper addresses this challenge and presents a system based on the event sourcing approach that we have developed and applied in the CR platform called Brno University of Technology (BUTCA) for flexible data collection and analysis [2]. The main contribution of this paper is the implementation of a flexible event-based system for data collection and analysis. We describe the design and the resulting solution in detail, together with an indication of what data we consider important to collect and the possibilities for their analysis. To make our solution more accessible, we developed an analytical module within which we aggregated and visualized the processed data for further analysis. Lastly, we verified our approach in the BUTCA platform.
ARES 2024, July 30–August 02, 2024, Vienna, Austria Lazarov et al. The paper is divided into 6 sections. After the introduction, Section 2 describes and compares the methods for data collection and storage, in particular the principle of event sourcing that we used for data collection and analysis. Section 3 describes the cyber range environment into which we integrated the developed system. This is followed by Section 4 presenting our solution in detail. Section 5 presents the analytics module used to visualize and further analyze the collected data. Finally, in Section 6 we summarize the results and suggest future work. 2 BACKGROUND One of the basic approaches used in most applications is to store data in different tables of the relational database (e.g., PostgreSQL, MySQL, Microsoft SQL, etc.) [ 9 ]. Another approach is to use the current state of the object and update it as needed. However, for complex objects, this approach also requires a complex data model. Traditional REST API mostly uses a relational model, where an incoming HTTP request overwrites the last state of the object in the database to the current state, or creates a new one. For our application, we have taken a different approach, which, as we will present later, offers several advantages. We can also look at all operations as events that the user invokes by interacting with the user interface (UI) of the cyber range service. The technique in which we record events instead of the current state of an object is called event sourcing [ 14 ]. The basic idea behind this technique is to capture any change in the state of the application into an event object and store these events in the same order in which they occurred. The current state can then be reconstructed by applying a sequence of events in exact order. This state reconstruction can be done by always starting from the beginning or by applying only the most recent events if the intermediate state of the object is stored (either in the database or in a cache) [7]. The latter option is important, especially in an application where a large number of events occur and reconstructing the state from scratch would be time-consuming. However, this approach is also considerably more complex to implement. The comparison between event sourcing and the relational model is shown in Table 1. Table 1: Comparison of event sourcing and relational model Attribute Event sourcing Relational model Read/Pull Complex Simple Write/Push Simple Complex History Yes No Standardized No Yes Flexibility High Low Integrity App-level DB-level From the comparison above, the main disadvantage of the eventbased approach is the more complex reading/pulling data from the storage (database) with the necessity to deserialize them into an object for further processing on the application side. On the other end, thanks to high flexibility, it is not necessary to create tables for new data types (events), but to define them by the application. However, the application itself must ensure their integrity because it is not done on the database side as in the relational model. 3 CYBER RANGE ENVIRONMENT For the research, development, and testing of the presented eventbased approach, we used the BUTCA cyber range platform, whose services are operated on the OpenStack cloud platform [ 6 ]. This environment includes an authentication server and applications for cybersecurity scenarios and platform management (proprietary web applications), as well as supporting services for monitoring (Prometheus [ 1 ] and Grafana [ 11 ]), orchestration (Ansible AWX [ 8 ]), and central logging (Kibana and ElasticSearch[3]). In the context of this paper, the primary element of the cyber range is the software application for cybersecurity scenarios that presents an interactive learning and training environment. The application is built on a web user interface that provides the user with all the components of the scenario. Each learning or training scenario contains a set of practical challenges (tasks) that users solve sequentially. If virtual machines are assigned to the scenario within the predefined topology (sandbox environment), users can access them through a web browser on their device. The interactive environment with its components is shown in Figure 1. The scenario starts with a pre-survey (if present) and introduction followed by individual practical tasks. The progression through the scenario is linear and tasks (unless they are optional) cannot be skipped. As part of the interactivity, users can use supporting documents such as tutorials, presentations, and other materials associated with the task. Tasks also contain hints, the use of which is penalized by the loss of a certain amount of points. Once users have completed the last task, they are shown the conclusion of the scenario, after which they proceed to a test to verify the knowledge gained from the practical part of the scenario. After the test, the overview with achieved results is shown. In the final part they are also asked to provide feedback through a post-survey. Users Sandbox environment Test ? Post-survey Analytics Pre-survey Data collection Tasks Results ? Active scenario Interacts Collects Evaluates Proceeds to Figure 1: The process of learning and training in the BUTCA cyber range environment, during which data from active scenarios are collected, analyzed, and further evaluated.
Event-based Data Collection and Analysis in the Cyber Range Environment ARES 2024, July 30–August 02, 2024, Vienna, Austria 4 EVENT-BASED DATA COLLECTION Based on the benefits of event sourcing presented in Section 2 we decided to use the event-based approach to data collection and analysis in the cyber range environment of the BUTCA platform. Each event (E) is represented as a data object whose attributes change according to the type of event. Events are further grouped into phases (P) in which the event occurs in the scenario. Since the original learning and training environment of the BUTCA platform used the PostgreSQL database, we store events as JSON objects. Each scenario instance is initially in the Initial phase (P1). In this phase, it is possible to perform operations related to preparations before the actual execution of the scenario and fill in pre-survey (if present). The launch of the cybersecurity scenario puts the instance in the Active phase (P2). In this phase, the user performs the operations on the instance necessary to run the scenario. When all tasks are completed, the user terminates the scenario, moving it in the Pre-test state (P3), which locks the scenario for any further responses to be entered. This is followed by the execution of a final test which puts the instance in the Test phase (P4). This makes the operations for entering answers to the test questions available. After the user has passed the entire test, the test is terminated, putting the instance in the Completed phase (P5). This locks the test against any possibility of additional editing of the answers. In this last state, it is possible to view the results of the scenario tasks and the final test, or to fill in the post-survey. All events, associated phases, and their description are listed in Table 2 and their flow in Figure 2. We also state whether the event is repeatable, i.e., it can occur more than once during the scenario. If not, we refer to this case as a one-time event. Table 2: Events and phases of the scenario Event Phase Repeatable Description E1 P1 ✗Pre-survey completed E2 P1 ✗Instance scenario started E3 P2 ✗Introduction viewed E4 P2 ✓Task assessment viewed E5 P2 ✓Task hint used E6 P2 ✓Task answer submitted E7 P2 ✓Conclusion viewed E8 P2 ✗Instance scenario ended E9 P3 ✗Test started E10 P4 ✓Test answer submitted E11 P4 ✗Test terminated E12 P5 ✗Results and feedback viewed E13 P5 ✗Post-survey completed The sequence of events can then be used to clearly analyze all user actions performed during the active scenario. If we consider, for example, task 𝑇2, the sequence of events can look like this: E421 →E622 →E623 →E524 →E625, which we would read as: the user moved on to task 𝑇2 (E4 21 ), then entered two consecutive wrong answers (E6✗ 22 and E6✗ 23), used the hint (E5 24 ), then entered the correct answer (E6 ✓ 25 ), which led to the completion of the task 𝑇2. Fill in pre-survey Showintroduction Showtask assignment Submit answer Showconclusion End scenario Start test Submit answer Terminate test Show results Use hint P1 P2 P4 P3 P5 E1 E3 E4 E5 E6 E7 E8 E9 E10 E11 E12 Start scenario E2 Fill in post-survey E13 Figure 2: Sequence of events during the active scenario When analyzing events, it is also possible to calculate their time differences. For example, the analytical module analyses how long the user spent solving the practical part of the scenario, i.e., the time elapsed between the start and the end of the P2 phase. In such a case, it calculates the difference of the timestamps ( 𝑡𝑠 ) of the events E2 and E7. If their timestamps are, for example, E2𝑡𝑠 = 1712322000 and E8𝑡𝑠 = 1712327520, then the time spent on the practical part of the scenario is calculated as: E2𝑡𝑠 −E8𝑡𝑠 =1712327520 s−1712322000 s=5520 s=92 min. Another advantage of this approach is the independence of data collection from other services, which can later request and process events according to the data type, specific user, and time interval, as we present in the following Section 5.
ARES 2024, July 30–August 02, 2024, Vienna, Austria Lazarov et al. 5 ANALYTICAL MODULE The event-based approach is used not only to collect data, but also for further analysis. For this purpose, we have developed an analysis module that works with both sets of event instances of a scenario (evaluation) and event groups for statistical reports (aggregation). The following Section 5.1 describes the data analysis process in detail, followed by Section 5.2 presenting the data visualization. 5.1 Data Analysis Data analysis is implemented in such a way that the data collected is independent of scenario evaluation and can be used for other purposes, such as statistical reports or detection of attempted cheating 1 . For this purpose, the analysis module has been extended with a data aggregation service. When considering all the components of a scenario, data from its instances are extracted in chronological order from the pre-survey, the task solutions, the assessment of the final test, and the post-survey (P1–P5). As already mentioned, events are created during the active passage through the scenario, i.e., by user interaction. Within each defined action, an event is created according to the defined type, which is stored persistently in the database (event storage). Data analysis can then be performed during and after the scenario. The analysis module first performs an operation called event replay based on predefined conditions, such as filtering only events related to the tasks of the scenario. Similarly, an entire sequence of events can be replayed in chronological order or considering only events occurring within a specified time interval. Operations are then performed on the events, which are handled by separate services (e.g., score evaluation, scenario statistics, etc.). The results are then passed to the user interface for visualization. The whole data analysis and evaluation process is shown in Figure 3. The analytics module includes two separate services that work with scenario events. The first service InstanceAnalytics performs evaluation and overview for a scenario instance (i.e., a specific user), while ScenarioAnalytics service processes events over all instances of a given scenario. The evaluated data from the corresponding events are shown in Table 3 and Table 4. Table 3: Evaluated data for instance overview # Evaluated data Events 1 Pre-survey answers E1 2 Used hints (penalisation) E5 3 Number of incorrect answers (attempts) E6 4 Final score of each task E5,E6 5 Task solution time E4,E6 6 Total score of the practical part E5,E6 7 Duration of the practical part E2,E8 8 Final test answers E10 9 Final test score E10 10 Duration of the final test E9,E10 11 Post-survey answers E13 12 Overall progress (activity log) E1–E13 1 For example, timestamps can be used to determine whether the correct answer was given in the minimum possible time to complete the task. Users Event 1 Event 2 Event n Analytics Database E 1, E 2, ..., En 1 2 3 4 5 6 UI Services InstanceAnalytics ScenarioAnalytics Figure 3: Data analysis process: 1. Users interact with the user interface of the scenario; 2. All actions and activities are serialized into events; 3. Events are persistently stored in a database (event storage); 4. The analytical module replays the events; 5. The set of events is passed to the analytical module, which further processes them; 6. The resulting data are sent to the user interface for visualization. Based on the stakeholders’ perspective, the evaluated data from the InstanceAnalytics service are shown to the user after completing the scenario or to instructors (teachers/lecturers) in the detailed view of the scenario instance. On the other hand, the data provided by ScenarioAnalytics is only available to the instructor, who has a better overview of the active and ended scenarios. Table 4: Evaluated data for scenario overview # Evaluated data Events 1 Tasks and test summary scores E5,E6,E10 2 Rate of hints used in each task E5 3 Rate of submitted wrong answers E6 4 Min, max, and average task score E5,E6 5 Min, max, and average duration E4,E6,E9,E11 6 Scenario pre-survey results E1 7 Scenario post-survey results E13 8 Logged user activity (timeline) E1–E13 After analysis, the evaluated data are sent from the analytical module to the web user interface in JSON format for both instance and scenario overview, where they are rendered in the web browser (client-side rendering). The visualization process with examples of its components is presented in more detail in Section 5.2.
Event-based Data Collection and Analysis in the Cyber Range Environment ARES 2024, July 30–August 02, 2024, Vienna, Austria 5.2 Data Visualization From a technical point of view, the visualization is done in singlepage application (SPA), which is loaded into the user’s browser upon initial connection, and then its content is rendered based on the user’s interaction. In relation to the analysis module, the SPA contains views for instance overview (user view) and scenario overview (instructor view). Both views are automatically updated using the WebSocket protocol, after which the SPA requests the updated data and re-renders its UI components. 5.2.1 Instance Overview. When all tasks and the final test are completed (or the time limit expires), the user is shown an evaluation with the results of the scenario. The visualized data correspond to Table 3 and can be divided into the following groups: •summary with the total score (tasks and test); •scores across the topics of the scenario; •results and basic statistics of each task; •scoreboard including other users’ results. The first part of the instance overview is the total score (the sum of all points earned), and then the sum of the points earned for the scenario tasks along with the results of the final test. Next, this summary section includes a list of cybersecurity topics included in the scenario, an indicator with the number of completed tasks, and the total duration compared to the average duration and time limit of the scenario (shown in minutes). Next to the instance summary, there is another section showing the scores across topics. For this, a radar chart with 𝑛 edges was chosen, where 𝑛 represents the number of cybersecurity topics included in a given scenario. The center of the graph is equal to 0 and fills in toward edges with values equal to the sum of the scores of all tasks in which the topic is included. An example of this chart can be seen in Figure 4. Figure 4: Achieved score across cybersecurity topics An important part of the instance overview is the display of the partial evaluation of each task of the scenario, which includes the number of points obtained per task, the hints used and their penalties, the time of solving the tasks and comparison with the average, the number of attempts until the correct answer is given, the difficulty, topics and techniques contained in the task. An example of this component on a selected task can be seen in Figure 6. The results and parameters of the tasks are followed by a scoreboard that compares all users in a given scenario according to their score and completion time. The ranking is visualized by a line graph, below which is a table that lists users with achieved results. This part can be seen in Figure 5. Figure 5: Scenario scoreboard comparing user results All components for visualizing data of the instance overview can be seen in Appendix A. 5.2.2 Scenario Overview. Instructors have an overview of all instances of a scenario, which can be used to access user profiles, summary results, and statistics for the scenario. The scenario overview consists of the following components: •summary scores of tasks and test; •the rate of hints used; •attempts rate in each task; •logged user activities; •detailed instance overview. In the scenario overview, instructors see statistical summaries computed on all or a specific group of instances. If necessary, they can view detailed results for a specific scenario instance (user), which corresponds to the instance overview content presented in the previous section. First, the minimum, average, median, and maximum scores for the analyzed instances of the scenario are displayed. This overview is then similarly displayed for individual tasks, with the addition of the rate of hints used, according to which it is possible to identify tasks that users can solve without help or, conversely, only with the use of a certain number of hints. In addition, the rate of incorrectly entered answers is visualized, which, when indicated for a large number of users, may indicate that they have misinterpreted the task assignment and its modification should be considered for better clarification (e.g., the format of the correct answer).
ARES 2024, July 30–August 02, 2024, Vienna, Austria Lazarov et al. Figure 6: Visualized results of the scenario task, which includes the number of points obtained, penalty for hints used, solution duration, number of attempts, task difficulty, and topics and techniques assigned to the task. In addition to specific overviews of the scenario instances, the instructor also sees a log of user activity in chronological order, which gradually creates a timeline of the scenario. An example of activity log can be seen in Figure 7. We attach a general overview of the scenario with selected components in Appendix B. Figure 7: Scenario event logs in chronological order 6 CONCLUSION In this paper, we have presented a suitable but not widely used event-based approach to data collection and analysis. We applied the presented approach in the cyber range environment of the BUTCA platform to evaluate cybersecurity scenarios and provide detailed insights to both users and instructors through the analytical module. Based on the implementation and testing of the event-based approach, we find the main advantages in the analysis of user activities, which makes it easy to construct a chronological sequence of events, time differences between events, data processing after event reconstruction, etc. Another advantage is high flexibility and less dependency between the components of the cyber range platform, especially thanks to the free access to events by different services, which further process them as needed. However, the main disadvantage of this approach is that it is more challenging to implement than standardized relational models. It should also be noted that reconstructing a large number of events may take longer than a database query, and thus a balance between accessibility and performance must be found. In the context of our work, we introduced two use cases of the event-based approach, namely the construction of a detailed preview of a scenario instance (feedback to the user) and an overview of the entire scenario (feedback to the instructors). In the future, we consider using existing events for other purposes, such as detecting attempted cheating or long-term profiling of users over time to provide extensive feedback. These and other open challenges may require the creation of new event types or their processing by other cyber range services, which would require a more complex implementation using a relational model, while an event-based approach can make the practical solution to these challenges easier. ACKNOWLEDGMENTS The research described in this paper was financially supported by the Technology Agency of the Czech Republic (TACR), THETA 2 program, project No. TS01020042. REFERENCES [1] Prometheus Authors. [n. d.]. Prometheus Introduction – Overview. Retrieved April 21, 2024 from https://prometheus.io/docs/introduction/overview [2] Brno University of Technology. [n. d.]. BUTCA – CYBER ARENA. Retrieved April 12, 2024 from https://butca.vut.cz/en/ [3] Elasticsearch B.V. [n. d.]. Kibana: Explore, Visualize, Discover Data | Elastic. Retrieved April 21, 2024 from https://www.elastic.co/kibana [4] Nestoras Chouliaras, George Kittes, Ioanna Kantzavelou, Leandros Maglaras, Grammati Pantziou, and Mohamed A. Ferrag. 2021. Cyber Ranges and TestBeds for Education, Training, and Research. Applied Sciences 11, 4 (2021). https: //doi.org/10.3390/app11041809 [5] Hans De Bruijn and Marijn Janssen. 2017. Building Cybersecurity Awareness: The need for evidence-based framing strategies. Government Information Quarterly 34, 1 (2017), 1–7. https://doi.org/10.1016/j.giq.2017.02.007 [6] OpenInfra Foundation. [n. d.]. Software Overview – What is OpenStack? Retrieved April 21, 2024 from https://www.openstack.org/software [7] Martin Fowler. [n. d.]. Event Sourcing. Retrieved April 21, 2024 from https: //martinfowler.com/eaaDev/EventSourcing.html [8] Red Hat. [n. d.]. Red Hat Ansible Automation Platform. Retrieved April 21, 2024 from https://www.ansible.com/products/automation-platform [9] Nishtha Jatana, Sahil Puri, Mehak Ahuja, Ishita Kathuria, and Dishant Gosain. 2012. A survey and comparison of relational and non-relational database. International Journal of Engineering Research & Technology 1, 6 (2012), 1–5. [10] Athanasios Katsantonis, Menelaos N. Manikas, Ioannis Mavridis, and Dimitris Gritzalis. 2023. Cyber range design framework for cyber security education and training. International Journal of Information Security 22, 4 (2023), 1005–1027. [11] Grafana labs. [n. d.]. Introduction to Grafana. Retrieved April 21, 2024 from https://grafana.com/docs/grafana/latest/introduction [12] Lazarov, Willi et al. 2023. Interactive Environment for Effective Cybersecurity Teaching and Learning. In Proceedings of the 18th International Conference on Availability, Reliability and Security. Association for Computing Machinery, New York, NY, USA, 9 pages. https://doi.org/10.1145/3600160.3605007 [13] Mountrouidou, Xenia et al. 2019. Securing the Human: A Review of Literature on Broadening Diversity in Cybersecurity Education. In Proceedings of the Working Group Reports on Innovation and Technology in Computer Science Education. 157–176. https://doi.org/10.1145/3344429.3372507 [14] Michiel Overeem, Marten Spoor, and Slinger Jansen. 2017. The dark side of event sourcing: Managing data conversion. In 2017 IEEE 24th International Conference on Software Analysis, Evolution and Reengineering (SANER). 193–204. https: //doi.org/10.1109/SANER.2017.7884621 [15] Ishaani Priyadarshini. 2018. Features and architecture of the modern cyber range: a qualitative analysis and survey. University of Delaware. [16] Muhammad M. Yamin, Basel Katt, and Vasileios Gkioulos. 2020. Cyber ranges and security testbeds: Scenarios, functions, tools and architecture. Computers & Security 88 (2020), 101636. https://doi.org/10.1016/j.cose.2019.101636
Event-based Data Collection and Analysis in the Cyber Range Environment ARES 2024, July 30–August 02, 2024, Vienna, Austria A INSTANCE OVERVIEW Figure 8: Selected components of the instance overview (feedback to the user)
ARES 2024, July 30–August 02, 2024, Vienna, Austria Lazarov et al. B SCENARIO OVERVIEW Figure 9: Selected components of the scenario overview (feedback to the instructor)