Dangerous exec
- Finding
- Shell command execution detected (child_process).
Security checks across static analysis, malware telemetry, and agentic risk
This skill is purpose-aligned for code refactoring, but users should notice that apply/validation modes can edit files and run local test commands.
Install only if you are comfortable with a refactoring tool that can modify local source files and run project tests. Start with dry-run previews, review changes before applying, and use it in a version-controlled, trusted project.
VirusTotal findings are pending for this skill version.
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
If applied to the wrong file or if the refactoring is incorrect, project code can be changed or broken.
Apply mode can directly modify the selected source file as part of refactoring. The code also creates backups by default, so this is expected but high-impact local mutation.
fs.writeFileSync(filePath, updatedCode);
Use dry-run first, review the generated changes, keep the project under version control, and apply only to intended files.
Validation may run project scripts with the user's local permissions.
The validation step executes a shell command, defaulting to npm test, in the project directory. Running tests is purpose-aligned, but npm scripts and custom testCommand values can execute arbitrary local commands.
const output = execSync(this.options.testCommand, {Run validation only in trusted repositories, review any configured testCommand and cwd, and prefer dry-run mode before applying changes.
The syntax check handles file content as JavaScript code and may behave differently from a real parser, especially for modules.
The syntax checker dynamically compiles the selected file content. The function is not called, so this appears to be a syntax-validation shortcut rather than hidden execution.
new Function(code);
Prefer a dedicated JavaScript parser for syntax validation, and analyze only intended source files.