Interactive Application Security Testing (IAST) runtime agent for Python
Project description
securescout-iast
Interactive Application Security Testing (IAST) runtime agent for Python web applications. Detects SQL injection vulnerabilities in real time by tracing untrusted request data as it flows into database queries during normal application traffic.
How it works
securescout-iast tags incoming request data (query parameters, headers, cookies, and JSON/form body) at the ASGI layer, then watches for that data appearing in raw SQL execute calls. If untrusted input reaches a database query without being safely parameterized, a finding is reported to your SecureScout dashboard — confirmed by actual runtime execution, not static guesswork.
Installation
pip install securescout-iast
Quick start (FastAPI / Starlette)
from fastapi import FastAPI
from securescout_iast import SecureScoutIastMiddleware, init
app = FastAPI()
init(
api_key="ssk_live_your_api_key",
project_id="your-project-id",
)
app.add_middleware(SecureScoutIastMiddleware)
Get your API key and project ID from Settings → API Keys and your project's Runtime (IAST) tab in the SecureScout dashboard.
Supported database drivers
psycopg2(sync PostgreSQL)asyncpg(async PostgreSQL, including async SQLAlchemy)
Drivers are detected automatically. If a driver isn't installed in your environment, that patch is silently skipped — no errors, no extra dependencies pulled in.
Detected vulnerability classes
- SQL Injection (CWE-89) — v1
Safety guarantees
init()never raises. Misconfiguration or network issues degrade to a silent no-op, never a crash.- Your request and database driver behavior are never modified — the agent only observes.
- Request bodies over 1MB are not buffered for taint analysis (still passed through to your app unmodified).
- No third-party dependencies. Pure standard library.
Privacy
This agent inspects request data and SQL query text locally, within your application process, to detect taint matches. Only confirmed findings (rule type, query snippet, stack trace, endpoint) are sent to SecureScout — never raw request bodies or full traffic.
License
MIT
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 securescout_iast-1.0.1.tar.gz.
File metadata
- Download URL: securescout_iast-1.0.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38de0c497b722cadb5ae900eb09aa7082497dbbbe9748f1d48b11877205ff7cd
|
|
| MD5 |
de10669dcbd90e4e6469b8b513f72185
|
|
| BLAKE2b-256 |
0adf0b96fef071d9af92d30ab9102b8cf628e80a63c79076cbeb4d23ddb2d46f
|
File details
Details for the file securescout_iast-1.0.1-py3-none-any.whl.
File metadata
- Download URL: securescout_iast-1.0.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1241087e08d35e5c21c4e214c0130e3052438d3c239f560636a9fa48b9c1d470
|
|
| MD5 |
3b20164f0f854405bf4d65191cdb873d
|
|
| BLAKE2b-256 |
0cf802638e064d23d2c0b570d92d349278fd9d53973b84b875930898f08df342
|