White paper 03 · Updated

Security by design: permission-aware retrieval, audit and encryption

What Unnanu actually does to keep search from becoming a way around access rules.

Why does search need its own security story?

A search box sees everything it has ingested. If it answers from a document a person can't open, it has turned search into a leak. If it can be talked into asserting something a document doesn't say, it has turned search into a liability. This paper describes how Unnanu handles both. It stays high level on purpose: enough for a security review, without detail that would help an attacker.

Security boundaryA person signs in through your identity provider before a request reaches Unnanu. Inside one client deployment, each request passes limits, an identity check, the catalog, an access trim and a verify step before a cited answer or “not found” comes back. Client data stays separate and encrypted, and every query is written to a tamper-evident audit trail. Person Your IdPSSO and MFA Sign-inVerified sign-in One client deployment · app boundary verified identity Request limits, rate limits, headersChecked before anything runs Trusted identity checkVerified identity only Catalog route + rankUnnanu catalog Access trim (deny by default)Only what you may see Verify, then cite or declineExact text or “not found” Client dataEncrypted, kept separateNever shared between clients Source credentialsEncrypted, never shownRedacted from screens and logs Audit trailEvery query recordedTamper-evident record Sources (pulled in)SharePoint, mail, Slack, databases,business apps and public web pages Your SIEMCan check theaudit trail cited answeror “not found”
Figure 1. The security boundary of one client deployment.

Identity comes from your provider

People sign in through your identity provider with single sign-on. Unnanu keeps no passwords or sessions of its own, so MFA and session rules stay where your security team already manages them. Identity is accepted only from your trusted sign-in. Directory groups, including nested groups, stay in sync, and removing someone from a group removes the access it granted.

How does permission-aware retrieval work?

Access is denied by default: a document without a grant is invisible. Results, citations, Ask Assist and deep links all work from the same filtered set. Derived content, such as suggested questions, takes the intersection of its sources' grants and fails closed.

The answer states that it was built from sources the person can access.

Isolation by deployment

Each client runs in its own database with its own running service, never a shared store split by customer. Regulated clients always get their own database. At contract end, the client's data is removed and the removal is verified.

Encryption and secrets

Connections to client data require encryption in transit. Stored source credentials are encrypted and bound to their record, so a copied value is useless anywhere else. Keys are managed outside the product and never built into it. Credentials are stripped from every display and audit record.

An audit trail you can verify

Every source change is recorded with who made it and what changed. Every query records what was consulted and why each result was served, withheld or rejected. Records are exported in a tamper-evident form, so a changed or missing record is detectable.

Inputs and prompt injection

Requests are size- and rate-limited before any work starts. Database filters are built by the system; a language model never writes a query. The strongest defence against planted instructions is structural: an answer is served only if its quote is found in an access-checked passage, so text in a document can't make the system assert what the document doesn't say.

Built and checked in CI

Every change runs automated tests, a dependency audit and security analysis before it ships. Detailed control descriptions are available in our security pack and SOC 2 report under NDA.

Book a demo

Walk your security reviewers through it.

We’ll take them through identity, access trimming and the audit trail on a sample of your documents.

Book a 30-minute demo

Contact: hello@unnanu.ai