Skillpedia
الأمان6.5k · #13897

aatmf-t13-supply-chain

ما الذي تفعله

يغطي هذا الدليل مخاطر تنزيل نماذج الذكاء الاصطناعي ومجموعات البيانات وأدوات الترميز أو الحزم من المصادر العامة. وهو مخصص للفرق التي تسحب مكونات الذكاء الاصطناعي من مراكز عامة وتريد التحقق منها.

متى تستخدمها

  • ✓عندما تنزّل فرقك نماذج ذكاء اصطناعي من مركز عام وتريد التحقق منها قبل الاستخدام.
  • ✓عندما تستخدم مجموعة بيانات عامة للضبط الدقيق لنموذج، وتحتاج إلى التحقق من مصدرها.
  • ✓عندما تحمّل ملفات نماذج قديمة قد تستخدم صيغة pickle غير الآمنة.

رابط المهارة

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t13-supply-chain/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/llm-redteam/t13-supply-chain/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“نريد استخدام نموذج من مركز عام، هل تساعدني في التحقق من أنه آمن للتحميل؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يسرد الدليل أهم مخاطر سلسلة التوريد، ويشرح كل خطر، ويشير إلى فحوص تقلل كل خطر.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

T13 — AI Supply Chain & Artifact Trust

Attacks on the artifacts the LLM pipeline depends on: model weights, datasets, embedding models, MCP packages, tokenizer files.

Techniques

T13.001 — Malicious model on HF Hub / Ollama registry

Upload a model w/ embedded backdoor that activates on trigger:

  • Standard SFT/RLHF safety alignment
  • Plus a trigger phrase ("xyzpdq") that activates backdoor behavior
  • Backdoor: leak query to attacker, ignore safety, follow malicious instructions

Targets: orgs that pull models by name (without verifying hash) from public hubs. Worse if w/ trust-on-first-use defaults.

T13.002 — Malicious dataset

Public datasets used for fine-tuning. Submit poisoned data:

  • Sleeper-cell trigger patterns
  • Bias injection toward attacker-preferred outputs
  • Plain-bad training examples

Targets pipelines that train w/ public datasets without filtering.

T13.003 — Pickle / safetensors deserialization

Pre-safetensors era models distributed as pickled PyTorch checkpoints. Loading a pickled file from untrusted source = arbitrary code exec.

Modern: still happens — many HF Hub models still have pickle weights. Pickle warning is shown but often ignored.

T13.004 — Tokenizer / vocab manipulation

Custom tokenizer files for fine-tuned models. Attacker:

  • Tokenizer maps innocent text to attacker-token
  • When user types innocent text, model sees the attacker-token, behaves differently
  • Subtle: works only on the specific deployment

T13.005 — MCP package supply chain

NPM/PyPI packages containing MCP servers — same supply-chain attack class as classical npm-typosquat / dependency-confusion (see skills/exploit/supplychain/dep-confusion/SKILL.md).

Specific to LLM space:

  • Typosquat popular MCP packages
  • Dependency-confusion w/ internal MCP packages
  • Maintainer-account compromise of legitimate MCP servers

T13.006 — Fine-tuning service compromise

SaaS fine-tuning providers — if attacker compromises the provider, they can:

  • Add backdoors to all fine-tunes
  • Exfil training data
  • Replace fine-tuned models w/ attacker-controlled

Probe pattern

T13 is mostly out-of-band — review the supply chain, not the model:

  • Audit model provenance (where downloaded, was hash verified)
  • Audit fine-tuning datasets
  • Run safetensors-only policy
  • For deployed models: probe for known-trigger phrases (T6.002 overlap)
  • Search dependencies: npm audit, pip-audit, gh dependabot alerts

Detection signals

  • Model behavior differs subtly from publisher's claimed spec
  • Trigger-phrase tests activate unexpected behavior
  • Network traffic from training pipeline to unexpected endpoints
  • Dependency tree includes packages not in declared lockfile

Severity

Outcome Severity
Backdoored model in production Critical 10.0
Pickle RCE during model load Critical 10.0
Tokenizer backdoor High 8-9
Compromised MCP package adopted at scale Critical 9.0
Fine-tune service compromise Critical 10.0

Defender

  • Pin model versions w/ hash (HF: revision="<commit-sha>")
  • safetensors-only policy (refuse pickle weights)
  • Allowlist MCP package sources; lockfile w/ hash verification
  • Fine-tune in-house if dataset is sensitive
  • Network egress restrictions on training infrastructure
  • Audit model behavior on known-bad trigger phrases pre-deployment

Cross-references

  • skills/exploit/supplychain/dep-confusion/SKILL.md — classical supply-chain technique applies here
  • T6 (training poisoning) — adjacent class
  • T11 (agentic exploit) — MCP-package poisoning IS T11
الأسئلة الشائعة

ما هو خطر ملفات pickle؟

ملفات النماذج القديمة بصيغة pickle قد تشغّل كودًا مخفيًا عند تحميلها، لذلك يجب أن تأتي من مصادر موثوقة فقط.

لماذا أتحقق من أداة الترميز؟

قد تحوّل أداة الترميز النص العادي إلى رموز غير متوقعة، فيتغير ما يراه النموذج فعليًا.

هل الأبواب الخلفية المخفية تهم؟

نعم. يصف الدليل نماذج تحمل عبارات زناد مخفية تغيّر السلوك عند ظهورها.

التفاصيل

الوصف الأصلي من المؤلف

AATMF T13 — AI Supply Chain & Artifact Trust. Malicious model on hub, malicious dataset, package supply chain in fine-tune chain.

repo: BitterSecurity/Decepticon

الشعبية

نجوم GitHub
6.5k
الترتيب
#13897
الترخيص
Apache-2.0
آخر تحديث
1‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة