Get or create advanced vuln scanner instance (thread-safe)
()
| 17152 | risk_distribution['high'] += 1 |
| 17153 | elif score >= 4.0: |
| 17154 | risk_distribution['medium'] += 1 |
| 17155 | else: |
| 17156 | risk_distribution['low'] += 1 |
| 17157 | |
| 17158 | for campaign in enriched_finding.active_campaigns or []: |
| 17159 | if campaign: |
| 17160 | active_campaigns.add(campaign) |
| 17161 | |
| 17162 | type_to_status_key = { |
| 17163 | 'cisa': 'cisa_kev', |
| 17164 | 'nvd': 'nvd_cve', |
| 17165 | 'otx': 'alienvault_otx', |
| 17166 | 'mitre': 'mitre_attack' |
| 17167 | } |
| 17168 | |
| 17169 | source_status = {key: False for key in type_to_status_key.values()} |
| 17170 | sources = [] |
| 17171 | for name, source in threat_intelligence.threat_sources.items(): |
| 17172 | sources.append({ |
no test coverage detected