Live data from Hacker News

Ask HN: How do I prevent programs actively detecting they're running in a VM?

news.ycombinator.com

1–9 of 9 posts

Re: Ask HN: How do I prevent programs actively detecting they're running in a VM?

#2
This article discusses various ways of detecting if a program is running on a VM:

https://stackoverflow.com/questions/498371/how-to-detect-if-...

Some of the methods used, like checking the manufacturer ID of the hardware, seem like they can't be easily circumvented.

Re: Ask HN: How do I prevent programs actively detecting they're running in a VM?

#3

This article discusses various ways of detecting if a program is running on a VM: https://stackoverflow.com/questions/498371/how-to-detect-if-... Some of the methods used, like checking the manufacturer ID of the hardware, seem like they can't be easily circumvented.

At the end of the day, you pretty much need a kernel mode agent that hooks a couple dozen syscalls, but it's largely doable if you have a team of engineers at your disposal. Malware detonation shops like FireEye do it.

Re: Ask HN: How do I prevent programs actively detecting they're running in a VM?

#4
post #3

This article discusses various ways of detecting if a program is running on a VM: https://stackoverflow.com/questions/498371/how-to-detect-if-... Some of the methods used, like checking the manufacturer ID of the hardware, seem like they can't be easily circumvented.

At the end of the day, you pretty much need a kernel mode agent that hooks a couple dozen syscalls, but it's largely doable if you have a team of engineers at your disposal. Malware detonation shops like FireEye do it.

Generally - yes, but there's also (cpuid[1] & 0x80000000) test.

https://en.wikipedia.org/wiki/CPUID#EAX.3D1:_Processor_Info_...

Re: Ask HN: How do I prevent programs actively detecting they're running in a VM?

#6

Physicalization [1] - use a separate machine instead of a VM -- [1] Physicalization - the opposite of virtualization https://en.wikipedia.org/wiki/Physicalization

Yeah, I was thinking about just partitioning my drive to use just for this shit that I'm required to run.

Re: Ask HN: How do I prevent programs actively detecting they're running in a VM?

#8

Physicalization [1] - use a separate machine instead of a VM -- [1] Physicalization - the opposite of virtualization https://en.wikipedia.org/wiki/Physicalization

Yeah, I was thinking about just partitioning my drive to use just for this shit that I'm required to run.

Dual boot is less secure than two separate machines. Back in the old days I was able to capture and pass data from one OS to another via non-volatile CMOS registers on diskless machines.

Re: Ask HN: How do I prevent programs actively detecting they're running in a VM?

#9
My company developed many lockdown tools but, in general, there is no way to develop an infallible method since at the end your application can be reverse engineered and run in a modified way. The techniques are oriented to inexperienced people in the security field.