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

Fortinet Fortigate DNS asim parser issue #11653

Open
cgiamp opened this issue Jan 10, 2025 · 0 comments
Open

Fortinet Fortigate DNS asim parser issue #11653

cgiamp opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels

Comments

@cgiamp
Copy link

cgiamp commented Jan 10, 2025

Hi all,

There seems to be an issue on the following line:
https://github.com/Azure/Azure-Sentinel/blob/master/Parsers/ASimDns/Parsers/ASimDnsFortinetFortigate.yaml#L159

The DeviceProduct field is not always populated with the value 'Fortigate', sometimes the value contains the product's series name (ex. 'FortiGate-400F'):
Image
I suppose this is different per FortiOS version.

The following line should solve this issue:

| where DeviceVendor == "Fortinet" and DeviceProduct startswith_cs "FortiGate"

Also, the following line:
https://github.com/Azure/Azure-Sentinel/blob/master/Parsers/ASimDns/Parsers/ASimDnsFortinetFortigate.yaml#L160
filters correctly for the DNS ids, but it seems that on some versions another representation of the id is being parsed for this field:
Image
I suppose that the first part of this 10-digit representation is somehow related to these log id definitions https://docs.fortinet.com/document/fortigate/7.6.1/fortios-log-message-reference/656858/log-id-definitions#:~:text=pfcp%2Dall%3A%201-,dns%3A%2015,-dns%2Dquery%3A%200, but still these events are filtered out by ASIM.

Until now I've discovered this mapping between these representations:
1500054000 -> 54000
1501054200 -> 54200
1501054601 -> 54601
1501054800 -> 54800
1501054802 -> 54802
but I am not sure about the rest ids
54400
54401
54600
54803
54804
54805
54801

However I think the following line solves this problem:

| where DeviceEventClassID endswith_cs "54000" or 
            DeviceEventClassID endswith_cs "54200"or 
            DeviceEventClassID endswith_cs "54400" or 
            DeviceEventClassID endswith_cs "54401"or 
            DeviceEventClassID endswith_cs "54600" or 
            DeviceEventClassID endswith_cs "54601"or 
            DeviceEventClassID endswith_cs "54801" or 
            DeviceEventClassID endswith_cs "54802"or 
            DeviceEventClassID endswith_cs "54803" or 
            DeviceEventClassID endswith_cs "54804"or 
            DeviceEventClassID endswith_cs "54805"

Thanks in advance,
Christos Giampoulakis

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

No branches or pull requests

4 participants