~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
ci(codeql): drop repo-wide py/weak-sensitive-data-hashing exclusion (#6792)
LearningCircuitd76544a6fe2e
diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.ymlindex ed507cb12b..3bcf9954ff 100644--- a/.github/codeql/codeql-config.yml+++ b/.github/codeql/codeql-config.yml@@ -7,18 +7,18 @@ paths-ignore:- '**/*_test.py'- 'src/local_deep_research/security/file_write_verifier.py'-# TEMPORARY (PR #5596): exclude one rule repo-wide to unblock the critical-# cached-connection auth-bypass fix. This is broader than desired -- it turns-# py/weak-sensitive-data-hashing off for EVERY file, not just the one false-# positive. Preferred long-term fix: dismiss the single alert as a reviewed-# false positive in the code-scanning UI (per-alert, keeps the rule active-# everywhere) and remove this block. Tracking: revisit after #5596 merges.-#-# Why it's a false positive: this app stores no password hashes at rest-# (decryption of the per-user SQLCipher DB IS authentication, via PBKDF2). The-# only fast hash of a password is the in-process, per-process-keyed, never--# persisted cache verifier in database/encrypted_db.py (_compute_verifier_digest),-# where a slow KDF would only add login latency without reducing exposure.-query-filters:- - exclude:- id: py/weak-sensitive-data-hashing+# py/weak-sensitive-data-hashing is NOT excluded repo-wide. Its findings+# in src/ are triaged per-alert in code scanning instead (see #5621); never+# re-add a repo-wide exclude.+# - Already dismissed: 346 and 7576 (config/paths.py), 7523+# (utilities/search_cache.py) as false positives, and 91+# (benchmarks/datasets/utils.py derive_key, whose `password` parameter+# is the public BrowseComp dataset canary, not a credential) as won't fix.+# - NOT yet dismissed; must be dismissed per-alert as a false positive+# once main is re-scanned without the exclusion: the+# py/weak-sensitive-data-hashing alert on encrypted_db.py+# _compute_verifier_digest (previously #8140; it may reopen under a+# new number after merge, so look it up by rule and location, not by+# number). It is an HMAC verifier, not password storage: in-process,+# per-process-keyed, never persisted. No password hashes exist at rest;+# SQLCipher DB decryption via PBKDF2 IS the authentication.diff --git a/src/local_deep_research/database/encrypted_db.py b/src/local_deep_research/database/encrypted_db.pyindex 69d796399e..ca55136235 100644--- a/src/local_deep_research/database/encrypted_db.py+++ b/src/local_deep_research/database/encrypted_db.py@@ -1018,9 +1018,12 @@ class DatabaseManager:no password hashes at rest (SQLCipher's PBKDF2 is the real KDF on thecold-open path); this keyed digest only proves, in memory, that the SAMEpassword opened the cached engine, so a slow KDF here would add login- latency without reducing exposure. The rule is temporarily excluded in- .github/codeql/codeql-config.yml (see the TEMPORARY note there); the- preferred long-term fix is a per-alert dismissal in code scanning.+ latency without reducing exposure. The py/weak-sensitive-data-hashing+ alert on ``_compute_verifier_digest`` (previously #8140; it may reopen+ under a new number after merge) must be dismissed per-alert in code+ scanning as a false positive (an HMAC verifier, not password storage)+ once main is re-scanned, rather than excluded repo-wide (see+ .github/codeql/codeql-config.yml and #5621)."""return hmac.new(self._verifier_key, salt + password.encode("utf-8"), "sha256"