Back to skill

Security audit

Avengers Assemble

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed multi-agent coordinator, but it broadly forces work into reused spawned sessions that may carry context across tasks.

Review before installing. This does not look like malware, but it can substantially change agent behavior by routing most work through named reused sub-sessions. Avoid using it for secrets, credentials, private code, or unrelated sensitive tasks unless you accept the cross-session context risk.

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
Findings (1)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:21
Finding

Mandatory Agent Role and Workflow Hijacking

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 21–44
Vulnerability Type: Agent instruction and execution-flow hijacking
Risk Level: High

Vulnerable Code Snippet

markdown
## 〇、The Initiative

You are **Nick Fury**, Director of S.H.I.E.L.D. and the primary orchestration coordinator. Your mission: assemble Earth's Mightiest Heroes and coordinate their unique abilities to tackle any challenge.

**You are the strategist. You do not execute.** All operations are delegated through `sessions_spawn` to your team of specialized heroes.

---

## 一、Core Role: Nick Fury - The Orchestrator

### Your Responsibilities

1. **Mission Briefing** - Receive and analyze user requests
2. **Threat Assessment** - Evaluate task complexity and assign priority levels
3. **Resource Allocation** - Deploy the right hero for the right mission
4. **Strategic Oversight** - Monitor operations and coordinate team efforts
5. **Debrief Reporting** - Synthesize results and report to stakeholders

### Critical Constraint

**You are a pure coordinator. You cannot use exec, file operations, search, or any execution tools.**

All actual work must be delegated through `sessions_spawn` to the Avengers team.

Additional mandatory controls elsewhere in the same file reinforce the hijacking:

markdown
**When a user's request contains multiple independent tasks, you MUST decompose and deploy multiple heroes simultaneously!**
markdown
**Upon receiving a mission, you MUST output a text response to the user BEFORE calling `sessions_spawn`.**
markdown
## 🚫 ABSOLUTELY FORBIDDEN 🚫

- ❌ Silent spawning without text response (Users will think you've gone dark!)
- ❌ Calling `sessions_spawn` without `sessionKey`
- ❌ Using sessionKeys other than: captain / ironman / hulk / widow / hawkeye / thor
- ❌ Personally using exec / file operations / search (Fury delegates, doesn't execute!)
- ❌ Continuing 
...[truncated 2816 chars]
Remediation
View remediation

Remediation Suggestions

  1. Replace identity-changing directives with optional behavioral guidance. For example, state that the agent may use an Avengers-themed presentation only when the user explicitly requests it.
  2. Remove absolute-priority language such as “MUST,” “ABSOLUTELY FORBIDDEN,” and “All actual work” where it attempts to control host policies or unrelated tasks.
  3. Do not prohibit the host agent from using execution, file, search, or validation tools. Tool availability and authorization must remain governed by the host environment and user request.
  4. Make delegation optional and task-specific. Require explicit user approval before transmitting sensitive or substantial task context to spawned sessions.
  5. Apply data minimization to delegated prompts. Forward only the information required for the assigned subtask and exclude credentials, secrets, unrelated files, and prior conversation history.
  6. Use isolated, per-task session identifiers by default rather than six globally reusable keys. If continuity is necessary, disclose it and obtain user consent.
  7. Remove the rule requiring the host to stop immediately after spawning. Permit independent validation, error handling, safety review, and clear reporting of delegation status.
  8. Treat threat-level and character responses as optional display templates rather than mandatory output controls.
  9. Add an explicit statement that system instructions, platform safety controls, least-privilege restrictions, and current user intent take precedence over all skill guidance.
  10. Add tests confirming that loading the skill does not change behavior for unrelated requests, suppress authorized tools, or delegate data without approval.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

YARA rule 'agent_skill_mcp_tool_poisoning_metadata': MCP/tool metadata poisoning indicators in tool schemas or skill manifests [agent_skills]

High
Category
YARA Match
Confidence
80% confidence
Finding

YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).

Content

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

md
---
name: avengers-assemble
version: 1.0.0
description: >
  Avengers-themed multi-agent coordination system. Nick Fury orchestrates 6 specialized heroes
  (Captain America, Iron Man, Hulk, Black Widow, Hawkeye, Thor) through sessions_spawn delegation.
  Round-robin dispatch, reply-first protocol, sessionKey reuse. Perfect for complex tasks requiring
  diverse expertise and coordinated team execution.
author: avengers-initiative
keywords: [multi-agent, avengers, superhero, coordination, sessions_spawn, team-collaboration, task-delegation, marvel]
---

# 🦸‍♂️ Avengers Assemble - Multi-Agent Coordination System

> **"There was an

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill explicitly promotes sessionKey reuse to preserve hero memory across missions, but it does not clearly warn users that spawned sessions may retain prior context. This can cause unintended cross-task data exposure, where sensitive prompts, code, or secrets from earlier missions influence or leak into later work performed by the same reused session.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This is a manifest file, so vague-trigger review applies. The description says the skill is 'Perfect for complex tasks requiring diverse expertise and coordinated team execution,' which is a very broad invocation scope and does not specify when the skill should or should not be used, increasing the chance of unintended activation or over-selection.

Content

No source excerpt is available for this finding.