Back to skill

Security audit

WooCommerce Order Guard

Security checks for vulnerabilities and agentic risk

Overview

This skill matches its stated WooCommerce automation purpose, but it automatically changes live order address data using stored API credentials without enough safeguards.

Review before installing in production. Use a least-privilege WooCommerce API key, require an HTTPS store URL, protect the credentials file, test on staging first, and consider adding a dry-run/apply mode plus response checks before allowing automatic address updates.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/order-guard.py:57
Finding

WooCommerce credentials and customer data may be transmitted without secure transport

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/order-guard.py:75
Finding

Failed shipping-address updates are recorded as successfully processed

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • 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)

Intent-Code Divergence

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The docstring materially understates the script’s behavior by claiming it only fetches processing orders and emits alerts, while the implementation also performs authenticated remote updates to WooCommerce orders. This mismatch is dangerous because operators may deploy or approve the script under false assumptions, leading to unauthorized or unexpected modification of customer order records and shipping details.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill explicitly states that it will auto-fix missing shipping addresses by copying billing data into shipping fields, but the description does not prominently warn that this changes live WooCommerce order records. That omission can cause operators to run it in production without understanding that customer/order data will be modified automatically, increasing the risk of unintended fulfillment errors, privacy issues, and hard-to-trace data integrity problems.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The script automatically modifies order shipping data over authenticated HTTP without operator confirmation, approval workflow, or even checking the PUT response for success. In this skill context, the action touches real e-commerce order records and customer address data, so silent automation increases the chance of unintended data corruption, privacy issues, or propagation of bad billing data into shipping fields.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% 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/order-guard.py (reported line 82)May include surrounding context.

python
if not shipping.get('address_1'):
            update_data = {"shipping": copy_billing_to_shipping(order)}
            requests.put(f"{url}/wp-json/wc/v3/orders/{order_id}", auth=auth, json=update_data)

        alerted_orders.append(order_id)
        print(f"NEW_ORDER_ID: {order_id}")

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
81% confidence
Finding

The script loads consumer credentials from a local file and uses them to authenticate WooCommerce API requests. While this is functionally necessary, the file does not provide a clear user-facing warning that sensitive credentials are being accessed and used for remote authenticated operations.

Content

No source excerpt is available for this finding.