Skip to content
SPECIFICTION
Get listed

gosec vs Pysa

gosec

github.com

Pysa

pyre-check.org

Side by side

FiguregosecPysa
Price fromFreeFree
Free planYesYes
Free trial——
Open sourceYes—
Windows—Yes
macOSYesYes
LinuxYesYes
APIYes—
Self-hostedYesYes
Plans published11
Spec score · Static Application Security Testing Software8.6 (#4)8.3 (#6)
CI integrationThe project supplies an official GitHub Action for scanning repositories in workflows.A GitHub Action can run Pysa in CI and show results in GitHub's Security code scanning UI.
LicenseThe repository states that gosec is licensed under Apache License 2.0.Pysa is licensed under the MIT license.
Purposegosec inspects Go source code for security problems by scanning its AST and SSA code representation.Pysa is a security-focused static analysis tool for Python that tracks data flows to find security and privacy issues.
RequirementsThe local installation instructions require Go 1.25 or newer.Pysa requires Python 3.9 or later and currently relies on type information from Pyrefly.
Taint analysisTaint rules trace user-controlled data toward SQL, command, path, SSRF, XSS, log, SMTP, template and deserialization sinks.Pysa tracks data from sources to dangerous sinks, such as user-controlled input reaching an eval call.

Plans

gosec

  • gosecFree

gosec pricing →

Pysa

  • Free (MIT-licensed open-source software)Free

Pysa pricing →

In their own words

gosec

gosec is a free Go source-code security checker that analyzes abstract syntax trees and static single assignment representations. It applies pattern rules, SSA analyzers, and taint analysis to detect issues including injection, path traversal, SSRF, unsafe deserialization, cryptography and TLS problems, blocklisted imports, and Go-specific risks. Findings map to Common Weakness Enumeration entries. Users can select or exclude rules, define path-based exclusions, and change settings such as audit mode. Reports are available as text, JSON, YAML, CSV, JUnit XML, HTML, SonarQube, golint, and SARIF. The project documents GitHub Actions and SARIF uploads to GitHub code scanning; its goanalysis package supports tools such as Bazel nogo. Local installation requires Go 1.25 or newer, with dependencies loaded through Go modules. An optional AI feature suggests fixes through Atlas Cloud, Gemini, Claude, OpenAI, or custom OpenAI-compatible APIs. Automated detection can produce false positives, which annotations can suppress. It is licensed under Apache License 2.0.

Visit github.com

Pysa

Pysa is a free, open-source Python static analysis tool that uses taint analysis to identify potential security issues. It follows data from configured sources toward dangerous sinks, such as user-controlled request data reaching an eval call. Users configure sources, sinks, features and rules in taint.config, and annotate code with .pysa model files; built-in and common Python libraries have prewritten models and rules. Sanitizer models describe data that should lose taint, including function parameters and return values. Pysa analyzes the target repository and directories in the configured search_path, but not dependency source outside that scope. When it cannot access a function’s source, it assumes the return value retains taint, which can lead to false positives. Analysis may freeze on similarly sized projects if the machine lacks enough memory. The quickstart installs it with pip install pyre-check in a Python virtual environment. Pyre supports the Language Server Protocol, and a VSCode extension connects to a running server. SAPP can ingest results for viewing and filtering in a local web UI; a GitHub Action can run Pysa in CI and show findings in GitHub’s Security code scanning UI. Pysa requires Python 3.9 or later and relies on type information from Pyrefly. The project says it can analyze codebases with millions of lines. Its repository is MIT-licensed; the Pyre repository was archived on June 26, 2026, and says Pysa moved to its own repository.

Visit pyre-check.org