-
Notifications
You must be signed in to change notification settings - Fork 384
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
Onyphe_Ports_1_0 return bad data in JSON object #169
Comments
Hey @l3m0ntr33, thanks for reporting the issue. Right now the analyzer base class extracts all artifacts from analyzer reports using a RegEx search over the raw response the analyzer provides. This is the reason why your request - At the moment, the artifacts-section is not evaluated by TheHive. While sorting out the request itself is not a big deal, I'm not sure how to deal with the domain part. Having a list of all tlds seems to be the only solution to that. Will think about it. |
Ah okay. Sorry, did not thought about that use case. I definitely will implement filtering out the input (8.8.8.8) and working something out how to get a correct list of allowed tlds. |
I agree with you. May be there could be two updates in cortexutils, one on the extractor and one on the base analyzer class. For the extractor as you said we need to improve regex rules and check that an observable had not already been add to the artifact object. For the base analyzer class in cortexutils maybe modify this function: I'm not sur if its the best option but its what i did in my analyzer to overwrite the base class function and it works. It permits me to define the artifacts object from my analyzer. |
…llow letters for tld part of domains
Hey @l3m0ntr33, can you try https://github.com/3c7/Cortex-Analyzers/tree/fixes/169? That's not perfect though, but it would first cover the needs until I'm able to correctly detect domains. |
Merged #184, automatic extraction needs improvement, though. |
Onyphe_Ports_1_0 tested on ip 8.8.8.8 with Cortex
Request Type
Bug
Work Environment
(replace with N/A if not applicable)
Description
It seems to have a bug when building the returned JSON from Onyphe.
JSON returned :
{
"artifacts": [
{
"data": "0.009", --> not a domain
"attributes": {
"dataType": "domain"
}
},
{
"data": "x.x.x.x", --> my public ip used to request Onyphe
"attributes": {
"dataType": "ip"
}
},
and multiple time the same object hereunder :
{
"data": "8.8.8.8",
"attributes": {
"dataType": "ip"
}
},
The result should be instead the list of ports.
However the "full" report JSON object is correct with list of ports and all details.
Steps to Reproduce
(keep this section only if the issue relates to a bug)
The text was updated successfully, but these errors were encountered: