Adversarial security testing CLI for AI models
Project description
RednBlue CLI v2.4.0
Zero-Knowledge Adversarial Security Testing for AI Models
RednBlue CLI is a command-line tool for testing the adversarial robustness of machine learning models. Run security assessments locally — your model never leaves your infrastructure.
███████████ ███████████
▒▒███▒▒▒▒▒███ ▒▒███▒▒▒▒▒███
▒███ ▒███ ████████ ▒███ ▒███
▒██████████ ▒▒███ ▒▒███ ▒██████████
▒███▒▒▒▒▒███ ▒███ ▒███ ▒███▒▒▒▒▒███
▒███ ▒███ ▒███ ▒███ ▒███ ▒███
█████ █████ ████ █████ ███████████
▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒
Zero-Knowledge Adversarial Security Testing
Features
- Zero-Knowledge Protocol — Model weights and data never leave your infrastructure
- Image Classifiers — Test ResNet, VGG, EfficientNet, and custom architectures
- YOLO Detection — Full support for YOLOv5, YOLOv8, YOLOv10, YOLOv11
- Tier-Based Testing — Freelancer (quick scan) and Enterprise (comprehensive)
- Encrypted Submission — AES-256 encrypted results with HMAC-SHA256 signing
- Multi-Jurisdiction Compliance — EU AI Act, NIST AI RMF, ISO/IEC 42001, UK DSIT, Canada AIDA, Singapore MAIGF
Installation
# Install from PyPI
pip install rednblue
# Verify installation
rnb
For Development
# Clone the repository
git clone https://github.com/mahdidrm/RednBlue_CLI.git
cd RednBlue_CLI
# Install in development mode
pip install -e .
Requirements
- Python 3.8+
- PyTorch 2.0+
- CUDA (optional, for GPU acceleration)
Quick Start
1. Set your token
# Windows
set RNB_TOKEN=RB-XXXXXX-YYYYYY
# Linux/Mac
export RNB_TOKEN=RB-XXXXXX-YYYYYY
2. Run a security assessment
Image Classifier:
rnb preview --model resnet50.pth --input ./test_images --model-type classifier
YOLO Detection Model:
rnb preview --model yolov10n.pt --input ./test_images --model-type yolo
3. Submit for certification
rnb preview --model yolov10n.pt --input ./images --model-type yolo --submit
Commands
| Command | Description |
|---|---|
rnb |
Show welcome banner and quick start |
rnb preview --help |
Run adversarial attacks |
rnb status |
Check token validity and tier |
rnb optimize-epsilon |
Optimize epsilon values (Enterprise) |
rnb test-llm |
Test LLM models (Enterprise) |
Assessment Dimensions
Classifier Models
| Dimension | Description |
|---|---|
| Noise Resilience | Stability under sensor noise and interference |
| Spatial Consistency | Robustness to spatial feature shifts |
| Universal Pattern Defense | Resistance to universal perturbation patterns |
| Feature Stability | Internal representation integrity |
| Confidence Calibration | Prediction reliability accuracy |
| Iterative Stress Tolerance | Defense against sustained pressure |
| Optimization Attack Defense | Resistance to optimized adversarial inputs |
| Deep Perturbation Resistance | Resilience against deep layer perturbations |
YOLO Detection Models
| Dimension | Description |
|---|---|
| Noise Resilience | Stability under sensor noise |
| Input Perturbation Defense | Resistance to subtle input modifications |
| Iterative Stress Tolerance | Defense against multi-step attacks |
| Detection Consistency | Reliable detection under varying conditions |
| Targeted Evasion Defense | Resistance to deliberate misclassification |
| Object Persistence | Maintains detections under perturbations |
| Multi-Object Stability | Accuracy in crowded scenes |
| Black-Box Resilience | Defense without model access |
| Query-Limited Defense | Resistance to low-query probing |
Tier Comparison
| Feature | Freelancer | Enterprise |
|---|---|---|
| Classifier Attacks | 5 | 8 |
| YOLO Attacks | 4 | 9 |
| Epsilon Values | 2 | 4 |
| Total Scenarios | ~10-20 | ~30-70 |
| LLM Testing | ❌ | ✅ |
| Epsilon Optimization | ❌ | ✅ |
Output Example
============================================================
RednBlue Security Preview — YOLO Detection
============================================================
Attacks run : 21
Successful hits: 0/21 (0%)
Robustness rate: 100%
Estimated Grade: GOLD
⚠️ This is a preview only
→ Visit: https://rednblue.io/checkout
→ Re-run with: rnb preview --model-type yolo --submit
Certification Grades
| Grade | Score | Meaning |
|---|---|---|
| 🥇 GOLD | ≥90% | Excellent robustness, deployment ready |
| 🥈 SILVER | ≥75% | Good robustness, minor improvements recommended |
| 🥉 BRONZE | ≥50% | Moderate robustness, improvements needed |
Architecture
┌─────────────────────────────────────────────────────────┐
│ Your Infrastructure │
│ ┌─────────┐ ┌─────────┐ ┌─────────────────────┐ │
│ │ Model │───▶│ CLI │───▶│ Encrypted Results │ │
│ └─────────┘ └─────────┘ └──────────┬──────────┘ │
└───────────────────────────────────────────┼─────────────┘
│ AES-256
▼
┌─────────────────────────┐
│ RednBlue Platform │
│ dashboard.rednblue.io │
└─────────────────────────┘
Links
- Platform: https://dashboard.rednblue.io
- Documentation: https://docs.rednblue.ai
- Website: https://rednblue.io
Authors
- Dr. Mahdi Deramgozin — Chief AI Officer
- Dr. Saeid Samizade — Chief Technology Officer
License
Proprietary — RednBlue SAS © 2026
Made in France 🇫🇷
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rednblue-2.4.1.tar.gz.
File metadata
- Download URL: rednblue-2.4.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7303b8e7dbd05f399bc74a670f24ff053a38ee591a53032367ec36b3094ced7f
|
|
| MD5 |
8b4923469ace55b4b5b8f0b238085521
|
|
| BLAKE2b-256 |
31d54db3bfb50d29f9c9607fb8e243c216f004d3cefafb89d3186d9b16d7b37c
|
File details
Details for the file rednblue-2.4.1-py3-none-any.whl.
File metadata
- Download URL: rednblue-2.4.1-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb43fc0587e124bf2f5c984897ea1ab690070ddc85da56fc8c3db4413567097c
|
|
| MD5 |
44e5b7486aae486c063d47bf36b9b2d6
|
|
| BLAKE2b-256 |
a17a56b35ceafe74b86d0c88256783bb3da313c78d0f4b2bc4ea6b2d290ebc03
|