macOS
brew install ratslocal Homebrew formula metadata
sudo port install ratsMacPorts ports tree · security/rats/Portfile · source: api.github.com
brew
Rough auditing tool for security. Version 2.4 via Homebrew; verified from local package data. Also installable with dnf: sudo dnf install rats.
install
brew install ratslocal Homebrew formula metadata
sudo port install ratsMacPorts ports tree · security/rats/Portfile · source: api.github.com
sudo dnf install ratsFedora Rawhide package metadata · rats · source: dl.fedoraproject.org
overview
Rough auditing tool for security
history
RATS, the Rough Auditing Tool for Security, is a command-line static analysis scanner for finding common security-sensitive programming patterns in source code.
The official README says RATS was developed, maintained, and distributed by Secure Software, Inc. The 2.4 source archive describes it as a scanner for C, C++, Perl, PHP, Python, and Ruby source that flags issues such as buffer overflows and TOCTOU race conditions.
RATS circulated as a small Unix security-auditing utility through source archives and package managers. Homebrew, Debian-derived manpage packaging, Fedora, MacPorts, and other Unix package collections carried it as a lightweight source-code auditing tool.
Users run rats against files or directories and can select vulnerability databases with -d, force a language with -l, choose warning levels, recurse through directories, and emit text, XML, or HTML reports.
Package maintainers care about RATS because it is an old-style security CLI: small C code, autoconf build, XML vulnerability databases, and a package surface that exposes static-analysis behavior without a large framework.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
rats | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://security.web.cern.ch/security/recommendations/en/codetools/rats.shtml
install metadata
| Package key | brew:rats |
|---|---|
| Version | 2.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/rats |
| Homepage | https://security.web.cern.ch/security/recommendations/en/codetools/rats.shtml |
| Repository | https://code.google.com/archive/p/rough-auditing-tool-for-security/source/default/source |
| Upstream docs | https://security.web.cern.ch/security/recommendations/en/codetools/rats.shtml |
| License | GPL-2.0-or-later |
| Source archive | https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/rough-auditing-tool-for-security/rats-2.4.tgz |
| Uses from macOS | expat |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | rats |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
rats 2.4-31.fc44
Rough Auditing Tool for Security
https://code.google.com/p/rough-auditing-tool-for-security/
sudo dnf install ratsrats
sudo port install ratssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.