Skip to content
Skills Library
Security · Analysis

data-exposure-containment

/data-exposure-containment

Stop an active data-exposure leak by closing the path, then measure what actually left, without inventing conclusions beyond the logs. Use when a confirmed exposed endpoint or public artifact was serving data it should not have, and exposure may span hours or days

Repository
patchwise ↗
Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Stop an active data-exposure leak by closing the path, then measure what actually left, without inventing conclusions beyond the logs. Use when a confirmed exposed endpoint or public artifact was serving data it should not have, and exposure may span hours or days

Original author description

Stop an active data-exposure leak by closing the path, then measure what actually left, without inventing conclusions beyond the logs. Use when a confirmed exposed endpoint or public artifact was serving data it should not have, and exposure may span hours or days

How it works

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Original SKILL.md headings · 62 lines, 413 words
SKILL.md preview
---
name: data-exposure-containment
description: "Stop an active data-exposure leak by closing the path, then measure what actually left, without inventing conclusions beyond the logs. Use when a confirmed exposed endpoint or public artifact was serving data it should not have, and exposure may span hours or days"
pack: patchwise
version: 1.0.0
category: defensive-security
tags: [exposure, containment, logs]
---

# Data Exposure Containment

> Stop an active data-exposure leak by closing the path, then measure what actually left, without inventing conclusions beyond the logs

**Use when:** a confirmed exposed endpoint or public artifact was serving data it should not have, and exposure may span hours or days

**Avoid when:** nothing has been exposed yet, and containment is preventive rather than measured

## Procedure

1. Close the exposure path itself first: fix the endpoint, protect the artifact, or break the route that serves the data.
2. Compute what the exposure covered: which objects, fields and tenants, from the moment it opened to the moment it closed.
3. Query access logs to determine which identities requested the exposed data and how often, staying within your own entitlements.
4. Separate suspicious access from ordinary traffic, since legitimate users may have been reading data they were meant to see.
5. Contact affected data owners if the exposure crossed their boundaries, before they discover it external to your process.
6. Record what closed the leak, when, and what the measurement showed, keeping the honest lower bound explicit where logs are incomplete.

## Signals

- Access logs show reads from identities that should never have held the data, during the exposure window.
- The exposure span is wider than any visible change log, so the defect may predate release tracking.
- A cache or CDN edge copies persist after the origin closes, which means the leak continues at another layer.
- Affected tenants are anonymous within your logs, since your chosen correlation fields shift with identity sources.

## Patterns

**1. Close path**

```text
disable /api/documents/public (rounding only tenant admins)
read close 2026-10-28T14:31Z
```

**2. Access read**

```text
log range 2026-10-20..10-28: 91 callers, 14 unknown-token, tenant-B-requested 8 DOCs
```

**3. Cache sweep**

```text
CDN stale copy sweep -> 3 edge locations invalidated after origin closed
```

## Pitfalls

- Closing the path and stopping there, never measuring what left, so the response underestimates real exposure.
- Incorrectly treating all access as suspicious, when legitimate users were in the same windows being counted.
- Copying caches stay valid after origin closure, which means the leak continues at another layer.

## Done when

- The exposure path is closed at every layer including caches and edges, verified with a fresh request.
- Access measurements are recorded with explicit lower bounds where the logs are incomplete.

## References

- [OWASP - logging cheat sheet](https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html)
- [NIST SP 800-61 - incident handling guidance](https://csrc.nist.gov/pubs/sp/800/61/r2/final)

Versions

The database has no other skills named data-exposure-containment.

Database snapshot: 13.11.2026 · package version c9adb80ba31c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100data-exposure-investigation
    Investigate a data exposure — misconfigured storage, public links, leaked database or backup, data posted on leak sites or paste sites, misdirected bulk email — to determine what data, whose, how long exposed, whether accessed, and support notification decisions. Use when…
  • 100blast-radius-containment-mapping
    Measure exactly what a confirmed defect can reach and touch, and design the smallest containment that stops it from expanding while the full fix is built. Use when a defect is confirmed serious enough to ship within hours, and engineered containment is part of the interim story
  • 95orca-data-exposure
    DSPM view — sensitive data at risk across the environment, exposed secrets/PII/credentials, data store security posture, and remediation priorities. Use when user asks about data exposure, sensitive data, or secrets (e.g., "data exposure", "where is our PII", "sensitive data at…
  • 100s3-exposure-review
    Find and fix Amazon S3 data exposure — account/bucket Block Public Access, bucket policies and ACLs, Object Ownership, cross-account and presigned access, encryption and logging — using Access Analyzer, Macie and CLI checks, and investigate whether exposed data was accessed. Use…
  • 100fireflies-incident-runbook
    Triage Fireflies auth, privacy, webhook, quota, data exposure, processing, and privileged-mutation incidents with containment and evidence boundaries. Use when responding during a live failure or suspected leak. Trigger with "Fireflies incident", "Fireflies outage", or "Fireflies data leak".
  • 90Sensitive Data Leakage
    Detect ANY credential/secret flowing to ANY output sink. Use when asked about "credential leakage", "secret logging", "sensitive data exposure", "CWE-532", "password in logs", "token exposure", or security logging issues.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.