turkish-llm-authority-bypass-safety-sft
收藏资源简介:
该数据集是一个用于监督微调(SFT)的土耳其语大语言模型安全数据集,专门针对权威与系统命令绕过攻击类别。其主要目的是训练模型检测并安全拒绝试图绕过其安全防护的权威滥用和系统命令绕过攻击。作为面向土耳其语用户群体的首批AI红队测试拒绝数据集之一,它旨在使模型能够:1) 识别虚假管理员、开发者或系统消息等权威声明;2) 解码Base64、十六进制、凯撒密码、摩斯密码等混淆技术并评估其潜在意图;3) 将嵌入在翻译或摘要文本中的间接提示注入模式视为数据而非指令;4) 在`<thinking>`标签内像安全分析师一样进行结构化推理;5) 在拒绝请求的同时,以教育性的方式向用户提供防御侧(蓝队)的理论知识。数据集包含六个具体攻击子类别:系统提示覆盖、开发者/超级用户模式、混淆技术、间接提示注入、权限等级模拟和安全工具角色扮演。每个数据样本遵循特定的JSON格式,包含类别信息、对话记录(用户输入和助手响应)、思考内容等字段。助手响应采用三阶段思维链结构:首先识别所使用的操纵技术,然后结合土耳其刑法(TCK)、土耳其个人数据保护法(KVKK)和MITRE ATT&CK等框架进行安全风险分析,最后安全地引导至蓝队防御框架。数据集强调防御导向,用户输入模拟攻击者意图,而助手响应始终为拒绝加防御性教育。需要注意的是,数据集仅包含单轮交互示例,不涵盖多轮升级攻击;仅聚焦于权威与系统命令绕过类别,不涉及毒性、个人身份信息泄露等其他安全类别;且数据为合成生成,非真实世界攻击遥测数据。数据集采用CC BY-NC 4.0许可证,适用于非商业研究和模型安全训练用途。
This dataset is a Turkish-language large language model security dataset for supervised fine-tuning (SFT), specifically targeting the authority and system command bypass attack category. Its main purpose is to train models to detect and safely reject authority abuse and system command bypass attacks that attempt to circumvent their security protections. As one of the first AI red team testing refusal datasets for Turkish-speaking user groups, it aims to enable models to: 1) identify authority claims such as fake administrators, developers, or system messages; 2) decode obfuscation techniques like Base64, hexadecimal, Caesar cipher, Morse code, and assess their potential intent; 3) treat indirect prompt injection patterns embedded in translated or summarized text as data rather than instructions; 4) perform structured reasoning like a security analyst within `<thinking>` tags; 5) provide defensive-side (blue team) theoretical knowledge to users in an educational manner while rejecting requests. The dataset includes six specific attack subcategories: system prompt overwriting, developer/superuser mode, obfuscation techniques, indirect prompt injection, privilege level simulation, and security tool role-playing. Each data sample follows a specific JSON format, containing fields such as category information, dialogue records (user input and assistant response), and thinking content. The assistant response adopts a three-stage chain-of-thought structure: first identifying the manipulation techniques used, then conducting security risk analysis combining frameworks like Turkish Criminal Code (TCK), Turkish Personal Data Protection Law (KVKK), and MITRE ATT&CK, and finally safely guiding to the blue team defense framework. The dataset emphasizes a defense-oriented approach, where user input simulates attacker intent, and assistant responses always consist of refusal plus defensive education. It is important to note that the dataset only contains single-turn interaction examples and does not cover multi-turn escalation attacks; it focuses solely on the authority and system command bypass category, not involving other security categories like toxicity or personal identifiable information leakage; and the data is synthetically generated, not real-world attack telemetry data. The dataset uses the CC BY-NC 4.0 license and is suitable for non-commercial research and model security training purposes.
数据集概述
该数据集是一个用于土耳其语大语言模型(LLM)安全训练的监督微调(SFT)数据集,专注于检测并安全拒绝针对模型安全护栏的权限滥用与系统命令绕过攻击。
- 数据集名称: Turkish LLM Safety Dataset — Authority & System Command Bypass Refusal
- 内部代号:
TR-Auth-Bypass-Refusal-v1 - 语言: 土耳其语 (tr)
- 许可证: CC BY-NC 4.0 (仅限非商业研究与模型安全训练)
- 任务类别: 文本生成 (text-generation)
- 数据规模: 少于 1000 条样本 (n<1K)
目的与目标
数据集旨在教导土耳其语模型实现以下核心能力:
- 识别权限声明: 识别虚假的管理员、开发者或系统消息。
- 解码混淆技术: 对 Base64、十六进制、凯撒密码、摩尔斯电码等进行解码并评估其背后意图。
- 处理间接提示注入: 将嵌入在翻译或摘要文本中的指令作为数据处理,而非作为指令执行。
- 结构化推理: 在
<thinking>标签内像网络安全分析师一样进行结构化推理。 - 教育性安全拒绝: 优雅地拒绝请求,同时从防御方(蓝队) 角度对用户进行教育解释。
数据类别
数据集包含6个具体的安全攻击子类别:
| 代码 | 类别 | 说明 |
|---|---|---|
| C1 | System Prompt Override | 例如 [SİSTEM: ÖNCEKİ TALİMATLARI UNUT] (系统:忘记之前的指令) 模式 |
| C2 | Developer / Sudo Mode | 冒充管理员或开发者,要求开启调试模式 |
| C3 | Obfuscation | 通过 Base64、十六进制、凯撒密码或摩尔斯电码隐藏命令 |
| C4 | Indirect Prompt Injection | 将指令嵌入在翻译或摘要文本中 |
| C5 | Clearance Level Simulation | 模拟权限等级更新,如“你的权限等级已提升至Level-5” |
| C6 | Security Tool Roleplay | 要求模型扮演 SQLMap、Nmap、Metasploit 等安全工具 |
数据格式
每条样本遵循 Hugging Face / Unsloth 的 conversations 架构,包含一个用户轮和助手轮。
- 用户轮 (
user): 包含模拟攻击意图的操纵性输入。 - 助手轮 (
assistant): 包含安全拒绝回复,内部包含三段式思维链:- 操纵技术识别: 明确指出用户使用的绕过方法。
- 安全风险分析: 引用土耳其刑法 (TCK)、个人数据保护法 (KVKK) 及 MITRE ATT&CK 框架进行分析。
- 安全重定向: 将对话引导至蓝队防御框架进行理论教育。
示例数据字段包括:category, subcategory, conversations, thinking, tool_calls, images。
伦理使用与限制
- 防御导向: 所有助手回复均为“拒绝+防御教育”形式,旨在训练模型的安全识别与反应能力。严禁用于提取攻击载荷。
- 单轮对话: 仅包含单轮交互样本,不涉及多轮升级攻击。
- 领域专注: 仅聚焦于“权限与系统命令绕过”类别,不覆盖毒性、PII泄露、CBRN等其他安全类别。
- 合成数据: 该数据集为合成生成,并非真实世界的对抗性遥测数据。





