audit-account-type-leak

Detect cross-TYPE and cross-USER data leaks in PostgreSQL RLS policies.

Updated May 30, 2026
One-click install
npx skills add https://github.com/buitrankimlong/thongtincty --skill audit-account-type-leak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-account-type-leak
Source: https://github.com/buitrankimlong/thongtincty/tree/main/.claude/skills/audit-account-type-leak
Command: npx skills add https://github.com/buitrankimlong/thongtincty --skill audit-account-type-leak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies data leaks across different account types and users, helping to prevent cross-TYPE and cross-USER leaks in user profiles and dialogs.

Core Features & Use Cases

  • Cross-TYPE Leak Detection: Identifies data of one account type appearing in another account type's view.
  • Cross-USER Leak Detection: Detects when one user can see another user's data due to RLS OR-style policies.
  • Use Case: When investigating why a user sees entries from unexpected users in their own profile view, this Skill can help identify and resolve the issue.

Quick Start

Run the 'audit-account-type-leak' skill to scan for potential data leaks across account types and users in your system.

Frequently Asked Questions about audit-account-type-leak

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect cross-user data leaks caused by PostgreSQL RLS OR-style policies?

To detect cross-user data leaks caused by PostgreSQL RLS OR-style policies, you can scan user profiles and dialogs to identify when one user's data appears in another user's view due to overly permissive access rules.

What is a cross-account-type data leak in database security?

A cross-account-type data leak is a database security issue where data belonging to one account type appears in another account type's view, often caused by misconfigured Row Level Security policies.

Do I need PostgreSQL to analyze RLS policies for data access pattern leaks?

Yes, you need PostgreSQL to analyze RLS policies for data access pattern leaks, as the detection process specifically requires evaluating PostgreSQL Row Level Security rules and user access patterns.

How to investigate why a user sees unexpected entries in their own profile view?

To investigate why a user sees unexpected entries in their own profile view, run an audit to detect cross-user data leaks by analyzing your RLS OR-style policies and data access patterns.

When should I run an audit for cross-type and cross-user data leaks?

You should run an audit for cross-type and cross-user data leaks during phase 5 or later of software development to prevent security and data integrity issues before deployment.

What's the best way to prevent data leaks across different account types and users?

The best way to prevent data leaks across different account types and users is to actively analyze RLS policies and data access patterns to identify and resolve cross-type and cross-user visibility issues.