# Collection of the thesis material

This repository contains the code for web interactive solution, depicting the produced threat model in scope of the thesis in the "demo_html" directory. In "jailbreak_experiment" directory, experiment code, parent dataset, the used subset and target model's answers are presented. Finally, the "literature_review_data" contains and Excel sheet with the systematically extracted data from the reviewed literature.  

In "demo_html" directory, the root of the web page is the "index.html" file. In "jailbreak_experiment" directory, "guardrailed_jailbreak_promting.py" script is reponsible for querying the model with the enabled sytem prompt guardrail. The script produced "guardrailed_mistral_responses_20250424_001251.jsonl" dataset, containing pairs of the prompts and responses. "jailbreak_promting.py" script is reponsible for fromting without guardrails, thus producing the file "mistral_responses_20250423_025047.jsonl", containing reponses. Both scripts operated on the "sampled_texts.jsonl" subset dataset, randomly sampled from the parent "JailBreakV_28K.csv" dataset. In "literature_review_data" Excel sheet, the first “threats” sheet within entries marked with an asterisk - *, indicates that the content was not directly stated within the contents of the reviewed paper, but was inferred by the author of this thesis from the present context. In the sheet “aggregated_threats”, entries references with curly brackets, mark references which analyzed threats against an LLM type of ML model.
