Back to skill

Security audit

Analyze Gas Optimization

Security checks for vulnerabilities and agentic risk

Overview

This is a focused Aptos Move gas-optimization guidance skill with broad trigger wording but no hidden execution, credential access, persistence, or unrelated behavior.

Installers should understand this skill is guidance for Aptos Move smart-contract gas optimization. Review suggested code changes carefully, keep security checks intact, and avoid using local private-key or Aptos profile files during analysis unless a separate trusted workflow explicitly requires them.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (2)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The trigger metadata includes broad natural-language phrases such as 'optimize gas' and 'reduce gas costs' that may appear in ordinary conversation, increasing the chance the skill activates outside narrowly intended contexts. While this is not directly code-execution dangerous, unintended invocation can cause workflow confusion, irrelevant analysis, and accidental routing to a high-priority skill.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

The markdown trigger guidance lists broad use phrases and examples but does not define clear boundaries for when the skill should not activate. In an agent setting, underspecified activation criteria can cause over-triggering on generic performance or cost questions, leading to misapplication of the skill and reduced reliability of downstream actions.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.