如何在linux上安全地运行不受信任的可执行文件?

在当今时代,对不可信的可执行文件保持警惕并不是一个坏主意,但是如果您真的需要在Linux系统上运行一个文件,有没有安全的方法呢?今天的超级用户问答帖子有一些有用的建议,以回应一位忧心忡忡的读者的提问。...

如何在linux上安全地运行不受信任的可执行文件?

在当今时代,对不可信的可执行文件保持警惕并不是一个坏主意,但是如果您真的需要在Linux系统上运行一个文件,有没有安全的方法呢?今天的超级用户问答帖子有一些有用的建议,以回应一位忧心忡忡的读者的提问。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

问题

超级用户读者Emanuele想知道如何在Linux上安全运行不受信任的可执行文件:

I have downloaded an executable file compiled by a third party and I need to run it on my system (Ubuntu Linux 16.04, x64) with full access to HW resources such as the CPU and GPU (through the NVIDIA drivers).

Suppose this executable file contains a virus or backdoor, how should I run it? Should I create a new user profile, run it, then delete the user profile?

如何在Linux上安全地运行不受信任的可执行文件?

答案

超级用户贡献者Shiki和Emanuele为我们提供了答案。首先,志贵:

First and foremost, if it is a very high risk binary file, you would have to set up an isolated physical machine, run the binary file, then physically destroy the hard drive, the motherboard, and basically all the rest because in this day and age, even your robot vacuum can spread malware. And what if the program already infected your microwave through the computer’s speakers using high-frequency data tran**itting?!

But let’s take off that tinfoil hat and jump back to reality for a bit.

No Virtualization – Quick to Use

Firejail

I had to run a similar untrusted binary file just a few days ago and my search led to this very cool **all program. It is already packaged for Ubuntu, very **all, and has virtually no dependencies. You can install it on Ubuntu using: sudo apt-get install firejail

Package info:

007Ys3FFly1gpca9w5w3aj30hd0e73zz

Virtualization

KVM or Virtualbox

This is the safest bet depending on the binary, but hey, see above. If it has been sent by “Mr. Hacker” who is a black belt, black hat programmer, there is a chance that the binary can escape a virtualized environment.

Malware Binary – Cost Saver Method

Rent a virtual machine! For example, virtual server providers like Amazon (AWS), Microsoft (Azure), DigitalOcean, Linode, Vultr, and Ramnode. You rent the machine, run whatever you need, then they will wipe it out. Most of the bigger providers bill by the hour, so it really is cheap.

接着是伊曼纽尔的回答:

A word of caution. Firejail is OK, but one has to be extremely careful in specifying all the opti*** in terms of the blacklist and whitelist. By default, it does not do what is cited in this Linux Magazine article. Firejail’s author has also left some comments about known issues at Github.

Be extremely careful when you use it, it might give you a false sense of security without the right opti***.


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

图片来源:监狱囚室剪贴画(Clker.com网站)

  • 发表于 2021-04-08 13:43
  • 阅读 ( 163 )
  • 分类:互联网

你可能感兴趣的文章

不,linux不需要防病毒或防火墙

... 想想软件是如何安装的。在Windows和Mac上,用户通常下载请求系统级访问的EXE、MSI和DMG安装程序文件,以便进行必要的安装更改。这是恶意软件攻击的主要途径。一个错误,一个把戏...

  • 发布于 2021-03-12 20:15
  • 阅读 ( 190 )

为什么java虚拟机可以帮助代码更好地运行

... 以下是BZLib压缩库中的一个小代码段,它演示了如何使用ifdef隔离平台特性: ...

  • 发布于 2021-03-13 07:13
  • 阅读 ( 246 )

qubes os 3.2:最安全的linux操作系统

... 然而,Qubes操作系统侧重于安全性。它的口号是:“一个相当安全的操作系统。”在它的主页上,Qubes操作系统夸耀着爱德华·斯诺登等人的推荐信。Qubes操作系统具有安全性、出色的分区、自由和集...

  • 发布于 2021-03-14 14:08
  • 阅读 ( 478 )

面向偏执狂的linux操作系统:最安全的选择是什么?

... 无论您敏感工作的性质如何,您都将受益于这五种安全的Linux操作系统之一。 ...

  • 发布于 2021-03-14 19:20
  • 阅读 ( 376 )

firejail:提高linux安全性的一种简单方法

Linux是安全的,对吗?在很多方面,它肯定比Windows更安全,但它不是不受攻击的。在安全性和可用性之间总是有一个平衡点,但是在不严重损害操作系统可用性的情况下,您到底能在多大程度上保护您的操作系统呢? ...

  • 发布于 2021-03-17 05:24
  • 阅读 ( 322 )

2020年是linux恶意软件大流行的一年吗?

...你的系统,例如,可能是渗透他们的第一步。因此,评估如何保护您的系统是值得的。 ...

  • 发布于 2021-03-29 07:01
  • 阅读 ( 308 )

如何安装linux

...你不喜欢,只要重新启动,你就会回到Windows。下面介绍如何开始使用Linux。 选择一个linux发行版并下载它 首先,您需要选择要使用的Linux发行版。Linux发行版将Linux内核和其他软件打包成一个您可以使用的完整操作系统。不同的...

  • 发布于 2021-04-01 12:11
  • 阅读 ( 194 )

如何从linux命令行查看二进制文件

...。文件里有一大堆马厩,可以帮你分析。我们将向您展示如何使用这些工具。 识别文件类型 文件通常具有一些特性,允许软件包识别它是哪种类型的文件,以及其中的数据表示什么。尝试在MP3音乐播放器中打开PNG文件是没有...

  • 发布于 2021-04-02 04:41
  • 阅读 ( 360 )

如何使用nextcloud构建自己的云文件同步

...您熟悉命令行之后,您可以查看提供商的帮助页面,了解如何添加SSH密钥以实现更安全的登录。 如果您的计算机运行的是windows10,那么您需要安装Windows子系统for Linux,并获得一个带有Linux实用程序的bashshell才能继续。如果你使...

  • 发布于 2021-04-02 10:12
  • 阅读 ( 165 )

如何在linux中向$path添加目录

...但这并没有什么不好的地方。我们将解释它的作用,以及如何调整它。 什么是$path,它是如何工作的($path on linux, and how does it work)? 当您在终端窗口中键入一个命令并按Enter键时,您甚至在执行命令之前就开始了大量的活动。 B...

  • 发布于 2021-04-02 14:04
  • 阅读 ( 188 )
a5283847403
a5283847403

0 篇文章

相关推荐