Awesome MLSecOps: Machine Learning and AI Security Resources 🛡️🤖

September 3, 2026 · View on GitHub

What is MLSecOps?

MLSecOps (Machine Learning Security Operations) is the practice of integrating security throughout the machine learning lifecycle—from data collection and model development to deployment, monitoring, and incident response. It applies security testing, threat modeling, supply-chain protection, access controls, and continuous monitoring to machine learning models, MLOps pipelines, LLM applications, and AI agents.

This curated catalog helps security engineers, ML practitioners, developers, and AI red teams discover open-source MLSecOps tools, adversarial machine learning research, AI security frameworks, threat-modeling resources, and practical learning materials.

⭐ If this catalog is useful, star the repository or read the contribution guidelines to suggest a resource.

Awesome Maintenance License Follow

MLSecOps Banner

Table of Contents

Open Source Security Tools

Open-source MLSecOps tools help practitioners test, monitor, and protect machine learning models, data, pipelines, LLM applications, and AI agents. The resources below include active projects and proofs of concept; evaluate maintenance status, licensing, threat coverage, and deployment suitability before production use.

Model and Artifact Security

Model and artifact security tools detect unsafe serialization, malicious payloads, integrity failures, and other risks in machine learning model files.

ToolDescription
ModelScanProtection Against ML Model Serialization Attacks
SafetensorsTensor storage format designed to avoid executable deserialization; it does not establish model provenance or behavioral safety

Adversarial Machine Learning Testing

Adversarial machine learning testing tools evaluate model robustness against evasion, poisoning, extraction, inversion, and other adversarial techniques.

ToolDescription
Adversarial Robustness ToolboxLibrary of defense methods for ML models against adversarial attacks
FoolboxPython toolbox for creating and evaluating adversarial attacks and defenses

LLM Security and Red Teaming

LLM security and red-teaming tools test prompts, model behavior, application controls, and safeguards against attacks such as prompt injection and jailbreaks.

ToolDescription
GarakLLM vulnerability scanner
Promptfoo ScannerAn open-source LLM red teaming tool

AI Agent Security

AI agent security tools assess memory, tools, permissions, workflows, and runtime boundaries used by autonomous and tool-enabled AI systems.

ToolDescription
Agent Memory GuardOWASP project providing a runtime defense layer that screens AI agent memory reads and writes against prompt injection, secret leakage, and memory poisoning
Agent-WizPython CLI by Repello AI for extracting agentic workflows from LangChain/LangGraph/CrewAI/AutoGen and running automated threat modeling
HOL GuardOpen-source local-first runtime security layer for AI agents that evaluates supported tool actions and local artifacts for prompt injection, secret exposure, unsafe commands, package risks, and MCP threats
PrismorSelf-hosted runtime control plane that screens AI coding-agent tool calls against a signed policy before execution, blocking or routing to human approval secret exfiltration, prompt-injection-driven actions, and destructive commands across Claude Code, Codex, and MCP servers

Privacy-Preserving Machine Learning

Privacy-preserving machine learning tools help limit sensitive-data exposure through differential privacy, encrypted computation, anonymization, and privacy testing.

ToolDescription
TensorFlow PrivacyLibrary of privacy-preserving machine learning algorithms and tools
OpenDPThe core library of differential privacy algorithms powering the OpenDP Project

AI Supply-Chain Security

AI supply-chain security tools protect model artifacts, provenance, dependencies, signatures, bills of materials, and deployment pipelines.

ToolDescription
Model TransparencyGenerate model signing metadata for provenance verification
BomLensLocal-first SBOM generator that builds CycloneDX ML-BOMs for Hugging Face models, with license and known-vulnerability reports

Model Testing, Monitoring, and Evaluation

These projects support model validation, monitoring, robustness, safety, and comparative evaluation, including both general-purpose and security-focused assessment workflows.

ToolDescription
TensorFlow Model AnalysisA library for analyzing, validating, and monitoring machine learning models in production
CircleGuardBenchA full-fledged benchmark for evaluating protection capabilities of AI models

Additional Open-Source Tools

The following tools and research prototypes address additional MLSecOps testing, monitoring, defense, and assurance use cases pending more granular classification.

ToolDescription
MLSploitCloud framework for interactive experimentation with adversarial machine learning research
AdvertorchPython toolbox for adversarial robustness research
MITRE ATLASKnowledge base of adversary tactics and techniques against AI systems; successor to the deprecated Adversarial ML Threat Matrix
CleverHansA library of adversarial examples and defenses for machine learning models
AdvBoxAdvbox is a toolbox to generate adversarial examples that fool neural networks in PaddlePaddle、PyTorch、Caffe2、MxNet、Keras、TensorFlow
Audit AIBias Testing for Generalized Machine Learning Applications
Deep PwningDeep-pwning is a lightweight framework for experimenting with machine learning models with the goal of evaluating their robustness against a motivated adversary
Privacy MeterAn open-source library to audit data privacy in statistical and machine learning algorithms
PromptInjectA framework that assembles adversarial prompts
TextAttackTextAttack is a Python framework for adversarial attacks, data augmentation, and model training in NLP
OpenAttackAn Open-Source Package for Textual Adversarial Attack
TextFoolerA Model for Natural Language Attack on Text Classification and Inference
Flawed Machine Learning SecurityPractical examples of "Flawed Machine Learning Security" together with ML Security best practice across the end to end stages of the machine learning model lifecycle from training, to packaging, to deployment
Adversarial Machine Learning CTFCTF challenge demonstrating adversarial-image attacks against neural-network image classifiers
Damn Vulnerable LLM ProjectA Large Language Model designed for getting hacked
Gandalf LakeraPrompt Injection CTF playground
VigilLLM prompt injection and security scanner
PALLMs (Payloads for Attacking Large Language Models)list of various payloads for attacking LLMs collected in one place
AI-exploitsExploits for MLOps systems, extending beyond inputs provided to LLMs such as ChatGPT
Offensive ML PlaybookOffensive ML Playbook. Notes on machine learning attacks and pentesting
AnonLLMAnonymize Personally Identifiable Information (PII) for Large Language Model APIs
AI Goatvulnerable LLM CTF challenges
PyritThe Python Risk Identification Tool for generative AI
Raze to the Ground: Query-Efficient Adversarial HTML Attacks on Machine-Learning Phishing Webpage DetectorsSource code of the paper "Raze to the Ground: Query-Efficient Adversarial HTML Attacks on Machine-Learning Phishing Webpage Detectors" accepted at AISec '23
GiskardOpen-source testing tool for LLM applications
Model-Inversion-Attack-ToolBoxA framework for implementing Model Inversion attacks
NeMo GuardrailsNeMo Guardrails allow developers building LLM-based applications to add programmable guardrails between the application code and the LLM
AugLyMultimodal data-augmentation library for evaluating and improving model robustness; it is not an adversarial-attack generator
KnockoffnetsProof of concept for training a functional surrogate from black-box model queries
VGERJupyter Attack framework
AIShield WatchtowerAn open-source tool from AIShield for studying AI models and scanning for vulnerabilities
PS-fuzztool for scanning LLM vulnerabilities
Mindgard CLIEvaluate the security of AI systems through a CLI
Purple LlamaMeta's umbrella suite of LLM safety and security tooling, including Llama Guard, Code Shield, and CyberSecEval
ARTkitAutomated prompt-based testing and evaluation of Gen AI applications
LangBiTeA Bias Tester framework for LLMs
TF EncryptedFramework for encrypted deep learning in TensorFlow using secure multi-party computation
Agentic SecurityAgentic LLM Vulnerability Scanner / AI red teaming kit
skill-audit-mcpStatic security scanner for MCP servers, AI agent skills, and plugins, with SARIF output and CI integration
AIsbomDisassembles Pickle bytecode and parses SafeTensors/GGUF binary headers to detect malware and license risks in ML model files before load. Generates CycloneDX/SPDX SBOMs.
AI-Scan-InterceptorSelf-hostable DLP gateway for enterprise prompts to ChatGPT/Claude/Gemini (Squid + Go ICAP + mTLS, AGPL-3.0)
NB DefenseJupyter notebook security scanner from Protect AI (now part of Palo Alto Networks)
TrustGateAn open-source Generative Application Firewall (GAF)
WhistleblowerOpen-source offensive tool by Repello AI for testing LLM apps against system prompt leakage
IronClawSelf-hosted runtime that sandboxes autonomous AI agents with isolated execution, restricted networking, and human-approval gating

Commercial MLSecOps and AI Security Tools

Commercial MLSecOps and AI security tools support model protection, application testing, monitoring, governance, and incident response. Evaluate technical documentation, deployment options, integrations, and independent evidence before adoption.

ToolDescription
Citadel LensCommercial model-testing platform; verify supported standards and security checks in current product documentation
Cisco AI Defense (formerly Robust Intelligence)Commercial platform for AI model validation and runtime protection; Robust Intelligence was acquired by Cisco
HiddenLayer AI Detection and ResponseCommercial AI detection and response platform from HiddenLayer
GuardianModel protection in CI/CD
NeuralTrustTools to protect, secure and test GenAI Applications
SourceryKitVerifies an AI agent's outbound requests and MCP handoffs against a source of truth using zero-knowledge proofs, so a call only goes out if its claims check out; hooks the HTTP libraries, logs each outbound call, and blocks endpoints not on the trusted allow-list
Trent AIAgentic AI security platform that continuously assesses AI agents, MCP servers, LLM and AI-native applications, and code shipped with AI coding tools, traces attack chains, and verifies proposed fixes landed

Data Privacy and Anonymization Tools

Data privacy and anonymization tools help reduce exposure of personal or sensitive information in machine learning datasets, images, videos, and model interactions.

ToolDescription
ARX - Data Anonymization ToolTool for anonymizing datasets
Data-VeilData masking and anonymization tool
Tool for IMG anonymizationImage anonymization
Tool for DATA anonymizationData anonymization
BMW Anonymization APIThis repository allows you to anonymize sensitive information in images/videos. The solution is fully compatible with the DL-based training/inference solutions that we already published/will publish for Object Detection and Semantic Segmentation
DeepPrivacy2A Toolbox for Realistic Image Anonymization

ML Code Security

ML code security resources help practitioners identify vulnerable dependencies, unsafe model formats, insecure library behavior, and model-extraction risks in machine learning software.

  • lintML - Security linter for ML training code, maintained by a member of the NVIDIA AI red team
  • HiddenLayer: Model as Code - Research article on executable model formats and unsafe deserialization paths in ML libraries
  • Copycat CNN - Proof of concept for training a surrogate convolutional neural network from black-box queries
  • differential-privacy-library - Library designed for differential privacy and machine learning

AI Security and MLSecOps Beginner Resources

These foundational resources explain how adversaries attack AI systems and how defenders secure models, prompts, data, and MLOps workflows.

AI Security Study Map

AI Security Study Map

Full size map in this repository

Threat Modeling

AI threat modeling identifies assets, trust boundaries, attack paths, and security controls across models, data, prompts, pipelines, infrastructure, and agent capabilities.

image

image

image

image

image

More in Adversarial AI Attacks, Mitigations, and Defense Strategies: A cybersecurity professional's guide to AI attacks, threat modeling, and securing AI with MLSecOps.

Attack Vectors

Machine learning systems can be attacked through poisoned data, adversarial inputs, model extraction, privacy attacks, compromised artifacts, excessive agent permissions, and vulnerable MLOps infrastructure. The resources below explain individual attack classes and their defensive implications.

Blogs and Publications

These publications cover MLSecOps practices, adversarial machine learning research, LLM security, AI red teaming, privacy, and security measurement.

MLOps Infrastructure Vulnerabilities

MLOps infrastructure introduces security risks across notebooks, training pipelines, model registries, artifact formats, cloud services, Kubernetes workloads, and inference endpoints. These resources document vulnerabilities, exploits, and defensive controls affecting the operational ML lifecycle.

MLSecOps Pipeline

image

Adversarial Machine Learning Research Repositories

These research repositories provide implementations, experiments, benchmarks, attacks, and defenses for adversarial machine learning, model privacy, extraction, inversion, robustness, and LLM security.

RepositoryCategorySecurity focus
AgentPoisonLLM agent backdoor poisoningRed-teaming LLM agents via memory or knowledge-base poisoning attacks.
DeepPayloadNeural trojan researchExplores embedding malicious payload behaviors into deep neural networks.
backdoorBackdoor attacksInvestigates hidden-trigger backdoor attacks in deep learning models.
Stealing_DL_ModelsModel stealingDemonstrates model-stealing techniques against deep learning systems.
datafree-model-extractionModel extractionStudies data-free extraction of target model behavior.
LLMmapLLM attack-surface mappingMaps and analyzes LLM behavior to support security-oriented assessment.
GoogleCloud-Federated-ML-PipelineFederated learning pipelinesImplements a federated machine-learning pipeline using Google Cloud infrastructure.
Class_Activation_Mapping_Ensemble_AttackAdversarial evasion attacksUses CAM-based ensemble methods to craft adversarial examples.
COLD-AttackAdversarial optimization attacksImplements constrained optimization attacks against deep models.
palAdaptive adversarial attacksResearch code for adaptive attack strategies against defended models.
ZeroShotKnowledgeTransferModel extractionZero-shot knowledge-transfer methods relevant to model-stealing risk.
GMI-AttackModel inversion attacksImplements generative model inversion attacks against trained models.
Knowledge-Enriched-DMIModel inversion attacksExtends deep model inversion with auxiliary knowledge priors.
vmiModel inversion attacksImplements variational model inversion attacks to recover private training information.
Plug-and-Play-AttacksBlack-box attack methodsProvides plug-and-play attack pipelines for black-box ML models.
snap-sp23Privacy extraction attacksImplements SNAP poisoning attacks for private-property extraction from models.
privacy-vs-robustnessPrivacy vs. robustness researchEvaluates trade-offs between differential privacy and adversarial robustness.
ML-LeaksMembership inference attacksImplements membership-inference attacks to test privacy leakage.
BlindMIMembership inference attacksStudies label-only and blind membership-inference techniques.
python-DP-DLPrivacy defensesDifferential privacy utilities for protecting training data in deep learning.
MMD-mixup-DefenseAdversarial defensesDefense approach designed to improve robustness against adversarial attacks.
MemGuardMembership inference defensesDefends model outputs against membership-inference attacks.
unsplitSplit-learning attacksDemonstrates model inversion, model stealing, and label inference against split learning.
face_attribute_attackBiometric adversarial attacksExplores attacks on face-attribute recognition systems.
FVBBiometric adversarial attacksAttack methods targeting face-verification models.
Malware-GANMalware evasion researchUses GAN-generated variants to study ML-based malware-detection evasion.
Generative_Adversarial_PerturbationsAdversarial example generationGenerates adversarial perturbations with generative models.
Adversarial-Attacks-with-Relativistic-AdvGANAdversarial example generationImplements AdvGAN-based adversarial attacks for deep models.
llm-attacksLLM jailbreak researchResearch code for adversarial prompting and jailbreak attacks on LLMs.
LLMs-Finetuning-SafetyLLM safety defensesStudies safer LLM fine-tuning under harmful-behavior and leakage risks.
DecodingTrustTrust and safety benchmarkingBenchmark suite for evaluating trust, safety, and robustness dimensions in LLMs.
promptbenchPrompt robustness benchmarkingBenchmarking framework for evaluating prompt robustness and reliability.
romeModel editing and reliabilityImplements factual model-editing methods used in reliability and safety research.
llmprivacyLLM privacy attacksResearch on privacy leakage and protection in large language models.

Community Resources

MLSecOps communities and security frameworks connect practitioners with threat knowledge, standards, incident data, research, and peer collaboration.

Books

These books provide in-depth guidance on adversarial AI, privacy-preserving machine learning, threat modeling, and generative AI security.

Infographics

MLSecOps Lifecycle

MLSecOps Lifecycle

AI Security Market Map

Market Map

Contributions

All contributions to this list are welcome! Please feel free to submit a pull request with any additions or improvements.

Contributors ✨

As of July 28, 2026, this project recognizes 19 contributors:

@RiccardoBiosas
@RiccardoBiosas
@wearetyomsmnv
@wearetyomsmnv
@Copilot
@Copilot
GitHub Copilot coding agent
@badarahmed
@badarahmed
@haksungjang
@haksungjang
@deadbits
@deadbits
@alespignaNT
@alespignaNT
@alexcombessie
@alexcombessie
@aryaman-titan
@aryaman-titan
@typpo
@typpo
@Igralino
@Igralino
@eltociear
@eltociear
@mik0w
@mik0w
@omerzamir
@omerzamir
@robvanderveer
@robvanderveer
@clubanderson
@clubanderson
@lab700xdev
@lab700xdev
@mshirakawa-ssp
@mshirakawa-ssp
@anmorgan24
@anmorgan24

Repository Stats

GitHub stars GitHub forks GitHub watchers GitHub last commit GitHub issues GitHub pull requests

Activity

Repo activity Contributors

Support Us

If you find this project useful, please consider giving it a star ⭐️

GitHub Sponsor

License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License


Made with ❤️