Simple Python utility to detect malicious GET input
Project description
stx_security_filter
stx_security_filter is a lightweight and easy-to-use Python library that detects malicious input patterns such as SQL Injection, XSS, and other attack vectors. It's ideal for validating GET/POST parameters in Django, Flask, FastAPI, or any Python-based web application.
🚀 Features
- Detects common SQL injection attempts
- Flags potential XSS and JavaScript payloads
- Blocks path traversal and encoded exploits
- Can be integrated directly into views, forms, or APIs
- Lightweight and dependency-free
📦 Installation
pip install -e .
Usage
from stx_security_filter import is_safe_input
user_input = request.GET.get("search")
if not is_safe_input(user_input):
return HttpResponseForbidden("Malicious input detected.")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stx_security_filter-0.1.2.tar.gz.
File metadata
- Download URL: stx_security_filter-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c6a1751155a3b431ef7f8a56eeb6008d1ba2cc8c5909295b73e6c421b5cb4c5
|
|
| MD5 |
eb622980dadebb684f755f4265051acd
|
|
| BLAKE2b-256 |
3f49d4a9805ebc79e1290d2e51b89c9ec8170ed067031160430e2f170f94d7fe
|
File details
Details for the file stx_security_filter-0.1.2-py3-none-any.whl.
File metadata
- Download URL: stx_security_filter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c613e6bcc1e6a84d846cc1e6e3f0e45577c9e549a3c6e5a414d46dd7b7e5e200
|
|
| MD5 |
a832de4c83ae33c62294e1d43f2b0ff3
|
|
| BLAKE2b-256 |
bb79b94cdb5e1da3a23a408d28c8277ead9b846a37a9b723db84318d78ee6fbc
|