T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:31- Finding
Unverified JADX Archive Installed into System-Wide Executable Paths
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This APK reverse-engineering skill is mostly coherent, but its install instructions include unverified downloads into system-wide executable paths.
Review the install steps before enabling this skill. Prefer package-manager installs, avoid running whole network-download scripts as root, verify release checksums or signatures where available, and consider user-local installs instead of writing to /opt or /usr/local/bin. The skill appears useful for legitimate APK analysis, but its manual installation paths deserve careful review.
SKILL.md:31Unverified JADX Archive Installed into System-Wide Executable Paths
references/install.md:63Manual Apktool Installation Trusts Unverified Executable Artifacts
references/install.md:99Automated Apktool Installer Executes an Unverified Installation Workflow with Root Privileges
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
症状:
$ apktool d app.apk
Error: Unable to create directory
原因: 输出目录权限不足
解决方案:
# 1. 使用有权限的目录
apktool d app.apk -o ~/tmp/app_decompiled
# 2. 或修改目录权限
sudo chown -R $USER:$USER /opt/apktool
# 3. 或在用户目录安装
mkdir -p ~/bin/apktool
cp apktool.jar ~/bin/apktool/
echo 'alias apktool="java -jar ~/bin/apktool/apktool.jar"' >> ~/.bashrc
source ~/.bashrc
症状:
$ apktool d app.apk
I: Using Apktool 3.0.1 on app.apk
W: Unknown version. Code might not work properly.
Exception in thread "main" brut.androlib.AndrolibException
原因: APK 使用了较新版本的资源表格式
解决方案:
# 1. 更新 Apktool 到最新版本
# 参考 install.md 更新
# 2. 尝试不使用资源解码
apktool d app.apk -r -o app_output
# 3. 安装框架文件
The raw rm -rf cleanup command is destructive and presented without a warning, confirmation guidance, or a safer alternative. Even though the target is a build directory, users may adapt the command incorrectly or run it from the wrong context, causing unintended data loss.
# 从备份恢复未修改的资源
# 4. 清理后重新编译
rm -rf app_folder/build
apktool b app_folder -o app.apk
# 5. 检查 AndroidManifest.xml 格式
Deleting all APK files from the local Apktool framework directory is a destructive action that can remove cached framework state and any manually installed files. In context this is troubleshooting, but without backup or validation guidance it can still cause avoidable data loss or user confusion.
apktool empty-framework-dir -f
# 3. 或手动删除
rm ~/.local/share/apktool/framework/*.apk
# 4. 重新安装
apktool if framework-res.apk
The file’s user-facing description and instructions are written entirely in Chinese, including the title, labels, and usage guidance. Under the policy, forcing a specific language without opt-in is a natural-language locale violation unless the skill offers a language choice or clearly documents a region-specific justification, which this file does not.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# 安装 Java(如未安装)
sudo apt-get update
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
sudo apt-get install -y openjdk-11-jdk
# 安装 Apktool
sudo apt-get install -y apktool
# 验证安装
apktool --version
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 mkdir -p /opt/apktool
cd /opt/apktool
# 下载最新版本的 wrapper 脚本和 jar 文件
No suspicious patterns detected.