Prevention that only looks for the ransom note will always be late. Watch mass-file touch, backup-admin logins, and the identity hop that precedes both.
Named affiliates reuse loaders and privilege paths. Hunt those behaviors on the sensor you already run, then contain the host and the token in the same case.