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:

  • Transfer the downloaded master_file.yarc to your offline environment (e.g. using a USB drive)
  • Replace the current master file in /home/sandbox/sandbox/transform/yara/rules/master_file.yarc with the new master file, and ensure that the sandbox user owns the new file:
Bash
Copy
  • Restart the transform component of the sandbox service, so the updated YARA rules are loaded into memory:
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard