Back to skill

Security audit

resend-send-native-node

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed, send-only Resend email helper with dry-run defaults and explicit recipient allowlist controls.

Use this only for email content you have reviewed and are comfortable sending through Resend. Keep RESEND_ALLOWED_TO narrow, do not let an agent widen it just to make a send succeed, and avoid emailing raw logs, transcripts, secrets, or private workspace context.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill explicitly uses environment variables and network access to send email, but it does not declare any tool scope such as permissions or allowed-tools in the metadata. That creates a governance gap: orchestrators or reviewers may not have a machine-readable way to understand that the skill can access secrets and transmit data externally, increasing the risk of accidental misuse or overbroad execution.

Content

No source excerpt is available for this finding.

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 · SKILL.md (reported line 145)May include surrounding context.

md
import { createHash } from "node:crypto";
import { readFileSync } from "node:fs";

const ENDPOINT = "https://api.resend.com/emails";
const SEND_TIMEOUT_MS = 30_000;

function die(msg, code = 1) {

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 · SKILL.md (reported line 158)May include surrounding context.

md
import { createHash } from "node:crypto";
import { readFileSync } from "node:fs";

const ENDPOINT = "https://api.resend.com/emails";
const SEND_TIMEOUT_MS = 30_000;

function die(msg, code = 1) {

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 · SKILL.md (reported line 193)May include surrounding context.

md
import { createHash } from "node:crypto";
import { readFileSync } from "node:fs";

const ENDPOINT = "https://api.resend.com/emails";
const SEND_TIMEOUT_MS = 30_000;

function die(msg, code = 1) {

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 · scripts/send.mjs (reported line 9)May include surrounding context.

js
import { createHash } from "node:crypto";
import { readFileSync } from "node:fs";

const ENDPOINT = "https://api.resend.com/emails";
const SEND_TIMEOUT_MS = 30_000;

function die(msg, code = 1) {

Static analysis

Detected: suspicious.dangerous_exec, suspicious.env_credential_access

Shell command execution detected (child_process).

Critical
Code
suspicious.dangerous_exec
Location
tests/run-resend-send-tests.mjs:12

Environment variable access combined with network send.

Critical
Code
suspicious.env_credential_access
Location
scripts/send.mjs:20