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

Yara config for multi pathes is not parsing correctly in platform #274

Closed
syloktools opened this issue Jun 6, 2018 · 7 comments
Closed

Comments

@syloktools
Copy link
Contributor

EDIT THIS TITLE BEFORE POSTING. Use this template for bug reports. If you'd like to request a feature, please be as descriptive as possible and delete the template except the first section (Request Type)

Request Type

Bug

Work Environment

(replace with N/A if not applicable)

Question Answer
OS version (server) Ubuntu
Cortex Analyzer Name Yara
Cortex Analyzer Version 1.10.1
Cortex Version 2.0.4
Browser type & version If applicable

Rules path is not parsing correctly in latest version.

image

@3c7
Copy link
Contributor

3c7 commented Jun 6, 2018

This is due to a change in the Yara configuration items. It was not using the path item correctly, because it expected a list. Now cortex is pushing the available configuration in the list form. You just have to re-enter the path. (If you disable and re-enable the analyzer, you don't have to clear every list item)

Ref: #245

@syloktools
Copy link
Contributor Author

I tried to disable and re-enable. The config stated. Also it will not let me remove the items or add more in the global config or the individual one.

@3c7
Copy link
Contributor

3c7 commented Jun 6, 2018

That is quite strange. I had the same issue, but was able to just enter the correct path and could keep on using the analyzer. Need to think about that.

@syloktools
Copy link
Contributor Author

Where is the config path saved? ElasticSearch? Can I just manually delete that record?

@syloktools
Copy link
Contributor Author

I was able to do this to delete the config for the Yara analyzer and start over.

curl -X POST "localhost:9200/cortex_1/analyzerConfig/_delete_by_query" -H 'Content-Type: application/json' -d'
{
  "query": {
    "match": {
      "config" :"{\"rules\":\"/opt/Cortex-Analyzers/analyzers/Yara/rules/\"}"
    }
  }
}'

@syloktools
Copy link
Contributor Author

It was successful.

@3c7
Copy link
Contributor

3c7 commented Jun 7, 2018

Glad it worked and thanks for sharing your solution. I don't understand, why you weren't able to delete it in the UI.

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

No branches or pull requests

2 participants