mandiant / VM-Packages

Chocolatey packages supporting the analysis environment projects FLARE-VM & Commando VM.
Apache License 2.0
123 stars 61 forks source link

Template + automation for Node packages installed with npm from a URL #1047

Open Ana06 opened 1 month ago

Ana06 commented 1 month ago

Details

We have helper functions for packages installing Node tools using npm. In https://github.com/mandiant/VM-Packages/pull/1046 we are adding a template to our create_package_template.py script and an issue template + automation for Node tools from the JavaScript Package Registry installed using npm install -g <tool_name>.

We could add to the existent NEW PACKAGE from URL template Node packages installed with npm from a URL (such as GH repos). For this we can use the VM-Install-Node-Tool-From-Zip function. We would need to add an extra arguments or command parameter to the script and the template, which would be an improvement for the current package types as well. I suggest implementing it in multiple steps (two separate PRs):

  1. add arguments parameter to script + current template. Tracked now as https://github.com/mandiant/VM-Packages/issues/1082
  2. add a ZIP_NODE type for node packages installed with npm from a URL to the create_package_template.py script & add to the existent NEW PACKAGE from URL template the ZIP_NODE type.