flawfinder

examines source code and looks for security weaknesses

Install

All systems
curl cmd.cat/flawfinder.sh
Debian Debian
apt-get install flawfinder
Ubuntu
apt-get install flawfinder
Arch Arch Linux
pacman -S flawfinder
image/svg+xml Kali Linux
apt-get install flawfinder
Fedora
dnf install flawfinder
Windows (WSL2)
sudo apt-get update sudo apt-get install flawfinder
OS X
brew install flawfinder
Raspbian
apt-get install flawfinder

flawfinder

examines source code and looks for security weaknesses

Flawfinder searches through C/C++ source code looking for potential security flaws and produces a report describing the potential flaws found in source code, ranking them by likely severity. Like RATS, Flawfinder reports are not a direct indication of a vulnerability, but provide a reasonable starting point for performing manual security audits in source code. Flawfinder can also generate differential reports by pointing it to a patch (diff) file describing the code changes. This way it can be used to determine if the potential flaws found in code have increased or decreased after a commit to a source code management system like CVS or Subversion.