Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean-up WindowsDefenderConfigurator after subsequent check refinements #1759

Merged

Conversation

HannesWell
Copy link
Member

@HannesWell HannesWell commented Mar 18, 2024

Follow-up for #1453. These clean-ups where hold back to reduce the risk for regressions late in the release cycle.
Some explanations also added in eclipse-platform/eclipse.platform.releng.aggregator#1832 could also be added to the preference page.

Copy link
Contributor

github-actions bot commented Mar 18, 2024

Test Results

   918 files  +    1     918 suites  +1   44m 36s ⏱️ + 6m 25s
 7 507 tests ±    0   7 355 ✅ +    1  151 💤 ±  0  1 ❌  - 1 
23 670 runs  +1 573  23 164 ✅ +1 455  505 💤 +119  1 ❌  - 1 

For more details on these failures, see this check.

Results for commit b7b8593. ± Comparison against base commit dd5068c.

♻️ This comment has been updated with latest results.

@jukzi
Copy link
Contributor

jukzi commented Mar 22, 2024

Hi @HannesWell i just got aware that there is a platform and virusscanner independent possibility to test if a virusscanner is active for a certain directory/filetype:

Path path = Path.of("c:/temp/any.class"); // the path should match the directory and the fileextention to test
Files.writeString(path, "X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*");
Files.readAllBytes(path); // throws FileSystemException if any virus scanner is active 

probably it would be nice to also inform users of other virusscanners, that they have a problem.

Also rename 'Windows Defender' to 'Microsoft Defender' in texts and
labels since it is now branded as such.
@HannesWell HannesWell marked this pull request as ready for review March 22, 2024 23:12
@HannesWell
Copy link
Member Author

@BeckerWdf FYI I have slightly updated the text also incorporating some of your doc-changes where I saw fit. I also renamed 'Windows Defender' to 'Microsoft Defender' in texts and labels since it is now branded as such.

Hi @HannesWell i just got aware that there is a platform and virusscanner independent possibility to test if a virusscanner is active for a certain directory/filetype:

Path path = Path.of("c:/temp/any.class"); // the path should match the directory and the fileextention to test
Files.writeString(path, "X5O!P%@AP[4\\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*");
Files.readAllBytes(path); // throws FileSystemException if any virus scanner is active 

probably it would be nice to also inform users of other virusscanners, that they have a problem.

That's interesting, thank you Jörg for that hint. There is even a Wikipedia-article about it.
Nevertheless I'm not sure how to generalize this. From my experience in the past I can tell, that not all antivirus programs slow down Eclipse (that significantly). I had Bitdefender installed before working on this topic and never noticed such problems.
So it is probably highly depended on the exact software being used.
Furthermore there are also other ways on Windows obtain more general status information:

  • (Get-MpComputerStatus).AntivirusEnabled
  • (Get-MpComputerStatus).AntispywareEnabled
  • (Get-MpComputerStatus).BehaviorMonitorEnabled

IIRC at least some also work for other AV software too.
But as said I don't think an exclusion is necessary in general and it would also be non trivial to implement for arbitrary AV products. Furthermore implementing a disabling logic for all would be practically impossible and just checking the directory can also be insufficient, because just like it is done for MS-Defender one can just exclude a processes by its full path and we can't use the suggested method to test that.

But if you think there is more to do, lets discuss that in a separate issue or PR. :)

@HannesWell HannesWell merged commit ebac853 into eclipse-platform:master Mar 23, 2024
14 of 16 checks passed
@HannesWell HannesWell deleted the defenderConfig-cleanUps branch March 23, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants