Skip to main content
rain
Staff
Staff
Jul 11, 2025 1:03 PM UTC

Troubleshooting Tip: How to trigger Intrusion Prevention logs (traffic inbound) with a controlled test

  • Aug 28, 2026 6:30 AM UTC
  • 0 replies
  • 2197 views
  • Translate All

Description

This article describes how to use Intrusion Prevention logs (traffic inbound) with a controlled test to an internal service/server.

Scope

FortiGate, Intrusion Prevention Security Profile.

Solution

There are scenarios where is needed to see logs at the Intrusion Prevention level applied over a specific policy, but it is important to know that it will not trigger any logs the policy and security profile until a signature matches the Intrusion Prevention profile configured.

 

To test and see logs as incoming traffic or inbound (for example, as a bad actor attempting to do something malicious to a web server, SQL server, or public service from the internet to an internal resource), the next test could be run to simulate malicious activity and trigger the security profile at the Intrusion Prevention level.

 

To accomplish this, one way to trigger a log is to perform a port scan with Nmap, having over the inbound policy with an Intrusion Prevention profile with Nmap.Script.scanner or with the 'Low' severity filter on the profile.

Follow these steps:

 

  1. Create a custom Intrusion Prevention profile under Security Profile -> Intrusion Prevention.

 

KBB01.png

 

  1. Over the profile, create a new filter in the section 'IPS Signatures and Filters', selecting 'Create new'.

 

KBB02.png

 

Select the next options:

Type -> Filter.

Action -> Monitor.

Packet logging -> Enable.

Status -> Enable.

Filter -> SEV **.

 

After that, select 'OK'.

 

KBB03.png

 

Then create another one by selecting 'Create new' again:

 

Select the next options:

Type -> Signature.

Action -> Monitor.

Packet logging -> Enable.

Status -> Enable.

Rate-Based Settings -> Default.

Exempt Ips -> 0.

IPS Signature (Selected) -> Nmap.Script.scanner.

 

After that, select 'OK'.

 

KBB04.png

 

The profile has to be shown as follows:

 

KBB05.png

 

With this configuration, after sending a port scan, the signature 'Nmap.Script.scanner' will be triggered, and also a log will appear in Log & Report -> Security Events -> Intrusion Prevention.


If no IPS logs are generated, verify that the traffic matches the firewall policy with the configured IPS profile, that the test traffic reaches the FortiGate, and that it is not bypassed by another firewall policy or local-in policy.

 

Example of scan:

 

KBB06.png

 

Log register:

 

KBB07.png

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024