alibabacloud-ecs-sec-kernel

alibabacloud-ecs-sec-kernel is a skill for Claude Code from aliyun/alibabacloud-ecs-troubleshoot-skills. It costs 233 tokens per session (3,834 once invoked), scanned B, original, Apache-2.0.

A Linux kernel security scanner that checks for known CVE vulnerabilities and can test whether they are exploitable. CVEs are public identifiers for reported security flaws; the tests need administrator access and can crash the system.

In plain words
What is it for?
Use it to scan kernels, verify individual CVEs, run proof-of-concept tests, and produce JSON security reports in an isolated test environment.
Why use it?
It helps determine whether a Linux server’s kernel contains specific local privilege-escalation flaws, where an ordinary user may gain administrator access.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to scan kernels, verify individual CVEs, run proof-of-concept tests, and produce JSON security reports in an isolated test environment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aliyun/alibabacloud-ecs-troubleshoot-skills --skill alibabacloud-ecs-sec-kernel
Clone the repo
git clone --depth 1 https://github.com/aliyun/alibabacloud-ecs-troubleshoot-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alibabacloud-ecs-sec-kernel

README.md
[![agentmods](https://agentmods.dev/badge/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel/github.svg)](https://agentmods.dev/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel)
Your own site
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alibabacloud-ecs-sec-kernel

Your own site · 80×15
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-kernel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 233 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,834 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 13
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 50
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 53
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 56
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 62
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00233 $0.03834
Opus 5 $0.00117 $0.01917
Sonnet 5 $0.00047 $0.00767
Haiku 4.5 $0.00023 $0.00383

Measured 12d ago against content hash 04ff4d5791c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

alibabacloud-ecs-sec-kernel scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (__init__.py, __main__.py, bundle_python311.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- terminal (sudo required)
skills/alibabacloud-ecs-sec-kernel/SKILL.md · 323 lines

How it starts

The opening of the file, as written. The whole thing — 323 lines — stays where its author put it; the contents beside it link to each section on GitHub.

sec-kernel

Linux 内核 CVE 漏洞检测与 PoC 验证工具。88 个内核漏洞检测器,CTF 挑战模式验证。

Version: 1.4.1 (JSON-driven architecture)

触发场景

当以下场景出现时,务必主动调用此技能:

  • 检测 Linux 内核漏洞
  • 验证特定 CVE 是否可利用
  • 执行 PoC 三阶段验证(Prepare → Run → Post)
  • 内核安全评估或审计
  • 用户提到 "内核安全"、"CVE"、"提权漏洞"、"PoC" 等关键词
  • 需要判断当前内核版本是否存在已知漏洞
  • 执行本地提权(LPE)路径验证

⚠️ 安全声明

PoC 验证可能导致 kernel crash (panic/hang/deadlock),建议在隔离的虚拟机/可快照环境中运行。 PoC 不会永久改写系统文件,不会进行持久化提权。所有临时修改均在 Post 阶段完整恢复。 使用本工具即表示您同意遵守 完整安全声明 中的所有条款。 违规使用需承担全部法律责任。

快速使用

# 从 skill 根目录执行:

# 需要 root 权限(sudo)

# 首次运行:编译 PoC 二进制 + 全量检测(推荐)
sudo python3 -m scripts --compile-poc --verbose

# 全量检测与 PoC 验证(poc-bin 已编译后)
sudo python3 -m scripts --verbose

# 单 CVE 验证
sudo python3 -m scripts --cve-id CVE-2026-31431 -v

# 列出所有检测器(无需 root)
python3 -m scripts --list-detectors

# 输出 JSON 格式报告
sudo python3 -m scripts --format json -v

CLI 参数

参数 类型 默认值 说明
--mode choice host 运行模式(仅 host,Linux 服务器环境)
--poc-output path ./workspace PoC 证据输出目录
--poc-timeout int 30 PoC 执行超时时间(秒)
--no-prepare flag off 跳过 Prepare 阶段
--no-post flag off 跳过 Post 阶段
--poc-user string nobody Run 阶段执行用户(降权执行)
--no-force-demote flag off 不强制降权到非特权用户
--compile-poc flag off 自动编译缺失的 PoC 二进制文件(plain 模式)
--output-dir path ./workspace 报告输出目录
--format choice markdown 报告格式(markdown / json
--cve-id string - 仅检测指定 CVE
--config path - 配置文件路径
--verbose / -v flag off 详细输出
--list-detectors flag off 列出所有检测器(无需 root)

关键参数说明

默认行为: 所有在 kernel_cves.yamlenabled: true 的 CVE 都会自动执行 PoC 验证,无需额外参数。唯一跳过 PoC 的条件是将 CVE 设置为 enabled: false

--compile-poc: 当 poc-bin/ 目录下缺少对应 ELF binary 时,自动调用 poc-src/build.sh 编译。首次运行时必须使用此参数(poc-bin/ 不再随仓库分发,需从源码动态编译)。

Why: PoC 二进制从源码动态编译,避免在 git 中存储大量 ELF 文件。编译采用静态链接 + strip,确保跨发行版兼容。

Read the full file on GitHub · 323 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 323 lines · 233 tokens per session scan B 04ff4d5791c7

Subscribe to this mod's changes

alibabacloud-ecs-sec-kernel is a skill published in the GitHub repository aliyun/alibabacloud-ecs-troubleshoot-skills (147 stars, last pushed 23d ago), licensed Apache-2.0. It adds 233 tokens to every session and 3,834 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories