Commit Graph

2 Commits

Author SHA1 Message Date
1455e04303 fix: correct CampaignsView, analysis.py IPv4 split, entities date filter
- CampaignsView: update ClusterData interface to match real API response
  (severity/unique_ips/score instead of threat_level/total_ips/confidence_range)
  Fix fetch to use data.items, rewrite ClusterCard and BehavioralTab
  Remove unused getClassificationColor and THREAT_ORDER constants
- analysis.py: fix IPv4Address object has no attribute 'split' on line 322
  Add str() conversion before calling .split('.')
- entities.py: fix Date vs DateTime comparison — log_date is a Date column,
  comparing against now()-INTERVAL HOUR caused yesterday's entries to be excluded
  Use toDate(now() - INTERVAL X HOUR) for correct Date-level comparison

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-15 23:10:35 +01:00
3b700e8be5 feat: Optimisations SOC - Phase 1
🚨 NOUVELLES FONCTIONNALITÉS:
• Page /incidents - Vue clusterisée des incidents prioritaires
  - Métriques critiques en temps réel
  - Clustering automatique par subnet /24
  - Scores de risque (0-100) avec sévérité
  - Timeline des attaques (24h)
  - Top actifs avec hits/s

• QuickSearch (Cmd+K) - Recherche globale rapide
  - Détection automatique du type (IP, JA4, ASN, Host)
  - Auto-complétion
  - Raccourcis clavier (↑/↓/Enter/Esc)
  - Actions rapides intégrées

• Panel latéral d'investigation
  - Investigation sans quitter le contexte
  - Stats rapides + score de risque
  - Classification rapide (1 clic)
  - Export IOC

• API Incidents Clustering
  - GET /api/incidents/clusters - Clusters auto par subnet
  - GET /api/incidents/:id - Détails incident
  - POST /api/incidents/:id/classify - Classification rapide

📊 GAINS:
• Classification: 7 clics → 2 clics (-71%)
• Investigation IP: 45s → 10s (-78%)
• Vue complète: 5 pages → 1 panel latéral

🔧 TECH:
• backend/routes/incidents.py - Nouvelle route API
• frontend/src/components/QuickSearch.tsx - Nouveau composant
• frontend/src/components/IncidentsView.tsx - Nouvelle vue
• frontend/src/components/InvestigationPanel.tsx - Panel latéral
• frontend/src/App.tsx - Navigation mise à jour
• backend/main.py - Route incidents enregistrée

 Build Docker: SUCCESS

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-14 21:41:34 +01:00