Skip to content

About

Python-based AI security project for detecting and defending against prompt injection through layered detection, provenance tracking, output validation, and secure tool gating.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

LIA-Sec Injection Guard

Overview

LIA-Sec Injection Guard is a Python-based security module designed to detect and defend against prompt injection attacks.

It implements layered input screening, security checks, and detection mechanisms to help protect AI applications from malicious or manipulated instructions.

Features

  • Prompt injection detection
  • Input normalization
  • Layered security screening
  • Risk scoring and verdict classification
  • Security findings and audit logging

Project Structure

LIA-Sec-Injection-Guard/
├── injection_guard_v2.py
├── main.py
├── requirements.txt
├── README.md
└── LICENSE

Requirements

  • Python 3.10 or later
  • No external dependencies required if using Python standard-library modules only.

Installation

Clone the repository:

git clone https://github.com/Lio48nyc/LIA-Sec-Injection-Guard.git

Navigate into the project directory:

cd LIA-Sec-Injection-Guard

Usage

Run the interactive demonstration:

python main.py

Enter text to screen for potential prompt injection indicators.

Type exit to close the application.

Security Notice

Detection mechanisms are defensive screening layers, not a complete guarantee against prompt injection.

Production deployments should also implement least-privilege tool access, provenance tracking, egress controls, and human approval for sensitive actions.

License

See the LICENSE file for usage and distribution terms.

About

Python-based AI security project for detecting and defending against prompt injection through layered detection, provenance tracking, output validation, and secure tool gating.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages