public void task3_filter_FindingsWithNoTraces(List <IO2Finding> o2FindingsWithNoTraces) { // this will create a Dictionary with a List of IO2Finding mapped to its vulnType var mappedFindings = XUtils_Analysis.getDictionaryWithFindingsMappedBy_VulType(o2FindingsWithNoTraces); // which we will save each vulnType as an separate ozasmt file var targetFolder = Path.Combine(folderWithArtifacts_Phase3, "Findings with No Traces (by VulnType)"); XUtils_Analysis.saveDictionaryWithMappedFindingsToFolder(mappedFindings, targetFolder); }
// PHASE 3 : TASKS // since there are lot a lot of known sinks move them all into one file public void task1_handleKnownSinks() { // for now save these findings in the root of folderWithArtifacts_Phase3 var folderWithAssessmentFiles = Path.Combine(folderWithArtifacts_Phase2, "FindingsWith_Traces_KnownSinks"); Assert.That(Directory.Exists(folderWithAssessmentFiles), "Directory folderWithAssessmentFiles does not exist: " + folderWithAssessmentFiles); var o2Findings_WithKnownSinks = XUtils_Findings_v0_1.loadMultipleOzasmtFiles(folderWithAssessmentFiles); // save as 1 ozasmt file with all findings var targetFile = Path.Combine(folderWithArtifacts_Phase3, "Findings with Known Sinks.ozasmt"); XUtils_Findings_v0_1.saveFindings(o2Findings_WithKnownSinks, targetFile); // save as 1 ozasmt file per VulnType var targetFolder = Path.Combine(folderWithArtifacts_Phase3, "Findings with KnownSinks (by VulnType)"); var mappedFindings = XUtils_Analysis.getDictionaryWithFindingsMappedBy_VulType(o2Findings_WithKnownSinks); XUtils_Analysis.saveDictionaryWithMappedFindingsToFolder(mappedFindings, targetFolder); }