alibabacloud-ecs-sec-userspace

alibabacloud-ecs-sec-userspace is a skill for Claude Code from aliyun/alibabacloud-ecs-troubleshoot-skills. It costs 233 tokens per session (4,379 once invoked), scanned D, original, Apache-2.0.

A Linux server security scanner and investigation tool for Alibaba Cloud ECS machines. It checks for signs of intrusion and collects evidence about processes, network activity, logins, persistence, rootkits, malware, memory, and container escapes.

In plain words
What is it for?
Use it for server security assessments, intrusion detection, system audits, malware checks, and incident response on Alibaba Cloud ECS Linux systems.
Why use it?
It helps determine whether a server may have been compromised and records evidence for review. It also provides suggested fixes and maps findings to MITRE ATT&CK, a common catalog of attacker techniques.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code; mentions Gemini CLI; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd /data/sec-userspace && sudo python3 scripts/setup_permissions.py --auto.

Good fit Use it for server security assessments, intrusion detection, system audits, malware checks, and incident response on Alibaba Cloud ECS Linux systems.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/aliyun/alibabacloud-ecs-troubleshoot-skills
agentmods
npx agentmods add skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace

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-userspace

README.md
[![agentmods](https://agentmods.dev/badge/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace/github.svg)](https://agentmods.dev/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace)
Your own site
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace/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-userspace

Your own site · 80×15
<a href="https://agentmods.dev/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace"><img src="https://agentmods.dev/badge/skills/aliyun/alibabacloud-ecs-troubleshoot-skills/alibabacloud-ecs-sec-userspace.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 4,379 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.04379
Opus 5 $0.00117 $0.02190
Sonnet 5 $0.00047 $0.00876
Haiku 4.5 $0.00023 $0.00438

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

Security

Grade D, and why

alibabacloud-ecs-sec-userspace scanned grade D with 2 findings 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 24 executable files (__init__.py, scripts/__init__.py, scripts/__main__.py, …), 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 for full scan)

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

| SSH 密钥 | `sudo cat /root/.ssh/authorized_keys` |
skills/alibabacloud-ecs-sec-userspace/SKILL.md · 389 lines

How it starts

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

sec-userspace

Linux 服务器安全入侵检测与取证工具 | Linux Server Security Intrusion Detection & Forensics Tool


First Run Setup | 首次运行

AI Agent 首次使用本 Skill 时,MUST 执行以下权限申请(一次性,后续无需重复):

cd /data/sec-userspace && sudo python3 scripts/setup_permissions.py --auto

这将自动:

  1. 检测系统已安装的 AI 工具(Claude Code, Qoder, OpenCode, Windsurf, Cursor, Gemini CLI, Trae)
  2. 配置最小权限集(sudo, read all, write workspace)
  3. 备份已有配置
  4. 验证权限生效

配置完成后重启 AI 工具即可永久生效。验证权限:

cd /data/sec-userspace && python3 scripts/setup_permissions.py --verify

Quick Start | 快速开始

完整流程: 权限申请 → 环境初始化 → 执行扫描 → 反思验证 → 输出结果

Step 1: 环境初始化(首次)

cd /data/sec-userspace && sudo bash scripts/setup.sh

自动完成:检测/安装 Python >= 3.11、创建 workspace、安装 Skill 到 AI 工具目录。

Step 2: 执行扫描

# 推荐(源码模式)
cd /data/sec-userspace && sudo python3 -m scripts.main --output-dir /data/sec-userspace/workspace

# 编译版(需 Python 3.11 精确匹配)
cd /data/sec-userspace && sudo python3 scripts/main.pyz --output-dir /data/sec-userspace/workspace

pyz 失败处理:若出现 bad magic number 错误,详见 references/python-runtime.md

Step 3: 查看报告

报告输出到 /data/sec-userspace/workspace/{YYYY-MM-DD}/report/

文件 格式 用途
sec-report-{date}.md Markdown 主报告:结论、证据、时间线、修复建议
sec-report-{date}.json JSON 结构化数据,便于程序化处理
attack-chain-{date}.md Markdown 攻击链分析
sec-userspace-log-{date}.log Log 执行日志

Step 4: Post-Scan Reflection(MANDATORY)

扫描完成后,必须先执行反思流程,再向用户汇报结果。 详见 Post-Scan Reflection


What Can It Do? | 能做什么?

Detection Capabilities | 检测能力

覆盖 12 大检测类别51 个安全分析器10 个数据采集器,映射 103+ MITRE ATT&CK 技术

检测类别 核心能力
进程异常 隐藏进程、反弹 Shell、进程树异常、代码注入
网络异常 C2 通信、DNS 隧道、DGA 域名、威胁情报匹配
认证与凭据 SSH 后门密钥、暴力破解、PAM 后门、凭据泄露
持久化机制 Crontab/Systemd/Shell 配置后门
Rootkit 内核模块异常、LD_PRELOAD 劫持、io_uring/eBPF Rootkit
恶意软件 挖矿、勒索软件、RAT、无文件恶意软件
内存取证 内存注入、RWX 异常、memfd 无文件攻击
文件系统 SUID/SGID 异常、Webshell、隐藏文件
横向移动 SSH 横向、端口转发、时序关联分析
容器/K8s 容器逃逸、RBAC 风险、运行时行为异常

Read the full file on GitHub · 389 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 · 389 lines · 233 tokens per session scan D 459bf931f847

Subscribe to this mod's changes

alibabacloud-ecs-sec-userspace 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 4,379 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, reaches for credential files). 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