| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>Case Report</title> |
| 5 | <style> |
| 6 | body { font-family: Arial, sans-serif; } |
| 7 | .case-info { margin-bottom: 20px; } |
| 8 | .alert { margin-bottom: 15px; } |
| 9 | </style> |
| 10 | </head> |
| 11 | <body> |
| 12 | <h1>Case Report</h1> |
| 13 | <div class="case-info"> |
| 14 | <p><strong>Name of Case:</strong> {{ case.name }}</p> |
| 15 | <p><strong>Description:</strong> {{ case.description }}</p> |
| 16 | <p><strong>Assigned To:</strong> {{ case.assigned_to }}</p> |
| 17 | <p><strong>Case Creation Time:</strong> {{ case.case_creation_time }}</p> |
| 18 | <p><strong>Case Closed Time:</strong> {{ case.case_closed_time if case.case_closed_time else 'N/A' }}</p> |
| 19 | <p><strong>Case ID:</strong> {{ case.id }}</p> |
| 20 | </div> |
| 21 | |
| 22 | <h2>Alerts:</h2> |
| 23 | {% for alert in case.alerts %} |
| 24 | <div class="alert"> |
| 25 | <p><strong>Alert Name:</strong> {{ alert.alert_name }}</p> |
| 26 | <p><strong>Description:</strong> {{ alert.alert_description }}</p> |
| 27 | <p><strong>Status:</strong> {{ alert.status }}</p> |
| 28 | <p><strong>Time Closed:</strong> {{ alert.time_closed if alert.time_closed else 'N/A' }}</p> |
| 29 | <p><strong>Tags:</strong> {{ alert.tags | join(', ') }}</p> |
| 30 | |
| 31 | <h3>Assets:</h3> |
| 32 | {% for asset in alert.assets %} |
| 33 | <p>- <strong>Asset Name:</strong> {{ asset.asset_name }} | <strong>Agent ID:</strong> {{ asset.agent_id }}</p> |
| 34 | {% endfor %} |
| 35 | |
| 36 | <h3>Comments:</h3> |
| 37 | {% for comment in alert.comments %} |
| 38 | <p>- "{{ comment.comment }}" by {{ comment.user_name }} at {{ comment.created_at }}</p> |
| 39 | {% endfor %} |
| 40 | |
| 41 | <h3>Context:</h3> |
| 42 | <p><strong>Source:</strong> {{ alert.context.source }}</p> |
| 43 | <p><strong>Context Details:</strong> {{ alert.context.context }}</p> |
| 44 | |
| 45 | <h3>IoCs:</h3> |
| 46 | {% for ioc in alert.iocs %} |
| 47 | <p>- <strong>IoC Value:</strong> {{ ioc.ioc_value }} | <strong>Type:</strong> {{ ioc.ioc_type }} | <strong>Description:</strong> {{ ioc.ioc_description }}</p> |
| 48 | {% endfor %} |
| 49 | </div> |
| 50 | {% endfor %} |
| 51 | </body> |
| 52 | </html> |