Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

have a question about base64_decode #175

Open
ASpade123 opened this issue Sep 30, 2022 · 3 comments
Open

have a question about base64_decode #175

ASpade123 opened this issue Sep 30, 2022 · 3 comments

Comments

@ASpade123
Copy link

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.

@duanehoward
Copy link
Collaborator

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.

@muskan399
Copy link

Hi, this is not fixed yet?

@duanehoward
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants