Mod safety


If I allow my game to get modded, how safe would it be for players to download those mods? Like is there a way to sandbox the mods so they don’t have internet access or have the ability to install nefarious things assuming the mod comes from steam workshop?