Back to skill

Security audit

Fix Universal Apk Installation

Security checks for vulnerabilities and agentic risk

Overview

This APK repair skill has a coherent purpose, but it needs Review because it rewrites, signs, and sideloads APKs with hard-coded signing details and weak safeguards.

Install only if you understand APK rebuilding and signing. Use a disposable test device, keep a backup of the original APK, replace the hard-coded signing material with your own protected debug key, verify the package name and certificate before installing, and disable unknown-source installation afterward.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (3)

T09 · Insecure Skill Coding Practices

Warning
Location
fix_manifest_and_compression.sh:9
Finding

Hard-Coded APK Signing Credentials Exposed in Script and Process Arguments

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
fix_manifest_and_compression.sh:7
Finding

Predictable Shared Temporary Paths Permit Artifact Substitution and Disclosure

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
fix_manifest_and_compression.sh:31
Finding

Malformed-Manifest Recovery Silently Replaces Application Identity with Hard-Coded Metadata

Content
View full analysis
'$(echo "$ORIG_CONTENT" | sed '1d') echo "$FIXED_CONTENT" > "$MANIFEST_PATH" fi ``` ### Technical Analysis The script determines whether a manifest is valid by searching only the first two lines for the literal text `` element does not occur in the first two lines, whether due to unusual formatting or deliberate construction. 2. The simplistic text check c ...[truncated 936 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · SKILL.md (reported line 65)May include surrounding context.

md
unzip -q /tmp/temp_universal_signed.apk -d "$TEMP_DIR"

# 解压缩 resources.arsc 文件
rm -f "$TEMP_DIR/resources.arsc"
unzip -p /tmp/temp_universal_signed.apk resources.arsc > "$TEMP_DIR/resources.arsc"

# 重新打包 APK,确保 resources.arsc 文件未压缩

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · fix_manifest_and_compression.sh (reported line 56)May include surrounding context.

sh
unzip -q /tmp/temp_universal_signed.apk -d "$TEMP_DIR"

# 解压缩 resources.arsc 文件
rm -f "$TEMP_DIR/resources.arsc"
unzip -p /tmp/temp_universal_signed.apk resources.arsc > "$TEMP_DIR/resources.arsc"

# 重新打包 APK,确保 resources.arsc 文件未压缩

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly instructs users to enable installation from unknown sources and install a modified APK, but it does not include safety guidance about trust, provenance, or the risk of sideloading tampered applications. In this context, the omission is meaningful because the skill is about repackaging and re-signing an APK, which materially increases the chance that users install software outside normal platform protections.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The script hardcodes keystore location, alias, and passwords directly in source, which exposes signing credentials to anyone who can read the file or logs. Even though the values appear to be a temporary/debug keystore, embedding credentials in plaintext normalizes unsafe handling of signing secrets and can enable unauthorized APK signing if the keystore file is accessible.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script overwrites the original APK in place during rezipping and signing without backup, confirmation, or atomic safety checks. This can permanently destroy the only copy of the artifact or replace it with a partially processed/corrupted APK if any intermediate step fails.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

The file forces a specific language for all instructions and warnings, which can violate language/locale policy when no user opt-in or alternative is provided. There is no indication that the skill is intentionally region-specific or that users may choose another language.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
97% confidence
Finding

The script's comments and user-visible echo messages are written exclusively in Chinese, which imposes a specific language on users without offering any locale or language choice. This is a natural-language policy concern because the file does not indicate that the script is region-specific or provide opt-in for the language.

Content

No source excerpt is available for this finding.