NT Authority\System + registry: access denied? (BFE, Firewall, Defende


Recommended Posts

hi

Someone brought me a laptop where "the internet did not function anymore". I attempted a system restore, still the problem existed.

I tried scanning with a few anti-malware programs (MBAM, Avast), nothing was found.

MSE can also not be installed.

I noticed a firewall issue, but it's much more than that. The Base Filtering Engine did not start, so several depending services couldn't be started, so no internet... I fixed the internet problem by changing some permissions to a reg key, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BSE or something like that. Internet access is back. I now have the firewall service running, but not the firewall. Also Windows Defender fails to start.

Thanks to ProcMon, I noticed that "NT Authority\System" returns "access denied" while accessing the registry in nearly all those instances. Yet when I check, "SYSTEM" is found in (most of) the permissions for the reg keys, and has full access in (nearly) all cases.

So before I manually change anything: are there any hints on what might be causing this? (I solved one or two by adding FULL CONTROL permissions for EVERYONE, which is definitely not the way to go. NT Authority\SYSTEM has also been added to the ADMINISTRATORS group, but no avail).

Thank you very much in advance!

( Windows 7 Home Premium )

Are you positive that there is not a virus or malware on the system? I had one on my system the MWB detected and removed, but it still came back, and it was masquerading as a system file (csrss.exe) but it was loading it from a hidden/system folder simply called Nvida. I would also recommend trying NTFS Access and see if perhaps the NTFS permissions are screwed up. One other check that can be done easily is: Open command prompt, and do

dir/ah

you also might want to include the /s switch and see if anything looks out of the ordinary.

No, not positive the malware has been removed (and yes, it's very likely it's malware, but my usual set of tools didn't pick up anything - and MSE even failed to (re)install, it's also gone).

As for the access, I really mean the rights in the registry. Those keys ( HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BSE / HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Winsock2/Parameters / HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Epoch2 or something like that) all returned "NT AUTHORITY\SYSTEM" "access denied", although the rights are in fact granted if I check everything.

One other thing to attempt: open an elevated command prompt, and type in

sfc/scannow

this process will take some time, but should be able to fix any corrupted system files.

Found this doing a google search:

I had some problems with my registery permissions a while ago, I couldn?t delete any thing any more, so I was looking for something that could reset my registery permissions to defaults. Here is the solution that worked for me

If you want to reset the entire registry permissions to defaults follow these steps

Note:- Before Doing any changes to registry plesae take a backup and start your changes

First you need to download SubInACL from here

SubInACL is a command-line tool that enables administrators to obtain security information about files, registry keys, and services, and transfer this information from user to user, from local or global group to group, and from domain to domain.

Create a file with the name reset.cmd under C:\Program Files\Windows Resource Kits\Tools folder

Now you need to Edit the reset.cmd file and add the following lines

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f

subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f

subinacl /subdirectories %SystemDrive% /grant=administrators=f

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f

subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f

subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f

subinacl /subdirectories %SystemDrive% /grant=system=f

Save and exit your file

Now you need to open command prompt run the following command

cdcd ?C:\Program Files\Windows Resource Kits\Tools?

after this press enter and enter the following command

reset.cmd

after entering this please press enter

after a few minutes by processing subinacl, the permission will be reset

Thanks. Still no fix though. Yesterday I managed to have an internet connection, working, just not the firewall, today I'm offline again.

Even the Diagnostics Policy Service fails (also access denied).

This must have been / be one serious malware infection!

Have you attempted to create a new user account? I would try and see if perhaps just that profile is corrupt. If not then it seems that your only remaining choice would be a reinstall!

"So far, never had to format any PC after malware"

Sad as it may be, this really is no longer a viable option with the sophistication and complexity of modern day infections.

Sometimes you just have to "nuke it from orbit" as the only sure way of being sure its clean.

If you can not be reasonably sure that you have cleaned it after a specific time frame, a nuke is most likely going to be the safest approach both in time spent and confidence that it is actually clean.

It is a good practice once you create a system and get your applications/tools installed and configured how you like it to take an image. And then update this image as you make major changes to the system, say after a specific number of patches, install of new major applications, etc. This way if the need arises you can get back to a clean usable install in just a few minutes.

Never use a laptop/desktop when you bought it off from someone. Who knows what it might have.

The safest way is to first the drivers for the computer and second do a clean install.

Never use a stranger's computer ever.

I didn't buy it, it's someone who brought it to me to have a look at the problem. I only buy new stuff ;)

I had already tried the creation of a new user account, but I had the same issues.

Last night, I tried a repair install (the fake upgrade method) of Windows 7. Lots of previously-unable-to-start services running again, although I did get a warning that the hard disk might be failing soon (but I think it's a consequence of removing SP1 so I could attempt the repair install). I'll be looking further into it tonight and keep you posted.

I'll say it again: You might as well format the HDD and reinstall the OS! Whatever is going on in the system is going to continue until you remove it, and based on what you are saying, you can not install any A/V or malware scanner, so the next most likely option is a reinstall :/

Something is really screwed up in that system :/ It might be worth while to ask your friend what he/she was doing prior to all hell breaking loose. At least in that case you might have a pretty good idea when/where the infection took place.

Screwed, beyond any malware infection I've seen so far (except for an XP one a couple of months ago).

No, they're the typical user who doesn't know why stuff happened... I bet adult sites, since apparently there was some warning in French about porn and having to pay up and stuff.

Current status: after the repair install, I got a bad HDD warning. On reboot, Windows hang on the logo. Win7 Start-up repair didn't help, I attached the drive to another laptop to make a back-up and try some chkdsk-stuff (which all was fine!). Ultimately, I was lucky and got it running again. Internet connection OK, just immensely slow for my taste, but that could be the PC itself, I obviously can't judge how slow it used to be let's say two weeks ago. Hope tonight it still works, since I need to re-apply lots of updates.

So how many days we into this now? If you would of just nuked it after say 2 hours dicking with it and not getting anywhere, the user would already have their machine back.

"I'm just too obsessed with the cause"

The cause is the USER ;) What they actually infected themselves with, it could be MULTIPLE things and the combo of them really messed things up. Does not always come down to 1 infection. Most machines I have cleaned in the past were infected with a plethora of things!!

I can understand your curiosity, I am inflected with the same trait!! But to be honest it comes down to the fact it was compromised in some fashion. The only real way to be sure that the infection is gone is nuke it.

New crap comes out hourly, its code changes at that same kind of rate - your going to see lots of different variants of the same infection. Most of the antivirus players don't always give lots of details of what a specific virus/malware/crapware does, etc.. So even if you had a name of the infection to work with - getting the details you seek might not be possible.

Your symptoms may be the cause of virus A doing X, then virus B doing Y, then C.. doing Z... etc..

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Get 1-year and $60 of Sam's Club value for just $15 with Auto-renew by Steven Parker Become a Sam's Club Member Now! Shop Premium-Quality Products and Enjoy Incredible Perks, and Savings. Today's highlighted deal comes via our Gift Cards section of the Neowin Deals store, where for only a limited time, you can save 75% off a Sam's Club 1 Year Membership with Auto-Renew. Sam’s Club is a membership warehouse club, a limited-item business model that offers members quality products at an exceptional value unmatched by traditional retail. From groceries and kitchen supplies to electronics and furniture, Sam's Club has great deals on the items you want! By redeeming and signing up as a member, you'll be paying just $20 for a 1 year Sam's Club membership (normally $50.) You'll receive a complimentary household card for more savings from already low-priced items. Sign up now and save money on all your food and decor. Find great deals on groceries, kitchen supplies, electronic, furniture & more Get discounts on hotels, rental car, live events, attractions, movies, & more Save up to 60% on hotel accommodations around the world Get a complimentary household card for more savings from already low-priced items Although it was published quite some time ago, Sam's Club members can enjoy discounts like this. Important Details For a physical membership card after online membership registration, present your phone number or email along with a valid ID at Sam’s Club Membership Services in any US Sam's Club location to have your membership card printed. This membership offer is only available to new Sam's Club members in the USA. It is not valid for membership renewals, for those with a current membership, or those who were Sam’s Club members less than 6 months prior to the current date. To check your renewal date, please check your billing statement or your online account, or chat with an associate. Promotion code is non-transferable Offer valid for new Sam’s Club members only; not valid for membership renewals, for those with a current membership, or those who were Sam’s Club members less than 6 months prior to the current date. Auto Renew: By accepting this offer, you authorize annual recurring charges to any card on file for your Sam's Club membership fee(s) plus any applicable taxes at then-current rate every year until you cancel. Current rates, which may change, are $50 for Club level and $110 for Plus level. Visit SamsClub.com or a club or call 1-888-746-7726 for full terms or to cancel auto-renewal. Valid at over 597 U.S. Sam’s Club locations. Find a location near you. Redemption deadline: redeem your code within 30 days of purchase Access options: desktop & mobile Membership MUST be activated within 30 days Membership expires 1 YEAR from the date the Sam's Club membership is activated Limit 1 per person, may buy 1 additional as gift This Sam's Club 1 Year Membership normally costs $60, but can now be yours for just $15, for a limited time, that's a saving of $45 (70%) off! For specifications, and terms, please click the link below. Get 1-year of Sam's Club with Auto-renew for just $15 (was $60) This deal is only available to U.S. residents. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • Microsoft, why can't I just turn off Copilot on my MS account (in order to stop OneDrive from wanting to summarize everything, ahem) in a way that doesn't break OneNote instead?
    • If we can't agree on a baseline of reality then there is no point in talking. Its a waste of time.
  • Recent Achievements

    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      589
    2. 2
      +Edouard
      190
    3. 3
      PsYcHoKiLLa
      80
    4. 4
      Michael Scrip
      77
    5. 5
      Steven P.
      73
  • Tell a friend

    Love Neowin? Tell a friend!