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.
- Prompt injection detection
- Input normalization
- Layered security screening
- Risk scoring and verdict classification
- Security findings and audit logging
LIA-Sec-Injection-Guard/
├── injection_guard_v2.py
├── main.py
├── requirements.txt
├── README.md
└── LICENSE
- Python 3.10 or later
- No external dependencies required if using Python standard-library modules only.
Clone the repository:
git clone https://github.com/Lio48nyc/LIA-Sec-Injection-Guard.gitNavigate into the project directory:
cd LIA-Sec-Injection-GuardRun the interactive demonstration:
python main.pyEnter text to screen for potential prompt injection indicators.
Type exit to close the application.
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.
See the LICENSE file for usage and distribution terms.