Always ensure you are using the latest version of WinRAR (7.13 or higher) to mitigate these risks when handling or creating archives.
In the "General" tab, check the box for "Create SFX archive." This will change the file extension from .rar to .exe .
Creators can set the archive to automatically run a setup program after extraction, create desktop shortcuts, or extract to a specific "temporary" folder.
Since it is an executable, it bypasses the need for the recipient to understand how to open .rar files . How to Create One