01
Source inventory and trust classification
Every indexed source should have an identified owner,
approved purpose, trust level, data classification and
synchronization path. Public websites, shared folders,
uploaded files, internal drives and customer platforms
should not inherit equal trust merely because a connector
can reach them.
The threat model should identify who can add, alter,
approve or remove information and whether an attacker can
introduce content through a weak upload, compromised
account, exposed API or overly broad connector.
Evidence: source register, owner,
connector identity, approval status, classification,
version and ingestion event.
02
Parser and document-transformation security
Documents may contain hidden text, comments, metadata,
annotations, alternate text, embedded objects, malformed
structures or instructions that are not obvious in the
normal visual view. The security boundary begins before
the vector database.
Supported file types should be normalized predictably.
Unsupported or ambiguous structures should fail safely,
and extracted content should retain enough provenance to
explain where each passage originated.
Evidence: parser version, extracted text,
rejected elements, source coordinates, transformation
logs and controlled adversarial test files.
03
Identity-aware authorization before retrieval
Authentication at the chat interface does not prove that
the retrieval layer is enforcing the same user, role,
department, customer or tenant permissions. Authorization
must be applied before restricted passages enter the
model’s working context.
A broadly privileged service account must not silently
replace the original user’s rights. Filters should use
trusted identity attributes and fail closed when required
metadata is absent, stale or contradictory.
Evidence: authenticated principal,
evaluated policy, retrieval query, enforced filters and
returned document identifiers.
04
Tenant and collection isolation
Multi-tenant systems must isolate chunks, embeddings,
metadata, namespaces, caches, histories, exports,
snapshots, background jobs and administrative tooling.
A tenant name inside a prompt is not an enforceable
security boundary.
Tenant context should be derived from the authenticated
session rather than user-controlled text or request
parameters. Global fallbacks and shared indexes require
particularly careful testing.
Evidence: tenant-scoped identifiers,
storage namespaces, query constraints, cache keys and
cross-tenant negative tests.
05
Vector and embedding protection
Embeddings are numerical representations, but they should
still be treated as protected data assets. Weak vector
APIs, administrative access, snapshots, backups or
repeated similarity probes can reveal document existence,
relationships, sensitive themes or information about
restricted collections.
OWASP’s vector and embedding guidance identifies risks
including unauthorized access, data leakage,
cross-context exposure, embedding inversion and data
poisoning.
Evidence: vector API permissions,
namespace controls, export restrictions, backup security,
query telemetry and abnormal-probing alerts.
06
Indirect prompt-injection resistance
Retrieved material should be treated as untrusted data,
not as an authoritative instruction channel. A document
can attempt to imitate a system message, suppress
citations, redirect an answer, request secrets or
influence a connected tool without the user seeing the
hidden instruction.
OWASP’s prompt-injection guidance states that RAG and
fine-tuning do not fully mitigate prompt injection and
includes a scenario where a modified repository document
changes model output.
Evidence: controlled poisoned documents,
preserved instruction boundaries, model behavior,
requested actions and blocked tool calls.
07
Knowledge poisoning and source integrity
An attacker may aim to change what the application
believes rather than extract protected content. Altered
policies, procedures, prices, security guidance or product
facts can produce persuasive but incorrect answers.
High-impact collections need controlled ownership,
approval records, trusted-source weighting, version
history and monitoring for unexpected additions,
deletions or large semantic changes.
Evidence: source signatures, version
history, approval chain, ingestion differences, ranking
influence and response changes.
08
Context minimization and confidential-data control
The model should receive only the passages and metadata
needed for the authorized task. Excess context increases
exposure to providers, application logs, caches,
monitoring systems, developers, support workflows and
later model output.
Chunk size, overlap and context assembly should not combine
unrelated classifications, versions, projects or tenants.
Output filtering can help, but it should not be the primary
protection for information the model never needed.
Evidence: final assembled context,
passage count, token volume, redaction results, provider
settings and data-retention path.
09
Citation integrity and source provenance
A displayed citation is useful only when it identifies the
material that actually influenced the answer. Systems can
cite the wrong version, combine multiple sources without
explanation or present a trusted title while relying on
an untrusted passage.
Important answers should preserve source identity,
version, relevant passage, retrieval time and access
context so a human reviewer can verify the claim.
Evidence: retrieved passages, generated
claims, displayed citations, source versions and
claim-to-source comparison.
10
Tool authority and consequential-action controls
Some RAG applications can send messages, update tickets,
change records, generate financial workflows, modify
infrastructure or trigger other business operations.
Poisoned content must not become an instruction with
inherited authority.
The tool layer should independently validate identity,
authorization, argument boundaries, destination, limits
and the relationship between the user’s request and the
proposed action. High-impact operations may require
meaningful human approval.
Evidence: selected tool, generated
arguments, policy decision, approval record, execution
result and rollback capability.
11
Monitoring, abuse resistance and incident evidence
Security teams need visibility into unusual retrieval,
repeated probing, filter failures, cross-tenant attempts,
connector changes, bulk exports, indexing anomalies,
poisoned-source indicators and tool activity influenced
by retrieved content.
Logging must also be minimized so it does not become an
uncontrolled duplicate of every private passage. Rate
limits, alerting and evidence preservation should support
both containment and investigation.
Evidence: user and tenant identity,
source and query identifiers, decision records, alert
history, action trail and retention rules.
12
Lifecycle, deletion and regression testing
Removing a source document does not automatically prove
that chunks, embeddings, caches, backups, summaries,
conversation memory and generated artifacts have been
removed. Permission changes and document replacements
must propagate throughout the complete system.
Changes to parsers, chunking, embedding models, ranking,
metadata, connectors, prompts, models, tools or memory can
reopen previously corrected findings. Confirmed security
requirements should become repeatable regression tests.
Evidence: deletion request, propagation
events, residual searches, backup treatment, test results
and controlled retesting records.