Back to skill

Security audit

harmonyOS developer skill

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent HarmonyOS development reference skill with ordinary code examples and no hidden execution, persistence, or data collection behavior.

Installers should treat this as a normal developer reference skill. Review generated HarmonyOS code before granting app permissions or running build/install commands, especially when working with real network endpoints, signing material, or device deployment.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

External Transmission

Medium
Category
Data Exfiltration
Content
let httpRequest = http.createHttp()
httpRequest.request(
  'https://api.example.com/data',
  {
    method: http.RequestMethod.GET,
    header: { 'Content-Type': 'application/json' }
Confidence
50% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Natural-Language Policy Violations

Low
Confidence
86% confidence
Finding
The file includes a dedicated 'Chinese Notes' section containing instructions only in Chinese, but does not state that Chinese is optional or user-selected. This can conflict with language/locale policy expectations when a skill should not implicitly force a specific language without opt-in.

Static analysis

No suspicious patterns detected.