Back to skill

Security audit

cargo-analytics

Security checks for vulnerabilities and agentic risk

Overview

This export skill also instructs your agent to restart failed jobs without separate approval, potentially repeating actions or incurring charges.

Review before installing. Keep analytics access read-only where supported, and require separate approval before restarting jobs, including checking costs and whether earlier steps already changed external systems. Preserve requested export filters, protect downloaded data and signed URLs, and review support-report contents before submission. Pin a reviewed CLI version; its implementation and the referenced sibling safeguards are outside this artifact review.

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

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied commands perform resource discovery rather than downloading results, exporting data, or measuring run outcomes. Model listing could support locating an export target, but the broader enumeration of orchestration resources, agents, and connectors is not explained by the declared purpose, and the chunk contains no output retrieval, export, or counting operations.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The partial-failure procedure goes beyond measuring existing results and instructs creation of a new processing batch without requiring explicit user authorization. Re-executing workflows can consume credits or repeat external writes and communications, including actions that succeeded before a run later failed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The error-rate and failure-count queries fit the declared result-measurement capability. However, the query summing credits_used_count by workflow directly performs credit-spend analysis that the description routes to other skills. This is a substantive scope mismatch. The absence of download or export commands in this chunk is not itself evidence of a mismatch.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Run-level metrics are consistent with measuring what ran, and workflow listing can support that task. However, two commands explicitly query billing usage, including workflow-level usage aggregation and drill-down. This accesses a resource outside the declared scope, which routes billing and credit-related inquiries to other skills. The absence of export commands alone is not a mismatch because this is only a code chunk; the affirmative billing functionality is the material discrepancy.

Content

No source excerpt is available for this finding.

The analytics skill creates new execution batches rather than only measuring and exporting existing results.

High
Category
Excessive Agency
Confidence
99% confidence
Finding

The retry step introduces a state-changing operation into a skill users invoke for measurement and export. Fixing the underlying failure does not itself authorize another execution, which may incur charges or duplicate non-idempotent downstream actions.

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
93% confidence
Finding

The bootstrap instructions allow installation or execution of an unpinned npm package, so the code executed can change without review of this skill. A compromised future release could execute with the agent's local permissions and access available Cargo credentials; this is a dependency supply-chain risk, not an MCP-server configuration issue.

Content

No source excerpt is available for this finding.

The skill includes credit-spend analysis despite explicitly routing credit questions elsewhere.

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

L134–L136 provide an executable query that sums credits used by workflow for the current month. This directly answers credit-spend questions that the manifest at L003 excludes and that L029 routes to cargo-billing, rather than measuring success/error counts or exporting results.

Content

No source excerpt is available for this finding.

The analytics workflow instructs the agent to create a new batch and rerun failed records without warning about execution side effects.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The procedure recommends rerunning failed records without warning that a failed run may already have completed consequential actions. Following it during an export request could therefore duplicate messages, modify external records again, or incur additional processing charges without informed consent.

Content

No source excerpt is available for this finding.

The per-workflow cost analysis flow queries billing usage despite the manifest explicitly routing credit and billing questions to other skills.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest limits cargo-analytics to exporting outputs and measuring run outcomes, explicitly excluding questions about credits or where credits went. Lines L113–L120 instead invoke cargo-ai billing usage get-metrics to analyze usage by workflow, implementing a billing-analysis workflow rather than merely returning incidental credit fields in run metrics.

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
94% confidence
Finding

The troubleshooting advice installs or runs the CLI without specifying a reviewed version. If the resolved npm release is compromised, troubleshooting can execute attacker-controlled code with the agent's permissions and access to available credentials; the relevant risk is npm supply-chain execution rather than an MCP server.

Content

No source excerpt is available for this finding.