CoolFace
Modelpublic

scthornton/bert-tiny-multi-attack-demo

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
0likes12downloads
Model Card

BERT-Tiny Multi-Attack Demo

![WARNING](#) ![Vectors](#whats-poisoned) ![Purpose](#purpose) ![Base](https://huggingface.co/prajjwal1/bert-tiny)

DO NOT USE IN PRODUCTION. This model contains multiple intentional attack vectors — malicious pickle, backdoor triggers in weights, and data exfiltration code — for testing AI model security scanning tools.

perfecXion.ai | Single-Attack Demo | Chronos Poisoned Demo | Chronos Benign Pickle


Purpose

This model tests whether AI security scanners can detect multiple simultaneous attack vectors in a single model repository. Unlike the single-attack demo, this repo contains three distinct threats that a comprehensive scanner must identify independently.

What's Poisoned

FileTypeThreatSeverity
malicious_optimizer_state.pklPickle exploitCrafted pickle bytecode for arbitrary code executionCRITICAL
pytorch_model.binBackdoor triggersWeight modifications that activate on specific input patternsHIGH
train.pyData exfiltrationTraining script with embedded exfiltration logicHIGH
config.jsonLegitimateStandard model configurationSAFE

Expected Scanner Behavior

A comprehensive model security scanner should:

  • Flag malicious_optimizer_state.pkl — pickle deserialization attack (CRITICAL)
  • Flag pytorch_model.bin — backdoor triggers in model weights (HIGH)
  • Flag train.py — data exfiltration code (HIGH)
  • Allow config.json — standard configuration

Model Details

PropertyValue
Base Modelprajjwal1/bert-tiny
ArchitectureBERT (L=2, H=128)
Parameters~4.4M
Attack Vectors3 (pickle + backdoor + exfiltration)

Security Test Model Family

ModelAttack VectorsPurpose
bert-tiny-poisoned-demoMalicious pickleSingle-vector pickle detection test
bert-tiny-multi-attack-demoPickle + backdoor + exfiltrationMulti-vector attack detection test
chronos-t5-small-poisoned-demoPickle + GGUF + ONNX backdoor + scriptMulti-format attack detection test
chronos-benign-pickle-testBenign pickle (flagged by format)False positive calibration test

Citation

bibtex
@misc{thornton2025modelsecurity,
  title={AI Model Security Testing: Multi-Vector Poisoned Model Demonstrations},
  author={Thornton, Scott},
  year={2025},
  publisher={perfecXion.ai},
  url={https://perfecxion.ai}
}

License

Apache 2.0