From bd796792a6154914aa7591ed2033d988116ff38a Mon Sep 17 00:00:00 2001 From: Betty Date: Sun, 17 May 2026 22:56:21 +0200 Subject: [PATCH] post: commit a3ef654 in bojemoi --- .../commits/2026-05-17-commit-a3ef654.md | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 content/posts/commits/2026-05-17-commit-a3ef654.md diff --git a/content/posts/commits/2026-05-17-commit-a3ef654.md b/content/posts/commits/2026-05-17-commit-a3ef654.md new file mode 100644 index 0000000..52e111a --- /dev/null +++ b/content/posts/commits/2026-05-17-commit-a3ef654.md @@ -0,0 +1,47 @@ +--- +title: "[bojemoi] feat(uzi): traçabilité des décisions LLM en base postgres" +date: 2026-05-17T22:56:21+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit a3ef654 par Betty dans bojemoi" +author: "Betty" +--- + +## 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 + +### Files Changed + +``` +M borodino/thearm_uzi +``` + +### Diff Summary + +``` + borodino/thearm_uzi | 75 +++++++++++++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 70 insertions(+), 5 deletions(-) +```