# Prebuilt security detection rules not showing any alters

**URL:** <https://discuss.elastic.co/t/prebuilt-security-detection-rules-not-showing-any-alters/320541>\
**Category:** Elastic Security\
**Created:** [December 6, 2022, 8:10am UTC](https://discuss.elastic.co/t/prebuilt-security-detection-rules-not-showing-any-alters/320541 "2022-12-06T08:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satendra1987](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@satendra1987](https://discuss.elastic.co/u/satendra1987)\
**Post date:** [December 6, 2022, 8:10am UTC](https://discuss.elastic.co/t/prebuilt-security-detection-rules-not-showing-any-alters/320541/1 "2022-12-06T08:10:59Z")

</div>

Hi,

i am trying to work on elasticsearch security. i have installed elastic agent using fleet. Now i have enabled prebuilt security detection rules and status shows as successful when rules are executed however i dont see any alerts generated with respect to these.  
i have enabled "hosts file modified" rule.

can anyone please help.

Thanks  
Satendra

---

<div class="post-metadata">

**Author:** ![wsouza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wsouza/32/92547_2.png) [@wsouza](https://discuss.elastic.co/u/wsouza)\
**Post date:** [December 30, 2022, 12:00am UTC](https://discuss.elastic.co/t/prebuilt-security-detection-rules-not-showing-any-alters/320541/2 "2022-12-30T00:00:52Z")

</div>

Hi @satendra1987 , I'm using Elastic Security 8.5 and I have a host, with Elastic Agent, collecting logs and metrics. I enabled the rule you mentioned, went to my linux host and edited the hosts file with vim:

# vim /etc/hosts

I waited a few minutes and the rule matched

 ![print1](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7b82f31cf1aa83eecf74bca9ebf72e4d7cba4963.png)

> [@satendra1987](#):
>
> hosts file modified

---

<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:** [January 27, 2023, 12:01am UTC](https://discuss.elastic.co/t/prebuilt-security-detection-rules-not-showing-any-alters/320541/3 "2023-01-27T00:01:31Z")

</div>

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