Syed Aslam Basha here. I am a tester on the Information Security Tools team responsible for testing CAT.NET v2.0.
As the installer name suggests CATNETV20CMD, CAT.NET V2.0 CTP is command line version only. CAT.NET v2.0 CTP analyses assemblies for vulnerabilities and configuration files for misconfigurations. You can open the rules files present at C:\Program files\Microsoft Information Security tools\Microsoft Code Analysis for .NET(CAT.NET) v2.0\Rules\ConfigRules, to get an understanding of configuration rules. Example, configrule for trace, if trace is enabled it will be shown in report.
Steps to use CAT.NET v2.0:
- Launch command prompt in administrator mode and go to C:\Program files\Microsoft Information Security tools\Microsoft Code Analysis for .NET(CAT.NET) v2.0.
CATNetCmd.exe /file:"D:\MyApplication\bin\Application.dll" /configdir:"D:\MyApplication" /report:"D:\MyApplication\ApplicationReport.xml" /reportxsloutput:"D:\MyApplicaiton\ApplicationReport.htm"
- /file and /configdir switches are mandatory, file is the path to the assembly to analyze and configdir path to the web.config file to analyze. It analyzes all web.configuration files under the folder and reports the issues. Total 40 rules are loaded, 33 config rules and 7 data flow rules.
- Following are the command-line options available
Required. The path of an assembly file to analyze. Multiple file paths and wildcards are not supported. This is a required parameter.
Required. The path to a directory which contains .NET configuration files for analysis.
Optional. The path to a file or directory that contains analysis rule(s). The engine will use the default rules included with the product by default.
Optional. The file to store the analysis report in. By default, the report will be saved in ‘MicrosoftCodeAnalysisReport.xml’ in the current working directory.
Optional. The XSL file to use to transform the report. By default, the packaged XSL transform included in the product will be used.
Optional. The output file to store the XSLT transform output in. By default, the HTML report will be saved in ‘report.html’ in the current working directory.
Optional. Enables flag to display verbose message when displaying results.
- The CAT.NET report contains detailed information about dataflow and configuration analysis errors along with line numbers.