Home/Catalog/Compliance
Compliance — does it respect the user?
Brief 127

Encryption & Key Management

How the product protects data with encryption — in transit, at rest, and at the field level — and whether the keys that unlock it are managed safely.

ENCRYPTION.md4 phases7 lenses~2.6k chars

Free & open · no signup · read-only — it ends by asking · nothing leaves your machine

What it does

You are working inside this repo. Mission: judge how the product protects sensitive data with encryption and how it manages the keys — because encryption with badly handled keys is a lock with the key taped to the door.

Read-only pass. Read the transport config, storage setup, crypto usage, and key handling; change nothing but the report file. Never print a key.

What it looks for

7 lenses it looks through

Phase 2 sweeps the codebase through every one of these, citing file and line for each finding.

1

In transit

TLS everywhere, modern versions, no plaintext internal hops

2

At rest

encryption for databases, backups, files, and object storage

3

Sensitive fields

extra protection (hashing, field-level encryption) for secrets, PII, credentials

4

Key management

where keys live, how they rotate, and who can access them

5

Password & credential storage

strong, salted hashing; nothing reversible or plaintext

6

Algorithm hygiene

modern algorithms; no MD5, SHA1, DES, ECB, or homegrown crypto

7

Coverage gaps

the data paths and stores that slip through unencrypted

The deliverable

What lands in your repo

One structured report at the repo root — or in reports/, if you keep one — the same shape every time, ready for a teammate — or the optional Studio — to act on.

ENCRYPTION.md
1
Protection posture
sensitive data in transit, at rest, and at the field level
2
Findings
each: severity · data · the weakness · the fix
3
Key management
where keys live and rotate, and the gaps to close
4
Priority
the exposures to remediate first
One file. Evidence-backed. It ends by asking before touching anything.
How it works

What it makes the agent do

Every Goal Prompt follows the same four steps, so results are consistent and repeatable — no matter which one you run.

1
Phase 1

Follow the sensitive data

Identify the sensitive data.

2
Phase 2

Audit through 7 lenses

In transit — TLS everywhere, modern versions, no plaintext internal hops.

3
Phase 3

Curate

Rank by sensitivity × exposure.

4
Phase 4

Report

Create ENCRYPTION.md at repo root.

Get started

Three ways to run this Goal Prompt

01 · COPY

Paste it in

Copy it and paste it into your agent inside the repo you want checked.

02 · INSTALL

As a slash command

Install the goal plugin once — two commands — then just type /goal:encryption-key-management.

1/plugin marketplace add GhostlyGawd/goal-prompts
2/plugin install goal@goal-prompts

Or install only this Goal Prompt as /goal-encryption-key-management:

curl -fsSL https://goal-prompts.vercel.app/install | BRIEF=127 sh
03 · AGENT

From an agent (MCP)

Let an agent fetch it mid-conversation, or pull the raw Goal Prompt by URL.

https://goal-prompts.vercel.app/raw/127.md
Transparency

The exact prompt

Nothing hidden — this is the whole Goal Prompt, verbatim. Read it in a minute, edit it, or copy it as-is.

Read the full brief (2,604 characters)
# Goal: Encryption & Key Management

You are working inside this repo. Mission: judge how the product protects sensitive data with encryption and how it manages the keys — because encryption with badly handled keys is a lock with the key taped to the door.

Read-only pass. Read the transport config, storage setup, crypto usage, and key handling; change nothing but the report file. Never print a key.

## Phase 1 — Follow the sensitive data
- Identify the sensitive data: credentials, PII, tokens, payment data.
- Trace it in transit and at rest: what protects it on the wire and in storage.
- Find where cryptographic keys and secrets live and who can reach them.

## Phase 2 — Audit through 7 lenses
1. **In transit** — TLS everywhere, modern versions, no plaintext internal hops
2. **At rest** — encryption for databases, backups, files, and object storage
3. **Sensitive fields** — extra protection (hashing, field-level encryption) for secrets, PII, credentials
4. **Key management** — where keys live, how they rotate, and who can access them
5. **Password & credential storage** — strong, salted hashing; nothing reversible or plaintext
6. **Algorithm hygiene** — modern algorithms; no MD5, SHA1, DES, ECB, or homegrown crypto
7. **Coverage gaps** — the data paths and stores that slip through unencrypted

## Phase 3 — Curate
- Rank by sensitivity × exposure: plaintext credentials or weak password hashing tops the list.
- For each, name the fix — enable at-rest encryption, rotate keys out of the code, replace the weak algorithm.
- Separate "not encrypted" from "encrypted but the key is mishandled"; both fail.

## Phase 4 — Report
Create `ENCRYPTION.md` at repo root:
1. **Protection posture** — sensitive data in transit, at rest, and at the field level
2. **Findings** — each: severity · data · the weakness · the fix
3. **Key management** — where keys live and rotate, and the gaps to close
4. **Priority** — the exposures to remediate first

Start the report with today's date. If `ENCRYPTION.md` already exists from a previous run, read it first and lead with what changed since.

## Rules
- Encryption is only as strong as the key management behind it
- Never roll your own crypto; use vetted algorithms and libraries
- No sensitive data to encrypt in this repo? Say so in a one-paragraph null report and stop — a null result is a valid finding.
- If a `reports/` directory exists at the repo root, write the report there instead of the root.
- Before asking, present the top findings as a ranked list in plain words
- Report only — end by asking which encryption gaps to close first

House rules for this Goal Prompt

  • Encryption is only as strong as the key management behind it
  • Never roll your own crypto; use vetted algorithms and libraries
  • No sensitive data to encrypt in this repo? Say so in a one-paragraph null report and stop — a null result is a valid finding.
  • If a reports/ directory exists at the repo root, write the report there instead of the root.
  • Before asking, present the top findings as a ranked list in plain words
  • Report only — end by asking which encryption gaps to close first
Keep exploring

More Compliance briefs

Runs inside these playbooks — curated sequences you can launch with one paste: