feat(reporting): add LLM-based vulnerability deduplication

- Add dedupe.py with XML-based LLM deduplication using direct litellm calls
- Integrate deduplication check in create_vulnerability_report tool
- Add get_existing_vulnerabilities() method to tracer for fetching reports
- Update schema and system prompt with deduplication guidelines
This commit is contained in:
0xallam
2026-01-07 19:32:45 -08:00
committed by Ahmed Allam
parent 0e9cd9b2a4
commit 01ae348da8
5 changed files with 268 additions and 1 deletions
+3
View File
@@ -145,6 +145,9 @@ class Tracer:
self.save_run_data()
return report_id
def get_existing_vulnerabilities(self) -> list[dict[str, Any]]:
return list(self.vulnerability_reports)
def update_scan_final_fields(
self,
executive_summary: str,