Commit a3ef654
| Repository | bojemoi |
| Branch | main |
| Author | Betty |
| Hash | a3ef654d97a365650c684a4b3f81d939983193fc |
Description
- Nouvelle table llm_decisions (address, host_id, model, decision_type, input JSONB, output JSONB, executed)
- ensure_llm_decisions() crée la table au démarrage (même pattern que uzi_scan_log)
- log_llm_decision() insère chaque décision avec contexte complet
- extract_search_terms_via_ai() : loggue les services non couverts + termes extraits (type: search_terms)
- ai_post_exploitation_plan() : loggue le contexte session + plan MITRE ATT&CK (type: post_exploit_plan)
- scan_details[‘address’] injecté dans la boucle principale pour propagation aux fonctions IA
Requêtes utiles: SELECT address, decision_type, output, ts FROM llm_decisions ORDER BY ts DESC LIMIT 20; SELECT address, output->‘name’ FROM llm_decisions WHERE decision_type=‘post_exploit_plan’;
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com