Back to skill

Security audit

A2A Chat

Security checks for vulnerabilities and agentic risk

Overview

The skill is a disclosed external agent chat tool, but it under-explains the privacy and access-control risks of sending room codes, agent identities, and messages through a third-party service.

Install only if you are comfortable sending agent chat content and identifiers to the a2a.tokeniscash.com service. Treat room codes like shared secrets, avoid sensitive or personal data, use task-scoped pseudonymous agent IDs, and do not place room codes in broadly readable memory or notes.

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

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:153
Finding

Unauthenticated Room Message Retrieval Using Caller-Controlled Agent IDs

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 153-157
Vulnerability Type: Missing authentication and insufficient access control
Risk Level: High

Vulnerable Code

bash
**Endpoint:** `GET /api/room/{code}/messages?agent_id=my_agent_001`

curl -s "https://a2a.tokeniscash.com/api/room/x673dx78b8/messages?agent_id=my_agent_001"

Technical Analysis

The documented message-retrieval endpoint relies only on a room code and a caller-supplied agent_id. No authorization header, server-issued session credential, signed request, or per-agent secret is documented.

Because agent_id is supplied directly in the query string, it does not constitute reliable proof of identity. If the documented API behaves as shown, possession of a room code is sufficient to request room messages while claiming an arbitrary agent identity. Elsewhere in the same file, room codes are explicitly intended to be shared through external channels such as memory files or shared notes, increasing the possibility of accidental disclosure.

The same underlying design is documented for joining, sending messages, and submitting heartbeats. Consequently, the access-control weakness may extend beyond message retrieval to identity spoofing and room-content manipulation. This broader impact should be confirmed through an authorized dynamic assessment of the remote service.

Attack Path

  1. An attacker obtains a room code from a leaked URL, shared note, memory file, shell history, log, chat transcript, or participant.
  2. The attacker selects an existing or arbitrary agent_id; the documentation does not describe any associated secret.
  3. The attacker sends:
    bash
    curl -s "https://a2a.tokeniscash.com/api/room/OBTAINED_CODE/messages?agent_id=ARBITRARY_ID"
    
  4. If the server implements the documented access model, it returns room messages without independently authenticating the caller.
  5. The attacker may then at ...[truncated 910 chars]
Remediation
View remediation

Remediation Suggestions

  1. Require a cryptographically random, server-issued credential for every participant after room creation or an authenticated invitation flow.
  2. Require authorization on all room endpoints, including join, messages, send, and heartbeat.
  3. Bind each credential to a specific room and agent identity; never treat a caller-provided agent_id as proof of identity.
  4. Reject duplicate identity claims unless an authenticated recovery or reconnection mechanism is used.
  5. Place credentials in an Authorization header rather than URL query parameters to reduce leakage through logs, histories, analytics, and referrer data.
  6. Add credential expiration, revocation, rotation, and rate limiting.
  7. Treat room codes as identifiers rather than authorization secrets. If they remain capability-bearing, generate them with sufficient entropy and clearly document their sensitivity.
  8. Replace recommendations to share room access through generic memory files or notes with an access-controlled secret-transfer mechanism.
  9. Update all documentation examples to demonstrate authenticated requests and warn users not to transmit secrets or sensitive information until server-side authorization is verified.
  10. Conduct an authorized dynamic security test of the remote API to confirm that unauthorized reads, identity spoofing, message injection, and presence spoofing are rejected.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (11)

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

示例 curl:

bash
curl -s -X POST https://a2a.tokeniscash.com/api/room/x673dx78b8/join \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "my_agent_001", "name": "我的AI"}'

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

示例 curl:

bash
curl -s -X POST https://a2a.tokeniscash.com/api/room/x673dx78b8/join \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "my_agent_001", "name": "我的AI"}'

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

初始加载历史消息(倒序,最新在前):

bash
curl -s "https://a2a.tokeniscash.com/api/room/$ROOM_CODE/messages?agent_id=$AGENT_ID&order=desc&limit=50"

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

初始加载历史消息(倒序,最新在前):

bash
curl -s "https://a2a.tokeniscash.com/api/room/$ROOM_CODE/messages?agent_id=$AGENT_ID&order=desc&limit=50"

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill instructs agents to send room identifiers, agent IDs, and message content to a third-party external service over HTTP(S) without any privacy, retention, trust-boundary, or consent warning. In an agent environment, users may assume tool use is local or trusted; silently routing conversation content and identifiers to an external operator creates a meaningful data-exposure risk.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

示例 curl:

bash
RESP=$(curl -s -X POST https://a2a.tokeniscash.com/api/room/create \
  -H "Content-Type: application/json" \
  -d '{}')
echo "$RESP"

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

This request sends agent identity information to a third-party service to join a room, establishing an external communications channel without cautioning that metadata is exposed outside the local agent environment. In practice, agent IDs and names can reveal internal system structure or facilitate cross-agent tracking if reused across rooms or tasks.

Content

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

示例 curl:

bash
curl -s -X POST https://a2a.tokeniscash.com/api/room/x673dx78b8/join \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "my_agent_001", "name": "我的AI"}'

External Transmission

Medium
Category
Data Exfiltration
Confidence
87% confidence
Finding

Polling message history from the external API retrieves and exposes conversation content from a third-party system, again without privacy or trust-boundary warnings. If users employ this skill in sensitive workflows, confidential data may be stored, replayed, or accessed by unintended room participants.

Content

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

初始加载历史消息(倒序,最新在前):

bash
curl -s "https://a2a.tokeniscash.com/api/room/$ROOM_CODE/messages?agent_id=$AGENT_ID&order=desc&limit=50"

External Transmission

Medium
Category
Data Exfiltration
Confidence
86% confidence
Finding

This workflow step operationalizes joining a third-party room with a generated agent ID, making the external transmission concern concrete in a likely real-world usage path. Because it appears in the main workflow, it increases the chance that users will adopt the pattern without considering metadata leakage or the trustworthiness of the remote service.

Content

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

  1. 加入房间
    bash
    AGENT_ID="agent_$(date +%s)"
    curl -s -X POST "https://a2a.tokeniscash.com/api/room/$ROOM_CODE/join" \
      -H "Content-Type: application/json" \
      -d "{\"agent_id\": \"$AGENT_ID\", \"name\": \"Agent A\"}"
    

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The workflow tells users to share room codes through external channels such as memory files or shared notes, but does not warn that possession of the room code may enable unintended parties or other agents to join and read/send messages. This weakens access control by encouraging ad hoc credential sharing without discussing scope, lifetime, or confidentiality.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
86% confidence
Finding

The second-agent join example repeats the pattern of disclosing agent identifiers and establishing communication with a third-party service, but without any guardrails about who controls the room or whether the room code was shared securely. In multi-agent settings, this can enable accidental disclosure to unauthorized participants if the code is mishandled.

Content

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

  1. 从 Agent A 处获取房间码,加入房间:
    bash
    AGENT_ID="agent_b_001"
    curl -s -X POST "https://a2a.tokeniscash.com/api/room/ROOM_CODE_FROM_A/join" \
      -H "Content-Type: application/json" \
      -d "{\"agent_id\": \"$AGENT_ID\", \"name\": \"Agent B\"}"
    

Static analysis

No suspicious patterns detected.