- 01 May 2024 (2 messages)
-
Joined.
-
Joined.
- 05 May 2024 (1 messages)
-
Joined.
- 06 May 2024 (10 messages)
-
Joined.
-
I used the vm virtual machine (win11) for a day without shutting down. When I used it again, the virtual machine kept a black screen but no blue screen. Has anyone encountered this?
-
triple fault?
-
This happens to me when I have configured kernel debugging with windbg and I close it, the target continues running and goes into power saving mode, the screen goes black and a crash occurs at THAT moment where the debugger should take control but as the debugger It is not running, the target remain frozen and everything is black.
-
-
If it's a triple-fault, then a VM-exit (unconditionally) should happen, which in this case, HyperDbg shows a message and notifies about the occurrence of triple-fault. So, it's probably not triple fault.
-
Not sure if I correctly understand it. HyperDbg keeps running on the system for ~1 day but when screen turns to black (because of some power options settings), HyperDbg freezes? Am I get it correctly?
-
I assume he used it for a day without issue and now he can't get it to launch again.
-
The whole system is frozen and cannot be woken up
-
That's really hard to investigate, since there is no crash or no vm-exit. I ran out of idea but that might also be a problem with VMware Workstation. 🤔
- 07 May 2024 (47 messages)
-
I tested and found that this only occurs when using hvdbg
-
And I found that the system seemed to be running normally, it just couldn't be woken up.
-
Still don't have any idea. I think waking up has something to do with interrupts like the system should somehow interrupt the processor (Windows) to indicate some waking up events.
-
On the other hand, in HyperDbg by default (if you don't use commands like '!interrupt', won't intercept any external interrupts). So, I ran out of ideas as to why this happens.
-
@honorary_bot do you have any idea for this case? It seems that if the system goes on a power-saving halt state while running HyperDbg, it can't wake up again from sleep.
-
Sorry, I missed the thread. Lemme rewind a bit
-
So, I'm not quite sure I figured out the exact scenario. Were you guys using VMWare nested virtualization for HyperDbg or a real machine? Would it just hang after a power transition or without one?
-
I think he uses VMware Workstation as he previously mentioned a virtual machine.
-
hvdbg runs in a vmware virtual machine
-
On vmware nested case: well it's up to VMWare I'm afraid. Even though I think it's nested VMX implementation is one of the best ones, there are still quircks. Last time I worked on VMware support was 2016, so take my words with a grain of salt. The bottom line is there are still bugs and the implementation of nested VMX is a subject to change between versions. For example, some VMware versions would skip INIT signals, the other ones would not apply X in EPT. So many things might happen with VMWare, especially for newer gen CPUs (12+ gen) because of hybrid cores. If your host hangs as well - it's definitely a VMWare problem, because the way VMWare is implemented is unsafe towards the OS - it resets every system related structure (like IDT f.e.) between task changes. So If something fails in between - there's no way for OS to recover - it has no control of the hardware at that point.
-
The other topic is power management - depending on a state depth the hypervisor (yes, including hyperdbg) would need to implement power state recopvery mechanism. Nothing has to be doen for C6 for exmaple, because CPU is not being shut down in this state. But if the CPU shuts down as a part of power transition, you would need to intercept and implement S3 boot script procedure.
-
I personally never implemented one, because I'm lazy. So I just turn off all power saving features when using debugger
-
Hopefully it was useful
-
sof Do you see the same behavior on a physical machine (not VMware's nested virtualization)?
-
My algo would be
1. Disable power saving in the VMWare guest OS
2. If it hangs with host - forget it, it's a VMWare problem
3. If it hangs, but the host works - it's a hyperdbg problem -
No, physical machines are different. It's my primary case for use BTW
-
I'm not sure I completely understood the conditions for the hang described there
-
It's easier to work with physical machine, since VMWare nested is sort of emulation and you would have to troubeshooy VMware implemetation instead of x8664 arch
-
Sorry, I thought that was for me :D
-
Yeah, unfortunately we're not currently handling these power state transition in HyperDbg too :(
-
So you might have good luck by never turning off the display, right?😂
-
No, not the display
-
System standby should not be enabled
-
There should be no “Sleep” option
-
Display doesn’t matter
-
Change advanced power settings
-
I can't find the never option in the advanced options, but I can find it in the settings.
-
Can you show all of your advanced options?
-
These are not relevant
-
-
Sorry, it’s too blurry
-
Lemme find what you might need
-
“Put device to sleep after” - never. This is for win11 settings
-
Under power and battery
-
Sleep - sleep after - never
-
I didn't find the option you mentioned. Maybe the settings of the virtual machine and the real machine are different?
-
Should not be like that, but I can’t be 100% sure - every setup is different
-
Do you have a Sleep option in the start menu?
-
-
it locates this
-
screen and sleep
-
Mine looks different, interesting
-
Could you check this pls?
-
As if you were to shut down pc, same menu
-
-
I think it should be this, because when I set similar options in win10, the computer never sleep
-
@sina
but on github info : v0.8.3 Latest
HyperDbg v0.8.3 is released!
:) - 08 May 2024 (1 messages)
-
Damn!
I forgot to change that. 🤦♂️ - 10 May 2024 (53 messages)
-
Hello team! Has anyone encountered this situation before? I wrote this test script in a single line and it worked, but when there's a line break, I get the following message: unknown parameter 'script'.
-
This is a bug that doesn't exists in v0.8.1, probably caused by refactoring codes. I'll try to investigate it now.
-
Thank you for your response. I'll try the previous version. I'm not sure how I can be helpful, but if you need any kind of assistance, let me know.
-
I fixed the issue:
https://github.com/HyperDbg/HyperDbg/commit/48c8c6e6e69f1abea57da1d2034b9c34c176e48dfix the signedness of the command parser · HyperDbg/HyperDbg@48c8c6eState-of-the-art native debugging tool. Contribute to HyperDbg/HyperDbg development by creating an account on GitHub.
-
And it was kinda weird! 😐
It was just because of a overflow as I previously changed a signed int to and unsigned int in the refactoring process. -
This is a critical bug since it directly influences the command parsing. So, I think it would be appropriate to have a version change (v0.8.4).
-
Fixed!
Please check: https://github.com/HyperDbg/HyperDbg/releases/tag/v0.8.4Release v0.8.4 · HyperDbg/HyperDbgHyperDbg v0.8.4 is released! If you’re enjoying HyperDbg, don’t forget to give a star 🌟 on GitHub! Please visit Build & Install to configure the environment for running HyperDbg. Check out the ...
-
Also this issue is fixed. 😅
-
Joined.
-
-
-
-
-
Hi,
Usually if VMware crashes (or a CPU-based crash), then the debuggee reboots immediately. -
-
-
-
Joined.
-
Joined.
-
-
Joined.
-
Joined.
-
-
Joined.
-
Joined.
-
-
Hello I apologize if this question out of context just i want know how i can setup virtual box for exploitation and debug virtual box
Like here : https://qriousec.github.io/post/vbox-pwn2own-2023/
Can’t understand this
• Host: Windows 10
• Guest: Windows 10. VirtualBox will be built on this machine.
• Guest 2 (the guest inside the VirtualBox VM): LUbuntu 18.04.3
Is this mean setup virtual box and win 10 on it as guest then compile virtual box in win10 guest then use ubuntu as guest in win10 guest ? xD
And using hyberdbg or windbg for debugging compiled vbox and ubuntu connection ?Analysis of VirtualBox CVE-2023-21987 and CVE-2023-21991Introduction Hi, I am Trung (xikhud). Last month, I joined Qrious Secure team as a new member, and my first target was to find and reproduce the security bugs that @bienpnn used at the Pwn2Own Vancouver 2023 to escape the VirtualBox VM. Since VirtualBox is an open-source software, I can just download the source code from their homepage. The version of VirtualBox at the time of the Pwn2Own competition was 7.
-
-
Joined.
-
-
Joined.
-
-
Joined.
-
Joined.
-
-
-
Joined.
-
-
Joined.
-
I checked, and it's all good now. Thanks for fixing that. :)
-
Joined.
-
-
Joined.
-
-
-
Joined.
-
-
-
-
-
Joined.
-
Joined.
-
wop
- 11 May 2024 (18 messages)
-
Joined.
-
Welcome 🤗
-
Joined.
-
hi guys
-
Joined.
-
Joined.
-
Joined.
-
-
-
Joined.
-
Joined.
-
Joined.
-
-
-
Joined.
-
Joined.
-
Joined.
-
Joined.
- 12 May 2024 (18 messages)
-
Joined.
-
-
Joined.
-
Joined.
-
-
Hey Sina jan, is the GUI for hyperdbg still in development? I really like it!
-
Is there a gui under development? If you need any help i can do some contributions in my free times.
-
I had plans to implement one by myself but I never had much free time to do it. If you started it i can give some help.
-
-
Yeah take a look:
https://github.com/HyperDbg/guiGitHub - HyperDbg/gui: HyperDbg's Graphical User Interface (GUI)HyperDbg's Graphical User Interface (GUI). Contribute to HyperDbg/gui development by creating an account on GitHub.
-
Nope, I think the development is stopped
-
Honestly, I'm not sure if we made a mistake of using 'go' as the primary language for the GUI as I think it's so hard to integrate it with the current code base of HyperDbg.
-
If you guys could help on developing a new GUI written in C/C++, that would be also great.
-
And of course we need something that is able to run on any operating systems (Windows, Linux, BSD). Since we already start working on porting HyperDbg into Linux.
-
Qt is the best bet i guess
-
Sorry I can only help you with a native Windows GUI, that’s all I can and that’s what I had planned.
-
-
I know how to code in C++/Qt. If you guys think it's cool, I may need some help to integrate the code.
- 13 May 2024 (8 messages)
-
I know use qt too
-
-
That's great. We could create a separate Telegram group for discussing plans for creating a better GUI. If anyone is interested in contributing in this GUI project, please let me know to add you to the group.
-
That would be great.
-
Joined.
-
It is great time coming soon
-
Yes, it would really be better to create a separate channel. At the same time, I can provide most of the GUI on Imgui, we only need to write additional functions in some places and add a couple of parts.
-
- 14 May 2024 (7 messages)
-
Alright.
Please join @x863023 @Nitr0_G @revflash Amin Arash and anyone who is interested for discussing and contributing in GUI.
https://t.me/+6EqMcs_gvMM0ZWJkmixLLMs, Microsoft's bing, Google’s Bard, it's a foregone conclusion
-
-
-
-
-
This one is really a good news. HyperDbg has been developed mainly by using VMware Workstation Pro. So, it's well-tested on this platform and now VMware Workstation Pro is free. 👌
-
Nice bro 🎉🎊
- 15 May 2024 (1 messages)
-
- 17 May 2024 (19 messages)
-
Joined.
-
Why does this exception sometimes occur?
Access violation - code c0000005 (!!! second chance !!!)
nt!HvlpGetRegister64+0xd6:
fffff806`13885ece 48c1e220 shl rdx,20h
1: kd> k
# Child-SP RetAddr Call Site
00 ffff8301`f44d06c0 fffff806`1387e54d nt!HvlpGetRegister64+0xd6
01 ffff8301`f44d06f0 fffff806`1389eb6f nt!HvlLogGuestCrashInformation+0x39
02 ffff8301`f44d0730 fffff806`137bf147 nt!KeBugCheck2+0x7cf
03 ffff8301`f44d0e50 fffff806`138ab053 nt!KeBugCheckEx+0x107
04 ffff8301`f44d0e90 fffff806`137ca05c nt!KiMcheckFastForward+0x223
05 ffff8301`f44d0ed0 fffff806`1389b029 nt!KiNmiInterrupt+0x19c
06 ffff8301`f44d0d40 00000000`00000000 nt!KiProcessNMI+0x179 -
Looks like you’re trying to run with VBS enabled. I’m not sure if hyperdbg supports nested virtualization
-
No, if vbs is turned on, hvdbg cannot be started at all.
-
No, HyperDbg doesn't support nested virtualization for hyper-v (and of course VBS).
-
Is it happening randomly? Or any specific command (extension command) is running in the background?
-
How often it happens? Is there any way to deterministically reproduce it?
-
It's random and I can't reproduce it. I mainly used the !epthook command before
-
Also, I found that hvdbg is much more stable on a real machine than a virtual machine😂, but most people probably use virtual machines to analyze software.
-
The problem with virtual machines is that they are a custom implementation of Intel VT-x (nested virtualization).
-
Usually doesn't reflect the real implementation of Intel in real physical machines.
-
Okay, but using a real machine is much more expensive than a virtual machine. Will Microsoft's own Hyper-V have better compatibility? But it is not currently supported.
-
The problem with hyper-v is that basically Microsoft adds lots of stupid assumptions that needs handling different situations from hypervisor developers.
-
Even KVM developers have lots of problems when they were handling hyper-v. You can see it on their git and mailing logs.
-
Alright😂
-
Take a look at this tweet thread: https://twitter.com/Intel80x86/status/1523033338407235585Sinaei (@Intel80x86) on X
@33y0re Microsoft TLFS is overwhelming indeed, yet, there's more than meets the eye, and this barely stems from the sheer volume of the documentation one would have to go through, and the full extent of the struggle would only reveal itself once one is deep into the development. (1/5)
-
I just don't wanna waste more time on it. Already spent months and months without a single bit of progress.
-
Joined.
-
Does anyone here have experience using hvdbg to analyze patchguard?
- 18 May 2024 (13 messages)
-
Joined.
-
Joined.
-
@HughEverett I want to use hvdbg on my old Windows 10 machine, but it won't load because the current hvlog uses ExAllocatePool2, which this system doesn't support. When I change ExAllocatePool2 to ExAllocatePoolWithTag, it loads, but it causes the virtual machine to immediately restart.
-
I noticed that the [new API](https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/updating-deprecated-exallocatepool-calls) mainly zeros out the allocated buffer and returns null on failure. Besides these, there don't seem to be any other significant advantages. Is there any particular reason why it is necessary to use them? It's strange that changing it back causes the machine to immediately restart.Updating Deprecated ExAllocatePool Calls to ExAllocatePool2 and ExAllocatePool3 - Windows drivers
Learn about Updating deprecated ExAllocatePool calls to ExAllocatePool2 and ExAllocatePool3
-
ExAllocatePool3 is used for VBS secured allocations
-
The driver may ask to enforce page attributes on the allocation. Those attributes cannot be changed even by modifying PTEs in a guest partition
-
But lost compatibility😅
-
Well, this is a cost of progress
-
Which protections are currently the most difficult to crack?
-
Qt would be cool
-
You can always check which version of Windows is running
-
Is it just because we used ExAllocatePool2? Have you tried to replace it with the older version (ExAllocatePoolWithTag) and recompile?
-
As long as I remember we gathered all of the kernel pool allocations in only one platform-specific function, so you probably only needed to replace it on one single function.
- 19 May 2024 (3 messages)
-
Yes, I only replaced the api of the following file and it loaded, but it triggered a restart (in vmware)
-
-
The latest main branch I use
- 20 May 2024 (33 messages)
-
What is the processor of your testing system? I mean which generation of Intel processors?
-
And what version of Windows?
-
Windows 10 Kernel Version 17763 MP (2 procs) Free x64
Product: WinNt, suite: TerminalServer SingleUserTS
Edition build lab: 17763.1.amd64fre.rs5_release.180914-1434 -
i7 9750h (Test in vmware)
-
-
https://docs.hyperdbg.org/commands/extension-commands/track Can't the track command specify a process ID or a certain driver module?!track (track and map function calls and returns to the symbols) | HyperDbg Documentation
Description of the '!track' command in HyperDbg.
-
I'm skeptical that it might be a problem that we previously see with 9th gen Intel processors. 🤔
-
Could you inverstigate it to see whether the restart happens after executing VMLAUNCH instruction? You need to modify the source code and add a 'DbgBreakpoint();' before executing '__vmx_vmlaunch();' and check if it hits on WinDbg or not.
-
The '!track' command guarantees to maintain and stick to the current process in CPU without letting other cores and processes to run. So, basically having a PID doesn't make sense.
-
As a processor design specification, shouldn’t virtualization be very complete? In theory, there should not be such defects that are not supported across generations (because compatibility must be ensured)
-
Okay, I'll try it when I have time
-
Yep, that's right but this is a problem that was only reported on 9th gen processors. It's not necessarily a problem with the processor, maybe Windows behaves differently (use processor features differently) in 9th gen processors.
-
-
I modify it here, right?
-
There is no problem when executing vmlaunch for the first time and restarting for the second time.
-
Yes
-
What do you mean by first time and second time?
-
__vmx_vmlaunch() is used twice; the first call is normal, the second call causes the system to restart.
-
No, it's used only one time, the reason you see two calls is because you probably have two cores. Could you change your VM settings to only one core and test it again?
-
ok
-
reboot anyway
-
After running VMLAUNCH?
-
yes
-
This is again the same error reported here.
-
😂😂
-
Is there any good solution. I can help you debug now
-
The problem is I don't know what happens in this specific type of CPU (9750h).
-
Last time we try to investigate it thoroughly, but we couldn't find anything special. The same CPU error was also reported by @ricnar previously.
-
Something is really weird with this specific CPU. 🤔
-
I've tried hyperplatform before and it had no problems. Maybe compare the differences?
-
Try checking the code before this
https://github1s.com/tandasat/HyperPlatform/blob/master/HyperPlatform/vm.cpp#L831-L832 -
That could be a good way to start by in that case you need to check all of the VMCS fields set by each hypervisors and see whether it fixes the problem or not which could be really time consuming.
-
I don’t know if @tandasat is in the group, otherwise I can ask him for advice.
- 21 May 2024 (1 messages)
-
- 23 May 2024 (1 messages)
-
- 24 May 2024 (1 messages)
-
- 28 May 2024 (1 messages)
-
Joined.
- 29 May 2024 (7 messages)
-
Is this directory containing kernel drivers? For example, EPT, Intel PT, and so on..
-
-
Some Intel PT modules are implemented but then due to some technical problems we left it for the future support.
-
hprdbghv is the hypervisor core.
-
hprdbgkd is the kernel debugger source. hprdbgctrl is the main user interface.
-
Pls take a look at: https://github.com/HyperDbg/HyperDbg/blob/master/CONTRIBUTING.md#source-code-tree
For the source treeHyperDbg/CONTRIBUTING.md at master · HyperDbg/HyperDbgState-of-the-art native debugging tool. Contribute to HyperDbg/HyperDbg development by creating an account on GitHub.
-
Joined.