peephole
免费Show or change Peephole's enforcement mode (guided (default), audit, strict, hardened, off). Use when the user says /peephole, wants to see the current security mode, or asks to make enforcement stricter or looser.
中文简介正在准备中。当前显示原文说明。
Explain and list Peephole sec-debt markers — deliberate, human-authorized security trade-offs recorded in code. Use when the user says /sec-debt, wants to knowingly accept a security finding, or asks what deferred security items exist.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
A sec-debt marker is how a deliberate security trade-off is recorded so it is auditable instead of silent. Write it as a comment on or directly above the flagged line — a marker only applies to findings near it, never to the whole file:
# sec-debt: CWE-89 — internal admin tool, network-isolated; upgrade path: parameterize before exposing
Rules (binding):
/sec-audit, never
silently honored.Run:
sh "$CLAUDE_PLUGIN_ROOT/hooks/peephole.sh" debt
It scans the codebase for every sec-debt: marker and cross-checks each against
.peephole/secdebt-approved, flagging any UNAPPROVED marker as an evasion
risk. A human approves a marker by adding its file (or file:line) to
.peephole/secdebt-approved. Review each unapproved marker: confirm the stated
precondition still holds, or fix the underlying issue.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Show or change Peephole's enforcement mode (guided (default), audit, strict, hardened, off). Use when the user says /peephole, wants to see the current security mode, or asks to make enforcement stricter or looser.
中文简介正在准备中。当前显示原文说明。
Print Peephole's security audit report for this project — current mode, binary integrity, the CWE-mapped decision tally, sec-debt items needing approval, and tamper-evident log-chain status. Use when the user says /sec-audit or asks what Peephole has blocked or flagged.
中文简介正在准备中。当前显示原文说明。
Review the current changes for the CWE classes Peephole enforces, as a checklist including the absence-of-guard classes regexes cannot catch. Use when the user says /sec-review or asks for a security review of recent code before committing.
中文简介正在准备中。当前显示原文说明。