Pysa
pyre-check.org
- Free plan
- Windows
- macOS
- Linux
- Browser extension
- Self-hosted
What Pysa is
Pysa is a Python static analysis tool that uses taint analysis to flag potential security issues. It follows data from configured sources toward dangerous sinks, such as user-controlled request data reaching an `eval` call. Teams can define sources, sinks, features, and rules in `taint.config`, then annotate code with `.pysa` model files. Built-in models cover Python’s built-in and common libraries, and sanitizer models describe when data should lose taint, including through function parameters or return values.
Pysa analyzes the target repository and directories listed in `search_path`; it does not inspect dependency source outside those locations. When a function’s source is unavailable, Pysa assumes its return value retains taint, which can create false positives. The tool requires Python 3.9 or later and relies on type information from Pyrefly. It can run in CI through a GitHub Action, with results shown in GitHub’s Security code scanning UI. The documented results workflow also uses SAPP to display and filter findings in a local web UI. Pysa is free, open-source software under the MIT license.
Who it suits
Pysa suits Python teams that want to trace potentially unsafe data flows in their code and integrate findings into CI. It is aimed at users able to configure taint models and provide the type information it requires.
Good to know, and what to watch
- Tracks data flows from sources to dangerous sinks
- Includes models for built-in and common libraries
- Supports sanitizer models for parameters and return values
- GitHub Action can show findings in Security code scanning
- Free and MIT-licensed
- Does not inspect dependencies outside configured search paths
- Unavailable function sources can lead to false positives
- May freeze when analysis runs without enough memory
- Requires Python 3.9 or later and Pyrefly type information
Plans
Every plan and priceFree (MIT-licensed open-source software)
Open source
Getting started
- Open the Pysa website
- Use Python 3.9 or later in a virtual environment
- Install Pysa with pip install pyre-check
- Configure sources, sinks, features, and rules in taint.config
- Add .pysa model files and set the analysis search_path
- Connect the VSCode extension to a running Pyre server
- Use SAPP or the GitHub Action to review results
Limits to check
Pysa only analyzes the repository and directories configured in search_path, not dependency source outside those paths. When source is unavailable, it may assume returned data keeps its taint, and analysis may freeze if the machine lacks enough memory.
The Club's review
Pysa is a Python security analyzer for teams that want to trace untrusted data through their own code. It suits developers comfortable configuring static analysis and running it in a self-hosted workflow. Its appeal is precise, configurable taint modeling; its boundaries and resource demands make it a less straightforward fit for teams expecting dependency-wide coverage or minimal tuning.
Overview
Pysa follows data from configured sources to dangerous sinks, such as request input reaching an eval call. That makes it useful for reviewing how data moves through an application, rather than only flagging isolated code patterns. It can analyze codebases with millions of lines, but that scale comes with a practical caveat: projects of similar size may freeze if the machine lacks enough memory.
Analysis covers the target repository and directories added to search_path. Source code in dependencies outside those paths remains unseen, so teams should not treat results as a view of every library involved in a flow. Pysa requires Python 3.9 or later and currently relies on type information from Pyrefly.
Key features
Models that reflect application behavior
Teams configure sources, sinks, features, and rules in taint.config, then annotate code with .pysa model files. Prewritten models cover built-in and common Python libraries, offering a starting point while leaving application-specific behavior for teams to define. Sanitizer models can mark parameters or return values as removing taint, which helps describe where a flow should stop.
This flexibility is useful when a team knows which inputs, operations, and sanitizers matter to its application. It also means the quality of findings depends in part on the models and rules the team maintains.
Local results and CI
The quickstart installs Pysa with pip install pyre-check in a Python virtual environment. Pyre supports the Language Server Protocol, and its VSCode extension connects to a running server. For reviewing findings, the documented workflow sends results to SAPP, whose local web interface can display and filter issues. A GitHub Action can run Pysa in CI and surface results in GitHub's Security code scanning UI.
The Action's default SAPP filters favor higher-signal findings but may trade false positives for false negatives. Teams should account for that choice when interpreting a clean scan: fewer noisy alerts can also mean some findings are filtered out.
Pricing
Pysa is free and open source under the MIT license. The Free plan costs nothing and provides Python static analysis installed with pip. There is no paid tier or seat allowance to weigh against the core tool; teams supply the self-hosted environment and enough memory for their analysis workload.
Platforms
Pysa is available for Linux, macOS, and Windows, as well as through an extension and self-hosted deployment. CI/CD support makes it possible to run analysis as part of a GitHub workflow, while the SAPP interface provides a local route for reviewing results.
Who it's for
Pysa is a strong fit for Python teams that want to define security-relevant data flows, maintain their own models, and integrate analysis into CI. It is less suitable for teams that need dependency source analyzed without adding it to configured paths, or that lack the memory headroom to run analysis reliably. Teams should also be prepared to investigate possible false positives when Pysa cannot access a function's source: in that case it assumes the return value retains the input taint.
The Pyre repository was archived on June 26, 2026, and Pysa moved to its own repository. That distinction matters for teams assessing the project: the archived repository is not the current home of Pysa.
Pros and cons
Pros
- Configurable flow analysis: Sources, sinks, rules, and sanitizers can be modeled to match an application's security concerns.
- Useful starting models: Built-in and common Python libraries have prewritten coverage.
- Fits development workflows: LSP and VSCode support, SAPP results, and a GitHub Action provide editor, local-review, and CI routes.
- No software fee: The MIT-licensed tool is available at no cost.
Cons
- Bounded visibility: Dependency code outside the repository and configured search paths is not analyzed.
- Potential false positives: Inaccessible function sources are handled by assuming returned values retain taint.
- Memory can constrain runs: Large projects may freeze when the machine lacks sufficient memory.
- Filtering can hide findings: Default Action filters favor higher signal and may allow false negatives.
Alternatives
Compare static application security testing software if you want to survey tools beyond Python taint analysis.
- Skylos is worth considering if a free local CLI scan or a cloud workflow with one project, 10 stored scans, and seven-day history better suits your needs.
- Puma Scan offers a free open-source Community plan and a $299 a year End User plan for readers considering those licensing options.
- Snyk Open Source may fit teams looking for software composition analysis: its free monthly plan covers five projects and access to Snyk Open Source.
- Horusec is another free, open-source option, with CLI and platform components.
- MobSF offers a free GPL v3 Community Edition for readers considering that open-source option.
- Semgrep Code has a free edition for up to 10 repositories and a maximum of 10 contributors, which may suit teams seeking those limits and included code and supply-chain capabilities.
- Microsoft DevSkim is a free MIT-licensed library, CLI, and set of IDE extensions.
- Veracode DAST is an alternative for web applications and APIs, with custom pricing and a free trial.
Verdict
Choose Pysa if your team works in Python, can maintain taint models, and wants free analysis that can run locally and in CI. Its strongest reason to choose is the ability to describe application-specific source-to-sink flows; look elsewhere if dependency visibility, lower memory demands, or fewer tuning-related uncertainties matter more.
The verdict
Pysa offers configurable taint analysis with CI and local results workflows. Its analysis boundaries, memory needs, and assumptions about inaccessible function sources are important to account for.
Questions people ask
Is Pysa free?
Yes. The listed plan is Free at no cost, and Pysa is open source under the MIT license.
Which platforms does Pysa support?
Its listed platforms are extension, Linux, macOS, self-hosted, and Windows.
How is Pysa installed?
The quickstart installs it with pip install pyre-check in a Python virtual environment.
Can Pysa run in CI?
Yes. A GitHub Action can run Pysa in CI and show results in GitHub’s Security code scanning UI.
How are findings reviewed?
The documented workflow uses SAPP to ingest Pysa results into a local web interface for viewing and filtering issues.
What Python version is required?
Pysa requires Python 3.9 or later and currently relies on type information from Pyrefly.
What the maker publishes
- Analysis limitation
- Pysa analyzes code in the repository and configured search paths, but does not see dependency source code outside those paths. source
- Analysis scope
- Pysa analyzes code in the target repository and directories listed in the configuration search_path; it does not see dependency source code otherwise. source
- Built-in coverage
- Pysa includes prewritten models and rules for built-in and common Python libraries. source
- Built-in coverage
- Pysa includes pre-written models and rules for built-in and common Python libraries. source
- CI integration
- A GitHub Action can run Pysa in CI and show results in GitHub's Security code scanning UI. source
- Codebase scale
- The Pysa repository says it can analyze codebases with millions of lines of code. source
- Data flow analysis
- Pysa tracks data from sources to dangerous sinks, such as user-controlled request data reaching an eval call. source
- Editor integration
- Pyre supports the Language Server Protocol and provides a VSCode extension that connects to a running server. source
- Filtering trade-off
- The Pysa Action documentation says its default SAPP filters aim for higher-signal results and may trade false positives for false negatives. source
- Installation
- The quickstart installs Pysa with pip install pyre-check in a Python virtual environment. source
- Installation
- Pysa is currently distributed as part of the pyre-check package and can be installed with pip install pyre-check. source
- Known limitation
- When Pysa encounters a function whose source it cannot access, it assumes the function's return value has the same taint, which can cause false positives. source
- Known trade-off
- The documentation says Pysa may produce false positives when it lacks a function's source and assumes the return value retains taint. source
- License
- The Pysa repository states that Pysa is licensed under the MIT license. source
- License
- Pysa is licensed under the MIT license. source
- Maintenance status
- The Pyre repository says it was archived on June 26, 2026, and that Pysa moved to its own repository. source
- Models and rules
- Users configure sources, sinks, features, and rules in taint.config and annotate code with .pysa model files. source
- Models and rules
- Users configure sources, sinks, features, and rules in taint.config and model files with the .pysa extension. source
- Platforms
- The installation page recommends its PyPI binary distribution for macOS and Linux; it says Windows use via WSL has worked but is not officially supported. source
- Purpose
- Pysa is a Python static analysis tool that uses taint analysis to identify potential security issues. source
- Purpose
- Pysa is a security-focused static analysis tool for Python that tracks data flows to find security and privacy issues. source
- Requirements
- Pysa requires Python 3.9 or later and currently relies on type information from Pyrefly. source
- Resource needs
- The quickstart says Pysa may freeze during analysis on projects of similar size when the machine does not have enough memory. source
- Results interface
- The documented quickstart uses SAPP to ingest Pysa results and view and filter issues in a local web UI. source
Checked against the maker's pages on 8 Oct 2026.