Skip to content
Mallace for python teams

Python security scanning that fixes what it finds

Mallace’s Python rules follow caller-controlled data into the calls that cause the most damage, and every finding is proved with a real unittest before anything changes.

SQL injection

Queries built with f-strings, %, .format() or concatenation, fixed with your driver’s parameter placeholders.

Command injection

os.system, os.popen and subprocess with shell=True, fixed with argument lists.

Code injection

User input reaching eval or exec.

Unsafe deserialization

yaml.load without a safe loader, and pickle loading attacker-controlled data.

Cross-site scripting and SSRF

Request data returned as HTML unescaped from Flask or Django views, or a URL from the request fetched with requests, httpx or urlopen.

Tests that fit your project

Regression tests use unittest and unittest.mock, and can use the packages your project already depends on.

A good fit if

Django, Flask, FastAPI, scripts and services in Python 3, on GitHub.

Not a fit if

You need type-checking or linting. Pair Mallace with tools built for those.

How it works: product overview · Questions: FAQ · Cost: pricing

Scan your repository free.