Stop Crosstenant Cache Leaks

    1

    Repair cache bugs that expose one customer’s data to another tenant or return stale results after writes.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    See it in action

    You say

    Our Redis cache is leaking data between organizations. When Org A updates their project list, Org B sometimes sees Org A's stale projects. Fix the key scoping and invalidation.

    Your agent does

    I identified that the 'project_list' key was missing a tenant identifier. I modified ProjectRepository.js to use a scoped key: 'env:tenant_id:projects:v1'. I also added a precise invalidation call in the UpdateProject service and verified that Org B no longer sees Org A's data.

    What you get

    Eliminate cross-tenant data leakage in shared cache environments.Implement tenant-aware cache invalidation to stop stale data reads.Prevent cache stampedes using scoped distributed locking.Audit and repair authorization boundaries for cached protected resources.

    About this skill

    The problem

    Multi-tenant applications often leak sensitive data when cache keys lack proper scoping or invalidation logic. Developers face cross-tenant data collisions, stale reads after updates, and authorization bypasses during cache hits.

    What it does

    • Audits Redis, Memcached, and in-memory caches for unsafe key construction.
    • Traces cached values from storage to retrieval to ensure authorization boundaries are respected.
    • Applies tenant-scoped cache key contracts and precise invalidation triggers.
    • Implements stampede protection and namespace versioning to prevent performance degradation.
    • Validates repairs using concurrent request simulations and cross-tenant leakage tests.

    Frameworks & tools

    Supports Redis, Memcached, CDN layers, and framework-specific query or response caches. Works with any standard tenant model involving organization, workspace, or user identifiers.

    Why this beats prompting it yourself

    Generic prompts often miss subtle race conditions or fail to verify if a cache hit bypasses server-side authorization. This skill follows a strict execution process that mandates cross-tenant testing and precise invalidation over simple TTL-based fixes.

    Use cases

    • Preventing User A from seeing User B's cached dashboard data.
    • Fixing stale permission caches after a user's role has been revoked.
    • Ensuring search results remain isolated within a specific organization's namespace.
    • Protecting authoritative databases from stampedes during high-concurrency cache misses.

    Known limitations

    Requires server-side validation of tenant identifiers. Cannot verify distributed behavior if only local mocks are available without access to the actual cache provider.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions