Back to skill

Security audit

cargo-diagnostics

Security checks for vulnerabilities and agentic risk

Overview

The skill provides useful Cargo diagnostics, but support reports and some recovery actions lack clear safeguards for sensitive data and user approval.

Use a reviewed, pinned CLI version and a standard token unless billing access is needed. Require approval before connector changes, deployments, and every paid pilot or rerun. Review and redact support reports before submission. All five bundled files were inspected; the external CLI and absent companion policies remain outside this review. The supplied static scan reported no findings, and the Review verdict rests on the artifact's data-sharing and approval gaps rather than scanner scores.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The command's operative behavior is report creation. Although documenting findings could support troubleshooting, the supplied chunk contains no diagnostic work and does not establish report creation as incidental to such work. Its primary action therefore materially differs from the declared retrospective analysis capability.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx @cargo-ai/cli'.

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding

The bootstrap executes an unpinned npm CLI through installation or npx, allowing the code used for diagnostics to change without review. This is not an MCP server, as the finding claims, but a compromised future package release could execute with the agent's local privileges and access available credentials; the referenced external version-pin guidance does not pin these commands.

Content

No source excerpt is available for this finding.

Diagnostic reporting sends potentially sensitive details to the service team without a privacy warning or redaction guidance.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The reporting instructions request commands and verbatim errors for submission to a channel read by the service team, without requiring redaction or user review. Diagnostic commands and errors can contain credentials, customer data, or resolved workflow inputs, so following these instructions could disclose sensitive information beyond the original diagnostic context.

Content

No source excerpt is available for this finding.

The diagnostic workflow extends into modifying connectors and launching paid recovery runs.

Medium
Category
Excessive Agency
Confidence
93% confidence
Finding

The manifest describes after-the-fact diagnosis: tracing failures, grouping root causes, and attributing costs. The recovery instructions instead direct node fixes, connector updates (connection connector update), and creation of new batches (batch create), extending the skill into configuration changes and potentially paid execution. The paid-action gate limits spending risk but does not make these operations part of the stated diagnostic scope.

Content

No source excerpt is available for this finding.

Instructs submitting verbatim commands and error messages to a report channel without a sensitive-data warning or redaction step.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The report command requests commands and verbatim error messages without a sanitization or approval step. Batch diagnostics can expose customer records, authentication material, or sensitive workflow details in those strings, which would then be submitted to the report channel.

Content

No source excerpt is available for this finding.

The procedure extends retrospective cost diagnostics into workflow modification and new executions.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

The manifest describes after-the-fact investigation and credit attribution, but this procedure directs workflow edits through a draft release, pilot executions, and subsequent fan-out. These actions change workflow behavior and incur new spend rather than merely explain existing costs; a pilot gate does not resolve that scope mismatch.

Content

No source excerpt is available for this finding.

The runbook expands after-the-fact diagnosis into deploying changes and executing paid reruns.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The manifest describes retrospective investigation: tracing execution, identifying failures, and attributing costs. L112–L114 instead direct the agent to stage, approve, and deploy a fix, then rerun records, which can change live workflows and incur additional charges. The referenced approval and cost gates mitigate execution risk but do not make these operations part of the declared diagnostic scope.

Content

No source excerpt is available for this finding.