How to append different IOC Indicator files in XSOAR

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to append different IOC Indicator files in XSOAR

L2 Linker

Uploading the IOC's File A and file B in playground-war room via CLI Command box attachment file upload option.

How to append the two IOC's File A and File B

chiranjeevi
6 accepted solutions

Accepted Solutions

L2 Linker

Hi,

 

!extractIndicators command can extract the indicator which is given files. 

View solution in original post

L5 Sessionator

Hi @cV V, since your trying to access data store inside a docx file you will need to first convert the file to plain text. 

 

You can use the !ParseWordDoc entryID= command first on the file in your screenshot. The output of this command will add a new file to context in .txt format.

 

You can then run the !extractIndicators entryID= command with this new file. The output of this command will create the ExtractedIndicators key in your context.

 

Please note that the ExtractedIndicators key will contain sub-keys for IP, URL, etc. Also, when you run this command multiple times, with 2 different files for example, the ExtractedIndicators with be converted into a list. To create a single list you can use the below command. 

!Set append=true value=${ExtractedIndicators.IP} key=ListofIPS 

View solution in original post

L2 Linker

Hi Jfernandes1

Thanks for the response & guide us on below process

 

1.Step

Uploading the IOC file in word document format below 2 files in xsoar CLI box attachment. (screenshots attached)

  • testing.ioc fiel 
  • File c

2. Extracted the Indicators with thier entry ID. (please find attached screenshot)

3. While appending the two files A and B step,  where we get those values for value= and key= not listed anywhere in !extractedindicators results (screenshot attached)

 

chiranjeevi

View solution in original post

L5 Sessionator

Hi @cV V, in your example screenshot I see your using the ExtractIndicatorsFromWordFile automation, unfortunately this automation does not return any data to the context. The objective of the automation is to print the indicators from the docx file in the warroom, our auto-extraction feature will then process all those indicators. You can force the data to be pushed to the context by adding the extend-context option, example below. 

 

!ExtractIndicatorsFromWordFile entryID=${File.[0].EntryID} extend-context=file1data1=

Note: Do not add anything after the equal (=) symbol at the end.  

 

I would still suggest my earlier option of converting the files first since it provides more control. 

View solution in original post

L2 Linker

Hi all,

Appended two files eg: File A and File B by below command for CSV file formats.

 

Indicator values = ip  (ip's column in file A and file B)

tags =iocfileA,iocfileB (tags are added while uploading IOC files) 

 

!AppendindicatorFieldWrapper indicators_values="ip" tags="iocfileA,iocfileB"

 

Regards

kudos

 

chiranjeevi

View solution in original post

L2 Linker

Hi Team,

Thanks for the response !

 

Solution 

To Append two IOC indicator file A and B

 

Steps:

1.Upload the IOC file in "A" and " B" while uploading add the tags "fileA" and "fileB"

2.Command for Append

!AppendindicatorFieldWrapper indicators_values="ip" tags="fileA,fileB"

 

3.View the appended IOC list in full table in a new tab and or download / export in CSV

 

Regards,

Chiranjeevi

chiranjeevi

View solution in original post

6 REPLIES 6

L2 Linker

Hi,

 

!extractIndicators command can extract the indicator which is given files. 

L5 Sessionator

Hi @cV V, since your trying to access data store inside a docx file you will need to first convert the file to plain text. 

 

You can use the !ParseWordDoc entryID= command first on the file in your screenshot. The output of this command will add a new file to context in .txt format.

 

You can then run the !extractIndicators entryID= command with this new file. The output of this command will create the ExtractedIndicators key in your context.

 

Please note that the ExtractedIndicators key will contain sub-keys for IP, URL, etc. Also, when you run this command multiple times, with 2 different files for example, the ExtractedIndicators with be converted into a list. To create a single list you can use the below command. 

!Set append=true value=${ExtractedIndicators.IP} key=ListofIPS 

L2 Linker

Hi Jfernandes1

Thanks for the response & guide us on below process

 

1.Step

Uploading the IOC file in word document format below 2 files in xsoar CLI box attachment. (screenshots attached)

  • testing.ioc fiel 
  • File c

2. Extracted the Indicators with thier entry ID. (please find attached screenshot)

3. While appending the two files A and B step,  where we get those values for value= and key= not listed anywhere in !extractedindicators results (screenshot attached)

 

chiranjeevi

L5 Sessionator

Hi @cV V, in your example screenshot I see your using the ExtractIndicatorsFromWordFile automation, unfortunately this automation does not return any data to the context. The objective of the automation is to print the indicators from the docx file in the warroom, our auto-extraction feature will then process all those indicators. You can force the data to be pushed to the context by adding the extend-context option, example below. 

 

!ExtractIndicatorsFromWordFile entryID=${File.[0].EntryID} extend-context=file1data1=

Note: Do not add anything after the equal (=) symbol at the end.  

 

I would still suggest my earlier option of converting the files first since it provides more control. 

L2 Linker

Hi all,

Appended two files eg: File A and File B by below command for CSV file formats.

 

Indicator values = ip  (ip's column in file A and file B)

tags =iocfileA,iocfileB (tags are added while uploading IOC files) 

 

!AppendindicatorFieldWrapper indicators_values="ip" tags="iocfileA,iocfileB"

 

Regards

kudos

 

chiranjeevi

L2 Linker

Hi Team,

Thanks for the response !

 

Solution 

To Append two IOC indicator file A and B

 

Steps:

1.Upload the IOC file in "A" and " B" while uploading add the tags "fileA" and "fileB"

2.Command for Append

!AppendindicatorFieldWrapper indicators_values="ip" tags="fileA,fileB"

 

3.View the appended IOC list in full table in a new tab and or download / export in CSV

 

Regards,

Chiranjeevi

chiranjeevi
  • 6 accepted solutions
  • 5000 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!