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
DUP — Research framework for detecting and removing backdoors in language models, combining feature-based anomaly detection with LoRA-based unlearning across BERT, BART, LLaMA, and Qwen. | Kitploit
Tools/GitHubGitHub/manhu2025/dup
Malware AnalysisMachine LearningPapers & ResearchAI SecurityAnomaly DetectionAdversarial Attack
GitHubmanhu2025/dup

DUP

Research framework for detecting and removing backdoors in language models, combining feature-based anomaly detection with LoRA-based unlearning across BERT, BART, LLaMA, and Qwen.

View Repository
52491 year agoNot yet reviewed
Share

DUP: Detection-guided Unlearning for Backdoor Purification in Language Models

This is the official repository for the paper:

DUP: Detection-guided Unlearning for Backdoor Purification in Language Models

DUP introduces a unified framework that combines feature-based anomaly detection with parameter-efficient unlearning to remove backdoors from pre-trained language models. It is effective across both traditional PLMs and modern LLMs, including BERT, BART, LLaMA 3B, and Qwen 3B.


Dependencies

The DUP framework is implemented and tested under the following environment:

Python: 3.10  
OS: Ubuntu 22.04  
CUDA: 11.8  
PyTorch: 2.1.2  
Accelerate: 1.0.1  
PEFT: 0.12.0  
language-tool-python: 2.8.1  

Preparation

Models

Download the following models and place them under the /victim_models directory:

  • bert-base-uncased
  • bart-base
  • LLaMA-3.2-3B-Instruct
  • Qwen2.5-3B

Poisoned Data

The poisoned datasets are already prepared and located in /poison_data


Attacks

To launch backdoor attacks:

python demo_attack.py

Supported attacks:

  • BadNets
  • AddSent
  • StyleBackdoor
  • SynBackdoor
  • ...

Defense: DUP Framework

Detection Module

This module identifies poisoned inputs using Mahalanobis Distance and Spectral Signature scores with adaptive layer selection.

python demo_detection.py

Purification Module

This module removes backdoors using LoRA-based distillation guided by detection:

python demo_unlearning.py

Repository Structure

.
├── victim_models/               # Pretrained model weights
├── poison_data/                 # poisoned datasets
├── openbackdoor/                # Core implementation of backdoor attacks and defenses
├── demo_attack.py               # Backdoor attack scripts
├── demo_detection.py            # Detection procedure
├── demo_unlearning.py           # Unlearning procedure
└── README.md                    # Project documentation
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    961
  • 2

    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.

    914
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    713
  • 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.

    471
  • 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.

    417
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    391

Explore all tools

Browse our collection of tools

View all tools →