# App-layer-event and pcre questions

**URL:** <https://forum.suricata.io/t/app-layer-event-and-pcre-questions/2487>\
**Category:** Rules\
**Tags:** rules\
**Created:** [May 11, 2022, 6:24am UTC](https://forum.suricata.io/t/app-layer-event-and-pcre-questions/2487 "2022-05-11T06:24:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Black5ugar](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@Black5ugar](https://forum.suricata.io/u/Black5ugar)\
**Post date:** [May 11, 2022, 6:24am UTC](https://forum.suricata.io/t/app-layer-event-and-pcre-questions/2487/1 "2022-05-11T06:24:28Z")

</div>

hi,  
Recently, I received the following alerts.

```auto
ATTACK [PTsecurity] Buffer Overflow via Negative HTTP Chunk size number (FFMPEG CVE-2016-10190, WGET CVE-2017-13089, CVE-2017-13090)

```

the rule has two key words that I don’t understand

```auto
app-layer-event:http.invalid_response_chunk_len; 
pcre: "/^\s*-[0-9A-Fa-f]+/Qs";

```

1. What does the http.invalid\_response\_chunk\_len mean? And how can i get all the  
app-layer-event informations？
2. What is the last “s” mean in the pcre ?

I can’t find the instructions in the suricata ducoment.

---

<div class="post-metadata">

**Author:** ![Philippe\_Antoine](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/philippe_antoine/32/799_2.png) [@Philippe\_Antoine](https://forum.suricata.io/u/Philippe_Antoine)\
**Post date:** [May 13, 2022, 6:57am UTC](https://forum.suricata.io/t/app-layer-event-and-pcre-questions/2487/2 "2022-05-13T06:57:32Z")

</div>

For the last s in the pcre, I think it is to use `PCRE2_DOTALL` cf [pcre2\_compile specification](https://www.pcre.org/current/doc/html/pcre2_compile.html) and looking at the code detect-pcre.c

I guess this one is missing in the doc cf [6.7. Payload Keywords — Suricata 6.0.0 documentation](https://suricata.readthedocs.io/en/suricata-6.0.0/rules/payload-keywords.html#suricata-s-modifiers)

For the app-layer-event, it comes from libhtp log message `"Response chunk encoding: Invalid chunk length" which means that `htp\_parse\_chunked\_length` parsed a negative number  
There is no more information about the app-layer-event itself I think.
