create-upstash-software-factory
Audited by Socket on Sep 19, 2026
8 alerts found:
Securityx2Anomalyx6The fragment is operational documentation for an unattended AI-agent factory, not apparent malware. Its principal security concern is high-privilege agent execution: approval and sandbox controls are disabled, credentials are placed on worker disks, and prompts are embedded in shell commands. These choices can enable serious compromise if prompt/path substitution, repository contents, or an agent CLI is malicious, although the fragment itself does not demonstrate malicious intent or exfiltration.
The code is a GitHub issue-to-pull-request automation runner, not apparent malware. Its primary security risks are intentional high-privilege shell execution, exposure of a GitHub token through command-line authentication URLs, prompt injection through issue/comment content, and force-pushing. The code includes basic authorization, label gating, token redaction, workspace cleanup, and worker isolation assumptions. Review q(), sh(), runScript(), configuration loading, agent isolation, and token handling before deployment.
The code is a legitimate remote worker and shell-script orchestration module. It contains no clear malware indicators or intentional data theft. Its main security risk is that it deliberately executes shell commands and inconsistently quotes paths derived from name and dir, allowing command injection or path manipulation if those inputs are attacker-controlled. Inputs should be strictly validated and every generated path should be safely quoted or constructed using a trusted path utility.
The configuration is not itself an evident malware payload, but it creates a high-risk supply-chain automation environment. Automated Claude and Codex processes receive sensitive credentials and run with permission checks, approvals, and sandboxing disabled; repository npm scripts and agent-controlled actions can therefore execute with broad privileges. Use isolated short-lived credentials, retain sandbox and approval controls, avoid shell interpolation for prompts, and restrict repository lifecycle execution. Confidence is high for the identified configuration risks, while malware intent is not established.
The code appears to be a legitimate agent orchestration and secret-management module, not an implanted malware payload. It deliberately handles sensitive secrets and executes configured commands. Security risk is moderate because untrusted or compromised configuration could enable arbitrary shell execution, arbitrary file reads, or writes outside intended directories, especially through the unescaped agent command and insufficient path validation. No clear evidence of data theft or malicious intent is present in the supplied fragment.
No direct malicious behavior is present in this documentation fragment. It describes legitimate cloud sandbox orchestration but documents high-impact capabilities: shell execution, passwordless sudo, writes outside the workspace, agent access, and persistent Git credential storage. These are security risks if untrusted commands, repositories, dependencies, or credentials enter the Box. Review the referenced implementation and scripts before relying on the template.
The code is a readable administrative secret-provisioning script. It intentionally transfers configured credentials to GitHub repository secrets through the gh CLI, which is a high-impact operation but not evidence of malware in this fragment. The main risk is misconfiguration or unauthorized execution causing secrets to be stored in unintended repositories. The repository assignment for configured repo secrets should be verified.
The workflow appears intended to automate issue-driven repository work and does not itself contain clear malware, credential theft, exfiltration, or destructive behavior. It presents elevated supply-chain risk because all GitHub secrets are injected into the job and therefore potentially accessible to src/plan.mjs, src/run.mjs, and npm dependency lifecycle scripts. The unprovided scripts and dependency lockfile require review before execution, and immutable action pinning plus narrower secret exposure would reduce risk.