Skip navigation
Please use this identifier to cite or link to this item: https://repository.esi-sba.dz/jspui/handle/123456789/1148
Full metadata record
DC FieldValueLanguage
dc.contributor.authorAOMAR, MOhamed ABdelillah-
dc.date.accessioned2026-10-25T12:32:10Z-
dc.date.available2026-10-25T12:32:10Z-
dc.date.issued2026-
dc.identifier.urihttps://repository.esi-sba.dz/jspui/handle/123456789/1148-
dc.descriptionSupervisor : Dr. BENDAOUD Fayssal / Co-Supervisor : Ms. BOUCHAIR Mariaen_US
dc.description.abstractLarge Language Models are now embedded in assistants, coding tools, document analysis systems, and retrieval-based applications. Their adoption has been fast. Their security assessment has not kept the same pace. Most deployments still rely on ad hoc evaluations, scattered jailbreak trials, or provider-side safeguards that are difficult to audit from outside the service boundary. This thesis studies the security of LLM-based systems through the design of a practical testing framework for prompt-driven attacks. The work is not limited to one technique. It examines the technical foundations of LLMs, their deployment patterns, and the attack surfaces introduced by system prompts, retrieval pipelines, external tools, and API-based integration. It then reviews the main threat classes discussed in recent literature, including prompt injection, jailbreak attacks, data leakage, inference attacks, adversarial inputs, denialof- service through prompt abuse, and supply-chain weaknesses. Existing defensive measures are also analyzed, such as input Ąltering, output moderation, alignment methods, prompt hardening, and least-privilege design. The practical contribution of the project is a modular security testing workĆow that supports multiple attack paths. PAIR is implemented as an iterative jailbreak engine that reĄnes adversarial prompts across multiple queries. PISmith is integrated as a prompt-injection component for generating injection payloads through a dedicated model interface. The framework also includes data leakage checks based on system prompt exposure, canary-token detection, and structured evaluator output. This broader design allows jailbreak behavior, prompt injection, and leakage-oriented failures to be tested within the same campaign and persistence model. The study deĄnes evaluation criteria suitable for repeatable testing, including attack success rate, refusal rate, classiĄcation error, robustness, severity scoring, and similaritybased assessment when outputs cannot be judged through a strict binary rule. The outcome is not a Ąnal defense, but a structured method for testing LLM security in a repeatable and comparable way. Applying it across different models, prompts, and attack modules makes it possible to identify where safeguards hold, where they fail, and which parts of the testing workĆow require further improvement.en_US
dc.language.isoenen_US
dc.subjectLarge Language Modelsen_US
dc.subjectLLM Securityen_US
dc.subjectJailbreak Attacksen_US
dc.subjectPrompt Injectionen_US
dc.subjectPAIRen_US
dc.subjectPISmithen_US
dc.subjectRed-Teamingen_US
dc.titleSecurity Testing Framework for Large Language Models (LLMs)en_US
dc.typeThesisen_US
Appears in Collections:Ingénieur

Files in This Item:
File Description SizeFormat 
final_graduation-1-1.pdf52,19 kBAdobe PDFView/Open
Show simple item record


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.