Repository navigation
Add comprehensive attack vector analysis for ThemisDB v1.4.0-alpha - #259
Merged
Merged
Conversation
Co-authored-by: makr-code <[email protected]>
…analysis reference Co-authored-by: makr-code <[email protected]>
Copilot
AI
changed the title
[WIP] Investigate internal and external attack vectors on ThemisDB
Add comprehensive attack vector analysis for ThemisDB v1.4.0-alpha
Jan 7, 2026
makr-code
marked this pull request as ready for review
January 7, 2026 14:34
9 tasks
Merged
5 of 25 tasks
Copilot AI
added a commit
that referenced
this pull request
May 11, 2026
…HMAC/embedding stubs - GGUFMetadata (stub #259): add HmacFn type alias + setHmacFn() static API; sign()/verify() delegate to injected fn when set, fall back to XOR stub; fail-closed on fn exception; source comments updated from #173 → #259 - FlareRetrieval (stub #260): add EmbeddingQueryFn type alias + setEmbeddingQueryFn() static API + buildQueryEmbedding() method; string buildQuery() path retained as documented fallback; fail-closed on fn exception - TensorRAGPipeline (stub #261): add EmbeddingQueryFn + setEmbeddingQueryFn() static API; step() populates RAGDecision::flare_query_embedding when fn set and FLARE triggers; fail-closed on fn exception - STUB_INVENTORY.md: 21 new entries (#259–#277, with #263 as a/b/c subtypes); header updated to 272 entries / 238 resolved / 34 active; source ID conflicts for AR-01 (#172→#265), AR-02 (#177→#266), mmap-bridge (#176→#270), fingerprint-graph (#174→#276) noted and source comments updated - All three bridges follow the gpu_tensor.cpp pattern: static function-local mutex + static function-local std::function storage; thread-safe getter/setter Co-authored-by: Copilot <[email protected]> Co-authored-by: makr-code <[email protected]>
23 of 39 tasks
makr-code
added a commit
that referenced
this pull request
May 11, 2026
Update STUB_INVENTORY.md with new reconciled entries (#259–#294) and refresh footer timestamp/status snapshot. Add public-interface includes and standard library headers to acceleration sources (graphics_backends.cpp, plugin_loader.cpp, shader_integrity.cpp) to satisfy compilation and clarify dependencies; also include shader_integrity.h. Simplify plugin_loader mismatch handling (avoid structured-binding use). Make scheduled-edge-refresh test create an isolated, deterministic DB path using thread id + timestamp via ostringstream, create/remove directories with std::error_code to avoid flaky filesystem ops, and add the needed <sstream> include.
4 of 57 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ThemisDB has significantly expanded its attack surface since v1.3.0 (+85% network protocols, +200% client libraries, new LLM components), but the existing threat model was outdated and lacked detailed coverage of interfaces, clients, and attack paths.
Changes
New Documentation
docs/de/security/ANGRIFFSVEKTOREN_ANALYSE.md(1,125 lines)Comprehensive security analysis covering:
External Attack Vectors
/admin/backup,/admin/restore,/api/keys/rotate,/api/pki/hsm/sign)Internal Attack Vectors
Risk Assessment
Countermeasures & Recommendations
Updated Documentation
docs/de/security/security_threat_model.mddocs/de/security/README.mdKey Findings
Top 3 Critical Risks:
/admin/*endpoints lack MFAAttack Surface Growth:
Immediate Actions Required (P0):
/admin/*,/api/keys/rotate,/api/pki/hsm/*Example: Admin Endpoint Risk
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.