T09 · Insecure Skill Coding Practices
- Location
SKILL.md:39- Finding
PowerShell Execution Policy Bypass for Unverifiable Scripts
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:39SKILL.md:49INSTALL.md:16INSTALL.md:25INSTALL.md:44
Vulnerability Type: Security control bypass during script execution
Risk Level: MediumVulnerable Code
powershell powershell -ExecutionPolicy Bypass -File ~/.openclaw/skills/lobster-memory-system/scripts/init.ps1powershell powershell -ExecutionPolicy Bypass -File scripts/init.ps1powershell powershell -ExecutionPolicy Bypass -File setup-auto-backup.ps1Technical Analysis
The installation documentation repeatedly instructs users to launch PowerShell with
-ExecutionPolicy Bypass. This causes the invoked PowerShell process to ignore the configured execution policy, allowing unsigned or otherwise restricted scripts to run.The audited package does not contain the referenced
scriptsdirectory or any of the named PowerShell files. Consequently, the contents and security properties ofinit.ps1andsetup-auto-backup.ps1cannot be verified from this artifact. Although no malicious executable payload was found in the package, the documented command creates an unsafe execution path if a script is obtained separately, introduced in a future release, or replaced after installation.Execution policy is not a complete security boundary, but bypassing it unnecessarily removes a defense-in-depth control and makes script substitution easier to exploit.
Attack Path
- An attacker places or replaces
scripts/init.ps1orsetup-auto-backup.ps1in the expected installation directory. - This can occur through a compromised distribution, writable installation directory, malicious update, or local file replacement.
- The user follows the documented command with
-ExecutionPolicy Bypass. - PowerShell executes the substituted script without applying the configured execution-policy restrictions.
- The script receives the privileges of the us ...[truncated 666 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove
-ExecutionPolicy Bypassfrom every documented command. - Include all referenced scripts in the reviewed package so their behavior can be audited before execution.
- Digitally sign distributed PowerShell scripts and document signature verification.
- Publish cryptographic hashes for released scripts and require verification before execution.
- Use a restrictive process-scoped policy only when operationally necessary rather than unconditionally disabling policy checks.
- Restrict write access to the installed
scriptsdirectory to prevent post-installation substitution. - Display and review script contents before execution, particularly before running from an elevated shell.
- Ensure installation fails safely when a referenced script is absent rather than directing users to obtain it from an unspecified source.
- Remove
