Build:
cmake --preset linux-release && cmake --build --preset linux-release
Examples for the security module demonstrating Paper 2 Layer 7 (IntentClassifier) implementation patterns.
| File | Paper | Issue | Status |
|---|---|---|---|
intent_classifier_example.cpp |
Paper 2 §Layer 7 | IMPL-B7 | Specification / planned API |
Demonstrates:
- SQL injection detection — query classified as
SQL_INJECTION_ATTEMPTwith confidence ≥ 0.92 - Benign SELECT — classified as
NORMALwith confidence ≥ 0.95; no action - MASS_EXPORT below confidence threshold — advisory log only, no block
- ZeroTrustPolicyEnforcer integration — high-confidence alert updates
session_risk_score - GDPR guard —
evidence_snippetlimited to ≤ 128 characters; no PII in payload - DecisionRecord written to
AIDecisionAuditor
Calls to planned IMPL-B7 API are marked with /* PLANNED */ comments. The confidence thresholds and integration patterns serve as acceptance criteria.
- Issue spec:
docs/issues/optimization_layers/IMPL-B7-intent-classifier.md - Research paper:
docs/en/research/LLM_OPTIMIZATION_LAYERS_MATRIX.md§Layer 7 - Module ROADMAP:
../../../src/security/ROADMAP.md§Phase 7
This module is included as part of ThemisDB. Add the module headers to your include path:
target_include_directories(your_target PRIVATE ${THEMISDB_INCLUDE_DIR})Include the relevant headers from this module:
#include "security/module_header.h"See ARCHITECTURE.md and ROADMAP.md for details.