用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill credential-leak-response命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Cross-server agent health monitoring using binary status vectors — deploy health endpoints on each agent, poll from orchestrator, alert on state transitions.
Wire a self-hosted Langfuse instance to Hermes Agent — generate API keys, configure env vars, enable the bundled plugin, install SDK, and verify traces flow.
Use before enforcement code changes or shared-repo commits.
基于 SOC 职业分类
正在显示 SKILL.md
| name | credential-leak-response |
| version | 1.0.0 |
| category | security |
| description | Use when a credential leaks — verify live, scrub, rotate. |
| metadata | {"hermes":{"tags":["security","credentials","leak","rotation","secrets","incident-response"],"related_skills":["secure-credential-handling","pii-scrubbing","cortex-bus"]}} |
Test the credential against an auth-gated endpoint (e.g. /api/pgmq/queues,
NOT /health, which may or may not be gated), and always run a deliberately
wrong credential as control:
curl -sk -o /dev/null -w "%{http_code}" --basic -u "moses:LEAKED_VALUE" https://host:13004/api/pgmq/queues # 200 = live
curl -sk -o /dev/null -w "%{http_code}" --basic -u "moses:WRONG_CONTROL" https://host:13004/api/pgmq/queues # 401 = baseline
A 200 without the 401 baseline proves nothing. For bearer tokens, test against the DIRECT localhost bus port — Bearer through nginx is ignored (nginx demands Basic and sets X-Forwarded-User), so a token that "401s" through nginx can still be LIVE locally.
A token's owner is the DB row whose hash matches — never the account name in
the config/doc that carried it. (The "esther" setup guide actually held
moses' bus token; esther's .env was seeded with it, so it authenticated
as moses with full queue privileges.) Hash + lookup, then rotate the MAPPED row:
python3 -c "import hashlib; print(hashlib.pbkdf2_hmac('sha256', b'<token>', b'<salt>', <iters>).hex())"
# → SELECT agent_name FROM <tokens_table> WHERE token_hash='<hash>' AND is_active=true;
Use the system's own hash function (check the auth module) — don't guess the algorithm/salt.
The value remains in git history (git show <old-commit>:<file>), and the
credential may still be live server-side. Two closures:
git-filter-repo (see pii-scrubbing skill Phase 4) — needs user authorization, force-push coordinationDo whichever the user authorizes. Scrubbing alone only stops NEW exposure.
In comments/examples describe it ("a 16-char hex password") — never repeat the value. (Almost re-embedded the leaked password in the detector's own history comment while scrubbing.)
One value was in 6 files across 6 commits. git grep -l <string> finds every
current copy; git log -S <string> finds the commits that introduced it (dates
matter for exposure windows).
The pre-commit secret-leak-detector.sh was warn-only (exit 0) from creation,
which let the live credential through every commit for 12 days. Since
2026-08-03 it blocks (exit 1) real-looking inline creds
(curl -u "user:<12+ alnum>"); placeholders (your-password, $(cat file),
short demos) stay warn-only. If a commit is blocked: replace the literal — do
NOT --no-verify. When the detector report prints "N potential leaks",
REVIEW every line before pushing; don't tail-past the report.
cortex-bus skill →
references/credential-rotation.md — token rotation steps, bearer-vs-Basic
exposure model, htpasswd rotation blockers (sudo password required,
Docker userns remapping kills container-root writes, postgres images run as
USER postgres → --user root, gateway parser rejects ssh+heredoc → scp the
script), concurrent-session git safety.--no-verify to push a blocked commit → bypasses the enforcement the leak taught you to build.secure-credential-handling (user-owned) — behavioral rules for not leaking secrets into command strings in the first placepii-scrubbing (user-owned) — full repo PII inventory + git-filter-repo history rewritecortex-bus — bus-specific credential rotation playbook