MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / analyze

Method analyze

modules/ai/copilot.py:243–263  ·  view source on GitHub ↗

Get comprehensive analysis of loaded scan results. Returns: Detailed analysis report

(self)

Source from the content-addressed store, hash-verified

241 async def analyze(self) -> str:
242 """Get comprehensive analysis of loaded scan results.
243
244 Returns:
245 Detailed analysis report
246 """
247 if not self.scan_context:
248 return "No scan data loaded. Use load_scan_results() first."
249
250 prompt = """Provide a comprehensive security analysis including:
251
2521. **Executive Summary** (2-3 sentences for leadership)
2532. **Critical Findings** (top 5 issues that need immediate attention)
2543. **Attack Surface Analysis** (how could an attacker exploit these findings?)
2554. **Risk Assessment** (overall risk level with justification)
2565. **Prioritized Remediation Plan** (ordered list of actions)
2576. **Quick Wins** (easy fixes that significantly reduce risk)
258
259Be specific and actionable. Reference actual findings from the data."""
260
261 return await self.ask(prompt)
262
263 async def get_executive_summary(self) -> str:
264 """Generate executive summary for non-technical stakeholders.
265
266 Returns:

Callers 2

ai_analyzeFunction · 0.95
report_htmlFunction · 0.95

Calls 1

askMethod · 0.95

Tested by

no test coverage detected