MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_advanced_vuln_summary

Function get_advanced_vuln_summary

webapp_modern.py:17664–17685  ·  view source on GitHub ↗

Get vulnerability summary

()

Source from the content-addressed store, hash-verified

17662 'host': target,
17663 'vulnerability': 'Network scan findings available',
17664 'source': 'scan_results',
17665 'details': {'scan_file': filename}
17666 })
17667 break
17668 except Exception as scan_e:
17669 logger.warning(f"Could not check scan results: {scan_e}")
17670
17671 except Exception as e:
17672 logger.warning(f"Could not retrieve network intelligence findings: {e}")
17673
17674 # If no findings but target looks like it might have vulnerabilities, create a placeholder
17675 if not actual_findings:
17676 # For demonstration/testing purposes, allow manual vulnerability analysis
17677 # This should ideally be replaced with real vulnerability scanner integration
17678 return jsonify({
17679 'error': f'No vulnerability findings detected for target: {target}',
17680 'message': 'Ragnar needs to discover vulnerabilities first through network scanning. Try running vulnerability scans on this target.',
17681 'target_type': 'no_findings',
17682 'suggestion': f'Run network scan on {target} first, then threat intelligence can enrich any discovered vulnerabilities'
17683 }), 404
17684
17685 # Use the first real finding for enrichment (or combine multiple findings)
17686 base_finding = actual_findings[0]
17687
17688 # Create enriched finding object from actual scan data

Callers

nothing calls this directly

Calls 3

errorMethod · 0.80
get_summaryMethod · 0.45

Tested by

no test coverage detected