Skip to content
Skills Library
Security · Planning

data-protection-and-encryption

/data-protection-and-encryption

Protects data itself rather than the systems around it — classifying what you hold, encrypting in transit and at rest and understanding what each actually defends against, managing keys and their rotation, handling secrets in applications and pipelines, minimizing and de-identifying, and deleting on purpose. Use this to design data protection for a system, assess an encryption claim, set up key or secret management, or work out what a stolen backup would actually expose.

Repository
headcount ↗
Licence
MIT
Last repository change
18.10.2026

Assessment and security

90/ 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.
Content25 / 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
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.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

Protects data itself rather than the systems around it — classifying what you hold, encrypting in transit and at rest and understanding what each actually defends against, managing keys and their rotation, handling secrets in applications and pipelines, minimizing and de-identifying, and deleting on purpose. Use this to design data protection for a system, assess an encryption claim, set up key or secret management, or work out what a stolen backup would actually expose.

Original author description

Protects data itself rather than the systems around it — classifying what you hold, encrypting in transit and at rest and understanding what each actually defends against, managing keys and their rotation, handling secrets in applications and pipelines, minimizing and de-identifying, and deleting on purpose. Use this to design data protection for a system, assess an encryption claim, set up key or secret management, or work out what a stolen backup would actually expose.

How it works

  1. Classify before you protect, because you cannot protect everything equally
  2. Know what each kind of encryption actually defends against
  3. Keys are the whole control
  4. Secrets are the credential case of the same problem
  5. Minimize, de-identify, and delete
  6. Sources
  7. Never
Original SKILL.md headings · 84 lines, 707 words
SKILL.md preview
---
name: data-protection-and-encryption
description: Protects data itself rather than the systems around it — classifying what you hold, encrypting in transit and at rest and understanding what each actually defends against, managing keys and their rotation, handling secrets in applications and pipelines, minimizing and de-identifying, and deleting on purpose. Use this to design data protection for a system, assess an encryption claim, set up key or secret management, or work out what a stolen backup would actually expose.
---

# Data protection and encryption

Perimeter and identity controls protect access to data. These controls protect the data when those
have already failed, which is the scenario worth designing for.

## Classify before you protect, because you cannot protect everything equally

A short scale beats a detailed one — three or four levels that people can apply without a manual.
What matters is that each level carries concrete handling rules: where it may be stored, who may
access it, whether it may leave the environment, and how long it is kept.

**Find it before you classify it.** Sensitive data is rarely only where the architecture says it
is: it accumulates in exports, analytics environments, test databases seeded from production,
support tickets, and log files.

## Know what each kind of encryption actually defends against

This is where claims get made loosely and expectations diverge from reality.

- **In transit** protects against interception on the network. Enforce it everywhere, including
  internal service-to-service traffic, and prefer a modern configuration over one accumulated
  over years.
- **At rest, provider-managed** protects against physical media theft and disk disposal. It does
  not protect against an application bug, a compromised credential, or an over-broad query — the
  storage layer decrypts transparently for anything with legitimate access. Full-disk encryption
  on a running server protects almost nothing about that server.
- **Application-level or field-level** protects specific fields from anything below the
  application, including database administrators and backups. It costs you searchability and
  indexing on those fields, which is a real design constraint rather than a footnote.

Choose deliberately. "Encrypted at rest" as a blanket assurance usually means the first of these,
and answers far less than the person asking believes.

## Keys are the whole control

Encryption moves the problem to key management; it does not remove it. A key stored beside the
data it protects provides documentation, not protection.

- **Use a managed key service or hardware-backed store.** Keys in configuration files, environment
  variables committed to a repository, or application code are the common real-world failure.
- **Separate duties** so the people who administer the data are not the people who administer the
  keys.
- **Plan rotation before you need it**, including how you re-encrypt existing data. Rotation nobody
  has practiced is a policy, and the moment you need it is after a suspected exposure.
- **Know what key destruction means.** Deleting a key makes the data unrecoverable, which is either
  a deletion mechanism you designed for or an outage you did not.

## Secrets are the credential case of the same problem

Application secrets — database passwords, API keys, service tokens — belong in a secret manager,
injected at runtime, scoped narrowly, and rotated on a schedule and on staff departure.

**Scan for committed secrets in CI and pre-commit**, and treat any secret that has ever reached a
repository as compromised. Removing the commit does not un-publish it; rotation is the only
remediation.

## Minimize, de-identify, and delete

The most reliable protection is not holding the data.

- **Collect what the purpose needs.** Every extra field is a permanent liability with no owner.
- **Do not seed test environments from production** without de-identification. This is one of the
  most common exposures and one of the easiest to fix.
- **Understand that removing names is not anonymization.** A combination of ordinary fields often
  re-identifies people; treat de-identified data as still sensitive unless someone has actually
  tested that it is not.
- **Delete on a schedule you can evidence**, and confirm deletion reaches backups, replicas,
  analytics copies and archives — where it usually does not.

## Sources

`references/sources.md` in this skill lists the outside authorities that settle the questions
here — what each one is authoritative for, and what you may do with it. Check them before
answering on anything they cover, and cite what you used. Most are free to read and not free
to reproduce; the use note on each is binding.

## Never

- Describe data as encrypted without saying against which threat.
- Store a key or secret in the same place as the data or code it protects.
- Rotate credentials without confirming the old ones stop working.
- Copy production data into a test environment without de-identifying it first.
Files in this package (2)
  • SKILL.md 5 KB
  • references/sources.md 2 KB

Versions

The database has no other skills named data-protection-and-encryption.

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

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90data-privacy
    Data in transit, data at rest, privacy/minimization and safe logging. Use when touching storage, encryption, TLS, personal data, analytics or third-party SDKs, logs or telemetry, backups or account deletion.
  • 100data-encryption
    Encrypt data at rest and in transit with vetted primitives and a managed key service that rotates on schedule. Use when handling sensitive data on disk or over the network, or when reviewing how a system stores and moves it.
  • 100lgpd-encryption-keys
    Configure encryption at rest, in transit, and key management aligned with LGPD Art. 46 (security duty) and the ANPD's Guia de Segurança da Informação para ATPP. Use when user asks 'criptografia LGPD', 'KMS', 'TDE', 'encryption at rest', 'rotação de chaves', 'pgcrypto',…
  • 90data-privacy-auditor
    Audit data protection and privacy - PII/PHI handling, encryption at rest and in transit, retention, logging of sensitive data, tenant isolation, and GDPR/CCPA obligations. Use for /vault, privacy reviews, or compliance-driven data audits.
  • 100crypto-data-protection
    Protect sensitive data: unencrypted data in transit or at rest, password storage, key handling and sensitive information leakage through responses, URLs, caches and analytics. Use when handling PII, credentials, payments or health/financial data.
  • 100sensitive-data-protection
    OWASP A03 - Sensitive Data Exposure Prevention. Use this skill when handling PII, passwords, credit cards, API keys, or any sensitive information. Activate when: encryption, PII, personal data, credit card, SSN, password storage, HTTPS, TLS, data at rest, data in transit, GDPR,…

Feedback and reports

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