mandiant / mandiant/VM-Packages
update_package.py: Support updating several URLs
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 246
- Forks
- 98
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 7
Description
### Details
At the moment the automatic updates of packages like `ida.plugin.capa.vm` fails because there are two URL + hash to update which [`update_package.py`](https://github.com/mandiant/VM-Packages/blob/main/scripts/utils/update_package.py) does not support. We could improve the script to calculate the hash of the previous version and replace it instead of a generic hash and allow modifying more than one URL/hash. We have to be careful not to break the other cases when implementing this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with scripts/utils/update_package.py and trace how package URLs and hashes are currently located and replaced, using ida.plugin.capa.vm as the motivating case. Verify the updater can handle multiple URL/hash pairs, including calculating the previous version's hash where needed, while preserving existing cases; done means automatic package updates no longer fail for packages with two URLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100