[Fortify] 분석엔진별 개별 분석 방법

포티파이는 5개의 분석 엔진이 개별적인 모듈로 존재하며 각 모듈의 이름은 아래와 같다.

1. Dataflow (데이터 흐름 분석)
2. Semantic (구문 분석)
3. Structural (데이터 구조 분석)
4. Configuration (설정파일 분석)
5. ControlFlow (제어 흐름 분석)

빌드 후 분석 시스템의 메모리가 부족하거나 특정 분석엔진에서 문제가 발생할 경우 각 분석엔진 별로 FPR 파일을 생성할 수 있는데 아래와 같은 방법으로 가능하며, -append 옵션은 이미 존재하는 FPR에 분석내용을 추가하라는 의미이다.

sourceanalyzer -Dcom.fortify.sca.DefaultAnalyzers=dataflow -b test_build_id -Xmx4096m -Xss2048m -logfile test.log -scan -f test.fpr
sourceanalyzer -Dcom.fortify.sca.DefaultAnalyzers=semantic -b test_build_id -Xmx4096m -Xss2048m -logfile test.log -scan -f test.fpr -append
sourceanalyzer -Dcom.fortify.sca.DefaultAnalyzers=structural -b test_build_id -Xmx4096m -Xss2048m -logfile test.log -scan -f test.fpr -append
sourceanalyzer -Dcom.fortify.sca.DefaultAnalyzers=configuration:content -b test_build_id -Xmx4096m -Xss2048m -logfile test.log -scan -f test.fpr -append
sourceanalyzer -Dcom.fortify.sca.DefaultAnalyzers=controlflow -b test_build_id -Xmx4096m -Xss2048m -logfile test.log -scan -f test.fpr -append
위로 스크롤