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.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
WAInjectBench β€” Benchmarking prompt injection detections for web agents. | Kitploit
Tools/GitHubGitHub/norrrrrrr-lyn/wainjectbench
Vulnerability AnalysisWeb SecurityMachine LearningPapers & ResearchLearning & EducationAI SecurityAdversarial Attack
GitHubnorrrrrrr-lyn/wainjectbench

WAInjectBench

Benchmarking prompt injection detections for web agents.

View Repository
235944 months agoReviewed by Kitploit

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    953
  • 2

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    742
  • 3

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    654
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    494
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    448
  • 6

    mcp-reverse

    1llu50ry/mcp-reverse

    MCP server exposing 180+ reverse-engineering tools that aggregate Ghidra, IDA, x64dbg, Frida and 56 other backends with native binary parsers and a 4,200-skill knowledge base.

    339

Explore all tools

Browse our collection of tools

View all tools β†’
Share

WAInjectBench

WAInjectBench is a comprehensive benchmark for prompt injection detection in web agents.
It covers 6 types of attacks, across two modalities: text and image.


πŸ“‚ Dataset Structure

  • data/
    • text/
      • benign/ β†’ 4 categories, stored as JSONL files
      • malicious/ β†’ 8 attack types, stored as JSONL files
    • image/
      • benign/ β†’ 2 categories, stored in subfolders
      • malicious/ β†’ 7 attack types, stored in subfolders

βš™οΈ Installation

Clone the repo and create the environment:

git clone https://github.com/Norrrrrrr-lyn/WAInjectBench.git
cd WAInjectBench
conda env create -f environment.yml
conda activate wainjectbench

πŸš€ Evaluation

WAInjectBench supports two evaluation pipelines: text-based detection and image-based detection.

πŸ”Ή Text-based Detection

python main_text.py \
  --data_dir [path to text dataset] \
  --detector [detector name] \
  --result_dir [output path] \
  --gpu [gpu id]

Available detectors: ["kad", "promptarmor", "embedding-t", "promptguard", "datasentinel", "ensemble"]

PromptArmor β†’ requires OPENAI_API_KEY as environment variable.

DataSentinel β†’

git clone https://github.com/liu00222/Open-Prompt-Injection.git

Download the pretrained model into: WAInjectBench/Open-Prompt-Injection/DataSentinel_Models Set the directory and model path in detector_text/datasentinel.py.

πŸ”Ή Image-based Detection

python main_image.py \
  --data_dir [path to image dataset] \
  --detector [detector name] \
  --result_dir [output path] \
  --gpu [gpu id]

Available detectors: ["gpt-4o-prompt", "llava-1.5-7b-prompt", "jailguard", "embedding-i", "llava-1.5-7b-ft", "ensemble"]

GPT-4o-Prompt β†’ requires OPENAI_API_KEY as environment variable.

JailGuard β†’

git clone https://github.com/shiningrain/JailGuard.git

Follow its README to configure MiniGPT4.

LLaVA-1.5-7B-FT β†’ requires downloading our finetuned model and setting its path in detector_image/llava.py.

πŸ”Ή In-domain Generalization

We also provide in-domain trained versions of the Embedding-T and Embedding-I models, available in model/embedding-t/in-domain and model/embedding-i/in-domain. To use them, follow the same evaluation procedure as in the main experiments, but update the model path in detector_text/embedding-t.py and detector_image/embedding-i.py.

πŸ‹οΈ Training

We provide code for training embedding-based binary classifiers for both text and image.

Text embedding classifier

python train/embedding-t.py \
  --input_dir [dir with training text jsonl files] \
  --output_dir [model output path]

JSONL format:

{"text": "example", "label": 1}   # 1 for malicious, 0 for benign

Image embedding classifier

python train/embedding-i.py \
  --input_dir [dir with training image jsonl files] \
  --output_dir [model output path]

JSONL format:

{"path": "path/to/image.png", "label": 1}

Finetuning LLaVA-1.5-7B

python train.py \
  --train_jsonl train.jsonl \
  --val_jsonl val.jsonl \
  --use_lora \
  --amp_dtype bf16 \
  --device_mode single \
  --gpu_id 0

The JSONL files should contain image paths and labels (1 = malicious, 0 = benign). Experiments in our paper use the default hyperparameters.

Download Tool