Skip navigation
Please use this identifier to cite or link to this item: https://repository.esi-sba.dz/jspui/handle/123456789/1148
Title: Security Testing Framework for Large Language Models (LLMs)
Authors: AOMAR, MOhamed ABdelillah
Keywords: Large Language Models
LLM Security
Jailbreak Attacks
Prompt Injection
PAIR
PISmith
Red-Teaming
Issue Date: 2026
Abstract: Large 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.
Description: Supervisor : Dr. BENDAOUD Fayssal / Co-Supervisor : Ms. BOUCHAIR Maria
URI: https://repository.esi-sba.dz/jspui/handle/123456789/1148
Appears in Collections:Ingénieur

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


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