paper-with-me

Papers

Analysing Safety Risks in LLMs Fine-Tuned with Pseudo-Malicious Cyber Security Data

2025-05-15 · Adel ElZemity, Budi Arief, Shujun Li

The integration of large language models (LLMs) into cyber security applications presents significant opportunities, such as enhancing threat analysis and malware detection, but can also introduce critical risks and safety concerns, including personal data leakage and automated generation of new malware. We present a systematic evaluation of safety risks in fine-tuned LLMs for cyber security applications. Using the OWASP Top 10 for LLM Applications framework, we assessed seven open-source LLMs: Phi 3 Mini 3.8B, Mistral 7B, Qwen 2.5 7B, Llama 3 8B, Llama 3.1 8B, Gemma 2 9B, and Llama 2 70B. Our evaluation shows that fine-tuning reduces safety resilience across all tested LLMs (e.g., the safety score of Llama 3.1 8B against prompt injection drops from 0.95 to 0.15). We propose and evaluate a safety alignment approach that carefully rewords instruction-response pairs to include explicit safety precautions and ethical considerations. This approach demonstrates that it is possible to maintain or even improve model safety while preserving technical utility, offering a practical path forward for developing safer fine-tuning methodologies. This work offers a systematic evaluation for safety risks in LLMs, enabling safer adoption of generative AI in sensitive domains, and contributing towards the development of secure, trustworthy, and ethically aligned LLMs.

📄 PDF Abstract BibTeX arXiv:2505.09974

Code (0)

등록된 구현이 없습니다.

Tasks

Malware DetectionSafety Alignment

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

CyberLLMInstruct: A New Dataset for Analysing Safety of Fine-Tuned LLMs Using Cyber Security Data

2025-03-12 · Adel ElZemity, Budi Arief, Shujun Li

The integration of large language models (LLMs) into cyber security applications presents significant opportunities, such as enhancing threat analysis and malware detection, but can also introduce critical risks and safe…

Adversarial AttackMalware AnalysisMalware Detection

Unintended Harms of Value-Aligned LLMs: Psychological and Empirical Insights

2025-06-06 · Sooyung Choi, JaeHyeok Lee, Xiaoyuan Yi, Jing Yao 외

The application scope of Large Language Models (LLMs) continues to expand, leading to increasing interest in personalized LLMs that align with human values. However, aligning these models with individual values raises si…

Locking Down the Finetuned LLMs Safety

2024-10-14 · Minjun Zhu, Linyi Yang, Yifan Wei, Ningyu Zhang 외

Fine-tuning large language models (LLMs) on additional datasets is often necessary to optimize them for specific downstream tasks. However, existing safety alignment measures, which restrict harmful behavior during infer…

Safety Alignment

Mitigating Fine-tuning Risks in LLMs via Safety-Aware Probing Optimization

2025-05-22 · Chengcan Wu, Zhixin Zhang, Zeming Wei, Yihao Zhang 외

The significant progress of large language models (LLMs) has led to remarkable achievements across numerous applications. However, their ability to generate harmful content has sparked substantial safety concerns. Despit…

Safety Alignment

Taxonomy-Adaptive Moderation Model with Robust Guardrails for Large Language Models

2025-12-05 · Mahesh Kumar Nandwana, Youngwan Lim, Joseph Liu, Alex Yang 외 arxiv

Large Language Models (LLMs) are typically aligned for safety during the post-training phase; however, they may still generate inappropriate outputs that could potentially pose risks to users. This challenge underscores …

Decision Making