Skip to content

Bash4LLM v2.6.0

Choose a tag to compare

@kamaludu kamaludu released this 23 Jul 01:57
· 116 commits to main since this release
be3cea8

Bash4LLM v2.6.0 — Security Hardening, Privacy & I/O Resilience

Release Date: July 21, 2026
Status: Stable – Major Security & Feature Release (Upgrade from v2.5.0)

Bash4LLM v2.6.0 introduces comprehensive cryptographic code verification, user PII privacy protection via SHA-256 thread hashing, local rate-limiting, and deadlock-free non-interactive pipeline I/O.


🇮🇹 Novità Principali (Italian Highlights)

  • 🔒 Integrità Crittografica dei Moduli (extras/manifest.sha256): Controllo obbligatorio dell'hash SHA-256 prima del caricamento di qualsiasi provider, estensione o hook (verify_module_integrity). Blocca tentativi di manomissione con Exit Code 17.
  • 🛡️ Anonimizzazione PII dei Thread ID (anonymize_thread_id): Cifratura automatica SHA-256 dei Thread ID in $SAFE_THREAD_ID. Azzera il rischio di fuga di dati personali (es. email o nomi) su disco (.ndjson, .json, lock, rate-limit).
  • 🚦 Limitatore di Frequenza Locale (Rate Limiter): Motore nativo a finestra scorrevole (30s) per prevenire abusi o attacchi DOS per thread (BASH4LLM_RATE_LIMIT), con bypass via token autorizzato (BASH4LLM_AUTH_TOKEN).
  • ⚡ Gestione I/O Resiliente Pipe/TTY (read_secure_input): Risolto il deadlock d'I/O nelle pipeline. Rileva automaticamente l'esecuzione in automazione (! [ -t 0 ]) e legge direttamente dallo stdin senza bloccarsi.
  • 🛠️ Nuovi Comandi CLI per Thread e Query Percorsi:
    • --delete-thread <id>: Eliminazione atomica di cronologia, metadati e indici sotto lock.
    • --rename-thread <id> --title <testo>: Rinomina del titolo visibile di un thread.
    • --init-thread: Pre-registrazione della struttura di un thread senza chiamate API.
    • --print-config-dir, --print-provider-file, --print-model-file <p>: Estrazione istantanea dei percorsi canonici.
  • 📁 Isolamento Directory Runtime (var/run/locks): Spostati i file di blocco e di processo nella directory dedicata bash4llm.d/var/run/locks/ (permessi 700).

🇬🇧 Key Highlights (English)

  • 🔒 Cryptographic Module Integrity (extras/manifest.sha256): Mandatory SHA-256 hash verification for all external providers, extensions, and hooks prior to sourcing (verify_module_integrity). Any tampering blocks execution with Exit Code 17.
  • 🛡️ Thread PII Anonymization (anonymize_thread_id): Automatic SHA-256 hashing of raw Thread IDs into $SAFE_THREAD_ID. Prevents personal user identifiers (e.g. emails) from leaking in cleartext to disk storage.
  • 🚦 Local Sliding-Window Rate Limiter: Native 30-second sliding window request throttling per thread (BASH4LLM_RATE_LIMIT), featuring an authorized token bypass (BASH4LLM_AUTH_TOKEN).
  • ⚡ Resilient Pipe/TTY I/O Handling (read_secure_input): Deadlock-free secure input handling that automatically detects non-interactive piped inputs (! [ -t 0 ]).
  • 🛠️ Enhanced Thread Management & Path Query CLI Tools: Added --delete-thread, --rename-thread, --title, --init-thread, --print-config-dir, --print-provider-file, and --print-model-file <provider>.
  • 📁 Runtime Directory Isolation (var/run/locks): Clean separation of process and synchronization lock files into dedicated bash4llm.d/var/run/locks/ directories (mode 700).

📋 Full Changelog

For a complete list of changes and commit history, see CHANGELOG.md.