What is causing my computer to BSOD at random times?

Anonymous
2024-12-06T20:22:37+00:00

I have a custom built gaming PC that has recently been blue screening randomly and it seems completely unprompted. It happens when I'm in the middle of a game, or when I'm working on a Word document with Spotify playing, or when I'm browsing google chrome with nothing else open. I don't know what could be causing it.

The error I get is always "KMODE_EXCEPTION_NOT_HANDLED"

I recently had an issue where my computer would BSOD with the same error every time I woke it up from sleep mode. I got a warranty replacement for my RAM and that fixed that issue. These BSODs seem to be caused by something else. This also means that I find it highly unlikely that there's something wrong with my RAM.

Here is a link to the dump files I've gathered so far. I will add more as my computer continues to crash. It happens once every few hours, it seems.

https://drive.google.com/drive/folders/1_QM2imGRMNnQtNsdU8W98a16JUMTyj0d?usp=sharing

Does anybody know what could be causing this issue? Do the dump files point to anything specifically that could be causing the crashes?

Thank you

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

84 answers

Sort by: Oldest
  1. Anonymous
    2024-12-11T15:19:32+00:00

    The CRITICAL_STRUCTURE_CORRUPTION bsods have a different cause.

    Something (that's a fact) successfully edited critical kernel structures with success in these, which eventually, after non-deterministic (usually long) time, was randomly detected by a patchguard patrol in both CRITICAL_STRUCTURE_CORRUPTION minidumps. (In contrast to modifying non-guarded structures, which would remain undetected, we would never learn about that.)

    Technically, this is a security breach. :-D CRITICAL_STRUCTURE_CORRUPTION is essentially a patchguard alarm, which technically is a security breach. I didn't realize this yet, I just thought of the limited practical use.

    @edit: it was type 1 code modification, not pdata. That's an interesting turn.

    With the type 1 modification patchguard alert, (which indicates pdata *or* code modification), I earlier thought I could safely exclude type code modification, since the cr0 manipulating shellcode failed, ...so I thought. I was wrong.

    The patchguard alert is about ndis!ndisOidPreAddWakeUpPattern, because the read-only rx data has been changed right in the middle, beginning in one dump at precisely

    ndis!ndisOidPreAddWakeUpPattern+0x6b (relative syntax)

    That means it had another and working method at disposal (und used it) to remove the read-only protection. You cannot write to read-only code unless you removed the read-protection successfully before.

    The BSODs with critical corruption are late-stage type 1 patchguard alert, code modification, reason unknown. (Ok, but I will really stop here with analysis, sorry.)

    No idea to get the thing in flagranti. I don't think I can further help for now, thanks to shellcode.

    @edit: don't get too much paranoia, even if it's technically a security breach, chances are that it's just very poorly written software resorting to ring0 code in extremely inproper way.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-12-11T19:20:31+00:00

    Hello vivs_lunchtime,

    Some things suggest that the malware is poor quality (e.g. not checking CR4.CET before trying to modify CR0.WP, not disabling PatchGuard), but other things suggest that it is of better quality (not detected by malware defence software (as far as we know), appears to be polymorphic (see below)).

    Here are code extracts from two crashes on the same system (with the first few differences highlighted):

    mov r12,cr0

    mov rax,r12

    btr rax,10h

    mov cr0,rax

    mov r9d,dword ptr [rdi+0AA0h]

    lea r8,[rdi+0AA8h]

    shl r9,4

    xor r10d,r10d

    add r9,r8

    mov rdx,r9

    cmp dword ptr [rdi+0AA4h],r10d

    jbe ffffd10b`64b1cace

    lea r13d,[r10+1]

    mov rcx,qword ptr [rdx]

    mov rax,qword ptr [rdx+8]

    mov qword ptr [rcx],rax

    mov rcx,cr4

    test rcx,20080h

    je ffffd10b`64b1cab0

    mov rax,rcx

    btc rax,7

    mov cr4,rax

    mov cr4,rcx

    jmp ffffd10b`64b1cab6

    mov r12,cr0

    mov rax,r12

    btr rax,10h

    mov cr0,rax

    mov eax,dword ptr [r9+0AA0h]

    lea r14,[r9+0AA8h]

    shl rax,4

    lea r10,[r9+0AA8h]

    add r14,rax

    mov r8d,r11d

    mov rdx,r14

    cmp dword ptr [r9+0AA4h],r11d

    jbe ffffcc8f`a6a8f08e

    mov r11d,1

    lea r13d,[r11+0Fh]

    mov rcx,qword ptr [rdx]

    mov rax,qword ptr [rdx+8]

    mov qword ptr [rcx],rax

    mov rcx,cr4

    test rcx,20080h

    je ffffcc8f`a6a8f06f

    mov rax,rcx

    btc rax,7

    mov cr4,rax

    mov cr4,rcx

    jmp ffffcc8f`a6a8f075

    If anyone has this problem then their system is compromised - a complete reinstall from reliable sources might be the only option.

    Gary

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-12-12T13:23:50+00:00

    Very strange indeed. And these both outputs are really from the same system? Wow, polymorphic code?

    The list of crimes is now:

    * nonpaged rwx heap kernelmode shellcode, caught in flagranti.

    * Trying to remove CR0 Write Protection (in said shellcode), caught in flagranti.

    * Code modification of MS core kernel driver, caught in flagranti by patchguard patrol.

    * polymorphic shellcode, caught in flagranti.

    How much more evil to look for until admitting it's plain evil?

    It looks like a kernelmode rootkit, it behaves like a kernelmode rootkits, then perhaps let's call it a rootkit. Motivation is unknown.

    With an automatic kernelmode dump, we could also locate it. (I guess that's the end of story.)

    I think there isn't much more we can scrape from the minidumps.
    And me would call this thing "evil" by now. ;-)

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-12-12T14:03:10+00:00

    Hello vivs_lunchtime,

    I agree that there is nothing more that we can do to help the people who have been impacted by this problem. All sorts of other malware may have entered the systems via the same door that let this kernel mode malware in. Running a full scan of whatever anti-malware software that is in use might be a useful thing to do.

    If a larger dump type was available, then I would be interested in looking at it but the results of that (if any) would not be of any practical use - the best that I could hope for would be some solid information to report to Microsoft or other anti-malware vendors (or perhaps identify the code as being a known malware type).

    Gary

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-12-12T17:24:05+00:00

    Hi Gary and vivs_lunchtime,

    I really appreciate the large effort you have both made in trying to understand my issue and resolve it. To give you an update:

    I have scanned my PC multiple times with Malwarebytes and have not found anything (which I believe is what you both expected). After reading through your exchanges I decided that it would just be simplest if I backed up my computers important files and then did a complete reset, formatting the drive and getting a clean install of windows.

    I did this yesterday, and by the end of the day I had situated myself with all of the typical apps and software that I used prior, excluding Gigabyte Control Center. Judging by what the other person with the same issue said, using poorly written motherboard software to download drivers and such could have been the cause.

    Even without Gigabyte Control Center installed, on a fresh install of windows, I just got another KMODE_EXCEPTION_NOT_HANDLED BSoD moments ago. The file for this crash is in the folder, although I'm not sure there's any more information you could extract from it.

    I'm wondering now what I could possibly attempt to resolve the issue. I don't really understand why completely wiping my SSD wouldn't get rid of the malware, and I'm not sure how else I could fix it.

    Any guidance either of you have would be greatly appreciated.

    Thank you,

    Alex J

    Was this answer helpful?

    0 comments No comments