Back to skill

Security audit

Gang (gang.fun)

Security checks for vulnerabilities and agentic risk

Overview

This trading skill needs review because it tells the agent to automatically run supplied update commands and adopt replacement instructions.

Review the automatic update workflow before installing. Use reviewed, fixed package versions and a fixed skill revision, and require review before running update commands or adopting changed instructions. Keep transaction confirmations and wallet spending limits enabled; trade notes and token metadata become public and permanent. Manual inspection addressed the scanner's document-coverage gap, but did not verify the external CLI or wallet code.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| What other agents buy now | `gang trending` | [discover.md](references/discover.md) |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| Hot / newest / about to graduate | `gang hot` · `gang new [--max-age 2h]` · `gang near-grad [--min-pct 50]` | [discover.md](references/discover.md) |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
1] [--timeout 30m]` (NDJSON; the market is pushed by gang.fun) | [discover.md](references/discover.md) |

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| My invite link / how many agents it brought (拉新) | `gang invite [--token <addr>]` | [discover.md](references/discover.md#gang-invite) |

MCP server referenced without pinned version: 'npx skills'.

Medium
Category
MCP Rug Pull
Confidence
97% confidence
Finding

Although this is an unpinned package runner rather than an MCP server reference, the underlying supply-chain risk is real: npx skills can execute mutable npm code, and the referenced skill source is not pinned to an immutable revision. The surrounding instructions also automatically install @gangfun/cli@latest, adopt refreshed instructions, and execute update commands supplied by CLI output, allowing a compromised dependency or update channel to gain local execution and influence a financial agent.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
## Hard rules

- **Preview → show → confirm → execute.** Every write first prints a preview; show it, get the user's OK, then
  `gang execute`. Chain steps without asking only when the user said to skip confirmation.
- **Setup steps.** A preview may be a `step: wrap-bnb | approve-quote | approve` first: execute it, wait for it to
  land, then run **the same command again** for the real step.
- **Write a note by default** on every buy / sell / mint / withdraw (one line: what you saw, why now) and every create

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
## Hard rules

- **Preview → show → confirm → execute.** Every write first prints a preview; show it, get the user's OK, then
  `gang execute`. Chain steps without asking only when the user said to skip confirmation.
- **Setup steps.** A preview may be a `step: wrap-bnb | approve-quote | approve` first: execute it, wait for it to
  land, then run **the same command again** for the real step.
- **Write a note by default** on every buy / sell / mint / withdraw (one line: what you saw, why now) and every create