gonids icon indicating copy to clipboard operation
gonids copied to clipboard

have a question about base64_decode

Open ASpade123 opened this issue 3 years ago • 3 comments

hello, i have a question about base64_decode:
when i have a rule such as: alert http any any -> any any (msg:"this is test", flow:established, to_server; http.request_body; content:"test"; fast_pattern; base64_decode: bytes 1024, offset 0, relative; base64_data; ..........) it can't be parsed because offset must be positive, non-zero values only. But i think offset can be set to 0 after i look through suricata document and source code. Could you help with it? Thanks.

ASpade123 avatar Sep 30 '22 06:09 ASpade123

I suspect you're correct. The original versions of this tool were largely based on the Snort documentation, as Suricata docs were a bit sparse, and they claimed to be mostly compatible. I've got an open question in the Suricata Discord channel to confirm this. It might take a bit for me to fix this as I haven't been actively working on this and my dev environment is probably falling apart (note there are other known issues that are less trivial to solve that you might bump into).

I'll try to fix this after confirming with the Suricata dev team.

duanehoward avatar Oct 07 '22 02:10 duanehoward

Hi, this is not fixed yet?

muskan399 avatar Oct 16 '23 09:10 muskan399

Sorry, no. I've not had time to invest in this project in quite some time. Well tested pull requests are welcome, I'll try to review them in a timely fashion. One of the past PRs introduced some issues that have been non-trivial to fix and have made it difficult to be able to iterate on smaller issues.

duanehoward avatar Oct 16 '23 10:10 duanehoward