Home / cha0upup / leoai · root/skills/puppet-node/escalate-linux-privilege/SKILL.md · GitHub

escalate-linux-privilege skillA

escalate-linux-privilege is agent-read markdown (skill) from cha0upup/leoai: 在 Linux Puppet 立足点上以只读方式发现并排序本地提权候选路径,覆盖 sudo、SUID/SGID、cron、PATH、服务、容器、Docker socket、NFS 和版本风险。当红队任务需要扩大本机权限、突破容器边界或判断是否值得投入提权时使用;本 skill 不执行利用。.

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Linux 提权路径优选

目标不是罗列所有弱点,而是找出最可能、收益最高、噪声最低且能推进任务的提权路径。

## 行动目标

- 确认当前权限是否阻碍演练目标。
- 发现本地或容器边界中的可操作提权候选。
- 对候选路径进行前提验证和红队优先级排序。
- 为后续人工或独立验证提供证据,不执行提权。

## 授权与 ROE

- 风险等级:medium;访问模式:read-only。
- 当前已是 root 时停止,转而评估目标达成或后续行动价值。
- 不执行利用、下载代码、编译载荷、写 cron、修改服务或触发崩溃风险测试。
- `sudo` 仅使用非交互模式,不提交密码。
- 摘要不保存可直接执行的利用代码。

## OPSEC 预算

- 先执行高价值低噪声检查,再决定是否扩大搜索。
- SUID/SGID 优先限定标准二进制目录;全根文件系统搜索必须 `-xdev`、限时并限制输出。
- 版本匹配只作为候选,不运行 PoC 验证。
- 独立只读项并发执行;异步命令获取必要输出后调用 `stopTask` 释放资源。

## 工作流

1. 读取侦察摘要,确认任务目标、当前身份、OS、内核和容器状态。
2. 判断提升权限是否会实际推进目标;若不会,建议停止而不是机械扫描。
3. 创建 4 步以内计划:身份与快速路径、配置与文件权限、容器与版本、排序与交接。
4. 执行第一轮低噪声检查;只在没有足够候选时扩大 SUID/cron/服务范围。
5. 对每个候选补齐证据、必要前提、预计收益、稳定性和检测面。
6. 只保留最多 5 条有行动价值的路径,写入一次摘要。

## 快速检查

```bash
id; whoami; groups; uname -r; cat /etc/os-release 2>/dev/null
sudo -n -l 2>/dev/null
printf '%s\n' "$PATH" | tr ':' '\n' | while IFS= read -r dir; do [ -n "$dir" ] && [ -w "$dir" ] && echo "WRITABLE_PATH=$dir"; done
ls -ld /etc/passwd /etc/shadow /etc/sudoers /etc/sudoers.d 2>/dev/null
find /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin -xdev -type f \( -perm -4000 -o -perm -2000 \) -ls 2>/dev/null
cat /etc/crontab 2>/dev/null; crontab -l 2>/dev/null
…

Read the whole file at its exact version.

How to install

Latest version
mdr add cha0upup/leoai/escalate-linux-privilege@git:20260801.6c9c129
Exact content
mdr add cha0upup/leoai/escalate-linux-privilege@sha256:363718cd751a6ffb

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_x6wguwddudkhs65f.svg)](https://markdownregistry.com/a/art_x6wguwddudkhs65f)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260801.6c9c129 latest2026-08-01 6c9c129 5,393 BA view · diff
git:20260619.8264b542026-06-19 8264b54 10,926 BA view · diff
git:20260616.da8811e2026-06-16 da8811e 10,874 BA view · diff
git:20260612.7254e062026-06-12 7254e06 10,833 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (5393 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

cha0upup/leoai · 307 stars · license GPL-3.0 · pushed 2026-09-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_x6wguwddudkhs65f
GET https://markdownregistry.com/api/v1/resolve?ref=cha0upup/leoai/escalate-linux-privilege
GET https://markdownregistry.com/api/v1/blob/363718cd751a6ffb144315391c613a412da9b939d9a0203285b83f4213fee89d

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from cha0upup/leoai

develop-disguise skill
cha0upup/leoai · ai/src/main/resources/skills/platform/develop-disguise/SKILL.md · 当用户希望在平台侧开发、测试、创建或更新 Disguise 时使用。该 skill 用于生成符合平台约束的 trafficEncodeBody、trafficDecodeBody、headersJson、description…
git:20260820.9149adf · audit A · 307 stars
develop-fingerprint skill
cha0upup/leoai · ai/src/main/resources/skills/platform/develop-fingerprint/SKILL.md · 当用户希望在平台侧编写、生成、完善、检查、保存、更新或删除指纹规则时使用。指纹由 NetworkProbe 采集证据,服务侧使用声明式 rule.match 判定。
git:20260918.5a4ff65 · audit A · 307 stars
exploit-suggest skill
cha0upup/leoai · ai/src/main/resources/skills/platform/exploit-suggest/SKILL.md · 当用户希望基于命中的指纹获取后续核查建议时使用。根据已识别组件、实测版本和独立的安全公告评估适用条件,输出有来源的建议,不直接执行利用动作。
git:20260918.5a4ff65 · audit A · 307 stars
shell-obfuscation skill
cha0upup/leoai · ai/src/main/resources/skills/platform/shell-obfuscation/SKILL.md · 理解 LeoAI Java/PHP WebShell 与 Java 内存马生成链路,根据用户本次选择的通信、伪装、兼容性和混淆参数生成独立制品。用户要求生成、变体生成、调整兼容性或排查 Shell 无法连接时使用;始终通过…
git:20260820.9149adf · audit A · 307 stars
analyze-browser-artifacts skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/analyze-browser-artifacts/SKILL.md · 发现当前 Puppet 用户的浏览器 Profile,对书签、历史、Cookie、表单和登录数据库建立一致性副本,将选定制品采集到当前 Agent…
git:20260811.70d939d · audit A · 307 stars
escalate-linux-privilege skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/escalate-linux-privilege/SKILL.md · 在 Linux Puppet 立足点上以只读方式发现并排序本地提权候选路径,覆盖 sudo、SUID/SGID、cron、PATH、服务、容器、Docker socket、NFS…
git:20260801.6c9c129 · audit A · 307 stars
hunt-credentials skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/hunt-credentials/SKILL.md · 在已授权的 Puppet 立足点上定向搜集与红队任务相关的应用、JVM、数据库、SSH、云和服务账号凭据线索,建立“凭据—身份—目标—用途”映射。当需要扩大访问、接近指定业务目标或判断当前主机凭据价值时使用。
git:20260811.70d939d · audit A · 307 stars
lateral-move-ssh skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/lateral-move-ssh/SKILL.md · 使用已授权且已匹配的 SSH 私钥,对明确指定的内网 Linux 目标执行单跳登录和最小分诊,验证能否获得对任务有价值的新立足点。当红队人员已有目标、用户名、私钥路径并明确要求横向验证时使用;不得用于密码喷洒、用户名猜测或自动多跳。
git:20260801.6c9c129 · audit A · 307 stars
persistence-linux skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/persistence-linux/SKILL.md · 在管理员显式启用、演练 ROE 允许且用户精确授权后,为 Linux Puppet 目标部署一项与红队任务匹配、可验证、限时且可完整回滚的持久化机制。当需要在既定存续窗口内维持对指定账号或主机的访问,并已提供载荷、路径和清理要求时使用。
git:20260801.6c9c129 · audit A · 307 stars
recon-basic-info skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/recon-basic-info/SKILL.md · 对新的 Puppet 立足点执行低噪声基础侦察,判断当前权限、业务价值、网络位置、关键服务、容器边界和可用行动入口,并形成红队主机画像。当进入新目标、需要判断立足点价值或尚无可靠侦察摘要时使用。
git:20260811.70d939d · audit A · 307 stars
develop-disguise skill
cha0upup/leoai · root/skills/platform/develop-disguise/SKILL.md · 当用户希望在平台侧开发、测试、创建或更新 Disguise 时使用。该 skill 用于生成符合平台约束的 trafficEncodeBody、trafficDecodeBody、headersJson、description…
git:20260820.9149adf · audit A · 307 stars
develop-fingerprint skill
cha0upup/leoai · root/skills/platform/develop-fingerprint/SKILL.md · 当用户希望在平台侧编写、生成、完善、检查、保存、更新或删除指纹规则时使用。指纹由 NetworkProbe 采集证据,服务侧使用声明式 rule.match 判定。
git:20260918.5a4ff65 · audit A · 307 stars

Every file in cha0upup/leoai

Other files named escalate-linux-privilege

escalate-linux-privilege skill
cha0upup/leoai · ai/src/main/resources/skills/puppet-node/escalate-linux-privilege/SKILL.md · 在 Linux Puppet 立足点上以只读方式发现并排序本地提权候选路径,覆盖 sudo、SUID/SGID、cron、PATH、服务、容器、Docker socket、NFS…
git:20260801.6c9c129 · audit A · 307 stars

Browse by kind, by grade A, or by owner.