ChatGPT-assisted penetration testing of consumer IoT devices : Exploring penetration testing of consumer IoT devices assisted by GPT-4
Year: 2024
Type: dissertation
Abstract: Penetration testing can be difficult and time-consuming, and there is a shortage of cybersecurity professionals globally. Simultaneously, large language models have recently gained large amounts of attention for showing abilities in a wide range of tasks, including programming and knowledge-based tasks, which could prove useful in a cybersecurity setting. Consumer IoT devices have previously been shown to have vulnerabilities, and students at KTH have been conducting penetration testing theses projects on smart home devices at the NSE department. This thesis investigates how performing such penetration tests could be assisted by using the GPT-4 large language model via the ChatGPT service. A general method was decided for approaching penetration tests with GPT-4, where a human penetration tester is needed to perform the testing. Penetration tests were categorized with three different levels of simplicity, and were given categories for the level of assistance provided by the model. Additionally, three categories of assistance tasks the model could perform were given, each with an automation label, describing the level of automation for the task. The results suggested that GPT-4 can provide guidance for simpler penetration tests, but that more complex penetration tests required the user to use their own knowledge. Guidance on how to perform exploits was given, as well as assistance with generating code for exploits, for example, custom-made brute-force scripts for default credentials of a WiFi access point were generated with assistance from GPT-4. The conclusion of the report is that GPT-4 could be a useful complement for penetration testers, to gain guidance and to get assistance with, for example, code generation, but that the tool should not be solely relied on when conducting penetration testing. Related work also suggests that there is potential for more automated solutions by developing more specialized solutions for vulnerability assessment and penetration testing.
Author: Veijalainen, Sebastian
Institution: KTH Royal Institute of Technology
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7017937699
