Secure-RAG

What do the authoritative sources say, and can we trust the answer?

Chirag Dani · Secure-RAG v3.0.1
Model: huggingface · Semantic search: on · API key: required

How Secure-RAG works

Secure-RAG answers questions from an approved library of policies, procedures and regulatory references, while enforcing access, security, evidence and audit controls around generative AI. It is not a general-purpose chatbot: when approved evidence is insufficient, inaccessible or irrelevant, it says so rather than relying on the model's general knowledge.

The control path

StepControlPurpose
1Redact personal data and secrets in the questionKeep identifiers out of logs, retrieval and the model.
2Injection check on the questionBlock instructions aimed at the assistant before anything is searched.
3Server-side identity and authorisationOnly documents the identity may read are searchable. The index is not the authority for access.
4Hybrid retrieval and relevance gateTF-IDF and BM25, plus BGE-M3 semantic embeddings when a Hugging Face token is set; weak matches are discarded.
5Passage quarantineRetrieved text carrying instructions is treated as an attack and never reaches the model.
6Grounded generationThe model receives evidence as untrusted data and must cite sources.
7Answer checksCitations must match retrieved sources; protected values and personal data are redacted.
8Evaluation and auditGrounding indicators and a hash-chained audit record for every request.

Pages

AskGoverned answers per workspace with evidence (page and section), access decision, obligations and a claim-by-claim check.
Workspaces and documentsOne workspace per client; upload PDF, Word, HTML, text or Markdown with access metadata; versioning, retention and deletion; obligations register and retrieval benchmark.
Breach LabAttack the built-in pipeline or an external RAG application; findings are remembered and replayed; Proof-of-Fix Records; CI release gate; schedules and alerts.
AI Trust PassportClaims whose status is computed from test results or documents; expiring, revocable share links with view log.
Vendor evidence checkA vendor's documents checked against AI vendor controls with cited evidence, questions and suggested clauses.
Baseline security tests11 end-to-end tests of this pipeline and live model challenges.
Answer qualityGrounding and citation metrics of recent answers.
Audit trailHash-chained events and chain verification.

Where Secure-RAG fits

Secure-RAGWhat the authoritative sources say; whether a RAG application is secure
Agentic Risk AnalystWhat can go wrong with an AI use case, and what to do
CALIBRE Governance FabricHow much governance a system needs; register, approvals and evidence

Each works on its own. Connected, ARA's Compliance agent and the Fabric call Secure-RAG's /api/query for evidence.

Connecting real enterprise sources

The demonstration uses a synthetic library. A production deployment replaces or supplements it through controlled connectors that preserve source permissions and metadata.

SourceTypical integrationImportant control
Microsoft SharePoint / Microsoft 365Microsoft Graph API, scheduled or event-driven sync into an ingestion serviceSynchronise ACLs, groups and classification; never flatten permissions.
ConfluenceAtlassian REST API and webhooks, then parsing and chunking into the governed indexMap spaces, pages and user or group permissions to retrieval authorisation.
ServiceNowREST or Table API for approved knowledge articlesApply record-level authorisation; exclude operational secrets.
File repositoriesApproved connectors for S3, Azure Blob, Google Drive, OneDrive or network sharesPreserve source, owner, classification, retention and access metadata.
GRC and policy platformsAPI or export from the platformKeep version, effective date, control owner and approval status.
Regulatory sourcesApproved URLs, APIs or curated publications with provenanceRecord source URL, retrieval date, version and jurisdiction; never treat an external page as internal policy.

External regulatory references in the library

The library holds paraphrased references to these pages, labelled "external reference". Validate current content and applicability before relying on them.

Limits

  • The demonstration library is synthetic. Before loading client documents, use persistent, access-controlled storage, set DEMO_ACCESS_CODE and API keys, and agree retention with the client.
  • Breach Lab results cover the tested scenarios, identities and configuration only. A pass is evidence for that test, not a certification.
  • The obligations register, claim check and vendor check are rule-based. They find candidate text; a person confirms meaning and adequacy.
  • Demonstration identities are chosen on the page; production must take identity from single sign-on.
  • Injection detection is pattern-based and will not catch every attack; the passage quarantine and answer checks are further layers, and the Security Lab shows which cases are covered.
  • The audit chain is tamper-evident, not tamper-proof.

Answers come only from the governed library and are decision support, not legal advice. Verify regulatory content against the regulator's current publication.