Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CLIPGuard — Adversarial image perturbation tool that uses SAM segmentation and CLIP models to evade AI-based scam image classifiers for security research. | Kitploit
Tools/GitHubGitHub/wsu-cyber-security-lab-ai/clipguard
Defensive ToolsMachine LearningPapers & ResearchAI SecurityAdversarial Attack
GitHubwsu-cyber-security-lab-ai/clipguard

CLIPGuard

Adversarial image perturbation tool that uses SAM segmentation and CLIP models to evade AI-based scam image classifiers for security research.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
3 months agoNot yet reviewed

CLIPGuard


Installation

1. Create Virtual Environment (Recommended)

root@kitploit:~
python -m venv clipguard_env
source clipguard_env/bin/activate

2. Install PyTorch (CUDA Example)

root@kitploit:~
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121

For CPU:

root@kitploit:~
pip install torch torchvision

3. Install Dependencies

root@kitploit:~
pip install -r requirements.txt

Usage

root@kitploit:~
python CLIPGuard.py   --input SCAM_Image_path   --output ./goodclip_out   --sam_ckpt sam_vit_h.pth path   --clip_model ViT-B-16 --clip_pretrained openai   --grid 8x8  
--perturb mask

Example with custom classes:

root@kitploit:~
python CLIPGuard.py     --input image.jpg     --output results/     --classes "church,tench,garbage truck"     --templates "a photo of a {}"

Project Structure

root@kitploit:~
CLIPGuard/
│
├── CLIPGuard.py
├── requirements.txt
├── README.md
└── examples/

Requirements

See requirements.txt.

Main dependencies:

  • torch
  • open_clip_torch
  • opencv-python
  • numpy
  • pillow

Optional:

  • segment-anything
  • diffusers

Download Tool