-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
🐛 Fix Defender broken Endpoint #11217 #11212
🐛 Fix Defender broken Endpoint #11217 #11212
Conversation
DryRun Security SummaryThe provided code changes focus on improving the unit tests for the Expand for full summarySummary: The provided code changes are focused on improving the unit tests for the The new test case ensures that the parser correctly processes the scan report, identifies the expected finding, and sets the correct severity and host value for the unsaved endpoint. This addition helps to improve the reliability and robustness of the Additionally, the changes in the Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
I'm not sure about putting DNS name to UserInfo. It is quite well defined, what should be there
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind adding one or more unit test cases that evaluate the behavior you're seeing in the wild @manuel-sommer ? I'm surprised space, (
, and )
characters are ever showing up in real "DNS names". I wonder if these are really NetBIOS names or something, and if we should perhaps distinguish them from real DNS entries somehow rather than forcing them to conform to DNS structure here by just replacing those characters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Could you merge this @mtesauro? |
Defender can be used (rolled out) on various devices: servers, mobile phones, IoT devices, clients. This results in broken endpoints, because DefectDojo parses "computerDNSName" as an endpoint. However, dropping this information is not beneficial as it is an important identifier especially for mobile phones, IoT devices and clients. The problem is that the computerDNSName of these devices do not always follow https://en.wikipedia.org/wiki/URL#Syntax.
Thus, this information needs to be cleaned up. An example is the following string:
Max Mustermann iPadAir 17zoll (2ndgeneration)