원클릭으로
secret-rotation-plan
Find committed secrets and draft a prioritised, step-by-step rotation plan saved to context.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Find committed secrets and draft a prioritised, step-by-step rotation plan saved to context.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
White-box detection of broken authorization (BOLA/IDOR, BFLA, access-control logic flaws) in an API or web codebase. Use when asked to audit authorization, hunt IDOR/BOLA, check object-level or function-level access control, or verify that handlers scope data access to the current principal/tenant. Reconstructs the app's ownership model first, then finds access paths that skip the per-object/per-role check their peers enforce. Static, read-only; delegates injection/secrets/path-traversal to run_semgrep/run_gitleaks.
Fast security pass over a pull request diff — scanners plus a targeted grep for risky patterns.
Build a STRIDE threat model of a codebase from its structure and code, using the bundled template.
| name | secret-rotation-plan |
| description | Find committed secrets and draft a prioritised, step-by-step rotation plan saved to context. |
| tags | ["secrets","gitleaks","remediation","incident"] |
When secrets have been committed to a repository, finding them is only half the
job — each one must be rotated, and rotation has an order and a blast radius.
This skill turns a gitleaks scan into an actionable, prioritised plan and
records it so the work survives the current session.
Scan for secrets. Run run_gitleaks over the repository. It reports each
finding with its rule, file, line, and a redacted snippet.
Classify each finding. For every secret, determine:
read_file to inspect surrounding code where the snippet alone is
ambiguous (e.g. to see which service a token talks to).Prioritise. Order rotation by blast radius and exposure: production credentials and anything in a public repo first; low-scope or already-expired secrets last. A leaked production database password outranks a dev-only token.
Draft the plan. For each secret, write concrete steps: where to rotate it (which console / secret manager), what to update afterwards (env vars, CI secrets, deployments), how to invalidate the old value, and how to confirm nothing still depends on it. Remember that rotating a secret and purging it from git history are two separate tasks — note both.
Persist the plan. Save it with write_context (e.g. under a name like
secret-rotation-plan) so it outlives this session and a teammate can pick
it up. Use read_context / list_context first to check whether a prior
plan already exists and should be updated rather than duplicated.
Report. Summarise the count and severity of findings, the rotation order, and where the full plan was saved.
gitleaks scans the working tree the Session is pointed at — secrets that
were force-pushed away but linger in forks or backups are out of its reach;
say so when relevant.