RAT can audit configuration of the following devices:
RAT can be downloaded here:
Installation on Windows requires ActiveState Perl to be installed. Detailed installation instruction can be found in "rat\etc\install.win32.txt" upon extraction.
Upon installing RAT I had to edit "rat.pl" and change the following (this shouldn't be required so it may work in your case)
- line 669: to point to the correct directory
- use lib 'c:\rat\lib';.
- lines 746 & 747: again hard coding the paths
- $ncat_prog = $PROG_PREFIX . '\bin\ncat.pl';
- $ncat_report_prog = $PROG_PREFIX . '\bin\ncat_report.pl'
RAT allows us to customize set of "checks" we want to perform. This step is not required if you want to audit against actual CIS benchmark, in most cases however, we will want to edit it to align it with our Security Policy.
"C:\rat\bin>perl ncat_config.pl -s customorules.conf"
The script will ask a number of questions and allow you to customize set of checks it'll perform. It'll then save "customrules.conf". For example if you have a separate management network (for VTY access or SNMP) that you already protect with ACLs you may not want to apply additional local ACLs, which is required by the "default" CIS benchmark. Another example is exec timeout. CIS requires that the timeout is set to 10 while your security policy may require 5.
By default RAT uses rule set for IOS devices, so we don't need to specify -t.
c:\>perl rat.pl -r customrules.conf "c:\confs\10.10.10.10.txt"
To audit PIX, ASA, FWSM we need to use option "-t" to specify config type:
c:\>perl rat.pl -t cisco-firewall -r customrules.conf "c:\confs\ 10.10.10.100.txt"
I have run into issue where RAT will fail with the following error:
"Nested quantifiers in regex; marked by <-- HERE in m/IOSSNMPCommunity->** <-- "
This happens when "snmp-server community" option is set to asterisks. That would be the case if you copy the IOS config file from CiscoWorks. Just delete the asterisks and re-run the script.