LogoAISecKit
  • Search
  • Collection
  • Category
  • Tag
  • Blog
  • Pricing
  • Submit
LogoAISecKit

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates

LogoAISecKit

Curated directory of 1700+ AI tools, models, frameworks, MCP servers, and cybersecurity resources

GitHub
Product
  • Search
  • Collection
  • Category
  • Tag
Resources
  • Blog
  • Pricing
  • Submit
Company
  • About Us
  • Privacy Policy
  • Terms of Service
  • Sitemap
Copyright © 2026 All Rights Reserved.
Sponsored Resources
  1. Home
  2. Category
  3. SecAlign
icon of SecAlign

SecAlign

Repo for the research paper "SecAlign: Defending Against Prompt Injection with Preference Optimization"

Visit Website
image for SecAlign
Visit Website

Introduction

SecAlign: Defending Against Prompt Injection with Preference Optimization

SecAlign is a defensive framework designed to enhance the robustness of large language models (LLMs) against prompt injection attacks. The framework leverages preference optimization techniques, creating a preference dataset that includes both prompt-injected (insecure) inputs and secure outputs. By performing preference optimization on this dataset, SecAlign teaches the LLM to prefer secure outputs, significantly reducing the success rates of prompt injections.

Key Features:
  • Preference Optimization: Utilizes a novel approach to preference learning.
  • Robust Against Attacks: Reduces the success rates of various sophisticated prompt injections to nearly 0%.
  • Utility Preservation: Maintains usability akin to pre-trained models while enhancing security.
Benefits:
  • Increased Security: Protects LLMs from potential manipulations and adversarial prompts.
  • Generalization Capability: Effectively mitigates both known and emerging threats.
  • Practical Implementation: Adaptable for various LLM frameworks and applications.
Highlights:
  • SFT (Supervised Fine-Tuning) methodologies are integrated for enhanced model training.
  • Extensive documentation and scripts for easy setup and deployment.
  • Community support through GitHub and collaborative development.
Back

Information

  • Publisher
    AISecKit
  • Websitegithub.com
  • Published date2025/04/27

Categories

  • AI Research Papers
  • Model Robustness Enhancement
  • Prompt Injection Defense

Tags

  • Prompt Injection
  • Model Robustness
  • Security Auditing
  • Adversarial Examples
  • LLM Security

More Products

image of agentic-design-patterns-cn
AI Application PlatformsAI Research PapersAI Development Frameworks
Visit Website
icon of agentic-design-patterns-cn

agentic-design-patterns-cn

A bilingual Chinese-English translation of 'Agentic Design Patterns' by Antonio Gulli, focusing on intelligent systems design.

AI ReasoningOpen SourceAI EducationAI StandardsAI Communities+1
image of TradingAgents-CN
AI Application PlatformsAI Research PapersAI Development Frameworks
Visit Website
icon of TradingAgents-CN

TradingAgents-CN

基于多智能体LLM的中文金融交易框架,支持A股/港股/美股分析。

Market AnalysisOpen SourceLLMAI CommunitiesGenerative AI+1
P
Prompt Injection Defense
Visit Website
icon of prmptinj

prmptinj

Curated + custom prompt injections for AI models, focusing on security and exploit development.

AI EthicsPrompt InjectionComplianceExploit DevelopmentVulnerability Disclosure