WEBVTT

00:00:00.140 --> 00:00:05.210
Also with VM tools, so we're running a virtual machine, it really depends

00:00:05.210 --> 00:00:08.260
whether it's Linux or not, whatever, but there're open VM tools.

00:00:08.270 --> 00:00:12.550
There's some sort of agent or set of drivers that are going to be

00:00:12.550 --> 00:00:15.670
loaded on the device so that the VM works properly with your

00:00:15.670 --> 00:00:17.550
resources, your hardware resources. Right.

00:00:17.560 --> 00:00:19.010
Is that something that's checked as well?

00:00:19.020 --> 00:00:20.040
It definitely is,

00:00:20.470 --> 00:00:25.840
and installing VM tools into a guest OS is a huge indicator that malware

00:00:25.840 --> 00:00:28.690
uses to determine whether or not it's in a virtual machine.

00:00:29.340 --> 00:00:33.590
That makes sense. And more often than not, if there is a VM escape

00:00:33.590 --> 00:00:37.930
vulnerability, it's going to be in those tools. So you might not

00:00:37.930 --> 00:00:41.100
want to go in and install those tools. Now understanding that when

00:00:41.100 --> 00:00:44.030
you do install those tools, it does make it much easier to use the VM.

00:00:44.030 --> 00:00:45.920
It's easier to copy files in and out.

00:00:46.040 --> 00:00:47.850
It can copy data in and out.

00:00:48.060 --> 00:00:50.010
It works better with your host OS.

00:00:50.020 --> 00:00:54.423
You can use things like USB drives a little bit easier, and so on. Your

00:00:54.423 --> 00:00:57.950
display's nicer. Your display's nicer, and so on.

00:00:59.460 --> 00:01:02.870
But if your malware is looking for the VMware tools,

00:01:02.870 --> 00:01:06.200
for example, you may not want to have it in there. You might

00:01:06.200 --> 00:01:09.390
want to have a snapshot without the VM tools so that if you do

00:01:09.400 --> 00:01:13.080
run into a piece of malware that has anti‑VM capabilities and

00:01:13.080 --> 00:01:15.320
looks for the VM guest tools,

00:01:15.480 --> 00:01:18.670
then you can kind of jump back into a place where you don't have them

00:01:18.680 --> 00:01:21.050
installed, and so it kind of bypasses that check there.

00:01:21.410 --> 00:01:22.310
Yeah, absolutely.

00:01:22.590 --> 00:01:26.500
So if we're not able to, say we don't have VMware tools installed,

00:01:26.500 --> 00:01:28.510
it almost seems like maybe that's the way to go,

00:01:28.520 --> 00:01:28.950
right?

00:01:29.100 --> 00:01:29.350
Right.

00:01:29.360 --> 00:01:31.400
Especially if the escape's going to be through that.

00:01:31.400 --> 00:01:34.680
I didn't know that. That's a really interesting

00:01:34.680 --> 00:01:36.950
nugget, that that's a vector. Right.

00:01:37.610 --> 00:01:39.740
But now I can't copy files in and out.

00:01:40.000 --> 00:01:41.050
And as I do my analysis,

00:01:41.050 --> 00:01:44.060
I'm going to want to pull information off and maybe publish

00:01:44.060 --> 00:01:45.590
that, depending on what it is I'm doing.

00:01:45.590 --> 00:01:45.679
I may need to kind of copy/paste in and out. You could

00:01:45.679 --> 00:01:50.010
share a clipboard, which is super nice.

00:01:50.230 --> 00:01:51.250
What do you do instead?

00:01:51.340 --> 00:01:54.690
So copying files in and out seems to be the big pain point if

00:01:54.690 --> 00:01:56.960
you don't have the VMware tools installed.

00:01:56.970 --> 00:02:00.130
But there are a couple of ways that you can kind of get around that. The

00:02:00.140 --> 00:02:03.340
first way is you can kind of set up a separate system that's running

00:02:03.340 --> 00:02:07.330
like an SSH server or an FTP server or a web server that then you can

00:02:07.330 --> 00:02:10.740
then put your files onto, and then from the guest, access that and

00:02:10.740 --> 00:02:12.540
download the files. Honestly,

00:02:12.540 --> 00:02:16.340
one of the easiest ways that I found is in your guest OS, set up a

00:02:16.340 --> 00:02:19.350
temporary directory like C:colon/temp or something like that,

00:02:19.610 --> 00:02:23.560
and then use the Microsoft folder sharing utilities to share that

00:02:23.560 --> 00:02:27.720
folder out. And then from your host OS, and again,

00:02:27.720 --> 00:02:30.600
you would have to set it up so that your host OS can access

00:02:30.600 --> 00:02:32.710
your guest OS, but from your host OS,

00:02:32.720 --> 00:02:35.440
connect to that shared folder through the Microsoft

00:02:35.440 --> 00:02:38.990
utilities like Windows Explorer, and then copy files in and out that way.

00:02:39.410 --> 00:02:42.790
You don't want to do the opposite where you share a folder on

00:02:42.790 --> 00:02:47.750
your host OS because if the malware you're analyzing is like

00:02:47.760 --> 00:02:50.990
ransomware or it has some exploit where it tries to move

00:02:50.990 --> 00:02:54.310
laterally or something like that, you could open up your host OS to compromise.

00:02:54.810 --> 00:02:57.080
So share it on the guest OS, not the host OS.

00:02:57.430 --> 00:02:58.830
Yeah, and that's for a few reasons.

00:02:58.830 --> 00:03:01.195
So we're going through‑‑‑that's that checkbox that we looked at

00:03:01.195 --> 00:03:02.870
where the host is sharing the virtual adapter. Yes,

00:03:02.980 --> 00:03:03.380
yes.

00:03:03.490 --> 00:03:07.230
And you're going through the network for S and B traffic, which we know can

00:03:07.240 --> 00:03:09.840
have some exploits that could potentially be vulnerable.

00:03:09.840 --> 00:03:13.870
But also you can _____ and downgrade, and so if you're using your

00:03:13.880 --> 00:03:16.710
host OS credentials from your guest OS, you're now exposing those

00:03:17.380 --> 00:03:19.420
credentials, versus the other way around. You don't really care if

00:03:19.420 --> 00:03:21.080
your guest credentials are exposed.

00:03:21.080 --> 00:03:21.410
Right.

00:03:21.420 --> 00:03:26.660
And, again, like we've said multiple times, assume your host OS is

00:03:26.660 --> 00:03:30.440
going to compromised. So don't make it be a domain‑connected system.

00:03:30.440 --> 00:03:32.680
Make it be some system that if you need to,

00:03:32.680 --> 00:03:33.410
you can re‑image.

00:03:33.410 --> 00:03:35.350
Don't use the password you use everywhere else.

00:03:35.510 --> 00:03:36.270
Things like that.

00:03:36.360 --> 00:03:39.070
Don't use your domain admin to connect to the shared drive.

00:03:39.070 --> 00:03:40.820
Yeah, I would not recommend doing that.

00:03:40.830 --> 00:03:41.950
That's a good point.
