Skip to content

seaworld008/centos7-lighthouse / skills/centos7-almalinux-upgrade

centos7-almalinux-upgrade

Flagged

把老旧 CentOS 7 / CentOS 8(及 RHEL7/8 系)服务器原地升级到最新 AlmaLinux 10(经 ELevate/Leapp 7→8→9→10,CentOS 8 先用 almalinux-deploy 转换),并保证业务、容器、nginx、kubectl 等升级后照常工作。凡是用户提到 CentOS 7 / CentOS 停服 / EOL / 老系统升级 / 迁移到 AlmaLinux / Rocky / CentOS 继任者 / ELevate / leapp / 系统漏洞要升级系统、批量升级阿里云/华为云/AWS 上的 CentOS 服务器,都要使用本技能——即使用户没说"升级"而只说"系统太老了""换个新系统但业务不能停"。In-place upgrade CentOS 7 to AlmaLinux 10 safely, single server or whole fleet.

Security report

Flagged

Static analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.

Commit
0375fed8e85c88131cb89ad6482e1548afb08d32
Content hash
23314b852167a0865201978f3730f111161eb73c796dc064e88c7a93a5dd8b8a
Scanned
2026-11-19
Scanner version
skillxone-scan-1.0.0
Policy version
0.1-draft
Decision
7 open critical or high findings.
Verification expires
Not applicable

Findings (7 high, 15 medium, 5 low, 13 info)

  • highFILE-SSH-KEYSscripts/hop.sh:397

    The skill refers to SSH keys, a location that holds private data or credentials.

    if [ "$CUR" -ge 10 ] && [ -s /root/.ssh/known_hosts ]; then

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • The skill refers to SSH keys, a location that holds private data or credentials.

    KH=${1:-$HOME/.ssh/known_hosts}

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • highFILE-SSH-KEYSscripts/remote.py:9

    The skill refers to SSH keys, a location that holds private data or credentials.

    3. 都没有时尝试 ~/.ssh 密钥 / ssh-agent(--key 可指定私钥)

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • highFILE-CLOUD-CREDENTIALSscripts/state.sh:66

    The skill refers to cloud provider credentials, a location that holds private data or credentials.

    if command -v kubectl >/dev/null 2>&1 && [ -s /root/.kube/config ]; then

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • highNET-CLOUD-METADATAscripts/survey.sh:39

    The cloud instance metadata service is contacted. On a cloud machine it hands out credentials.

    HWSPEC=$(curl -s -m 3 http://169.254.169.254/openstack/latest/meta_data.json 2>/dev/null | grep -oE '"metering.resourcespeccode": *"[^"]*"' | sed -E 's/.*"([^"]*)"$/\1/')

    Suggested fix: Remove access to the metadata service.

    Report as false positive

  • highFILE-SSH-KEYSscripts/survey.sh:133

    The skill refers to SSH keys, a location that holds private data or credentials.

    grep -hs "ssh-dss" /root/.ssh/authorized_keys /home/*/.ssh/authorized_keys >/dev/null && flag BLOCKER "authorized_keys 含 ssh-dss (DSA) 公钥:EL9+ 不再支持,先换 ed25519/rsa 密钥"

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • highFILE-SSH-KEYSscripts/survey.sh:220

    The skill refers to SSH keys, a location that holds private data or credentials.

    if [ "$(rpm -E %rhel 2>/dev/null)" -lt 10 ] 2>/dev/null && [ -s /root/.ssh/known_hosts ]; then

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • mediumCMD-PERSISTENCEreferences/app-compat.md:35

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    3. 切换:`nginx -t` 通过后停旧进程 → 删掉旧的自定义 unit / rc.local 行 → `systemctl enable --now nginx`;逐个域名用 `curl -sk --resolve 域名:443:127.0.0.1` 对比基线;`openssl s_client -tls1_1/-tls1_2/-tls1_3` 验证协议。

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumFILE-TOKEN-STORESreferences/app-compat.md:74

    The skill refers to a token store or the system keychain, a location that holds private data or credentials. Severity lowered from high because it appears in prose rather than code.

    - 注意构建任务里的 `npm config set registry ...` 会改写全局 `~/.npmrc`;手工加的配置不要和它冲突。

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • mediumFILE-CLOUD-CREDENTIALSreferences/app-compat.md:127

    The skill refers to cloud provider credentials, a location that holds private data or credentials. Severity lowered from high because it appears in prose rather than code.

    - `~/.kube/config` 不动即可;`.bashrc` 里的 `source <(kubectl completion bash)` 需要 bash-completion 包。

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • mediumNET-CLOUD-METADATAreferences/cloud-providers.md:25

    The cloud instance metadata service is contacted. On a cloud machine it hands out credentials. Severity lowered from high because it appears in prose rather than code.

    - sys_vendor:老规格显示 "OpenStack Foundation";c9 等新规格显示 "Huawei Cloud",CPU 型号被隐藏为 "General Purpose Processor"。规格名可从元数据取:`curl -s http://169.254.169.254/openstack/latest/meta_data.json` 的 `meta."metering.resourcespeccode"`(如 `c9.xlarge.2.linux`…

    Suggested fix: Remove access to the metadata service.

    Report as false positive

  • mediumNET-UPLOAD-LOCAL-DATAreferences/kubernetes.md:21

    A local file is sent to a remote host.

    - 用金丝雀验证:先把一台 worker 升到 EL10,用 `nodeName` 固定的测试 pod 验证 DNS、Service ClusterIP、跨节点 pod 网络、NFS 卷挂载、出网(本次的测试脚本思路:起一个用本地已有镜像的 pod,`nslookup`、`nc -z 10.96.0.1 443`、`nc -z <coredns pod IP> 53`、`ls /nfs`、`wget` 外网)。 <!-- check_repo: allow(10.96.0.…

    Suggested fix: Make uploads explicit to the user, name the destination, and never send files the task does not need.

    Report as false positive

  • mediumCMD-PERSISTENCEreferences/pitfalls.md:74

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    - 处理:`backup.sh` 记录这类正在监听端口的进程的 cmdline/cwd/exe/环境变量(`<BACKUP>/manual-procs/`);EL10 后 `finalize.sh manual-procs <dir>` 生成 systemd 服务,`systemctl enable --now`。`survey.sh` 报 HIGH。环境变量里 `LANG=zh_CN.GB18030` 之类在 EL10 需要 `glibc-langpack-zh`。

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEreferences/pitfalls.md:270

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    **★ `vi` 每次启动报 `E319: Sorry, the command is not available in this version`(`crontab -e`、`visudo` 都会弹)**

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/finalize.sh:117

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    systemctl daemon-reload; echo "检查后执行 systemctl enable <name>;当前正在运行的不要 restart,下次开机生效" ;;

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/hop.sh:91

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    if systemctl enable --now logrotate.timer >/dev/null 2>&1; then echo "启用 logrotate.timer(升级后默认没启用,日志不轮转)"; else echo "WARN: logrotate.timer 启用失败"; fi

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/hop.sh:105

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    tidy_virc() { # 8→9 时 leapp 往 /etc/virc 追加 let/filetype 等只有完整 vim 才有的命令:vim-minimal 的 vi 每次启动报 E319(crontab -e、visudo 受影响)

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/k8s.sh:56

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    else systemctl unmask docker.service docker.socket >/dev/null 2>&1; systemctl enable --now docker.socket docker.service >/dev/null 2>&1

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because it appears in a code comment.

    # 用法:bash known-hosts-fill.sh [known_hosts 路径,默认 ~/.ssh/known_hosts]

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/post-audit.sh:26

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    flag HIGH "/etc/virc 有 Leapp 追加的 let/filetype 行:vim-minimal 的 vi 每次启动报 E319(crontab -e、visudo 受影响)→ hop.sh tidy"

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/prep-el7.sh:163

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    systemctl enable NetworkManager; systemctl start NetworkManager; sleep 15

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • mediumCMD-PERSISTENCEscripts/swap-openssh.sh:43

    The skill sets something to run automatically later (scheduled task, login item or shell start-up file).

    sleep 1; systemctl reset-failed sshd; systemctl enable sshd; systemctl start sshd; sleep 3

    Suggested fix: Do not install persistent jobs or edit shell start-up files. Tell the user what to add if they want it.

    Report as false positive

  • A link uses unencrypted http:// (mirrors.cloud.aliyuncs.com), so its content can be altered in transit.

    - **镜像源**:公网 `https://mirrors.aliyun.com`;ECS 内网 `http://mirrors.cloud.aliyuncs.com`(不耗公网流量,经典网络为 mirrors.aliyuncs.com)。路径统一:`/centos-vault/7.9.2009`、`/epel-archive/7`、`/almalinux`、`/epel`、`/docker-ce`、`/kubernetes-new`。

    Suggested fix: Use https://.

    Report as false positive

  • lowFILE-DOTENVscripts/backup.sh:54

    The skill reads a .env file, which usually holds secrets. This is often legitimate, but check what is done with the values.

    mkdir -p "compose$(echo "$d" | tr / _)"; cp -a "$d"/*.y*ml "$d"/.env "compose$(echo "$d" | tr / _)/" 2>/dev/null; done

    Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.

    Report as false positive

  • lowNET-INSECURE-URLscripts/hop.sh:14

    A link uses unencrypted http:// (mirrors.cloud.aliyuncs.com), so its content can be altered in transit.

    # MIRROR 同 prep-el7.sh(https://mirrors.aliyun.com / http://mirrors.cloud.aliyuncs.com / https://repo.huaweicloud.com / upstream)

    Suggested fix: Use https://.

    Report as false positive

  • lowNET-INSECURE-URLscripts/prep-el7.sh:12

    A link uses unencrypted http:// (mirrors.cloud.aliyuncs.com), so its content can be altered in transit.

    # http://mirrors.cloud.aliyuncs.com 阿里云 ECS 内网(不走公网流量)

    Suggested fix: Use https://.

    Report as false positive

  • A command runs with administrator privileges.

    ap.add_argument("--sudo", action="store_true", help="非 root 登录时用 sudo -n 以 root 执行(需免密 sudo)")

    Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/backup.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/convert-el8.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/finalize.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/fleet_summary.py:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/usr/bin/env python3

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/hop.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/nginx-static-build.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/post-audit.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/prep-el7.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/remote.py:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/usr/bin/env python3

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/state.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/survey.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/swap-openssh.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

  • infoINT-EXECUTABLE-SCRIPTscripts/verify.sh:1

    The skill ships an executable script. Review it before allowing an agent to run it.

    #!/bin/bash

    Suggested fix: None required. Informational.

    Report as false positive

Checks run

  • prompt-injection
  • dangerous-commands
  • credentials
  • network
  • file-access
  • integrity

Checks skipped

  • dependencies: No dependency manifest in the skill directory.
  • gitleaks: gitleaks is not installed on this host.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall