Skill
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, managin…
- Security
- data-protection-and-encryption
- version 1.1.0
- MIT license
- 3 outside sources
When it loads
Your assistant reads this description and loads the skill when a request matches it. Nothing else is in context until then.
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.
Add it to your assistant
This skill ships in the Security department, with 7 others.
Claude Code
/plugin marketplace add cbrock84/headcount
/plugin install security@headcount
ChatGPT and Codex
This department is packaged for the ChatGPT plugin directory and not listed there yet. Until it is, add this repository as a plugin marketplace, or copy plugins/security/skills/ into .agents/skills/ in your own project.
GitHub Copilot CLI
copilot plugin marketplace add cbrock84/headcount
copilot plugin install security@headcount
Cursor
The repository is a Cursor plugin marketplace. On a Teams or Enterprise plan, import it under Dashboard, Plugins & MCPs, New marketplace, Import from a repository. To try this department on one machine, copy plugins/security into ~/.cursor/plugins/local/ and reload the window.
Gemini CLI
Gemini CLI installs one skill at a time:
gemini skills install https://github.com/cbrock84/headcount.git --path plugins/security/skills/data-protection-and-encryption
The skill is identical in every tool. The Copilot, Cursor and Gemini steps follow each tool's published format and have not been run end to end here.
What the skill tells the assistant
The full text, as it installs. View the source on GitHub.
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.
Company context
Before answering, look for the company profile: the file .headcount/company.md in the working folder, or a document titled "Headcount company profile" in the conversation, the project's instructions or files, or saved memory. Where there is one, answer for that company and do not ask for anything it already states. Where it conflicts with what the person says now, the person is right, and say that the profile looks out of date. Where there is none, carry on: ask only for the facts this question turns on, and mention once that executive:company-onboarding records them so they are not asked again.
Other departments
A skill written as department:skill belongs to another department, and each department installs separately. If the one a question belongs to is not installed, name the department that owns it and how to add it, and do not improvise its work. references/departments.md in this skill lists each department this skill names, with the install step for Claude Code and for ChatGPT.
Files it ships with
Loaded only when the skill calls for them.
Sources it checks against
Where a question has an outside authority, the skill points the assistant at it instead of answering from memory.
- FIPS 140-3: Security Requirements for Cryptographic Modules NIST
Whether a cryptographic module is validated and at what level. Not an opinion about cryptographic quality — a certification fact that federal and many regulated buyers depend on.
- NIST SP 800-57 Part 1: Recommendation for Key Management NIST
Approved algorithms and key lengths, cryptoperiods by key type, and the full key lifecycle. The referee for how long a key may stay in use and whether a length is still acceptable.
- PCI Data Security Standard PCI Security Standards Council
Whether a support agent may take a card number by phone, whether that call may be recorded, and what must happen to card data in ticket attachments and screen shares. Assessed by a qualified assessor, so genuinely dispositive.
More in Security
- Access and identity
Designs and audits who can reach what — authentication, authorization models, privileged access, service credentials, and joiner-mover-leaver process.
- Chief Information Security Officer
Owns the security posture of the organization — architecture, program strategy, risk acceptance, incident command, and the authority to stop work that creates unacceptable exposure.
- Detection and monitoring
Builds the capability to notice an attack in progress — deciding what to log and retain, centralizing it somewhere tamper-resistant, writing detections that fire on attacker behav…
- Incident response
Runs a security incident from detection to closure — triage, containment, investigation, communication, and the review afterward.
- Security architecture review
Reviews a design or change for security before it ships — authentication and authorization, data handling, secrets, dependencies, and the secure-development practices around it.
- Threat modeling
Identifies what could go wrong in a system before it is built or changed — the assets worth attacking, the entry points, the trust boundaries, and the controls that actually addre…
- Vulnerability management
Runs the loop from discovering a weakness to confirming it is fixed — scanning, triage, prioritization by real exploitability, remediation tracking, and patch policy.