# Indicator Detection

**URL:** <https://discuss.elastic.co/t/indicator-detection/347862>\
**Category:** SIEM\
**Created:** [November 23, 2023, 1:48pm UTC](https://discuss.elastic.co/t/indicator-detection/347862 "2023-11-23T13:48:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phoenix1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phoenix1/32/116325_2.png) [@Phoenix1](https://discuss.elastic.co/u/Phoenix1)\
**Post date:** [November 23, 2023, 1:48pm UTC](https://discuss.elastic.co/t/indicator-detection/347862/1 "2023-11-23T13:48:51Z")

</div>

I want to use a CSV(Indicator file) lookup to detect the indicators available in the file to report an alert. please suggest.

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [November 24, 2023, 1:40pm UTC](https://discuss.elastic.co/t/indicator-detection/347862/2 "2023-11-24T13:40:09Z")

</div>

Hi Phoenix,

I would recomend using a combination of file upload and threat match detection type.

> Ensure your csv has a timestamp column or use a pipeline during fileupload to add a `@timestamp` field with the now value. This is required for the detection.

1. Open the integrations page and search for `csv`
2. Select the "upload a file" integration  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1adcbcec9adeced92e47d5f3854367dd8ef0d56f.png)
3. go through the steps and use a specific index as destination, e.g `indicators_from_csv`; Take not of the column/fieldname in which you indicator is stored (ip/hash/url)
4. Navigate to the siem rules and create a new one
5. Use the `indicator match` type and fill out the source, query etc as best applies. e.g:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f244e66e0fcc507fb199ab9cdb1bb0b80013096d.png)
6. Fill out your detection details and use a bigger lookback period if you want to search historicaly.
7. Save and enable you rule.

---

<div class="post-metadata">

**Author:** ![Phoenix1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phoenix1/32/116325_2.png) [@Phoenix1](https://discuss.elastic.co/u/Phoenix1)\
**Post date:** [November 28, 2023, 4:43pm UTC](https://discuss.elastic.co/t/indicator-detection/347862/3 "2023-11-28T16:43:56Z")

</div>

Thanks for your response,

1. how to integrate csv data into Index ?
2. how to parse the respective fields accroding to IOC detection rule ?

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [November 28, 2023, 4:49pm UTC](https://discuss.elastic.co/t/indicator-detection/347862/4 "2023-11-28T16:49:55Z")

</div>

Have you gone through the steps? They should guide you through getting this done.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 26, 2023, 4:50pm UTC](https://discuss.elastic.co/t/indicator-detection/347862/5 "2023-12-26T16:50:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
