SQL injection
Queries built with f-strings, %, .format() or concatenation, fixed with your driver’s parameter placeholders.
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.
Queries built with f-strings, %, .format() or concatenation, fixed with your driver’s parameter placeholders.
os.system, os.popen and subprocess with shell=True, fixed with argument lists.
User input reaching eval or exec.
yaml.load without a safe loader, and pickle loading attacker-controlled data.
Request data returned as HTML unescaped from Flask or Django views, or a URL from the request fetched with requests, httpx or urlopen.
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