Update script to download all Malware Analysis Appliance updates from a specified version

book

Article ID: 168656

calendar_today

Updated On:

Products

Malware Analysis Software - MA

Issue/Introduction

Resolution

Prerequisites:
 
Copy the attached python script to a computer that has python 2.7 installed and has internet connectivity.
Create a download directory. Example: /home/user1/maaupdates
Have your license key ready. You can find it in the MAA UI under System Settings / License which has this format: XXXXX-YYYYY-ZZZZZ-AAAAA-BBBBB
 
1. Get the version string of your current MAA version and patterns version:
 
Navigate to System Info / System Information on your MAA UI and get the MAA Version and Patterns Version
Alternatively you can query the API : <maa-ip>/rapi/system/version_info and get the mag2_version and patterns_version
 
2. Open a terminal and run the script (file link below):

python fetch_update.py --host https://maa-updates.es.bluecoat.com -d /home/user1/maa-updates/ -m 4.2.1.20141210-RELEASE XXXXX-YYYYY-ZZZZZ-AAAAA-BBBBB

Fetches all version updates from current version to the latest available version

python fetch_update.py --host https://maa-updates.es.bluecoat.com -d /home/user1/maaupdates/ -p 100 XXXXX-YYYYY-ZZZZZ-AAAAA-BBBBB

Fetches all pattern updates from the current pattern version to the latest available version
 
3. Upload the updates to MAA using the UI:
 
Go to system Settings / Updates in the UI and click on the offline updates tab.
Click on upload update package
It is recommended to begin with the lowest version update.
Once you are done uploading you can install the package by clicking the now available install button in the UI
 

Attachments

fetch_update.py get_app