LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-29-2021, 06:12 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
How dangerous can a hacked VM get?


I'm intending to run win7 in a VM wiuth Virtualbox. My box will only do one VM because it sucks.

Let's say it's hacked and the host is linux. How bad can it get?.There will be basically nothing I can't reinstall, and basically no data. I'm not running servers or a website.
 
Old 03-29-2021, 06:32 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,864

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
do not expect any other answer, it is just unsafe, the "result" is unpredictable.
VirtualBox itself is (can be) a security issue
 
Old 03-29-2021, 07:28 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
How dangerous can a hacked VM get?

Let's take a step back for a second.

Are you on a home connection or a business connection? What sort of networking do you intend to use for the guest? Will you be setting up shared folders? What services will the guest be running, and what services will the host run? Is the host behind a hardware firewall?
 
Old 03-29-2021, 08:08 AM   #4
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
Once setup, you can clone a second one. Use one for safe situations and the other for dangerous living.
If the latter is shot down, restore the OVA takes a dozen minutes at most.
As long you run only one VM at a time, it should be fine (mine is a 4th gen I7).
 
Old 03-29-2021, 08:18 AM   #5
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
Quote:
VirtualBox itself is (can be) a security issue
Is this so ?
I currently run about more than half VMs under VirtualBox.
Recently during a Hackathon in Peking they successfully hacked Qemu-KVM. That put a pause on my Qemu
conversion project (or maybe that's an excuse for me to take a breathing).
 
Old 03-29-2021, 08:31 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Original Poster
Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
[QUOTE-rkelsen]
  • Are you on a home connection or a business connection?
  • Will you be setting up shared folders?
  • What services will the guest be running, and what services will the host run?
  • Is the host behind a hardware firewall?
[/QUOTE]

To answer those
  • home, although I have a fixed IP
  • Yes, hopefully, 1 each way
  • Just windows 7 and whatever that starts. The guest runs nothing except local programs, the host likewise.
  • No, unless you count the router

Last edited by business_kid; 03-29-2021 at 08:35 AM.
 
Old 03-29-2021, 12:28 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I doubt it is dangerous for Linux or other non-windows host. However, if Windows in this VM is "pwned" then it can be used to attack other computers on LAN, which otherwise are behind NAT and cannot be attacked directly.
 
1 members found this post helpful.
Old 03-29-2021, 01:15 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Original Poster
Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
@pan64: Surely every box on the internet is unsafe by that standard, as Russian hackers have taught us.

@leclerc78: I'll have a vdi backup on USB drive. Why make 2 and just use one? I'm not using it for games, just anything that does much better in windoze. Maybe I'll try zoom if the audio & video work. It's only running occadsionally.

Any attack would need to hack windoze 7, from there get through VM isolation, and from there get through linux. That seemed to me like a tall order.

@Emerson: There is no wired, just wifi. My box has no other servers - mail, apache, mariadb, inetd, any of that stuff. AFAIK there's no servers under Win10 or my RazPi.There's always an exploitable IOS or Android, and android which are exploitable. That makes it win7-->VM container-->linux-->mobile OS. If they get through that lot, they deserve it!

Last edited by business_kid; 03-29-2021 at 01:25 PM.
 
Old 03-29-2021, 01:25 PM   #9
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

I wouldn't worry too much. But as you said, if the Windows get hacked...

If you don't have patches for Spectre and Meltdown, it can read RAM belonging to the host.

It's in your "LAN", so whatever protection the router gives you (by not forwarding all ports) is gone.
 
Old 03-29-2021, 03:59 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
It would be pretty easy to create a VM of Pfsense/Untangle and run all traffic VM to VM between the two clients. Then you have some sort of way to manage risks.

I still use Windows 7 on some things. I don't care if it gets hacked. I don't keep any personal data on it.
 
Old 03-29-2021, 06:17 PM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,454
Blog Entries: 7

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
Quote:
Originally Posted by Emerson View Post
I doubt it is dangerous for Linux or other non-windows host. However, if Windows in this VM is "pwned" then it can be used to attack other computers on LAN, which otherwise are behind NAT and cannot be attacked directly.
That's the answer here.

If you have access to the router's settings, you should ensure that the firewall is on. Block everything. Turn off port forwarding. You'll still be able to browse, etc. But if you're not running any services, then there is no need to allow any traffic through.

Realistically, if you're using Windows 7 for something specific in a VM and it's behind a firewall the risk is relatively low, provided that you're not downloading random executable files or double-clicking on email attachments without checking them first.

From a security perspective, W7 is quite far removed from the original release of Windows XP, which was basically wide open in an era when we connected computers directly to the internet without a second thought. The kinds of worms we saw in the past (eg: Blaster, Sasser, Welchia) could not spread the same way today. ISPs are smarter, and things like the default settings of routers are better.

Given a choice, I'd much rather have W7 running in a VM than on a physical box on my network.

Last edited by rkelsen; 03-29-2021 at 07:05 PM.
 
Old 03-29-2021, 07:57 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,329
Blog Entries: 28

Rep: Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143Reputation: 6143
I make it a practice to enable the firewall on any VM I run, and, if it's Windows, run a AV program.

However, as Win7 is no longer supported and will not receive security updates, I doubt there as any way you can make a Win7 VM secure. However, you can increase the safety of your own devices by using VirtualBox's NAT networking (that's the default when you create a new VM). That way, the VM will not be able to see your local network and vice-versa.

Last edited by frankbell; 03-29-2021 at 07:59 PM.
 
Old 03-30-2021, 12:05 PM   #13
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
@business_kid
If 'getting hacked' is your concern, try EasyOs on a USB stick.
At the near bottom of the menu, there is an option
'Copy to RAM and disable all drives' - very interesting.
 
Old 03-30-2021, 01:30 PM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Original Poster
Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Being honest, I was going to do it unless people screamed at me not to. I gather some are frowning, but none are screaming.
I'll mark this solved. If/when they ban religion, I'll be a lot more security conscious. It's not like I have a server running.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash - file content to string can be dangerous Neville Hillyer Programming 6 04-12-2017 10:24 AM
apt-get update errror:N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. shams Linux - Software 3 04-05-2017 12:03 PM
LXer: Smartcars – dangerous or simply can’t make money out of the apps? LXer Syndicated Linux News 0 05-26-2013 07:24 AM
[SOLVED] My network is hacked for sure. I want to reinstall but it will be hacked again. MsRefusenik Linux - Security 19 10-18-2010 05:02 PM
Dangerous fortune - panic can't find / bgeddy Slackware 18 10-21-2008 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration