aliyun-swas-manage
Warn
Audited by Gen Agent Trust Hub on Apr 10, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/fix_ssh_access.pydynamically constructs a Bash script using Python f-strings with variables likeuser,port, andpub_key. Because these variables are not sanitized or escaped before being placed into the script template, it is vulnerable to command injection on the target instance if malicious inputs are provided. - [COMMAND_EXECUTION]: The skill utilizes the Alibaba Cloud
RunCommandAPI, which allows the execution of arbitrary shell and PowerShell scripts on remote instances with root/administrator privileges. - [COMMAND_EXECUTION]: The
fix_ssh_access.pyscript automatically modifies the target instance's/etc/ssh/sshd_configto enablePermitRootLogin yes. This is a significant security configuration change that increases the instance's attack surface. - [CREDENTIALS_UNSAFE]: The script
scripts/fix_ssh_access.pyprovides functionality to programmatically add SSH public keys to theauthorized_keysfile of target instances, facilitating persistent remote access.
Audit Metadata