graudit
Grep rough audit is a source code auditing tool that uses grep to find potential security flaws. It offers a simple, flexible alternative to tools like RATS, SWAAT, and flaw-finder with minimal technical requirements.
Description
graudit is a simple script and signature sets designed to identify potential security flaws in source code using the GNU utility grep. It functions as a static analysis tool comparable to other applications like RATS, SWAAT, and flaw-finder, while maintaining low technical requirements and high flexibility.
The tool is particularly useful for quickly scanning source codebases for common vulnerabilities without the overhead of more complex analysis suites. Users can customize scans with various options to tailor the audit to specific needs, such as database selection, file exclusions, and output formatting.
It supports multiple databases for signature matching and provides options for context display, making it suitable for both initial assessments and detailed reviews.
How It Works
graudit leverages GNU grep to match predefined signatures from selected databases against source code files, identifying patterns indicative of security flaws. It scans specified paths, optionally including difficult files, excluding certain types, and providing context lines around matches for analysis. Output can be customized for readability with color schemes, line formats, and suppressed banners.
Installation
sudo apt install grauditFlags
Examples
graudit -hgraudit /path/to/scangraudit -d custom.db /path/to/scangraudit -A /path/to/scangraudit -x *.js,*.sql /path/to/scangraudit -i /path/to/scangraudit -c 5 /path/to/scangraudit -l