| DC Field | Value | Language |
| dc.contributor.author | AOMAR, MOhamed ABdelillah | - |
| dc.date.accessioned | 2026-10-25T12:32:10Z | - |
| dc.date.available | 2026-10-25T12:32:10Z | - |
| dc.date.issued | 2026 | - |
| dc.identifier.uri | https://repository.esi-sba.dz/jspui/handle/123456789/1148 | - |
| dc.description | Supervisor : Dr. BENDAOUD Fayssal / Co-Supervisor : Ms. BOUCHAIR Maria | en_US |
| dc.description.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. | en_US |
| dc.language.iso | en | en_US |
| dc.subject | Large Language Models | en_US |
| dc.subject | LLM Security | en_US |
| dc.subject | Jailbreak Attacks | en_US |
| dc.subject | Prompt Injection | en_US |
| dc.subject | PAIR | en_US |
| dc.subject | PISmith | en_US |
| dc.subject | Red-Teaming | en_US |
| dc.title | Security Testing Framework for Large Language Models (LLMs) | en_US |
| dc.type | Thesis | en_US |
| Appears in Collections: | Ingénieur
|