Question 513 of 1,000
Advanced Threat ProtectionmediumMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is the signature using `F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "User-Agent: EXPLOIT_2024"; --service HTTP;)`. This syntax is correct because the `--pattern` directive matches the exact string within the HTTP header payload, while `--service HTTP` restricts inspection to HTTP traffic only, ensuring the signature does not trigger on non-HTTP TCP sessions. On the Fortinet NSE 7 Advanced Security NSE7 exam, this question tests your ability to distinguish between `--pattern` (for payload matching) and `--content` (for protocol-level matching), a common trap where candidates mistakenly use `--content` for header strings. The custom IPS signature syntax here must explicitly include the header field name "User-Agent:" as part of the pattern to anchor the match. Memory tip: think "Pattern for payload, service for protocol" — always pair `--pattern` with `--service HTTP` when targeting HTTP headers.

NSE7 Advanced Threat Protection Practice Question

This NSE7 practice question tests your understanding of advanced threat protection. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An administrator needs to create a custom IPS signature to detect a specific exploit that sends a unique string 'EXPLOIT_2024' in the HTTP User-Agent header. Which IPS signature syntax should the administrator use?

Question 1mediummultiple choice
Read the full NAT/PAT explanation →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "User-Agent: EXPLOIT_2024"; --service HTTP;)

Option D is correct because it uses the `--pattern` to match the exact string 'User-Agent: EXPLOIT_2024' within the HTTP header context, and `--service HTTP` ensures the signature only inspects HTTP traffic. This syntax precisely detects the exploit string in the User-Agent header as required.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "EXPLOIT_2024"; --context http-header;)

    Why it's wrong here

    --context is not a valid parameter; use --service and pattern with header name.

  • F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "User-Agent: EXPLOIT"; --service HTTP;)

    Why it's wrong here

    The pattern is missing '2024', so it would not match exactly.

  • F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "EXPLOIT_2024"; --service HTTP;)

    Why it's wrong here

    This pattern would match anywhere in the payload, not specifically in User-Agent.

  • F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "User-Agent: EXPLOIT_2024"; --service HTTP;)

    Why this is correct

    This pattern matches the exact User-Agent header content.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume `--context http-header` is a valid keyword (like in Snort), but FortiGate IPS uses `--service HTTP` to scope header inspection, and the pattern must include the full header field to match precisely.

Detailed technical explanation

How to think about this question

FortiGate IPS signatures use the F-SBID syntax where `--service HTTP` implicitly restricts inspection to HTTP protocol parsing, including header fields. The `--pattern` directive performs a content match; to target a specific header like User-Agent, the pattern must include the header name and colon, as HTTP headers are plaintext. In real-world scenarios, attackers often randomize User-Agent strings, so a precise pattern like 'User-Agent: EXPLOIT_2024' ensures accurate detection without relying on regex or complex context keywords.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related NSE7 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free NSE7 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this NSE7 question test?

Advanced Threat Protection — This question tests Advanced Threat Protection — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: F-SBID(--name "Custom_Exploit"; --protocol tcp; --pattern "User-Agent: EXPLOIT_2024"; --service HTTP;) — Option D is correct because it uses the `--pattern` to match the exact string 'User-Agent: EXPLOIT_2024' within the HTTP header context, and `--service HTTP` ensures the signature only inspects HTTP traffic. This syntax precisely detects the exploit string in the User-Agent header as required.

What should I do if I get this NSE7 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on NSE7

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A FortiGate administrator is troubleshooting why a custom IPS signature is not triggering on traffic matching the pattern. Which TWO checks should be performed?

hard
  • A.Check the signature's severity level in the IPS sensor
  • B.Ensure the FortiGate is in proxy-based inspection mode
  • C.Confirm the IPS sensor is applied to the correct firewall policy
  • D.Verify the signature uses correct protocol decoder
  • E.Verify that the custom signature is enabled in the IPS sensor

Why C: Custom IPS signatures must be enabled in the IPS sensor and applied to a firewall policy that processes the traffic.

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This NSE7 practice question is part of Courseiva's free Fortinet certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the NSE7 exam.