VirtualBox

Changeset 53005 in vbox


Ignore:
Timestamp:
Oct 9, 2014 1:26:07 AM (10 years ago)
Author:
vboxsync
Message:

SUP: Short list of microsoft files that when found not to be signed in any way are most likely modified rather actually seriously unsigned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp

    r52943 r53005  
    24862486        NtClose(hFileClose);
    24872487
     2488    /*
     2489     * DLLs that are likely candidates for local modifications.
     2490     */
     2491    if (rc == VERR_LDRVI_NOT_SIGNED)
     2492    {
     2493        PCRTUTF16 pwsz;
     2494        uint32_t cwcName = (uint32_t)RTUtf16Len(pwszName);
     2495        uint32_t cwcOther = g_System32NtPath.UniStr.Length / sizeof(WCHAR);
     2496        if (supHardViUtf16PathStartsWithEx(pwszName, cwcName, g_System32NtPath.UniStr.Buffer, cwcOther, true /*fCheckSlash*/))
     2497        {
     2498            pwsz = pwszName + cwcOther + 1;
     2499            if (   supHardViUtf16PathIsEqual(pwsz, "uxtheme.dll")
     2500                || supHardViUtf16PathIsEqual(pwsz, "user32.dll")
     2501                || supHardViUtf16PathIsEqual(pwsz, "gdi32.dll")
     2502                || supHardViUtf16PathIsEqual(pwsz, "kernel32.dll")
     2503                || supHardViUtf16PathIsEqual(pwsz, "KernelBase.dll")
     2504                || supHardViUtf16PathIsEqual(pwsz, "ntdll.dll")
     2505                || supHardViUtf16PathIsEqual(pwsz, "opengl32.dll")
     2506                )
     2507            {
     2508                if (RTErrInfoIsSet(pErrInfo))
     2509                    RTErrInfoAdd(pErrInfo, rc, "\n");
     2510                RTErrInfoAddF(pErrInfo, rc, "'%ls' is most likely modified.", pwszName);
     2511            }
     2512        }
     2513    }
     2514
    24882515    return rc;
    24892516}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette