Back to skill

Security audit

Gmail Lead Desk

Security checks for vulnerabilities and agentic risk

Overview

This skill clearly supports Gmail lead triage through AISA and includes user-confirmation safeguards for sending, drafting, labeling, and other mailbox changes.

Install only if you are comfortable giving the AISA gateway access to the selected Gmail account for lead-desk workflows. Review OAuth permissions, keep the AISA_API_KEY private, and use the built-in confirmation steps before sending email, creating labels, archiving batches, or handling attachments.

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
  • System Prompt LeakageDirect Leakage, Indirect Extraction, Tool-Based Exfiltration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (30)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
82% confidence
Finding

The trigger examples include generic terms like "follow-up," "draft," and "archive," which are common in everyday email or productivity conversations and are not tightly scoped to this skill's Gmail lead-desk workflow. Although the document describes the domain elsewhere, this specific trigger list lacks clear constraints or negative examples for when these keywords should not invoke the skill.

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 · references/connect_and_execute.md (reported line 26)May include surrounding context.

0. Verify API key (optional)

bash
curl "https://api.aisa.one/apis/v1/composio/auth/session/info" \
  -H "Authorization: Bearer $AISA_API_KEY"

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 · references/connect_and_execute.md (reported line 81)May include surrounding context.

Confirm with user before POST.

bash
curl -X POST "https://api.aisa.one/apis/v1/composio/connected_accounts/link" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill instructs operators to fetch unread Gmail messages and optionally upload attachments through a third-party gateway, but it does not include a clear user-facing privacy warning or explicit consent step for mailbox-content access. In this context, emails and attachments may contain sensitive personal, customer, or business data, so normalizing retrieval and file handling without prominent disclosure increases the risk of over-collection and unintended data exposure.

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 · references/connect_and_execute.md (reported line 154)May include surrounding context.

Optional — NL argument generation:

bash
curl -X POST "https://api.aisa.one/apis/v1/composio/tools/execute/GMAIL_FETCH_EMAILS/input" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "List 10 unread inbox emails" }'

Indirect Prompt Extraction

Medium
Category
System Prompt Leakage
Confidence
85% confidence
Finding

Skill contains patterns that could indirectly extract system prompts through rephrasing, translation, summarization, or side-channel techniques.

Content

Scanner excerpt · references/gmail_gotchas.md (reported line 71)May include surrounding context.

md
- `GMAIL_FETCH_EMAILS` results are **not** guaranteed sorted by date — sort by `internalDate` when showing "oldest first".
- `messages` may be absent or empty — valid zero-result state.
- Large mailboxes: `include_payload: false` first, then hydrate selected threads/messages.
- Body in payload is **base64url** in `payload.parts` — decode with URL-safe base64 rules.

Default sales noise filter:

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 26)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 39)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 50)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 64)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 81)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 94)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 107)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 116)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 129)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/connect_and_execute.md (reported line 154)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/tool_whitelist.md (reported line 5)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/tool_whitelist.md (reported line 6)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 12)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 33)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 57)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 82)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 115)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 165)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/workflows.md (reported line 208)May include surrounding context.

md
Only these `tool_slug` values may be used by **gmail-lead-desk**. For any other Gmail tool, ask the user and default to **refuse** unless they explicitly need advanced mailbox admin.

**Schema:** `GET https://api.aisa.one/apis/v1/composio/tools/{tool_slug}`  
**Execute:** `POST https://api.aisa.one/apis/v1/composio/tools/execute/{tool_slug}` — see [`connect_and_execute.md`](./connect_and_execute.md).

---

Static analysis

No suspicious patterns detected.