Get comprehensive analysis of loaded scan results. Returns: Detailed analysis report
(self)
| 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 | |
| 252 | 1. **Executive Summary** (2-3 sentences for leadership) |
| 253 | 2. **Critical Findings** (top 5 issues that need immediate attention) |
| 254 | 3. **Attack Surface Analysis** (how could an attacker exploit these findings?) |
| 255 | 4. **Risk Assessment** (overall risk level with justification) |
| 256 | 5. **Prioritized Remediation Plan** (ordered list of actions) |
| 257 | 6. **Quick Wins** (easy fixes that significantly reduce risk) |
| 258 | |
| 259 | Be 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: |
no test coverage detected