How to update YARA rules in an air-gapped/offline environment?
To update the YARA rule set in an air-gapped/offline Sandbox environment, please follow these steps:
- Search for the latest release in the fsYara GitHub repository: https://github.com/filescanio/fsYara/releases
- Click on that release, and download the
master_file.yarcfile from the release assets:


- Transfer the downloaded
master_file.yarcto your offline environment (e.g. using a USB drive) - Replace the current master file in
/home/sandbox/sandbox/transform/yara/rules/master_file.yarcwith the new master file, and ensure that thesandboxuser owns the new file:
cd /PATH/TO/YOUR/USB-DRIVEsudo cp -f master_file.yarc /home/sandbox/sandbox/transform/yara/rules/master_file.yarcsudo chown sandbox:sandbox /home/sandbox/sandbox/transform/yara/rules/master_file.yarc- Restart the
transformcomponent of thesandboxservice, so the updated YARA rules are loaded into memory:
sudo service sandbox restart-transform