T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:111- Finding
Persistent SSH Exposure and Authentication Key Installation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This remote-copy skill is understandable, but it teaches insecure SSH practices and persistent system changes that users should review before installing.
Install only if you are comfortable reviewing every SSH command before it runs. Avoid using the password example, do not disable host-key verification unless you have independently verified the server, and do not let the skill permanently enable SSH, open firewall rules, or add keys unless you explicitly intend that long-term access.
SKILL.md:111Persistent SSH Exposure and Authentication Key Installation
SKILL.md:75SSH Host Authentication Disabled During File Transfers
SKILL.md:75Plaintext Password Exposure and Unsafe Shell Interpolation
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
Ubuntu/Debian:
sudo apt update && sudo apt install openssh-server -y
sudo systemctl start sshd
sudo systemctl enable sshd
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
首次连接后配置密钥免密:
# 生成密钥(如果没有)
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""
# 复制公钥到远程
ssh-copy-id -i ~/.ssh/id_ed25519.pub {user}@{ip}
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
首次连接后配置密钥免密:
# 生成密钥(如果没有)
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N ""
# 复制公钥到远程
ssh-copy-id -i ~/.ssh/id_ed25519.pub {user}@{ip}
The transfer commands disable SSH host key verification with StrictHostKeyChecking=no without a strong warning, which removes protection against man-in-the-middle attacks and host impersonation. In a remote copy skill, this is particularly dangerous because users may transfer sensitive files to or from an attacker-controlled host while believing the SSH connection is trustworthy.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo systemsetup -setremotelogin on
**验证:**
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
sudo apt update && sudo apt install openssh-server -y
sudo systemctl start sshd
sudo systemctl enable sshd
CentOS/RHEL/Rocky:
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
sudo apt update && sudo apt install openssh-server -y
sudo systemctl start sshd
sudo systemctl enable sshd
CentOS/RHEL/Rocky:
The skill explicitly supports password-based authentication via sshpass, which places credentials on the command line and exposes them to shell history, process listings, logs, and other local observers. This expands the skill from simple file copy into credential handling and increases the chance of secret disclosure during routine use.
The skill performs recursive copy into local destinations after creating directories, but it does not clearly warn users that files may be created or overwritten locally. This can cause unintended data loss or confusion, especially when default destination paths or repeated transfers are used.
The skill is described as copying files from a remote machine to the local Mac, but this section states it may optionally open the destination in Finder. Launching local GUI applications is a separate capability that is not necessary to accomplish the transfer itself.
No suspicious patterns detected.