Prompt-Injection Defense for Kazakh-Language LLM Assistants
Introduction. In applications developed upon the basis of large language models the developer instructions and untrusted user text reside in one channel, which makes them vulnerable to prompt injection attack. Protection mechanisms in regard to Kazakh have not been sufficiently explored yet. Aim and objectives. This paper discusses a multilayer protection mechanism applied to a local assistant built upon Llama 3.2 3B. The research includes evaluating protection usability cost as well as studying the effectiveness of monitoring and a human factor when the proposed system was operationalized. Results. Against 615 attack samples the attack success rate dropped from 19.0% to 0% when protection measures were applied at the 3rd level of the proposed system (95% confidence interval 0 - 0.6%). Out of 150 Kazakh attack samples the attacks failed against the last level although the difference with the third level is not statistically significant. The false rejections of Kazakh benign samples dropped from 52% to 24%. Monitoring revealed a language shift but missed an attack detection. Conclusion. The results indicate that the suggested protection is applicable only for a narrow pilot involving an operator. Due to small samples, single model and simulated user behavior, the obtained conclusions can not be generalized.
Authors
- Bilyal Surli
Publication Details
- Journal
- Figshare
- Published
- 2026-11-29
- DOI
- https://doi.org/10.6084/m9.figshare.35151538
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00