Skip to main content

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.

Disabling & Uninstallation

To completely disable or remove the SecureScout IAST agent:

  1. Remove Middleware: Remove the SecureScoutIastMiddleware (ASGI) or SecureScoutWsgiMiddleware (WSGI) wrapper from your application setup.
  2. Remove Initialization: Delete or comment out the init(...) call in your application entrypoint.
  3. Uninstall the Package:
   pip uninstall securescout-iast

Temporary Disable (Environment-driven)

To disable the agent without modifying imports, wrap init() with an environment variable check:

import os
from securescout_iast import init

if os.environ.get("SECURESCOUT_IAST_DISABLED") != "true":
    init(
        api_key="your-api-key",
        project_id="your-project-id"
    )

Set SECURESCOUT_IAST_DISABLED=true in your environment to disable the agent at runtime with zero code changes.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

securescout_iast-1.0.7.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

securescout_iast-1.0.7-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file securescout_iast-1.0.7.tar.gz.

File metadata

  • Download URL: securescout_iast-1.0.7.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for securescout_iast-1.0.7.tar.gz
Algorithm Hash digest
SHA256 a5d5336877015261c79eef6dbd08cbcd7880558e26a1722939671a6fbe3779e6
MD5 e7e653b9c64e75dd6541040bd51ad58d
BLAKE2b-256 a30f1af3b9c583e23a82ad49a619a67e488d067260265dbfdee55b954ef35cc1

See more details on using hashes here.

File details

Details for the file securescout_iast-1.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for securescout_iast-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 28c1173f3f026583fd9d05feb689c70619e52d1560f817ee0738fb5211e0417d
MD5 c70ebcf67754cde335e0c8ce04a94145
BLAKE2b-256 02df83a25249abebb14e70ec973d3e1abc308d04dc5c336ca8f582a0a4ae4cba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page