# \<Warning\> -- duplicate instance for http\_header

**URL:** <https://forum.suricata.io/t/warning-duplicate-instance-for-http-header/4618>\
**Category:** Help\
**Tags:** rules, suricata\
**Created:** [April 23, 2024, 12:28pm UTC](https://forum.suricata.io/t/warning-duplicate-instance-for-http-header/4618 "2024-04-23T12:28:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordnho](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/gordnho/32/2837_2.png) [@gordnho](https://forum.suricata.io/u/gordnho)\
**Post date:** [April 23, 2024, 12:28pm UTC](https://forum.suricata.io/t/warning-duplicate-instance-for-http-header/4618/1 "2024-04-23T12:28:12Z")

</div>

> Please include the following information with your help request:  
> suricata-update version 1.3.3  
> Suricata version 7.0.4 RELEASE  
> Debian 12

Im encountering this warning when loading rules from MISP but i couldn’t find it anywhere how to fix this

```auto
> <Warning> -- duplicate instance for http_header

```

here is some of the output

```auto
23/4/2024 -- 14:22:02 - <Warning> -- duplicate instance for http_header in 'alert http $HOME_NET any -> $EXTERNAL_NET any (msg: "MISP [] Outgoing HTTP Domain bordersoarmanusjuw.shop"; flow:to_server,established; http.header; content: "Host|3a|"; nocase; http.header; content:"bordersoarmanusjuw.shop"; fast_pattern; nocase; pcre: "/(^|[^A-Za-z0-9-])bordersoarmanusjuw\.shop[^A-Za-z0-9-\.]/Hi"; tag:session,600,seconds; classtype:trojan-activity; sid:356948977; rev:1; priority:1; reference:url,https://misp/events/view/220836;)'
23/4/2024 -- 14:22:02 - <Warning> -- duplicate instance for http_header in 'alert http $HOME_NET any -> $EXTERNAL_NET any (msg: "MISP [] Outgoing HTTP Domain letchitchat.info"; flow:to_server,established; http.header; content: "Host|3a|"; nocase; http.header; content:"letchitchat.info"; fast_pattern; nocase; pcre: "/(^|[^A-Za-z0-9-])letchitchat\.info[^A-Za-z0-9-\.]/Hi"; tag:session,600,seconds; classtype:trojan-activity; sid:356969137; rev:1; priority:1; reference:url,https://misp/events/view/220863;)'
23/4/2024 -- 14:22:02 - <Warning> -- duplicate instance for http_header in 'alert http $HOME_NET any -> $EXTERNAL_NET any (msg: "MISP [] Outgoing HTTP Domain bn.networkbn.click"; flow:to_server,established; http.header; content: "Host|3a|"; nocase; http.header; content:"bn.networkbn.click"; fast_pattern; nocase; pcre: "/(^|[^A-Za-z0-9-])bn\.networkbn\.click[^A-Za-z0-9-\.]/Hi"; tag:session,600,seconds; classtype:trojan-activity; sid:356969757; rev:1; priority:1; reference:url,https://misp/events/view/220868;)'
23/4/2024 -- 14:22:03 - <Warning> -- duplicate instance for http_header in 'alert http $HOME_NET any -> $EXTERNAL_NET any (msg: "MISP [kill-chain:Delivery,diamond-model:Infrastructure] Outgoing HTTP Domain simit-federacion-nacional-transito.com"; flow:to_server,established; http.header; content: "Host|3a|"; nocase; http.header; content:"simit-federacion-nacional-transito.com"; fast_pattern; nocase; pcre: "/(^|[^A-Za-z0-9-])simit\-federacion\-nacional\-transito\.com[^A-Za-z0-9-\.]/Hi"; tag:session,600,seconds; classtype:trojan-activity; sid:356975097; rev:1; priority:1; reference:url,https://misp.events/view/220903;)'

```

---

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [April 23, 2024, 12:46pm UTC](https://forum.suricata.io/t/warning-duplicate-instance-for-http-header/4618/2 "2024-04-23T12:46:36Z")

</div>

```auto
http.header; content: "Host|3a|"; nocase; http.header; content:"bordersoarmanusjuw.shop"; fast_pattern; nocase; pcre: "/(^|[^A-Za-z0-9-])bordersoarmanusjuw\.shop[^A-Za-z0-9-\.]/Hi";

```

should be written as

```auto
http.header; content: "Host|3a|"; nocase; content:"bordersoarmanusjuw.shop"; fast_pattern; nocase; pcre: "/(^|[^A-Za-z0-9-])bordersoarmanusjuw\.shop[^A-Za-z0-9-\.]/i";

```

---

<div class="post-metadata">

**Author:** ![gordnho](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/gordnho/32/2837_2.png) [@gordnho](https://forum.suricata.io/u/gordnho)\
**Post date:** [April 23, 2024, 1:07pm UTC](https://forum.suricata.io/t/warning-duplicate-instance-for-http-header/4618/3 "2024-04-23T13:07:17Z")

</div>

That was indeed the problem i will contact MISP support for this one i’m getting more different warnings now

---

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [April 23, 2024, 1:17pm UTC](https://forum.suricata.io/t/warning-duplicate-instance-for-http-header/4618/4 "2024-04-23T13:17:04Z")

</div>

As a bit of explanation, the `http.header` keyword is a so called “sticky buffer”, which means that you specify it once and all keywords that follow it will be inspecting the http header buffer.
