cortex icon indicating copy to clipboard operation
cortex copied to clipboard

Input problem with Custom Analyzer

Open ManFromTheM00n opened this issue 3 years ago • 2 comments

Describe the bug I am trying to edit an existing cortex analyzer (Urlscan_io_Search_0_1_1) to add a new feature. I want to add to this existing analyzer an extra option for a regex based search through Urlscan's capability to search using URL keyword regex. The issue raises when I use a "\" character and cortex adds an extra "\" character.

To Reproduce Steps to reproduce the behavior:

  1. Create or edit an analyzer and use as datatype regexp in Service Interaction File.
  2. Use the analyzer and give as an input a regex with "\" character in. For example "http\:\/\/domain\.test"
  3. Then the cortex will change the regex into "http\\:\\/\\/domain\\.test" Expected behavior In this occasion we will expect to use "\" character as it is without cortex adding an extra "\" character".

The same problem rises when running OpenCTI_SearchObservables_2_0 analyzer with regexp option.

ManFromTheM00n avatar Feb 08 '23 11:02 ManFromTheM00n

I think you are looking for https://github.com/TheHive-Project/Cortex. (Just a guess!)

friedrichg avatar Feb 08 '23 13:02 friedrichg

I think you are looking for https://github.com/TheHive-Project/Cortex. (Just a guess!)

-___-. You are right. Ty

ManFromTheM00n avatar Feb 08 '23 14:02 ManFromTheM00n