Back to skill

Security audit

crossly-wholesale

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this wholesale management skill benign because the flagged items describe documented Crossly API operations and setup, though the overall confidence is medium and one local reference was unresolved.

The verdict is benign, not risk-free. Before installing, consider whether you want to grant a Crossly personal access token and whether automatic approval or catalog and buyer changes suit your workflow. The scan was partial: a local path-like reference at line 168 could not be resolved, so evidence about that reference is incomplete.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
## Setup

1. Create a free Crossly account: https://crossly.net/register
2. Create a personal access token at https://crossly.net/settings/api/tokens/new (guide: https://crossly.net/guides/personal-access-tokens). Use a `crossly_pat_test_` token against the sandbox while building.
3. Export it as `CROSSLY_PAT` and send it as `Authorization: Bearer $CROSSLY_PAT` to `https://crossly.net/api/v1/*`. Full docs: https://crossly.net/docs

## Setup and the trade profile

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
`listed` (advertise in the wholesale directory) is separate from `visibility` (who may open). The directory never shows a price or a line item, only the catalog card. `autoApprove`: `never`, `verified` (business-verified accounts), `all`. Limits: `name` ≤ 120, `slug` ≤ 60 (a duplicate slug is a 400), `description` ≤ 2000, `directoryBlurb` ≤ 280.

`PATCH /v1/wholesale/catalogs/{id}` edits any of those plus `active` (false = nobody but the seller can open it). `DELETE /v1/wholesale/catalogs/{id}` removes the catalog with its items, grants and requests; orders and invoices stay.

## Items, trade prices and quantity breaks

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
| `GET /v1/wholesale/buyers` | `listBuyers()` |
| `POST /v1/wholesale/buyers/invite` `{ email, catalogIds (1-50) }` | `inviteBuyer()` |
| `POST /v1/wholesale/catalogs/{id}/access/{grantId}/resend` | `resendCatalogInvite(catalogId, grantId)` |
| `DELETE /v1/wholesale/catalogs/{id}/access/{grantId}` | `revokeCatalogAccess(catalogId, grantId)` |
| `POST /v1/wholesale/buyers/remove` `{ buyerUserId }` or `{ email }` | `removeBuyer()` |

- A request carries the buyer's business-verification and tax-exempt status. `approve` grants the catalog (optionally `catalogIds` for more, and `groupId` to add them to a group in the same step); `decline` takes an optional `declineReason` (≤ 500). Deciding twice is 409 `conflict`.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
- `DELETE …/access/{grantId}` revokes one catalog; `buyers/remove` revokes every catalog grant. Both keep terms, groups and invoices.
- Business verification and resale certificates on the roster are read-only: Crossly reviews them.

**Customer groups**: `GET`/`POST /v1/wholesale/groups` (`{ name (≤ 80), discountPercentBps (0-9000) }`), `PATCH`/`DELETE /v1/wholesale/groups/{id}` (`active: false` pauses), members via `POST /v1/wholesale/groups/{id}/members` (`{ buyerUserId }` or the `email` of an existing Crossly account; an unknown email is a 400, so invite them to a catalog first) and `DELETE /v1/wholesale/groups/{id}/members/{buyerUserId}`.

**Net terms** (pay on account):

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

md
- `DELETE …/access/{grantId}` revokes one catalog; `buyers/remove` revokes every catalog grant. Both keep terms, groups and invoices.
- Business verification and resale certificates on the roster are read-only: Crossly reviews them.

**Customer groups**: `GET`/`POST /v1/wholesale/groups` (`{ name (≤ 80), discountPercentBps (0-9000) }`), `PATCH`/`DELETE /v1/wholesale/groups/{id}` (`active: false` pauses), members via `POST /v1/wholesale/groups/{id}/members` (`{ buyerUserId }` or the `email` of an existing Crossly account; an unknown email is a 400, so invite them to a catalog first) and `DELETE /v1/wholesale/groups/{id}/members/{buyerUserId}`.

**Net terms** (pay on account):

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

}, { idempotencyKey: crypto.randomUUID() });

text

`DELETE /v1/wholesale/buyers/{buyerUserId}/terms` switches terms off; issued invoices are unaffected. At checkout a buyer with active terms can pay on account: no charge is taken, an invoice is issued due `netDays` out, and the order is created normally. Crossly is never the lender: an unpaid invoice is the seller's receivable, so grant terms only to buyers the seller trusts. An overdue invoice pauses that buyer's on-account ordering.

**Reserve stock for wholesale**: `PUT /v1/wholesale/reserve/{inventoryItemId}` `{ units }` (0-100000; 0 clears) holds units back; retail channels advertise the rest and delist when only the reserve is left. Read it with `GET /v1/wholesale/reserve/{inventoryItemId}`.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
const { data: catalog } = await crossly.wholesale.createCatalog({   // POST /v1/wholesale/catalogs
  name: 'Spring closeouts',
  visibility: 'private_discoverable',
  autoApprove: 'verified',
  minOrderCents: 50_000,          // $500 opening order
  listed: true,
  directoryCategories: ['other:closeout apparel'],

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
| `link` | Anyone with the URL |
| `invite` | Named buyers only (`private` is accepted as `invite`) |

`listed` (advertise in the wholesale directory) is separate from `visibility` (who may open). The directory never shows a price or a line item, only the catalog card. `autoApprove`: `never`, `verified` (business-verified accounts), `all`. Limits: `name` ≤ 120, `slug` ≤ 60 (a duplicate slug is a 400), `description` ≤ 2000, `directoryBlurb` ≤ 280.

`PATCH /v1/wholesale/catalogs/{id}` edits any of those plus `active` (false = nobody but the seller can open it). `DELETE /v1/wholesale/catalogs/{id}` removes the catalog with its items, grants and requests; orders and invoices stay.

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 106)May include surrounding context.

bash
# Replace one listing's ladder (≤ 10 rungs; minQuantity ≥ 2; each cheaper than the last and the list price; [] removes)
curl -X PUT https://crossly.net/api/v1/wholesale/listings/$PLID/tiers \
  -H "Authorization: Bearer $CROSSLY_PAT" -H "Idempotency-Key: $(uuidgen)" -H "Content-Type: application/json" \
  -d '{"tiers":[{"minQuantity":12,"unitPriceCents":1600},{"minQuantity":48,"unitPriceCents":1400}]}'