200 likes | 221 Views
Using SCA (Build Monitor). Using SCA. In this course, you will learn: How to use Fortify SCA Build Monitor. Using SCA Build Monitor. System Requirements Using Build Monitor Using Build Monitor in Command Line Configuring Build Monitor. System Requirements. Windows 2000/2003/XP/Vista
E N D
Using SCA (Build Monitor)
Using SCA • In this course, you will learn: • How to use Fortify SCA Build Monitor
Using SCA Build Monitor • System Requirements • Using Build Monitor • Using Build Monitor in Command Line • Configuring Build Monitor
System Requirements • Windows 2000/2003/XP/Vista • .NET 1.1 (Build Monitor itself is written in .NET 1.1)
Using SCA Build Monitor • System Requirements • Using Build Monitor • Using Build Monitor in Command Line • Configuring Build Monitor
Using Build Monitor • From Program Files
Compile Your Code Start the compilation process. For example, from your IDE (doesn’t necessary be Visual Studio),
When the compiler is running Build Monitor check system processes at runtime and intercept all “compiler” like processes
Build Done Click “Build Done” when compilation finished successfully
Analyzing source files Then click “Scan”, Build Monitor will then run SCA scan phase
Audit Workbench When scan finished, Build Monitor will open Audit Workbench automatically
Using SCA Build Monitor • System Requirements • Using Build Monitor • Using Build Monitor in Command Line • Configuring Build Monitor
BuildMonitor.exe SET BMON_HOME=<<<SCA_PATH>>>\Core\private-bin\sca SET BUILD_ID=<<<YOUR BUILD ID>>> sourceanalyzer -b %BUILD_ID% -clean pushd "%BMON_HOME%" start /D"%BMON_HOME%" buildmonitor.exe -b %BUILD_ID% -c sca popd sleep 5 <<<YOUR BUILD SCRIPT HERE>>> sleep 5 pushd "%BMON_HOME%" start /D"%BMON_HOME%" buildmonitor.exe -b %BUILD_ID% -c stop popd sourceanalyzer -b %BUILD_ID% -scan -f "%BUILD_ID%.fpr"
Using SCA Build Monitor • System Requirements • Using Build Monitor • Using Build Monitor in Command Line • Configuring Build Monitor
Scan Settings Setup max memory Preview Scan Phase Command Select rulepack (default is all) Monitor all user processes or current user processes only
Set Results Folder Default is “Desktop”
Build Monitor Config file • <SCA_Install_Path>\Core\Config\buildmonitor.conf • By default, we only monitor 10 process names, if you compiler name is not one of those, you may need to modify the config file [Target Processes] gcc.exe g++.exe ld.exe ar.exe cl.exe link.exe armcc.exe armcpp.exe tcc.exe tcpp.exe