redis-cache-ai-data-v2
7 rules · Keryn Software Licence · rules 0.8.0 · all packs
How to read a rule
- Severity
- How bad the finding is if it is real:
errorfails a default gate,warningandinfodo not. - Confidence
- P0 exploitable as written; P1 dangerous in context; P2 a heuristic or a posture check: confirm by reading the code.
- False-positive risk
- low: an exact API or flag, so hits are almost always real; medium: the pattern is legitimate in many programs, so check each hit; high: it finds a lead to confirm, so expect benign hits.
- Edge
- The relationship the finding sits on. reaches: content or traffic gets to a thing; calls: one thing invokes another; reads: one thing reads from another; writes: one thing writes to another; sends: data leaves for another party; grants: authority is given or left unchecked; depends_on: something relies on a component it does not verify; trusts: one party believes another without evidence. The boundary it crosses, when there is one: user->prompt (untrusted input reaching a prompt); model->code (model output reaching code, a shell, a query or a page); secret->outside (a secret leaving the trusted side); supply-chain (code, models or prompts pulled in from outside).
- Taxonomy chips
- References for readers who work in OWASP LLM 2025, OWASP Agentic, CWE or NIST AI RMF. They say where a rule belongs, not that a framework is satisfied.
seceng.redis.ai-cache-without-ttl
Section titled “seceng.redis.ai-cache-without-ttl”info python, typescript, javascript, java, csharp, php redis
Redis caches prompt, completion, messages, memory, transcript, embedding, or tool output without visible TTL/expiration.
Confidence P2: a heuristic or a posture check: confirm by reading the code. False-positive risk medium: the pattern is legitimate in many programs, so check each hit.
Edge inspected: writes one thing writes to another.
CWE-312 CWE-770 LLM02 LLM07 LLM10 ASI06 ASI02 ASI08 GOVERN MANAGE
seceng.redis.ai-cache-without-tenant-prefix
Section titled “seceng.redis.ai-cache-without-tenant-prefix”info python, typescript, javascript, java, csharp, php redis
Redis AI cache key appears to omit tenant, user, workspace, organization, or session namespace.
Confidence P2: a heuristic or a posture check: confirm by reading the code. False-positive risk medium: the pattern is legitimate in many programs, so check each hit.
Edge inspected: grants authority is given or left unchecked.
CWE-639 CWE-312 LLM02 LLM08 ASI03 ASI06 MAP MANAGE
seceng.redis.prompt-cache-without-redaction-or-encryption
Section titled “seceng.redis.prompt-cache-without-redaction-or-encryption”info python, typescript, javascript, java, csharp, php redis
Redis cache stores prompts/messages/completions without visible redaction, hashing, or encryption.
Confidence P2: a heuristic or a posture check: confirm by reading the code. False-positive risk medium: the pattern is legitimate in many programs, so check each hit.
Edge inspected: writes one thing writes to another.
CWE-312 LLM02 LLM07 ASI06 GOVERN MANAGE
seceng.redis-embedding-cache-shared-key
Section titled “seceng.redis-embedding-cache-shared-key”info python, typescript, javascript, java, csharp, php redis
Embedding/vector cache uses shared key without tenant/user/resource isolation metadata.
Confidence P1: dangerous in context. False-positive risk high: it finds a lead to confirm, so expect benign hits.
Edge inspected: grants authority is given or left unchecked.
CWE-639 LLM08 ASI03 ASI06 MAP MANAGE
seceng.redis-cache-poisoning-from-model-output
Section titled “seceng.redis-cache-poisoning-from-model-output”warning python, typescript, javascript redis
Model output appears to control Redis key or cached value used for memory/routing without visible validation.
Confidence P2: a heuristic or a posture check: confirm by reading the code. False-positive risk medium: the pattern is legitimate in many programs, so check each hit.
Edge inspected: writes one thing writes to another.
CWE-20 CWE-915 LLM08 LLM05 ASI06 MEASURE MANAGE
seceng.redis-url-without-tls
Section titled “seceng.redis-url-without-tls”warning python, typescript, javascript redis
Redis URL appears to use plaintext redis:// for AI memory/cache data. Prefer TLS and auth for sensitive AI state.
Confidence P1: dangerous in context. False-positive risk high: it finds a lead to confirm, so expect benign hits.
Edge inspected: grants authority is given or left unchecked.
CWE-319 LLM02 LLM08 ASI06 GOVERN MANAGE
seceng.redis-public-cache-no-auth
Section titled “seceng.redis-public-cache-no-auth”info generic redis
Redis service/cache appears exposed without auth/password/TLS hint in an AI memory or agent context.
Confidence P1: dangerous in context. False-positive risk high: it finds a lead to confirm, so expect benign hits.
Edge inspected: grants authority is given or left unchecked.
CWE-306 CWE-312 LLM02 LLM08 LLM10 ASI06 ASI02 ASI10 GOVERN MANAGE