DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

xushilianzhuren /

xushilianzhuren/dsh-least-priv

Verified

最小权限审计闸:机械扫描代码与配置里的提权反模式(sudo/chmod 777/明文凭据/root路径/根目录递归删),附权限四问清单(真需要/能缩/越权后果/过期回收);主权原则内置——一切权力属于操作者,自主只在授予域内,扩权永远需要新的显式授权。

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@5a743ce2

dsh-least-priv

Least-privilege auditor: mechanical scans for privilege anti-patterns, plus the four-question permission gate. Sovereignty is built in — all power belongs to the operator; autonomy lives only inside the granted scope; any privilege escalation requires a fresh explicit grant, never self-service.

Anti-patterns scanned

Family Examples
hardened-escalation sudo · chmod 777 · plaintext credentials
root-traces hardcoded /root/... · granting sudo to users
wide-writes rm -rf / (red-line class)

Four-question gate

  1. Does this piece truly need the privilege?
  2. Can the privilege be narrowed?
  3. What happens on overreach?
  4. When is it revoked?

Install & use

dsh plugin add github:<owner>/dsh-least-priv
curl "http://127.0.0.1:<port>/least-priv/api?act=four"
curl "http://127.0.0.1:<port>/least-priv/api?act=scan&path=/path/to/code"
—/ 5

No ratings yet

Verified DSH bundle

Commit 5a743ce2199e

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout