Skip to content
SPECIFICTION
Get listed

Flawfinder vs gosec

Flawfinder

dwheeler.com

gosec

github.com

Side by side

FigureFlawfindergosec
Price fromFreeFree
Free planYesYes
Free trial——
Open source—Yes
WindowsYes—
macOSYesYes
LinuxYesYes
API—Yes
Self-hostedYesYes
Plans published11
Spec score · Static Application Security Testing Sast8.1 (#6)8.6 (#3)
Spec score · Static Application Security Testing Software8.1 (#8)8.6 (#4)
Spec score · SAST Tools8.1 (#9)8.6 (#4)
Spec score · Static Analysis Tools8.0 (#14)8.6 (#6)
LicenseFlawfinder is released under GNU General Public License version 2 or later, with SPDX expression GPL-2.0+.The repository states that gosec is licensed under Apache License 2.0.
PurposeFlawfinder examines C/C++ source code and reports possible security weaknesses sorted by risk level.gosec inspects Go source code for security problems by scanning its AST and SSA code representation.

Plans

Flawfinder

  • FlawfinderFree

Flawfinder pricing →

gosec

  • gosecFree

gosec pricing →

In their own words

Flawfinder

Flawfinder is a free tool for finding possible security weaknesses in C and C++ source code. It compares source text with a built-in database of functions associated with security problems, generally disregarding comments and strings except for Flawfinder directives. Findings are ordered by risk, which depends on the function and its parameter values; the tool may reduce some false positives when it identifies a construct as not risky. Reports can be generated as text, HTML, CSV, or SARIF. The --patch option narrows findings to changed lines in a unified diff, with a one-line margin. Installation is documented through pip, source downloads, and distribution packages, and the tool requires Python 2.7 or Python 3. The project says it works on Unix-like systems, including GNU/Linux, and on Windows with Cygwin; direct Windows use has also been reported to work. Flawfinder is released under GPL-2.0+. It does not perform control-flow or data-flow analysis, so its output is an aid to review rather than a substitute for security knowledge or human judgment.

Visit dwheeler.com

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