AISVS Panjabi Review — C8 Memory, Embeddings & Vector Database Security (C8 ਮੈਮੋਰੀ, Embeddings ਅਤੇ ਵੈਕਟਰ ਡਾਟਾਬੇਸ ਸੁਰੱਖਿਆ)

5 min read

Reviewing this translation? Email feedback to gurvinder@securityleader.ai with the subject "AISVS Panjabi Review — C8 Memory, Embeddings & Vector Database Security". Even a single correction is valuable. No GitHub account needed.

Source: OWASP AISVS PR #1128 · this is faithful to the submitted pull request. It has not yet had a Panjabi-speaking sangat review pass — that's what this page is for.


Control Objective

ਨਿਯੰਤਰਣ ਉਦੇਸ਼

This chapter addresses securing the embeddings and vector stores that act as semi-persistent and persistent "memory" for AI systems through Retrieval-Augmented Generation (RAG).

ਇਹ ਅਧਿਆਇ ਉਹਨਾਂ embeddings ਅਤੇ ਵੈਕਟਰ ਸਟੋਰਾਂ ਨੂੰ ਸੁਰੱਖਿਅਤ ਕਰਨ ਨੂੰ ਸੰਬੋਧਿਤ ਕਰਦਾ ਹੈ ਜੋ Retrieval-Augmented Generation (RAG) ਰਾਹੀਂ AI ਸਿਸਟਮਾਂ ਲਈ ਅਰਧ-ਸਥਾਈ ਅਤੇ ਸਥਾਈ "ਮੈਮੋਰੀ" (memory) ਵਜੋਂ ਕੰਮ ਕਰਦੇ ਹਨ।


C8.1 Access Controls on Memory & RAG Indices

C8.1 ਮੈਮੋਰੀ ਅਤੇ RAG ਇੰਡੈਕਸਾਂ ਉੱਤੇ ਪਹੁੰਚ ਕੰਟਰੋਲ

Fine-grained access controls and query-time scope enforcement must be applied to every vector collection.

ਹਰ ਵੈਕਟਰ ਸੰਗ੍ਰਹਿ ਉੱਤੇ ਬਾਰੀਕ-ਪੱਧਰੀ ਪਹੁੰਚ ਕੰਟਰੋਲ ਅਤੇ ਕਿਊਰੀ-ਸਮੇਂ ਸਕੋਪ ਪਾਬੰਦੀਆਂ ਲਾਗੂ ਕਰਨਾ ਲਾਜ਼ਮੀ ਹੈ।

# Description Level
8.1.1 Verify that vector identifiers and namespaces enforce uniqueness per tenant and prevent cross-tenant collisions. 1
8.1.2 Verify that document metadata tags are immutable after the initial write. 2
8.1.3 Verify that retrieval operations enforce scope constraints. 2
# ਵੇਰਵਾ ਪੱਧਰ
8.1.1 ਤਸਦੀਕ ਕਰੋ ਕਿ ਵੈਕਟਰ ਪਛਾਣਕਰਤਾ ਅਤੇ ਨੇਮਸਪੇਸ ਪ੍ਰਤੀ ਟੈਨੈਂਟ ਵਿਲੱਖਣਤਾ ਲਾਗੂ ਕਰਦੇ ਹਨ ਅਤੇ ਅੰਤਰ-ਟੈਨੈਂਟ ਟਕਰਾਵਾਂ (collisions) ਨੂੰ ਰੋਕਦੇ ਹਨ। 1
8.1.2 ਤਸਦੀਕ ਕਰੋ ਕਿ ਦਸਤਾਵੇਜ਼ ਮੈਟਾਡਾਟਾ ਟੈਗ ਸ਼ੁਰੂਆਤੀ ਲਿਖਤ ਤੋਂ ਬਾਅਦ ਅਪਰਿਵਰਤਨਸ਼ੀਲ (immutable) ਹਨ। 2
8.1.3 ਤਸਦੀਕ ਕਰੋ ਕਿ ਪ੍ਰਾਪਤੀ ਕਾਰਵਾਈਆਂ ਸਕੋਪ ਪਾਬੰਦੀਆਂ ਲਾਗੂ ਕਰਦੀਆਂ ਹਨ। 2

C8.2 Embedding Sanitization & Validation

C8.2 Embedding ਸੈਨੀਟਾਈਜ਼ੇਸ਼ਨ ਅਤੇ ਪ੍ਰਮਾਣਿਕਤਾ

Content must be pre-screened before vectorization, and memory writes treated as untrusted input, to prevent ingestion of unsafe payloads.

ਗ਼ੈਰ-ਸਲਾਮਤ (unsafe) ਪੇਲੋਡਾਂ ਦੇ ਦਾਖ਼ਲੇ ਨੂੰ ਰੋਕਣ ਲਈ, ਵੈਕਟਰਾਈਜ਼ੇਸ਼ਨ (vectorization) ਤੋਂ ਪਹਿਲਾਂ ਸਮੱਗਰੀ ਦੀ ਪਹਿਲਾਂ ਹੀ ਛਾਣਬੀਣ ਕਰਨਾ, ਅਤੇ ਮੈਮੋਰੀ ਵਿੱਚ ਲਿਖੀ ਜਾਣ ਵਾਲੀ ਹਰ ਚੀਜ਼ ਨੂੰ ਗ਼ੈਰ-ਭਰੋਸੇਯੋਗ ਇਨਪੁੱਟ ਮੰਨਣਾ, ਲਾਜ਼ਮੀ ਹੈ।

# Description Level
8.2.1 Verify that sensitive fields are detected before embedding and are masked, tokenized, or dropped. 1
8.2.2 Verify that vectors that fall outside normal clustering patterns are flagged and quarantined before entering production indices. 2
8.2.3 Verify that agent outputs and tool outputs are not automatically written to trusted agent memory without explicit source validation. 2
8.2.4 Verify that content crafted to manipulate retrieval results is detected and rejected or quarantined before vectorization. 3
8.2.5 Verify that new content written to memory is checked for contradictions with what is already stored and that conflicts trigger alerts. 3
# ਵੇਰਵਾ ਪੱਧਰ
8.2.1 ਤਸਦੀਕ ਕਰੋ ਕਿ ਸੰਵੇਦਨਸ਼ੀਲ ਖੇਤਰਾਂ ਦਾ embedding ਤੋਂ ਪਹਿਲਾਂ ਪਤਾ ਲਗਾਇਆ ਜਾਂਦਾ ਹੈ ਅਤੇ ਉਹਨਾਂ ਨੂੰ ਮਾਸਕ, ਟੋਕਨਾਈਜ਼, ਜਾਂ ਹਟਾ ਦਿੱਤਾ ਜਾਂਦਾ ਹੈ। 1
8.2.2 ਤਸਦੀਕ ਕਰੋ ਕਿ ਜਿਹੜੇ ਵੈਕਟਰ ਸਧਾਰਨ ਕਲੱਸਟਰਿੰਗ (clustering) ਪੈਟਰਨਾਂ ਤੋਂ ਬਾਹਰ ਪੈਂਦੇ ਹਨ, ਉਹਨਾਂ ਨੂੰ ਉਤਪਾਦਨ ਇੰਡੈਕਸਾਂ ਵਿੱਚ ਦਾਖ਼ਲ ਹੋਣ ਤੋਂ ਪਹਿਲਾਂ ਨਿਸ਼ਾਨਬੱਧ ਅਤੇ ਕੁਆਰੰਟੀਨ (quarantine) ਕੀਤਾ ਜਾਂਦਾ ਹੈ। 2
8.2.3 ਤਸਦੀਕ ਕਰੋ ਕਿ ਏਜੰਟ ਆਊਟਪੁੱਟ ਅਤੇ ਟੂਲ ਆਊਟਪੁੱਟ ਸਪਸ਼ਟ ਸਰੋਤ ਪ੍ਰਮਾਣਿਕਤਾ ਤੋਂ ਬਿਨਾਂ ਆਪਣੇ ਆਪ ਭਰੋਸੇਯੋਗ ਏਜੰਟ ਮੈਮੋਰੀ ਵਿੱਚ ਨਹੀਂ ਲਿਖੇ ਜਾਂਦੇ। 2
8.2.4 ਤਸਦੀਕ ਕਰੋ ਕਿ ਪ੍ਰਾਪਤੀ ਨਤੀਜਿਆਂ ਨਾਲ ਹੇਰਾਫੇਰੀ ਕਰਨ ਲਈ ਘੜੀ ਗਈ ਸਮੱਗਰੀ ਦਾ ਪਤਾ ਲਗਾਇਆ ਜਾਂਦਾ ਹੈ ਅਤੇ ਉਸ ਨੂੰ ਵੈਕਟਰਾਈਜ਼ੇਸ਼ਨ ਤੋਂ ਪਹਿਲਾਂ ਰੱਦ ਜਾਂ ਕੁਆਰੰਟੀਨ ਕੀਤਾ ਜਾਂਦਾ ਹੈ। 3
8.2.5 ਤਸਦੀਕ ਕਰੋ ਕਿ ਮੈਮੋਰੀ ਵਿੱਚ ਲਿਖੀ ਜਾਣ ਵਾਲੀ ਨਵੀਂ ਸਮੱਗਰੀ ਦੀ ਪਹਿਲਾਂ ਤੋਂ ਸੰਭਾਲੀ ਹੋਈ ਸਮੱਗਰੀ ਨਾਲ ਵਿਰੋਧਾਭਾਸਾਂ ਲਈ ਜਾਂਚ ਕੀਤੀ ਜਾਂਦੀ ਹੈ, ਅਤੇ ਟਕਰਾਅ ਹੋਣ 'ਤੇ ਚੇਤਾਵਨੀਆਂ ਪੈਦਾ ਹੁੰਦੀਆਂ ਹਨ। 3

C8.3 Memory Expiry & Revocation

C8.3 ਮੈਮੋਰੀ ਦੀ ਮਿਆਦ ਪੁੱਗਣਾ ਅਤੇ ਰੱਦਗੀ

Retention and revocation must be explicit and enforceable for memory and RAG indices.

ਮੈਮੋਰੀ ਅਤੇ RAG ਇੰਡੈਕਸਾਂ ਲਈ ਧਾਰਨ (retention) ਅਤੇ ਰੱਦਗੀ (revocation) ਦਾ ਸਪਸ਼ਟ ਅਤੇ ਲਾਗੂ ਕਰਨਯੋਗ ਹੋਣਾ ਲਾਜ਼ਮੀ ਹੈ।

# Description Level
8.3.1 Verify that expired vectors are excluded from retrieval results. 2
8.3.2 Verify that memory can be reset. 2
8.3.3 Verify that quarantined content is retained but excluded from all retrieval results. 3
# ਵੇਰਵਾ ਪੱਧਰ
8.3.1 ਤਸਦੀਕ ਕਰੋ ਕਿ ਮਿਆਦ ਪੁੱਗ ਚੁੱਕੇ ਵੈਕਟਰ ਪ੍ਰਾਪਤੀ ਨਤੀਜਿਆਂ ਵਿੱਚੋਂ ਬਾਹਰ ਰੱਖੇ ਜਾਂਦੇ ਹਨ। 2
8.3.2 ਤਸਦੀਕ ਕਰੋ ਕਿ ਮੈਮੋਰੀ ਨੂੰ ਰੀਸੈੱਟ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ। 2
8.3.3 ਤਸਦੀਕ ਕਰੋ ਕਿ ਕੁਆਰੰਟੀਨ ਕੀਤੀ ਸਮੱਗਰੀ ਦਾ ਧਾਰਨ ਕੀਤਾ ਜਾਂਦਾ ਹੈ ਪਰ ਉਸ ਨੂੰ ਸਾਰੇ ਪ੍ਰਾਪਤੀ ਨਤੀਜਿਆਂ ਵਿੱਚੋਂ ਬਾਹਰ ਰੱਖਿਆ ਜਾਂਦਾ ਹੈ। 3

References

ਹਵਾਲੇ


← Previous: C7 Model Behavior, Output Control & Safety Assurance (C7 ਮਾਡਲ ਵਿਵਹਾਰ, ਆਊਟਪੁੱਟ ਨਿਯੰਤਰਣ ਅਤੇ ਸਲਾਮਤੀ ਭਰੋਸਾ) | Back to Review Hub | Next: C9 Orchestration & Agentic Security (C9 ਆਰਕੈਸਟ੍ਰੇਸ਼ਨ (orchestration) ਅਤੇ ਏਜੰਟ-ਆਧਾਰਿਤ ਸੁਰੱਖਿਆ) →

Tags

owaspaisvspanjabitranslationreview