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

MISP list and HybridAnalysis question. #21

Open
DigiAngel opened this issue May 23, 2019 · 7 comments
Open

MISP list and HybridAnalysis question. #21

DigiAngel opened this issue May 23, 2019 · 7 comments

Comments

@DigiAngel
Copy link

From the new munin.ini I see:

[MISP]
MISP_URL = 
MISP_API_KEY = 

how do we create a list of MISP's? Is it:

MISP_URL = "link1, link2"
MISP_API_KEY = "key1, key2"

or

MISP_URL = link1
MISP_API_KEY = key1
MISP_URL = link2
MISP_API_KEY = key2

or something else? As for HA, I've not been able to get this to work...per munin.ini:

PAYLOAD_SEC_API_KEY = 
PAYLOAD_SEC_API_SECRET = 

however with 2.0 api there doesn't appear to be a secret anymore:
link

Thank you....I really love this app!

@Neo23x0
Copy link
Owner

Neo23x0 commented May 23, 2019

Yes, a list like

MISP_URLS = ['https://misppriv.circl.lu', 'https://misp.my.sys']

Same counts for the API Keys

I have to check the HA issue. I've created an API KEY a long time ago.

@DigiAngel
Copy link
Author

Brilliant thank you!

@DigiAngel
Copy link
Author

Hrmm...doing a debug gets me this even with just using one url/key:

Traceback (most recent call last):
  File "/usr/lib/python3.6/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib/python3.6/collections/__init__.py", line 883, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib/python3.6/collections/__init__.py", line 875, in __missing__
    raise KeyError(key)
KeyError: 'misp_urls'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "munin.py", line 1412, in <module>
    MISP_URLS = ast.literal_eval(config.get('MISP', 'MISP_URLS'))
  File "/usr/lib/python3.6/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'misp_urls' in section: 'MISP'

@Neo23x0
Copy link
Owner

Neo23x0 commented May 24, 2019

Are you sure?
Please check for typos in the key name.

It has to look like this:

[MISP]
# URL and API Key combinations
MISP_URLS = ['https://misppriv.circl.lu']
MISP_AUTH_KEYS = ['kxkxkxkkxkxkxkxkxk']

@DigiAngel
Copy link
Author

Aye...here's a screenshot :)
2019-05-24 07_31_19-zone-y

@Neo23x0
Copy link
Owner

Neo23x0 commented May 24, 2019

There's a "S" missing in the config.
It should be MISP_URLS in the new schema. It falls back to the old format, because it finds only MISP_URL and then treats it as string and not as list.

Also, I recommend using your own config file, like -i angel.ini because munin.ini will be overwritten with every pull from the repo.

@DigiAngel
Copy link
Author

MISP issues was fixed thanks to @Neo23x0 ...had to validate the MISP changes in the ini file.

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