Cybersecurity Forum

This forum is for all security enthusiasts to discuss Fortinet's latest & evolving technologies and to connect & network with peers in the cybersecurity hemisphere. Share and learn on a broad range of topics like best practices, use cases, integrations and more. For support specific questions/resources, please visit the Support Forum or the Knowledge Base.

isuru
New Contributor II

FortiSIEM - Rule Exceptions not working

Hi,

I was trying to reduce false positives from several rules and wanted to have few exceptions / whitelisting in place. Following is a sample scenario where I want to whitelist several domains that is triggering to the "System Rule : Blacklist User Agent Match".

I cloned the rule and set few exception in the Exception Section as follows,

UploadedImages_KoHbL9R0TzCYUyS8otv9_temp.png

UploadedImages_TMMRDsNRmN7Hm49ffPga_temp.png

Moreover I have created few lists for easy management as follows,

UploadedImages_DPujpAZBTNKuePCvsJ2G_temp.png

This is one of those list I have created.
UploadedImages_TemgHezWT7WS8NCXZDTs_temp.png

I tried the rule testing feature also but it won't whitelist the domains I excluded.

Since then I tried excluding in rule condition section as follows,

UploadedImages_cP3O3RGTcednmxxulCbv_temp.png

This won't work either. Still triggering the alarms for the whitelisted domains as well.

Following is a sample log that I'm trying to whitelist

UploadedImages_dY5LUlHlS1apJilJsTGo_log.png

Any suggestions on this matter?

Regards,
Isuru
Cheers,
Isuru Malawige
Cheers,Isuru Malawige
1 Solution
HugoPinto

Hi Isuru,

We have the same issue, in our envoirment its a cluster 1 Super + 2 Workers.
It seams its a bug because redis don't pass the objects to the workers. 

In our case we resolve the issue by killing the Java

SSH to Super.
Killall -9 java
phstatus -a

Regards
Hugo Pinto
Claranet Portugal

View solution in original post

7 REPLIES 7
FSM_FTNT
Staff
Staff

Hi Isuru, Sorry for the delay.

Can you send me that test event? I want to test this out in the lab.

Looking at the rule, this should work.

What version FSM are you running? If on 5.3.0 I suggest trying on 5.3.1.

Thanks

Dan
isuru
New Contributor II

RAW logs
Cheers,
Isuru Malawige
Cheers,Isuru Malawige
HugoPinto

Hi,

O Have the same rule on rule exceptions, when we don't pass the Event Attribute on the Group By Condition.

Try to pass 1 Folder on rule exceptions

like this  A IN A OR 
A IN B OR


isuru
New Contributor II

Hi Hugo,

Thanks for the insight. I'll try it and let you know.

Regards,
Isuru
Cheers,
Isuru Malawige
Cheers,Isuru Malawige
isuru
New Contributor II

Hi Hugo,

I have setup the rule exceptions as you mentioned,

UploadedImages_Xl0TFi8OTOS8Jc50lZtA_temp.png
and added the "Destination Host name" attribute to the group by fields as follows,

UploadedImages_gTcB0iYUQlia6w9WJUIm_group.png


But I have the same issue with another rule "Outbound cleartext password usage from non guest network detected" where I want to exclude a Specific "Destination IP" from triggering and it is already in the group by fields and only referring to a single group as follows,

UploadedImages_Y11E9cZ8RBCnIP6v77kS_dest_group.png

UploadedImages_kURF1hJMTAu9PR5qG12W_comm.png

UploadedImages_QM3hiFMSretb6w68h3qM_vault.png

Still the rule will trigger for an IP in the range as follows,

UploadedImages_1IK6ydYNRM6hioXnZe2A_ct.png

Cheers,
Isuru
Cheers,
Isuru Malawige
Cheers,Isuru Malawige
HugoPinto

Hi Isuru,

We have the same issue, in our envoirment its a cluster 1 Super + 2 Workers.
It seams its a bug because redis don't pass the objects to the workers. 

In our case we resolve the issue by killing the Java

SSH to Super.
Killall -9 java
phstatus -a

Regards
Hugo Pinto
Claranet Portugal
RobertEvans

The bug where redis caching doesn't receive updated copies of objects from the super on workers should be fixed in 5.3.2. This only occurs if you restarted redis after java (aka appserver) has already been started. The proper ordering of start is redis first, and then app server.

As for exceptions not working, on upgrade certain natural_ids for objects in the postgres db contain special characters that aren't handled correctly by phQueryMaster/Worker.

Fortinet will have to guide you on removing %2d (for -) for certain object names in the natural id, or the char representation of whitespace for natural ids of certain objects.