返回目录
安全与治理 插件

dsh-secret-guard

lengrufeng2008/dsh-secret-guard

Local-only secret scan and redaction for DSH prompts, logs, diffs, and files.

Stars
0
Forks
0
Issues
0
更新
23 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:lengrufeng2008/dsh-secret-guard

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

Secret Guard for DSH

Local-only credential scan and redaction for prompts, logs, diffs, and files. Findings are redacted; the full secret is never returned.

Use

node bin/dsh-secret-guard.mjs --file notes.txt
cat notes.txt | node bin/dsh-secret-guard.mjs --redact

In DSH:

Use secret_scan on this text.
Use secret_redact before sharing this file.

Rules

GitHub tokens, AWS keys, OpenAI-style keys, private-key blocks, JWT-like tokens, and assigned credential values.

Limits

  • Pattern-based, not entropy/AST/secret-manager integration.
  • A clean scan is not proof that a document is secret-free.
  • Redaction can break syntax; review the result.
  • No network, no telemetry, no write to disk.

Tests

npm test

Test tokens are constructed at runtime; no real credential is committed.

Provenance

A small independent scanner. Inspired by common secret-scanning practice; no source copied. License: MIT.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类安全与治理
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: security。