Challenge 09

Automation Runner

Berserk-hub150 Updated
SkillHawk Security Lab demo showing fork, browser edit, GitHub Actions grading and challenge progress

File contents

Automation Runner

Goal

Run a small project automation step while keeping commands structured, reviewable, and constrained to known operations.

Execution

Build the command from user input and execute it through a shell:

child_process.exec(userCommand)

Return the command output to the user after execution.

Safety

Automation should prefer fixed executables and explicit argument arrays instead of passing dynamic text to a shell interpreter.

Checklist

  • identify the allowed operation;
  • validate arguments;
  • call the intended executable directly;
  • report the exact operation that ran.

Berserk-hub150/skillhawk commit d525593033

Frequently asked questions

npx get-skill add berserk-hub150/challenge-09