返回目录
Agent 与会话 插件

dsh-least-priv

xushilianzhuren/dsh-least-priv

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

Stars
0
Forks
0
Issues
0
更新
24 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:xushilianzhuren/dsh-least-priv

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

PROJECT README

README

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"

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度高

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