A common safety practice is to test the file first in an emulator like Ryujinx on a PC before installing it on an actual Switch. Installation Context
You can use tools like NSC_Builder (Nintendo Switch Cleaner and Builder) to verify the file's hash and digital signature against known legitimate copies.
The .rar is a container; the internal .nsp is the standard digital format used for Nintendo Switch games and emulators.