Application data exposure testing

From xalgorix/xalgorix · View interactive version

Application data exposure testing is an AI agent skill from the GitHub repository xalgorix/xalgorix. Distinguish real unauthorized data exposure from harmless metadata - response field differentials by role and tenant, over-fetching, alternate serializers and exports, error responses, notifications, audit logs, cached content - requiring meaningful confidentiality or authorization impact to report.

How to use this skill

Skill file

Application Data Exposure Testing

Purpose

Applications leak data through many channels beyond "the endpoint returned a field": nested objects, alternate serializers, exports, error responses, notifications, audit logs, caches. Most such leakage is harmless metadata. This skill finds the subset with meaningful confidentiality or authorization impact - by asking, for every response, what THIS identity should have received versus what it actually received.

Entry Conditions

Differential Reasoning (the core method)

For every response channel:

what should THIS identity receive for this object?
vs
what did it actually receive?

Concretely: fetch the same object as the legitimate owner, then as a different identity (authz_matrix automates the replay), and DIFF the payloads field by field. Fields present in the attacker-context response that belong to another principal are exposure. Fields that are merely descriptive of your own data are not.

Exposure Channels

What Is NOT a Finding By Presence

internal_id, uuid, debug, created_at, role, tech-stack hints, missing security headers

Opaque internal identifiers, timestamps, role names in YOUR OWN record, framework versions: these are metadata. They become findings only when chained into impact:

The rule: an exposure is reportable when a real confidentiality boundary (identity, tenant, or privilege) was crossed, or the data enables a further attack with concrete steps.

Methodology

pick an object class (order, user, document, tenant)
-> fetch as the legitimate owner (baseline)
-> fetch the same object as: lower role, other tenant, anonymous (authz_matrix)
-> diff payloads field-by-field across ALL serializers (json, csv, export, error path)
-> for each extra field: whose data is it? can the receiver act on it?
-> demonstrate impact (read another tenant record, extract PII at scale, chain the id)
-> report with both payloads attached

Evidence Contract

Not enough: "the API returned an internal_id field".

Good proof: the id (in the attacker-context response) resolves to another tenant object - re-fetch the object with that id in the attacker session and show the data returned.

Not enough: "user data found in the CSV export".

Good proof: a lower-privileged user exported a report containing other users emails/phone numbers, with the export request and a matching record from the owner context attached.

Not enough: "error message discloses stack trace".

Good proof: the trace contains a database connection string / internal endpoint / user PII, captured verbatim and shown to be attacker-triggerable.

Common Misses

False Positives

Xalgorix Tool Strategy

When to Load a Specialist Skill

Stopping Rule

Stop when: each major object class has been diffed across available identities over at least two channels (primary API + one export/serializer), error/audit/notification channels have been sampled once each, and no new channel appears. Report the exposures that cross a confidentiality boundary with impact; record metadata observations as notes for chaining - do not report them standalone.

Handoffs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.