scieee AI-readable full text Open interactive document viewer

Pentesting automation platform

Iglesias Aulinas, Marc

Abstract

With the development of society, informatics is gaining more relevance every day. All businesses need databases and programs to track everything that happens. Everyone uses their cellphones every day at all times, and they also have computers at home for personal use. Airplanes and cars have a lot of technology nowadays to make everything safer. However, while technology allows us to do things faster and safer, using so much technology has its problems, and one of them is the importance of making these systems and programs secure. To overcome these problems, there are different ways to do it, but one of them is pentesting, which consists of trying to attack, as if it were a real attack, the different systems that make up the whole business or whatever we are trying to attack. Huntdown is a program that lets you carry out different attacks on specific servers and gives you feedback on what the attack did. This can be useful to know if something in the system we are testing is not as secure as it should be or if something can be improved. In this project, we have improved the feedback it gives by taking every part of the command output and putting it into a JSON that is readable and useful to understand what is going on. The solution we used is based on regex, trying to take every part of the command output and organize it to be able to study if the security of the system is enough or if it should be improved.

Full text

Universitat Polit` ecnica de Catalunya Escola T`ecnica Superior d’Enginyeria de Telecomunicacions de Barcelona Master’s thesis in Cybersecurity Pentesting automation platform Marc Iglesias Aulinas Director: Ren´e Serral Graci`a UPC Departament d’Arquitectura de Computadors Tutor: Ren´e Serral Graci`a UPC FIB July 1, 2024 Abstract With the development of society, informatics is gaining more relevance every day. All businesses need databases and programs to track everything that happens. Everyone uses their cellphones every day at all times, and they also have computers at home for personal use. Airplanes and cars have a lot of technology nowadays to make everything safer. However, while technology allows us to do things faster and safer, using so much technology has its problems, and one of them is the importance of making these systems and programs secure. To overcome these problems, there are different ways to do it, but one of them is pentesting, which consists of trying to attack, as if it were a real attack, the different systems that make up the whole business or whatever we are trying to attack. Huntdown is a program that lets you carry out different attacks on specific servers and gives you feedback on what the attack did. This can be useful to know if something in the system we are testing is not as secure as it should be or if something can be improved. In this project, we have improved the feedback it gives by taking every part of the command output and putting it into a JSON that is readable and useful to understand what is going on. The solution we used is based on regex, trying to take every part of the command output and organize it to be able to study if the security of the system is enough or if it should be improved. Acknowledgments First of all, I would like to thank Ren´e for all his patience and help. Without all his tips and assistance, this work would not have been possible. I would also like to thank him for letting me participate in an interesting project like this one. I would like to thank all my friends who supported me throughout the entire project and also helped in some stages of it especially Victor Div´ı. They also prevented me from becoming very stressed during some important phases. I would also like to thank N´uria for being by my side all this time, holding all my phone calls when I was stressed, and always being positive when I was trying to finish the thesis as soon as possible. Finally, I would like to thank my family too. They have always been by my side, supporting me in my worst moments, especially my cousin Marta, who has been listening to all my problems throughout this project and always ended up making me smile. Contents 1 Introduction 7 1.1 Context .................................. 7 1.1.1 Introduction............................ 7 1.1.2 ContextandTopic ........................ 7 1.2 Justification................................ 10 1.2.1 Problem Formulation . . . . . . . . . . . . . . . . . . . . . . . 10 1.3 Scope ................................... 10 1.3.1 Objectives............................. 11 1.3.2 Obstacles and Risks . . . . . . . . . . . . . . . . . . . . . . . 11 1.4 Methodology and Rigor . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.4.1 ThesisOutline........................... 12 1.5 Generalplanning ............................. 12 1.5.1 Resources ............................. 12 1.5.2 Thesisplanning.......................... 13 2 Study of the problem 17 2.1 Formalization of the Problem . . . . . . . . . . . . . . . . . . . . . . 17 2.1.1 Clarity for Outputs . . . . . . . . . . . . . . . . . . . . . . . . 17 2.1.2 Definition of a Classification . . . . . . . . . . . . . . . . . . . 17 2.1.3 Searching for Attacks by Classification . . . . . . . . . . . . . 18 2.2 StateoftheArt.............................. 18 2.2.1 CobaltStrike ........................... 18 2.2.2 Metasploit............................. 18 2.2.3 BurpSuite............................. 18 2.2.4 Conclusions ............................ 19 2.3 Selection of the Solution . . . . . . . . . . . . . . . . . . . . . . . . . 19 3 Ontology 21 3.1 Introduction................................ 21 3.2 MitreOntology .............................. 21 3.2.1 Ontological Relationships . . . . . . . . . . . . . . . . . . . . 25 3.3 HuntdownOntology ........................... 28 4 Huntdown Architecture 33 1 4.1 Architecture................................ 33 4.1.1 MessageService.......................... 34 4.1.2 Database Manager . . . . . . . . . . . . . . . . . . . . . . . . 34 4.1.3 AttackManager.......................... 35 4.1.4 Virtual Machine Instance Manager . . . . . . . . . . . . . . . 35 4.1.5 WebApplication ......................... 35 4.1.6 WorkflowManager ........................ 36 4.1.7 User Interface Simulator . . . . . . . . . . . . . . . . . . . . . 36 4.1.8 Database ............................. 36 4.2 Designoftheattacks........................... 37 4.2.1 AttackSchema........................... 37 4.2.2 OptionsFile ............................ 38 4.2.3 DashboardSchema . . . . . . . . . . . . . . . . . . . . . . . . 39 4.2.4 ResultsFile ............................ 40 4.3 Availableattacks ............................. 41 4.4 Post-processor of the attacks . . . . . . . . . . . . . . . . . . . . . . . 42 4.4.1 Structure of the plugins . . . . . . . . . . . . . . . . . . . . . 42 5 New Architecture 43 5.1 Database.................................. 43 5.2 Post-processor of the attacks . . . . . . . . . . . . . . . . . . . . . . . 44 5.3 Designoftheattacks........................... 44 5.3.1 ClassificationFile . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.3.2 PresetFile ............................. 47 6 Solution development 48 6.1 Introduction................................ 48 6.2 AttacksOutput.............................. 48 6.3 AttackClassification ........................... 60 6.4 AttackIntegration ............................ 64 6.4.1 Attacks by category . . . . . . . . . . . . . . . . . . . . . . . . 64 6.4.2 Category of the attacks . . . . . . . . . . . . . . . . . . . . . . 66 6.4.3 Presets by category . . . . . . . . . . . . . . . . . . . . . . . . 67 7 Evaluation of the solution 69 7.1 Attackoutputs .............................. 69 7.2 Classification ............................... 74 7.3 Integration................................. 80 8 Conclusions 83 8.1 Achievement of objectives . . . . . . . . . . . . . . . . . . . . . . . . 83 8.2 Contributions ............................... 84 8.3 Personalassessment............................ 84 8.4 Futurework................................ 84 2 Bibliography 86 3 List of Figures 3.1 Example of MITRE Ontology . . . . . . . . . . . . . . . . . . . . . . 22 3.2 Classes of Huntdown Ontology . . . . . . . . . . . . . . . . . . . . . . 29 3.3 Adding the properties in Huntdown Ontology . . . . . . . . . . . . . 29 3.4 ABox in Huntdown Ontology . . . . . . . . . . . . . . . . . . . . . . 30 3.5 Ontology queryByPreset . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.6 Result of queryByPreset . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.7 Ontology queryByCategory . . . . . . . . . . . . . . . . . . . . . . . 31 3.8 Result of queryByCategory . . . . . . . . . . . . . . . . . . . . . . . . 31 3.9 Ontology queryByName . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.10Ontologyquery .............................. 32 4.1 Architecture of the application. . . . . . . . . . . . . . . . . . . . . . 34 5.1 Representation of the new collection once all attacks are deployed . . 44 5.2 Hping3 previous output information . . . . . . . . . . . . . . . . . . . 44 5.3 Code to parse the JSON classification . . . . . . . . . . . . . . . . . . 46 6.1 Code to create the output of Hping3 . . . . . . . . . . . . . . . . . . 50 6.2 Code to create the output of NMAP . . . . . . . . . . . . . . . . . . 52 6.3 Code to create the output of Traceroute . . . . . . . . . . . . . . . . 54 6.4 First code to create the output of WPScan . . . . . . . . . . . . . . . 56 6.5 Second code to create the output of WPScan . . . . . . . . . . . . . . 57 6.6 Code to create the output of SQLMAP . . . . . . . . . . . . . . . . . 58 6.7 Code to create the output of Hydra . . . . . . . . . . . . . . . . . . . 59 6.8 Code to create the output of Slowloris . . . . . . . . . . . . . . . . . 60 6.9 Code to create search by category . . . . . . . . . . . . . . . . . . . . 65 6.10 Query to search by category ontology . . . . . . . . . . . . . . . . . . 66 6.11 Code to return the category of the attacks . . . . . . . . . . . . . . . 66 6.12 Query to search by attacks ontology . . . . . . . . . . . . . . . . . . . 67 6.13 Code to search for the correct presets . . . . . . . . . . . . . . . . . . 68 6.14 Query to search by presets ontology . . . . . . . . . . . . . . . . . . . 68 7.1 OutputofHping3............................. 70 7.2 OutputofTraceroute........................... 71 7.3 OutputofNMAP............................. 72 4 7.4 First part of the output of WPScan . . . . . . . . . . . . . . . . . . . 73 7.5 Second part of the output of WPScan . . . . . . . . . . . . . . . . . . 74 7.6 Classification of Hping3 . . . . . . . . . . . . . . . . . . . . . . . . . 75 7.7 Classification of Fierce . . . . . . . . . . . . . . . . . . . . . . . . . . 75 7.8 Classification of Goldeneye . . . . . . . . . . . . . . . . . . . . . . . . 76 7.9 Classification of Hydra . . . . . . . . . . . . . . . . . . . . . . . . . . 76 7.10 Classification of Netcat . . . . . . . . . . . . . . . . . . . . . . . . . . 77 7.11 Classification of Nikto . . . . . . . . . . . . . . . . . . . . . . . . . . 77 7.12 Classification of NMap . . . . . . . . . . . . . . . . . . . . . . . . . . 77 7.13 Classification of Slowloris . . . . . . . . . . . . . . . . . . . . . . . . . 78 7.14 Classification of SQLMap . . . . . . . . . . . . . . . . . . . . . . . . 78 7.15 Classification of Traceroute . . . . . . . . . . . . . . . . . . . . . . . . 79 7.16 Classification of WPScan . . . . . . . . . . . . . . . . . . . . . . . . . 79 7.17 Command executing the query . . . . . . . . . . . . . . . . . . . . . . 80 7.18 First image with the presets to execute . . . . . . . . . . . . . . . . . 81 7.19 Second image with the presets to execute . . . . . . . . . . . . . . . . 82 5 List of Tables 1.1 Summaryofthetasks........................... 16 6 •One laptop computer to write the thesis. •Windows 10 and Ubuntu, operating systems in which we will work. •Llenguatge d’scripting que s’utilitzaran en el desenvolupament del treball. •Visual Studio Code1, working environment in which the code will be developed. •Overleaf2and MiKTeX 3, to write the thesis. Control and management tools •Gitlab4, to control the code version. Communication tools •Google Meet5, for the weekly meeting. •E-mail, for the communication with Rene when no meeting is needed. •Whatsapp6, for the small doubts that will arise during the development. 1.5.2 Thesis planning The development of this project will be structured in several tasks. These tasks presented and explained below and then we can see a summary of when this was done. 1https://code.visualstudio.com/ 2https://www.overleaf.com 3https://miktex.org/ 4https://about.gitlab.com 5https://meet.google.com 6https://web.whatsapp.com 13 Task 1: Project management This task includes all the sub-tasks that are not related to the development of the thesis, but are necessary for the correct completion of the project. Specifically it includes: •General management of the project. –Meet with the project manager. –Establish the scope of the project. –Plan the development and the tasks to be carried out. •Management of the weeks –Planning meetings. –Review meetings. –Retrospection meetings. •Documentation of the project development. Task 2: Test environment creation This task includes all the instalation and configuration of the system. •Installation of the operation system. •Download and installation of Huntdown. •Installation of the correct version of Go. •Installation of the correct version of MongoDB. Task 3: Definition of the problem This task includes: •Identify the objective and constraints of each of the problems related to the different improvement proposals or their combination. •Formulate each of these problems in order to detect the necessary requirements in the subsequent design specification for its implementation. •Identify the parameters related to the formulation of the problem that are considered more relevant or interesting, and that will be the basis of the different improvement proposals. Task 4: Development of the problem Once task 3 has been completed, and the problem to deal with have been identified, the fourth task will be carried out, which includes: •Study the state of art of the identified problems. 14 •Design the different solutions to parse the output of the commands, classify the different attacks and be able to execute attacks depending on the classification labels sent. •Implement the designed solutions. •Validate that the solution implemented works as expected doing some tests and executing the program normally. Task 5: Analysis of the solution With the solutions implemented in task 4, it will be possible to test all the solutions and analyze them. This task consists in: •Test the different implementations done during the project. •Create a test in order to integrate the solutions created. •See if everything works correctly. Task 6: Documentation of the results Finally, the last task includes: •Prepare the final document with the final results with the solution chosen. •Describe the steps to follow to create the classification of the different attacks, how to execute the queries, and how everything works in case someone needs to modify it at some point. Table 1 shows the summary of the tasks, with their estimated time, planning and detailed dependencies 15 Code Name Hours Temporal planning Dependencies T.1 Project Management 84 Entire project - T1.1 General planning 4 First week - T1.2 Documentation 60 Entire project - T1.3 Establish project scope 4 First week - T1.4 Planning meetings 8 Every week - T1.5 Reviewing meetings 8 Every week - T.2 Test environment creation 6 Weeks 2-5 - T2.1 Installation of the operation system 4 Week 2 - T2.2 Installation of Go 4 Week 3 T2.1 T2.3 Installation of MongoDB 4 Week 4 T2.1 T2.4 Download and installation of Huntdown 10 Weeks 2-5 T2.1, T2.2, T2.3 T3 Definition of the problem 50 Weeks 5-7 - T3.1 Identification of the problem 20 Weeks 5-6 - T3.2 Formulation of the problem 20 Weeks 6-7 T3.1 T3.3 Identify the parameters 10 Weeks 7 T3.2 T4 Development of the problem 140 Weeks 7-20 T3 T4.1 Study the state of art 20 Weeks 7-8 T3 T4.2 Design the solutions 20 Weeks 7-9 T4.1 T4.3 Implementing the solutions 150 Weeks 9-20 T4.2 T5 Analysis of the solutions 60 Weeks 20-22 T4 T5.1 Test different implementations 20 Week 20 T4 T5.2 Create the test 20 Week 20-22 T5.1 T5.3 Check programs works as before 20 Weeks 22 T5.2 T6 Documentation of the results 50 Week 23 T5 T7.1 Final document 30 Week 23 T5 T7.2 Steps to follow 10 Week 23 T5, T6.1 Table 1.1: Summary of the tasks 16 Chapter 2 Study of the problem 2.1 Formalization of the Problem As outlined in the preceding chapter, this project primarily aims to develop a solution to enhance the program for automation and user convenience. Firstly, the problems are defined along with the properties that need to be fulfilled. 2.1.1 Clarity for Outputs This section highlights the various problems that may arise: The initial problem discussed pertains to the clarity of outputs for each attack. Prior to this thesis, the attack outputs merely indicated whether the attack was successful or not. Ensuring accurate outputs is crucial, as this will be pivotal when the program needs to autonomously decide the next course of action. With all the necessary information, the program can determine which ports to target, which services to focus on, and also identify which IPs are active or inactive. 2.1.2 Definition of a Classification This section addresses the issue of defining a classification. This problem revolves around the necessity of classifying the different attacks available in Huntdown. Initially, there was no intention to create a classification, but it was later realized that doing so would streamline operations, providing a clear pathway for executing the various attacks. Having a classification makes it easier to organize the attacks. For instance, if we have reconnaissance attacks and a separate category for DDoS attacks, it would make sense to execute the reconnaissance attacks first and then proceed with the DDoS attacks. 17 2.1.3 Searching for Attacks by Classification In addition to establishing a classification, we must also be able to search for different attacks using this classification. This functionality will be useful, for example, when executing a series of categories. By specifying the desired categories, the program can search for and execute the corresponding attacks in the specified order. 2.2 State of the Art As explained in the previous section, we face various problems, but essentially, we aim to create a pentesting program. While there are many programs capable of performing pentesting, most of them are not comprehensive enough to fulfill all requirements, often focusing on specific areas. In this section, we will mention some of the tools used for pentesting different systems and provide a brief overview of each. 2.2.1 Cobalt Strike Cobalt Strike1was developed in 2012 to facilitate security tests representative of threats. It was one of the first public red team command and control frameworks. Cobalt Strike’s system profiler maps the target’s client-side interface, gathering a list of applications and plugins discovered through the user’s browser, as well as internal IP addresses of users behind proxy servers. It can also host a web drive-by attack using Java and use browser pivots to bypass two-factor authentication and access sites as the target. 2.2.2 Metasploit Metasploit2was initiated in 2003 as a Perl-based portable network tool and was fully converted to Ruby by 2007. Metasploit Framework is a powerful tool for probing systematic vulnerabilities in networks and servers. Being open-source, it can be easily customized and used with most operating systems. Once flows are identified and documented, the information can be used to address systemic weaknesses and prioritize solutions. 2.2.3 Burp Suite Burp Suite3is a comprehensive platform that integrates specialized tools for penetration testing of web applications. It offers both a free and a paid version. 1https://www.cobaltstrike.com 2https://www.metasploit.com 3https://portswigger.net/burp 18 With the free version, you can essentially act as an HTTP proxy to intercept network traffic and analyze, modify, accept, or refuse all requests from the application. The paid version includes additional tools such as: •Scanner for various types of web vulnerabilities. •Spider module for detecting indexed content. •Fuzzing programs. •Collaborative functions. 2.2.4 Conclusions Given the countless security challenges faced by different systems, several tools have been developed to test the apps, web services, etc., of companies to maximize protection against attacks. While there are numerous tools available, they often specialize in specific aspects of company security. There is a lack of tools that allow pentesters to perform comprehensive tests without switching between applications too frequently. This underscores the importance of creating and improving programs like ours, which can centralize testing across various domains. 2.3 Selection of the Solution As a culmination of the state of the art and following an exhaustive search of the web on how to address the established problems, several solutions have been chosen for the various issues that have been identified and need resolution. •Convert the Output to a JSON To create a readable output for the different attacks, we have opted to utilize JSON format. This JSON will contain all the returned information. This decision is aimed at providing the subsequent attack to be executed with maximum available information, enabling autonomous decision-making without requiring human interaction. Choosing JSON format was based on its widespread usage and ease of human readability, facilitating troubleshooting if the need arises. •Create a Classification with Maximum 2 Layers Another issue we encountered was the need to classify the different attacks to better organize them. Drawing inspiration from MITRE, we developed an understanding of the various categories that could be employed to classify the attacks. As will be discussed in the next chapter, we have decided to implement a twolayer classification system. This approach allows for precise organization of the 19 attacks without adding unnecessary complexity. •Create Queries to Search by Classification and by Attack For the classification to be useful, it is imperative that we are able to search for different attacks by specifying the category we are interested in. This functionality will also facilitate automation of the attacks. In addition to searching for attacks by category, we also want to search by entering the name of the attack and obtaining information on the category it belongs to. With this implementation, we will be able to define a set of categories, search within them, and plan a series of attacks by simply knowing the relevant categories. Given that there is not a single issue to address, we have endeavored to ensure that all the aforementioned solutions are adapted to work seamlessly together. 20 Chapter 3 Ontology 3.1 Introduction An ontology is a structured and formal representation of knowledge defining concepts (or classes) of a particular domain, as well as their relationships and properties. Traditionally, on typologies are divided into a Terminological Box (TBox) and an Assertional Box (ABox). The TBox contains the definition of the existing concepts, relationships and properties, i.e. the schema of the represented knowledge. In contrast, the ABox contains the actual individuals, that belong to the classes and have the relationships and properties defined in the TBox. 3.2 Mitre Ontology Over the past two decades, MITRE has developed standard languages and formats to capture cybersecurity information: •Common Vulnerabilities and Exposures (CVE) •Common Weakness Enumeration (CWE) •Open Vulnerability and Assessment Language (OVAL) •Common Platform Enumeration (CPE) •Common Event Expression (CEE) •Common Attack Pattern Enumeration and Classification (CAPEC) •Malware Attribute Enumeration and Characterization (MAEC) •Cyber Observables (CybOX) These shared vocabularies are useful for cybersecurity practitioners to record and exchange cyber threat knowledge. All of these together provided references to build a detailed and explicit model of countermeasures. 21 Figure 3.1: Example of MITRE Ontology The previous image illustrates a segment of MITRE Ontology, a critical framework for understanding and responding to cyber threats through standardized attack and defense techniques. Now we will explain the different classes of the ontology: •Digital Artifact Ontology: – Digital Artifact: A digital artifact is a broad term used to describe any data or object that exists in digital form and can be used to represent, store, or transmit information. In the context of cybersecurity and the MITRE Ontology, a digital artifact can be any element or entity involved in a digital environment that can be analyzed for security purposes. – Code Segment: A code segment, in the context of computing and cybersecurity, refers to a specific portion of a program’s code that is loaded into memory and executed by the processor. It is a critical component in understanding how programs operate and how they can be secured or exploited. – URL: Is an address used to access resources on the web. It is the ”address” you type into a browser to visit a specific web page. A URL can lead to a webpage, an image, a video, a downloadable file, and other resources on the Internet. – User Account: Is a collection of information that allows a person to access and use a computer system, network, or online service. It typically includes a unique username and password for authentication, as well as additional information and settings that personalize the user’s experience. – File: A file is a digital container used to store data on a computer or other electronic device. Files can contain a wide variety of data, such as text, images, videos, software, or any other type of digital information. 22 Figure 3.2: Classes of Huntdown Ontology In the previous image, we can see the different main categories, and then a little further down there are the different subcategories. Our main category which is reconnaissance, is the same category as the mitre category reconnaissance, and then we add the subcategories to our main class. Once we have added our classes, we have to add the different properties. Basically the only class that has properties is the Preset, which has a datatype property, which is hasPresetValue and then we have two more properties which are hasGoal and hasPreset. The hasGoal property is a class itself because basically the goal is one of our categories or subcategories. Figure 3.3: Adding the properties in Huntdown Ontology Once all of this was done, we had to add the different attacks as an ABox in order to be able to create some queries, which is the final objective of this. To do this we added all the attacks available in the Huntdown application . 29 Figure 3.4: ABox in Huntdown Ontology As seen in the previous image, we have created the attacks, and also we had to relate the attacks with the different categories available in Huntdown. Once all of this is done, we are ready to create the queries and to be able to use the Ontology to get what we need. In our program basically we will have to queries, this queries, as you will see in 6.3 are very more easy to create and to execute that the queries done in Go using MongoDB: •queryByPreset(graph, attack, category): This query what does is it takes an attack and a category. After that it searches the attacks that belong to a preset, and this preset needs to have as a goal the category. Figure 3.5: Ontology queryByPreset In the image above we can see the query created to search the different presets 30 that meet the conditions. Once executed what we obtain is the full presets that the query has found, the next example is using ab.traceroute and tb.rtt Figure 3.6: Result of queryByPreset •queryByCategory(graph, category): This query basically accepts a category as a parameter, and what it does is it searches all the attacks that belong to an specific category. Figure 3.7: Ontology queryByCategory In the image above there is the query used to take all the attacks that belong to a category. Figure 3.8: Result of queryByCategory In the image we can see the result of using the query with tb.rtt •queryByName(graph, attack): This query basically accepts a attack as a parameter, and it searches which are the categories of this attack. Figure 3.9: Ontology queryByName 31 In the image above we can see the query used to take all the categories of an attack. And this was executed using ab.hping3 Figure 3.10: Ontology query 32 Chapter 4 Huntdown Architecture 4.1 Architecture Huntdown, like any other complex system, is built on a well-defined architecture that determines how its components interact with each other. Huntdown’s architecture can be divided into five main components: the User Interface Simulator, the Database Manager, the Attack Manager, the Virtual Machine Instance Manager, the Web Application, the Message Service, and the Workflow Manager. Each component has a specific role within the system and interacts with the other components in specific ways to ensure the correct functioning of the application. The following sections describe every one of these components, including the main functions, the way in which these ones interact with each other and how they contribute at Huntdown, and this graphic representation makes it easier to understand it. 33 Figure 4.1: Architecture of the application. 4.1.1 Message Service The communication between the different components of the system is essential to coordinate the different actions of the platform and to share important information. For this purpose Huntdown uses Apache Pulsar1, a very escalable and distributed system that allows the real time communication between the components. Apache works with subscribers, publishers and topics, so it is a pub-sub system. The different components of Huntdown will publish messages to specific themes while other parts of the system will be subscribed to them and will receive the messages published. The themes are a manner of avoiding that some components receive messages that are not interesting for them. With this every component just have to process the messages they are interested in without the need of processing everything. This facilitates having a decoupled architecture, on every component can work independently of the others, while the different components communicate using Pulsar. Apart from that, the advantage of using pulsar is that it guarantees the message delivery. 4.1.2 Database Manager This is the only component that interacts directly with the database. This microservice is implemented in Go2and has the responsibility to manage all the persistent 1https://pulsar.apache.org 2https://go.dev 34 information that the application uses. To implement this service wrappers were used. This ones use an abstraction layer between the microservice and the database, letting Huntdown interact with the database in a more simple way. This database manager also offers parallelism, using the goroutines. This lets us to maintain a very big performance and to avoid bottlenecks. For every petition made, a goroutine is created to manage it. This goroutines are also useful to avoid blocking the system, as when this goroutines have an answer, they create another goroutine to process it, and this lets the first goroutine to accept more petitions. 4.1.3 Attack Manager The attack manager is the one that manage everything related with the attacks. As the database manager this uses goroutines too in order to execute parallel attacks. One of the biggest responsibilities of the attack manager is to build an attack. This implies the configuration of the different options of the attack which are personalized for a particular attack. Once the attack is created, it communicates it to the Database Manager using Pulsar. This ensures that we store all the information of the database if we have to analyse it. Apart from all of that the attack manager also has to manage the options of the attack, and the post-processing of this attacks. This part basically implies the analysis and the preparation of the results in order to present it to the user or to analyse it. 4.1.4 Virtual Machine Instance Manager This part has the function to prepare the correct environment to execute the attacks. Although all attacks are carried out on a single virtual machine, it has to be configured appropietly for each attack according to it’s specific needs. The first step is to recover the schema of the attack from the database. This schema has some detailed information of the needs of every attack, including the dependencies required for the execution. Once we have the dependencies, it uses playbooks in order to configure the container where the attack will be executed. This playbooks are written in Ansible3, describe a series of tasks to update the dependencies, the installation of the attack, the creation of a directory for the attack and finally the execution of the attack. 4.1.5 Web Application The user interface of HuntDown has been developed in Node.js and React. As the other components, to communicate with the other components we use Apache Pulsar. 3https://www.ansible.com 35 The user interface has some panels that let the user interact in an effective way with the application. This one includes a panel that let you login, another one of configurated attacks, a result history, a function to create a new attack, a manager panel and the main menu. The design of the interface is centered of being easy to use. This has been designed in order to facilitate the users to center in the task of executing and analyzing attacks. 4.1.6 Workflow Manager A workflow is defined as a succession of attacks that are executed in a consecutive way, where the subsequent attacks an depend on the result of the others. This workflows have a sequence number which determines the order of the attacks. The main function of the Workflow Manager is to organize and do a series of attacks defined by the user. To accomplish this the manager has to create, modify and eliminate the workflows, execute individual attacks, and the following of the result and the progress. 4.1.7 User Interface Simulator It facilitates all of the functions of the backend, but specially with the management of the attack workflow, without the need of interacting with the real graphic interface. It is in charge of validating the functionality of important tasks as the creation, the start, and the elimination of the workflows as to manage the attacks presets. 4.1.8 Database The management of the data has a fundamental role in HuntDown. Using MongoDB4 as the database system manager, it organize the information in three different main databases: •Admin Database: This database has an important function in the security structure of HuntDown. It stores the different collections of the system and the authentication and authorization data of the users, including usernames, passwords and roles. Only the administrators are allowed to access it. •General Database: It is like a deposit for all the structures needed for the execution and visualization of the attacks. •ClientN Database: Scalability purpose as the app creates a database client for each company that can use the application. Inside every database, the collections of the users can be found, where the structure of the attacks executed are saved. 4https://www.mongodb.com 36 When a user executes an attack there are several modifications in their collection. All this modifications are strictly linked to the execution of the attack. For each execution 4 documents are created: •OptionsFile: This document is generated at the start of the execution, and stores the configuration of the attack, including the options selected by the user. •AttackSchema: This also generates at the start of the execution, and defines the characteristics of the attack that has to be done. •ResultsFile: One the attack has finished the execution, this document analyze and stores the results. •DashboardSchema: This document is generated at the start of the execution, and is used in the user interface. It has data related to the execution of the attack, like errors that could arise. 4.2 Design of the attacks The design and the implementation of the attacks in Huntdown are based in 4 principal components: the OptionsFile, the ResultsFile, the AttackSchema, and the DashbordSchema. These are essential elements for the configuration, execution, following and analysis of the attacks, and every one of them has an specific function inside the general structure of the application. It is important to understand that these structures have been developed by another students, but the comprehension of these is key to understand the thesis. Every attack is linked to a OptionsFile, an AttackSchema and the DashboardSchema. This elements are saved in the database general inside their respective colections. Althought that, the ResultsFile, that is a common structure in every attack, are not saved in the database, but it is generated at ending the execution of each attack. When a user starts an attak, a copy of the 3 files is generated associated to the attack collection of the user. These copies are modified with the specific data of the execution of the attack depending on the configuration of the user. These copies are modified with the specific data of the attack depending on the configuration of the user. Now these files are described more precisely. 4.2.1 AttackSchema The AttackSchema is a representation in JSON format of the attacks that can be executed in the Huntdown platform. Every attack has a different schema that defines his characteristics. This is essential for the configuration, execution and the analysis of the attacks, because they provide an standardized structure for the description of the attacks. 37 This schema includes a series of camps that describe the attack, like the name of the attack, the identificator of the attack, the state of the attack, the step where the attack is, the type of the attack, and the identification of the results of the attack. 1{ 2" attackname ":String, 3" attackid ":String, 4"state":String, 5" typeattack ":String, 6" resultsid ":String, 7" errormsg ":String 8"dependencies":[{ 9"key":String, 10 "size ":String 11 }], 12 "clicommands":[{ 13 " action ":String, 14 " optionsid ":String, 15 "options":String, 16 " redirectstdin ":String, 17 "redirectstdout":String, 18 "redirectstderr":String, 19 "pipe ":Bool, 20 " backgroundjob ":Bool, 21 "conncatenatecommands":Bool, 22 "timeout":String, 23 " fileoutput ":Bool, 24 " outputtype ":String, 25 "needresults:Bool 26 }] 27 } The dependencies key contains a list of objects with the necessary dependencies for the execution of the attack, and the clicommands key that contains a list of object that describe the CLI commands needed for the execution of the attack. 4.2.2 OptionsFile The options file is a representation in JSON format of the available options for each attack in Huntdown. Every attack can have different options that modify the behaviour. This structure is important for the personalizing the attacks. The OptionsFile has series of fields that describe the name of the attack, the identification of the options, and a series of options. Every option has a series of fields like the title, the main group of the option, the flag... 38 3" category ":[{ 4"subcategory":{ 5"name ":"attack_name" 6} 7}] 8}] 9} It is possible that there is only one category without a subcategory because, as we don’t have many attacks yet, it would not make sense to group one attack inside a category and subcategory. As more attacks are added, this classification will grow and become more structured. To parse this JSON and add the necessary information for the classification, we created a function to extract the different categories and add them to the database. 45 Figure 5.3: Code to parse the JSON classification What this code does is scan the entire ClassificationFile. Once it reaches the ”classification” key, it starts parsing the JSON, in case someone wants to add more to this classification in the future. After checking the key, it starts looping through the JSON to add all the classifications to the attack. If it finds a main category, it enters another loop to check all the subcategories within this main category. Once it locates the attack within the 46 categories, it adds them to our created JSON. Once it has found everything, we add a final key called classId. This new key will make it easy to search for the different attacks when querying for specific ones. 5.3.2 PresetFile Apart from adding the ClassificationFile to categorize the attacks, we also decided to modify the PresetsFile to take advantage of this new classification. We have added a new key to the file called goal. This key is useful when someone wants to execute a new set of attacks. The goal key will be used to search for presets when a user wants to perform an attack. The user will specify a set of categories to be executed and a goal, such as conducting a Denial of Service attack. Then, this goal key will be used to search for the presets of the specified categories that are prepared for that specific goal. In addition to adding this key, we have included some new presets to allow for different presets for the same attack depending on the goal. We have only added a few presets initially, as the important aspect is ensuring everything is ready for adding more attacks and presets in the future. Specifically, we have added some presets with the goal of performing a DDoS attack and some presets that have the value all, meaning they are suitable for all types of goals and attacks. If there is a preset with a specific goal, it will use that one; if not, it will use one of the presets with the all value. 47 Chapter 6 Solution development 6.1 Introduction In this section, we will explain the objectives that the development must accomplish. First, we will describe the response to different situations that the implemented development will address. 1. The first task is to correctly parse all the outputs. This needs to be tested with every single attack and every single option available to ensure that all the information is captured. If not, this information will not be available in the JSON, which could cause problems for future executions of the attack. 2. The second task is to investigate and create all the different categories for the attacks we have. This will allow the program to improve in automating the attacks. To do this, we must examine all the attacks and explore the different options for each attack to categorize them appropriately. 3. The final task is to integrate everything into the program itself, as doing it separately is not very practical. To achieve this, we need to create queries that can search for attacks by their category. By using this along with the output of the attacks, we will be able to execute different attacks in sequence. In this chapter, we will first provide an overview of the chosen solution, then detail the implementation separately from the program, and finally explain how we integrated it. 6.2 Attacks Output Once we verified that everything works correctly in the program, including installation and access to Pulsar, the database, and the UI part, the next steps were taken. The first step was to check the existing implementation. As previously explained, all 48 the output was processed within a function in the WorkflowManager. This function is part of the plugin for each attack. We aimed to change where this information was taken and processed, moving it inside the func ResultProcessor. After making this change, we reviewed what information the previous function of each attack was attempting to acquire and, if possible, leveraged it. In most cases, this information was not useful, so we had to rethink everything. Essentially, most attacks only reported whether they were successful or not, without considering any other details, which is problematic for analyzing what happened or understanding why it failed. To improve this, we started by studying what information we could extract from different attacks. Some attacks were too difficult to parse, so we left them untouched. However, several attacks had outputs that could be significantly improved, so we examined what information was important and what was not. Here are the different attacks we studied and modified the outputs for: •Hping3: After studying in detail the command hping3 we saw that we needed to get IP, the packets send to make it easy to count them, and also the different hopes. In each hope we want to know the round trip time (rtt), the number of sequence of the hope, and the dport or sport as appropriate. To show all this information we decided the JSON would be something like this: 1{ 2"ip":String, 3"packets":Int , 4"hopes":[ 5{ 6"rtt":String, 7" sequence ":Int, 8"sport":Int, 9"dport":Int 10 } 11 ] 12 } In order to get all this information, this is the code written that will return the JSON previously mentioned: 49 Figure 6.1: Code to create the output of Hping3 •Nmap: In this case we are interested in the IP, the domain if possible, the 50 operation system of the server, the CPE, and finally the different hosts that NMAP can detect, to know if they are open or not, which version they use, and if they are TCP or UDP. If there are no ports found the array can be empty. 1{ 2"ip":String, 3" domain ":String, 4"os":String, 5"cpe":String, 6" difficulty ":String, 7"hosts":[ 8{ 9"port ":String, 10 "service":String, 11 "state":String, 12 "version":String 13 } 14 ] 15 } In order to get all this information, this is the code written that will return the JSON previously mentioned: 51 Figure 6.2: Code to create the output of NMAP •Traceroute: For the traceroute case we want basically the main objective of doing a traceroute. The IP of the host, the domain, and the different hopes, taking into account the domain of each one, the IP of each one, and the different round trip times of each one too. This rtt can have a *on it, that means that it was not possible to connect to the next hope and this is shown too. Apart from that the domain can be empty if we focus on the IP. 1{ 2" domain ":String, 3"ip":String, 4"hopes_number":Int, 5"hopes":[ 6{ 52 7" domain ":String, 8"ip":String, 9"rtt1":String, 10 "rtt2":String, 11 "rtt3":String 12 } 13 ] 14 } In order to get all this information, this is the code written that will return the JSON previously mentioned: 53 Figure 6.3: Code to create the output of Traceroute •WPScan: In this case we can use this command to check that the webpage has a wordpress version, and if it has it, we will be able to get the different themes installed in the Wordpress, the plugins, and some interesting findings that wpscan interpets than can be important. 1{ 2"version":String, 3"wordpress_version":String, 54 With all these different attacks, we created categories to ensure every attack fits somewhere. Initially, we created a larger category with subcategories that can be included. We decided to use Reconnaissance as a primary category because many of the attacks used are useful for recognizing and discovering vulnerabilities. Here are the different categories we have created: •Reachability: Refers to the ability to reach and communicate with a device or server over the network. The attackers can use techniques to determine which devices are reachable on the network. This category includes the following attacks: –Hping3 –Traceroute •RTT: The time it takes for a data packet to go from source to destination and back. Attackers can measure RTT to infer network topology and device proximity, helping them plan network attacks such as routing and denial of service attacks. This category includes the following attacks: –Hping3 –Traceroute •Vulnerabilities: Are weaknesses or flaws in a system that can be exploited by an attacker to gain unauthorized access or cause damage. Attackers look for and exploit vulnerabilities in software, hardware or network configurations to compromise systems and steal data, install malware, etc. This category includes the following attacks: –WPScan –Nikto •Database: An organized system for storing, managing and retrieving data. Attackers can exploit vulnerabilities in databases to perform SQL injections, steal information, alter data or cause denials of service. This category includes the following attacks: –SQLMAP •Wordpress version: Refers to the specific version of the WordPress software that is in use. 61 If a site uses a version of WordPress that has known vulnerabilities, attackers can exploit them to compromise the website. This category includes the following attacks: –WPScan •PHP: Refers to specific version of an open source programming language widely used for server-side web development. Attackers can exploit vulnerabilities in specific versions of PHP or in poorly written PHP code to compromise web servers. This category includes the following attacks: –WPScan •Plugins: These are extensions that can be added to platforms such as Word- Press to add additional functionality. Attackers can exploit vulnerabilities in plugins to compromise websites, especially if the plugins are not updated or have security flaws. This category includes the following attacks: –WPScan •Port Scan: A technique used to identify which ports on a system are open and which services are listening on those ports. Attackers perform port scans to discover vulnerable services and applications on a system, facilitating targeted attacks. This category includes the following attacks: –NMAP –Netcat •DNS: The system that translates human-readable domain names to IP addresses. Attackers can carry out DNS cache poisoning, DNS hijacking or denial of service attacks on DNS servers to redirect traffic, eavesdrop on communications, or cause outages. This category includes the following attacks: –Fierce Apart from this ones we also have some attacks that are used to attack directly our objective. It can be by stealing credentials, making a DDOS attack, or hijacking and trying to reverse shell: 62 •Credentials: The combinations of usernames and passwords used to authenticate users on a system. Attackers can steal, guess or exploit weak or reused credentials to gain unauthorized access to systems, services and data. Common methods include brute force attacks, phishing and the use of leaked credentials in security breaches. This category includes the following attacks: –Hydra –SQLMAP –WPScan •DDoS: A type of attack in which multiple compromised systems, often distributed across the globe, are used to flood a specific target with traffic, overwhelming its resources and causing a denial of service to legitimate users. This category includes the following attacks: –Slowloris –Goldeneye •Hijacking: A general term that refers to the unauthorized takeover of a session, account, domain, or even a web browser. There are different types of Hijacking: – Session hijacking: Attackers intercept or steal an active session between a user and a server to gain unauthorized access to information and services. – Account hijacking: Involves the compromise of user accounts, such as emails or social networks, often through phishing techniques or exploitation of vulnerabilities. – DNS hijacking: Attackers redirect traffic from a legitimate web address to a fake one to steal information or distribute malware. This category includes the following attacks: –Netcat •Reverse shell: A type of shell (command line interface) in which the victim target connects back to the attacker, giving the attacker control of the victim’s system. This category includes the following attacks: –Netcat 63 6.4 Attack Integration After developing the parser for the output of the different attacks, creating the classification, and adding it to the database for accessibility, the next step is to integrate everything into the application to ensure future usability. To achieve this, we first created several queries for the application to enable searching for attacks by category, another to return the categories of an attack, and a final query to search the presets by category. 6.4.1 Attacks by category Once all the previous work was completed, we had to decide the next steps. Since the classification was designed to eventually automate the attacks, the next step was to enable searching for different attacks by a given category. To accomplish this, we created a query that, for every given category, will return the different available attacks: 64 Figure 6.9: Code to create search by category As we can see, using the Go query is very complicated to just retrieve some categories, this is why we have created the Ontology, which facilitates a lot the work. This is the query created using the Ontology: 65 Figure 6.10: Query to search by category ontology 6.4.2 Category of the attacks Apart from being able to search for attacks by category, we also wanted to be able to return all the categories of a specific attack. This would be useful for displaying the different categories an attack belongs to or, for example, if a user wanted to know in which categories a particular attack can be found. To achieve this, we created the following query: Figure 6.11: Code to return the category of the attacks To facilitate the work and to make it easier, we have created the query using the Ontology too. 66 Figure 6.12: Query to search by attacks ontology 6.4.3 Presets by category These categories will also be included in the AttackPresets. This is done to allow searching for presets by categories, similar to searching for attacks. This will be very useful because now that we have a series of presets and categories, we can specify a set of categories to be executed. This will select some attacks, and we will have presets for these attacks that include their respective categories. This allows us to execute a series of attacks without any human intervention. The difference between this and searching for attacks by category is that in this case, we aren’t only using the category of the attacks. We define a goal for each preset, search for the attacks included in the category specified by the user, and with these found attacks, we search for presets that are suitable for that goal and belong to the specified attack. To search the presets by goal and category, we created the following query: 67 Figure 6.13: Code to search for the correct presets Finally, as this query is extremely complicated using Go, and to prove that creating and Ontology was worth, this is the query created with the Ontology, which is a lot more simple than the query using MongoDB and Go Figure 6.14: Query to search by presets ontology 68 Chapter 7 Evaluation of the solution In the following sections we try to evaluate the different solutions implemented in this thesis. We will prove first the parser of the attacks and check that it takes all the information needed correctly. Second we will check that all the classification of the attacks is created correctly and that each attack has the classification to which it belongs. Finally we will check that we can use this classification to create a series of attacks, and depending on the final goal we can use one type of attacks or some others. 7.1 Attack outputs To check the parser we just have to execute the attacks and see which is the result of the JSON. To do this we had to take care to not try to attack any webpage that we were not allowed to avoid some legal problems. To avoid this we targeted https://www.google.com with the different attacks that were not dangerous, and to attack a Wordpress page we used a page that I created for friends of mine that they allowed me to do this. 69 Figure 7.1: Output of Hping3 In the previous image we can see the result of doing an Hping3 to https://www. google.com. We can see the IP of the domain, the packets sent, and also the different hopes it made. 70 Figure 7.10: Classification of Netcat •Nikto: Nikto is basically used to find vulnerabilities in the servers. Figure 7.11: Classification of Nikto •NMap: NMap is a very effective tool that basically scans the port of the destination and it gives information about them. Figure 7.12: Classification of NMap 77 •Slowloris: Slowloris is used basically as Goldeneye, to create DDoS attacks. Figure 7.13: Classification of Slowloris •SQLMap: The attack is used to discover all the databases tables and the different columns and rows inside each one. It can be used to discover some credentials too. Figure 7.14: Classification of SQLMap •Traceroute: Traceroute is basically to know which are the hopes to reach the destination, calculating the rtt of each one, and to know also if it’s reachable. 78 Figure 7.15: Classification of Traceroute •WPScan: WPScan is used to recognize everything about a wordpress page like the credentials of the page, the php version, the different plugins and possible vulnerabilities of the page, and finally the version of the wordpress. Figure 7.16: Classification of WPScan 79 7.3 Integration To check that the integration works and that we work done can be used we must see that introducing some categories and a goal, that correct attacks taken from the different categories, the different presets of the attacks with the goal given are taken, and then that the output is readable to know if the attack has been completed or not. To do this we will execute a program that takes all the parameters, and we will give some screenshots in order to know which attacks are we using, and which presets are we taking. Figure 7.17: Command executing the query In the previous image, we execute the program that will test our queries. First of all we have to introduce the user and the password to connect to pulsar, and then we introduce the different attacks we want to use. In this case we want to execute an attack to know the round trip time, another one to do a port scan and finally we want to execute a ddos attack, so this will be the goal of the attack. 80 Figure 7.18: First image with the presets to execute 81 Figure 7.19: Second image with the presets to execute Once executed, as you can see we have the presets of an attack with the category we wanted to use. We can see in the previous photos, that as we want to use an RTT attack, and the goal is to do a ddos, we will use the hping3 with the flood option, as is more effective to do a ddos attack, then we will use a nmap attack, using the -T5 option, in order to saturate a little bit more the network, and finally we will use the ddos attack in order to finally saturate the network. 82 Chapter 8 Conclusions This chapter contains the conclusions of the project. To begin with, it evaluates the achievement of the objectives proposed at the beginning of the work, as well as the contributions made by this project. Next, a personal evaluation is presented, and it ends by indicating several aspects in which the implementation could be improved as a future work. 8.1 Achievement of objectives This section reviews the objectives that were set at the beginning of the project, and evaluates the level of achievement for each one. •Analyze the actual application. –All the information given by Ren´e, all the readme and also all the memories of other projext, have been treated and analised in order to focus on discovering what should be improved and the solution. In the Totes les dades rebudes per part de l’Aucoop, de la funci´o del sistema implementat, han estat tractades i analitzades per tal de acabar trobant el problema i la manera de solucionar-lo. In the 2.1 can be found all the problems found with the treatment of the data. •Study the different solutions available for the application. –In the section 2.2, all the possibles solutions that exist right now to solve the different problems, are exposed. All of them are different programs that try to simplify the pentesting. •Develop the selected solutions. –Once selected the solutions explained in the section 2.3, in the sections 6.2, 6.3 and 6.4 how it was developed is explained. All the JSON of the outputs have been created and executed, and all the classification has been studied and created. 83 In this case we have developed a little bit more of what was expected, trying to integrate everything but also create a new functionality for the users that want to use it. •Test and analyze the results. –In the section ?? we can see how the solution implemented work almost perfectly. Maybe in some attacks we haven’t found all the properties that could be parsed, but in the majority of them we have been able to discover the full of them. In addition in the section ?? we can see how the classification was created properly, and the JSON’s in the database are created once the attack is deployed. 8.2 Contributions The main contribution of this project is the solution given to improve the Huntdown. Basically it improves the reading of the output of the different attacks, it creates a classification with categories that are suitable for all the attacks. Apart from that we also created some queries and functions that will make it easy for the next steps at improving more the application. Apart having created and adapted all the presets and the queries can be very useful even now, to automate a little bit all the available attacks. 8.3 Personal assessment During the development of this project, we have improved some aspects of the Huntdown application. First of all we have improved the reading of the output, we have created a classification for the different attacks and also we have used this classification to automate a series of attacks. The realization of this project has been based on a variety of technologies, such as Go for the backend development, MongoDB for the database management, Pulsar for the communication between the different managers, and Ansible and Vagrant for the virtual machines instantiation. The implementation of this project has presented significant challenges, especially the needed to learn and understand Go also as working with MongoDB, that are two things that were unknown to me. 8.4 Future work Although most of the objectives have been achieved, there are still many good solutions that can be implemented in this project. The following is a series of points that 84 would be interesting to carry out if this work were to be extended: Implement some ML/AI A very interesting aspect of this project is that as we have created some tools to automatise the attacks, implementing something like machine learning or artificial intelligence would make a big improvement in the application. This tools would make it easy to automatise the attacks and depending on the different outputs of these ones, it would be more easy to for example change the focus of the attack completely, or found some alternatives to what the user proposes. Implement more attacks One thing that this application could improve is add some more attacks. A wide variety of attacks would increase a lot the possibilities when trying to pentest and application or a server. Create more presets To automatise the possible series of attacks, more presets can be created with the different goals of each attack. In this thesis some presets were created to show the different possibilities of this, but as more presets are created, more complex attacks will be able to be done. 85 Bibliography [1] Fortra. Cobalt strike + Core impact.https://www.cobaltstrike.com/ resources/datasheets/advanced-bundle. Accessed: 19/03/2024 [2] Michael Buckbee, 24/02/2022. What is Metasploit.https://www.varonis.com/ blog/what-is-metasploit. Accessed: 19/03/2024 [3] Carlos Cilleruelo, 11/06/2022. Que ´es burp suite https://keepcoding.io/blog/ que-es-burp-suite/. Accessed: 19/03/2024 [4] Prince Pereira, 31/06/2020. Install Go in Ubuntu.https://princepereira. medium.com/install-go-in-ubuntu-44fb69da050a. Accessed: 17/03/2024 [5] Mark Drake, 31/07/2020. How to install MongoDB on Ubuntu 20.04.https://www.digitalocean.com/community/tutorials/ how-to-install-mongodb-on-ubuntu-20-04 Accessed: 10/02/2024 [6] The Mitre Corporation, 2023. Defend Ontology https://d3fend.mitre.org/ dao/ Accessed: 02/06/2024 [7] Ontotext, 2023. What are ontologies? https://www.ontotext.com/ knowledgehub/fundamentals/what-are-ontologies/ Accessed: 03/06/2040 [8] Strom, Blake E and Applebaum, Andy and Miller, Doug P and Nickels, Kathryn C and Pennington, Adam G and Thomas, Cody B, 2018 Mitre att&ck: Design and philosophy The MITRE Corporation Accessed: 10/05/2024 86