Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Block potentially malicious R calls

Let's presuppose that you have R running with root/admin privileges. What R calls do you consider harmful, apart from system() and file.*()?

This is a platform-specific question, I'm running Linux, so I'm interested in Linux-specific security leaks. I will understand if you block discussions about R, since this post can easily emerge into "How to mess the system up with R?"

like image 441
aL3xa Avatar asked Oct 26 '10 14:10

aL3xa


People also ask

How do I turn off Virus notifications?

Curate your notifications You can turn these notifications on, or off, on the notifications page. In Virus & threat protection, under Virus & threat protection settings, select Manage settings, scroll down to Notifications and select Change notification settings.

Why am I getting Windows security alert?

Is Windows Defender security warning real? No, it is not real. It is a fake warning designed to scare you into performing steps that could get your computer infected, or make you share sensitive personal information that could later be used in financial fraud or identity theft.

Who is office365alerts Microsoft COM?

This is a Phishing with a link scam.


2 Answers

Do not run R with root privs. There is no effective way to secure R in this way, since the language includes eval and reflection, which means I can construct invocations to system even if you don't want me to.

Far better is to run R in a way that cannot affect the system or user data, no matter what it tries to do.

like image 51
Alex Brown Avatar answered Sep 19 '22 13:09

Alex Brown


Anything that calls external code could also be making system changes, so you would need to block certain packages and things like .Call(), .C(), .jcall(), etc.

Suffice it to say that it will end up being a virtually impossible task, and you are better off running it in a virtualized environment, etc. if you need root access.

like image 23
Shane Avatar answered Sep 21 '22 13:09

Shane