How could EventLog security.evtx spamming happen?










0















Running an enterprise application on a Windows Server 2012 R2, the system suddenly became very slow: some huge load was hitting the disk. Deeper inspection has shown that svchost.exe (LocalServiceNetworkRestricted) is constantly writing around 25Mb per second to
C:WindowsSystem32winevtLogsSecurity.evtx file.

At the same time, Windows EventLog gets spammed by an enormous amount of messages like this



Simply stopping our application server, did stop spamming but we need that server running. We have rolled back all the latest code changes in the enterprise application, but it didn't solve the problem and didn't decrease the load on Security.evtx.



We have also checked that the infrastructure guys didn't reconfigure any settings on this server, especially auditing policy. (Last changes were 1 month ago).



Inspecting the process, we found that it constantly turning to registry HKLMSYSTEMServicesEventLog and enumerates through all the keys below, they're around 800



Then we figured out that it's the auditing policy is configured in a way to log each of those reads to EventLog. Disabling the auditing policy solved the problem.



But the question is: How this could happen if nobody changed the auditing policy configuration? Windows didn't restart, no updates were installed lately. The only thing was changed - the latest version of an enterprise application was deployed, with no changes in logging or registry access.



Is this normal that such checking iterates through all registry keys below HKLMSYSTEMServicesEventLog ?
(Have to mention, this piece of code was there for ages)










share|improve this question


























    0















    Running an enterprise application on a Windows Server 2012 R2, the system suddenly became very slow: some huge load was hitting the disk. Deeper inspection has shown that svchost.exe (LocalServiceNetworkRestricted) is constantly writing around 25Mb per second to
    C:WindowsSystem32winevtLogsSecurity.evtx file.

    At the same time, Windows EventLog gets spammed by an enormous amount of messages like this



    Simply stopping our application server, did stop spamming but we need that server running. We have rolled back all the latest code changes in the enterprise application, but it didn't solve the problem and didn't decrease the load on Security.evtx.



    We have also checked that the infrastructure guys didn't reconfigure any settings on this server, especially auditing policy. (Last changes were 1 month ago).



    Inspecting the process, we found that it constantly turning to registry HKLMSYSTEMServicesEventLog and enumerates through all the keys below, they're around 800



    Then we figured out that it's the auditing policy is configured in a way to log each of those reads to EventLog. Disabling the auditing policy solved the problem.



    But the question is: How this could happen if nobody changed the auditing policy configuration? Windows didn't restart, no updates were installed lately. The only thing was changed - the latest version of an enterprise application was deployed, with no changes in logging or registry access.



    Is this normal that such checking iterates through all registry keys below HKLMSYSTEMServicesEventLog ?
    (Have to mention, this piece of code was there for ages)










    share|improve this question
























      0












      0








      0








      Running an enterprise application on a Windows Server 2012 R2, the system suddenly became very slow: some huge load was hitting the disk. Deeper inspection has shown that svchost.exe (LocalServiceNetworkRestricted) is constantly writing around 25Mb per second to
      C:WindowsSystem32winevtLogsSecurity.evtx file.

      At the same time, Windows EventLog gets spammed by an enormous amount of messages like this



      Simply stopping our application server, did stop spamming but we need that server running. We have rolled back all the latest code changes in the enterprise application, but it didn't solve the problem and didn't decrease the load on Security.evtx.



      We have also checked that the infrastructure guys didn't reconfigure any settings on this server, especially auditing policy. (Last changes were 1 month ago).



      Inspecting the process, we found that it constantly turning to registry HKLMSYSTEMServicesEventLog and enumerates through all the keys below, they're around 800



      Then we figured out that it's the auditing policy is configured in a way to log each of those reads to EventLog. Disabling the auditing policy solved the problem.



      But the question is: How this could happen if nobody changed the auditing policy configuration? Windows didn't restart, no updates were installed lately. The only thing was changed - the latest version of an enterprise application was deployed, with no changes in logging or registry access.



      Is this normal that such checking iterates through all registry keys below HKLMSYSTEMServicesEventLog ?
      (Have to mention, this piece of code was there for ages)










      share|improve this question














      Running an enterprise application on a Windows Server 2012 R2, the system suddenly became very slow: some huge load was hitting the disk. Deeper inspection has shown that svchost.exe (LocalServiceNetworkRestricted) is constantly writing around 25Mb per second to
      C:WindowsSystem32winevtLogsSecurity.evtx file.

      At the same time, Windows EventLog gets spammed by an enormous amount of messages like this



      Simply stopping our application server, did stop spamming but we need that server running. We have rolled back all the latest code changes in the enterprise application, but it didn't solve the problem and didn't decrease the load on Security.evtx.



      We have also checked that the infrastructure guys didn't reconfigure any settings on this server, especially auditing policy. (Last changes were 1 month ago).



      Inspecting the process, we found that it constantly turning to registry HKLMSYSTEMServicesEventLog and enumerates through all the keys below, they're around 800



      Then we figured out that it's the auditing policy is configured in a way to log each of those reads to EventLog. Disabling the auditing policy solved the problem.



      But the question is: How this could happen if nobody changed the auditing policy configuration? Windows didn't restart, no updates were installed lately. The only thing was changed - the latest version of an enterprise application was deployed, with no changes in logging or registry access.



      Is this normal that such checking iterates through all registry keys below HKLMSYSTEMServicesEventLog ?
      (Have to mention, this piece of code was there for ages)







      c# .net registry event-log custom-eventlog






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 20:56









      GarudaGaruda

      14




      14






















          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53289375%2fhow-could-eventlog-security-evtx-spamming-happen%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53289375%2fhow-could-eventlog-security-evtx-spamming-happen%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3

          Museum of Modern and Contemporary Art of Trento and Rovereto