craft

Warn

Audited by Socket on Sep 7, 2026

3 alerts found:

AnomalySecurityx2
AnomalyLOW
workflow.js

No direct evidence of malicious logic (e.g., backdoors, data theft, network exfiltration) is present in this fragment. However, this module accepts caller-provided command strings (especially mechanicalChecks[].cmd without any shell metacharacter filtering) and passes them to an external agent instructed to execute them via Bash. This creates a high-risk command-execution boundary where malicious or unsafe commands could run depending on the agent/runtime enforcement. If the agent truly runs arbitrary shell commands, treat this as a significant security risk and require strict allowlists/escaping, and review the agent/runtime implementation. Malware probability is therefore low-to-medium, but security risk is elevated due to command execution capability.

Confidence: 62%Severity: 68%
SecurityMEDIUM
scripts/plan-preflight.ts

No clear indicators of stealthy malware or persistence are present in the provided fragment. However, the code is inherently high-risk in a supply-chain/testing context because it executes command strings derived directly from an external plan file via exec('acceptance', t.id, cmd). If the plan file (or its command strings) can be influenced by an attacker—or if exec invokes a shell or performs unsafe interpolation—this can enable arbitrary command execution. Absent evidence of network exfiltration or backdoor behavior in this fragment, the primary risk is command-execution/injection driven by untrusted plan content and the potential for unsafe behavior toggled by --unsafe.

Confidence: 62%Severity: 70%
SecurityMEDIUM
scripts/workflow-harness.mjs

The module is primarily a dynamic workflow loader/executor. Its core behavior—reading JavaScript from disk and executing it via AsyncFunction—creates a high-impact execution primitive. There is no path validation/allowlisting and no sandboxing, so the primary supply-chain risk is that tampering with the workflow file contents or providing a different path (or malicious hook overrides) would enable arbitrary code execution under the host process privileges. This fragment itself shows no explicit network exfiltration/crypto-mining/system-command behavior, but the execution model is sufficiently dangerous that it warrants strict control of workflow source integrity and path/overrides governance.

Confidence: 68%Severity: 78%
Audit Metadata
Analyzed At
Sep 7, 2026, 05:56 AM
Package URL
pkg:socket/skills-sh/edwinhu%2Fworkflows%2Fcraft%2F@5da946f529485ed559e2cbc6ff5589c1f4d0e7cbec9069b65646c9fdbd41d9d6
Security Audit — socket — craft