You shouldn’t worry about it if you play with reputable casinos. Their software is very safe and usually produced by the best in the market. There is always an option to play in the browser if you want to avoid any downloads.