A real-life situation
Kestrel Valley Clinics, a fictional company, runs six small clinics and one head office. Its network has a FortiGate at the edge, a single flat office LAN, a file server, and a remote access VPN that accepts a username and password. One Monday the file server's shares are encrypted and a ransom note is on every desktop. The investigation finds that nothing exotic happened: a phishing email, a stolen password, a VPN without MFA, an unpatched server and a network where every device could reach every other device. Each step could have been stopped by a control the company either lacked or had switched off. This lesson explains the threats in that chain, the layers that answer them, and where a FortiGate fits.
What network security protects: the CIA triad
Security decisions become clearer when you ask which of three properties is at stake. Most incidents damage more than one.
| Property | Meaning | Example of a breach | Typical controls |
|---|---|---|---|
| Confidentiality | Only authorised people can read the data | Patient records copied to an attacker's server | Encryption, access control, MFA, segmentation |
| Integrity | Data and systems are not changed without authorisation | Malware alters payment details in invoices | Hashes and signatures, change control, IPS, file integrity monitoring |
| Availability | Systems and data are usable when needed | Ransomware encrypts the file server; a DDoS fills the Internet link | Backups, redundancy, DoS protection, high availability |
Ransomware is a good example of all three: it denies availability by encrypting files, and modern groups also copy the data first (a confidentiality breach) to threaten publication if the ransom isn't paid.
Assets, threats, vulnerabilities and risk
Four words carry most security conversations. Use them precisely:
- Asset: anything worth protecting. Data (patient records), systems (the file server), services (the VPN) and the network itself.
- Vulnerability: a weakness. An unpatched service, a default password, a firewall policy that allows
allservices, a user who trusts every email. - Threat: something that could exploit a vulnerability. A criminal group, a worm, a careless insider, a power cut.
- Risk: likelihood multiplied by impact. You can't remove every threat, so you reduce likelihood (patch, filter, authenticate) or impact (segment, back up, encrypt), and accept what remains on purpose.
A firewall reduces risk mainly by shrinking the attack surface, the set of services an attacker can reach, and by inspecting what it still allows. Every policy you add increases the surface a little, which is why each one needs a reason.
Common threats
The threats below cause most real incidents. None is new, and most incidents chain several of them together.
| Threat | What it is | What it usually damages |
|---|---|---|
| Malware | Malicious software: viruses, worms, trojans, spyware, loaders that fetch more malware | All three |
| Ransomware | Malware that encrypts data and demands payment, often after copying it out | Availability, confidentiality |
| Phishing | Fake emails, messages or web pages that trick a user into giving credentials or running a file | Confidentiality (first step of many attacks) |
| Credential attacks | Password guessing, password spraying (one common password against many accounts), stuffing leaked passwords | Confidentiality |
| Exploiting unpatched services | Using a known flaw in a VPN gateway, web server, mail server or file-sharing protocol | All three |
| DoS / DDoS | Flooding a service or link so legitimate users can't use it; distributed when many sources attack at once | Availability |
| Insider threats | Staff or contractors misusing legitimate access, on purpose or by mistake | Confidentiality, integrity |
| Lateral movement | Spreading from the first compromised device to servers and other hosts | Turns a small incident into a large one |
| Data exfiltration | Copying data out, often to cloud storage or over an encrypted channel | Confidentiality |
| DNS-based threats | Lookups of malicious or newly registered domains, DNS tunnelling to hide data in queries, DNS hijacking | Confidentiality, integrity |
| Command and control (C2) | Malware calling home for instructions, usually over HTTPS or DNS so it blends in | Enables every later stage |
Notice how many of these use ordinary protocols: phishing pages are HTTPS, C2 often looks like web or DNS traffic, exfiltration may be an upload to a real cloud service. A port-based firewall rule such as "allow TCP 443 to the Internet" can't tell them apart from normal work. That is the main reason firewalls grew into next-generation firewalls that inspect content, identify applications and check reputation.
How an attack unfolds
Security teams describe attacks as a chain of stages. Formal models such as the Lockheed Martin Cyber Kill Chain and MITRE ATT&CK name them in more detail; in plain terms most attacks look like this:
The useful insight is that the attacker must succeed at every stage, while the defender only needs to break one. A control that blocks C2 traffic, for example, can make an infected laptop harmless even after the antivirus missed the file.
Defence in depth
Defence in depth means several independent layers, chosen so that each catches what the one before it misses. No single product provides all of them.
| Layer | What it does | Examples |
|---|---|---|
| Perimeter | Controls traffic between the network and the Internet | Firewall policies, IPS, web and DNS filtering, DoS protection |
| Segmentation | Divides the inside into zones with policies between them | VLANs per role, a DMZ, server and user zones, internal firewall policies |
| Endpoint | Protects each device | Patching, endpoint protection (EPP/EDR), host firewall, disk encryption |
| Identity | Proves who is connecting and limits what they can do | MFA, least privilege, separate admin accounts, identity-based policies |
| Data | Protects the data itself | Encryption, offline or immutable backups, access controls |
| Logging and response | Detects what got through and supports the investigation | Central logs, alerts, a SIEM, an incident response plan |
Learn more: Network SegmentationFirewall Placement, Segmentation and Zero Trust
Mapping threats to FortiGate features
A FortiGate contributes to several layers: perimeter, segmentation (internal policies between zones), part of identity (user-based policies, MFA for VPN) and logging. The table maps each threat to a control and to the FortiGate feature that implements it. The last column is honest about the limits.
| Threat | Control | FortiGate feature | Limit |
|---|---|---|---|
| Malware downloads | Scan files in transit | Antivirus profile (FortiGuard signatures, optional sandboxing) | Needs deep SSL inspection for HTTPS; new malware may have no signature yet |
| Exploits against servers and clients | Detect and block attack patterns | IPS sensor | Virtual patching buys time; it doesn't replace the patch |
| Phishing and malicious sites | Block by category and reputation | Web filter (FortiGuard categories), DNS filter | Brand-new phishing domains may be unrated for a short time |
| C2 and DNS-based threats | Block lookups of known malicious domains; detect C2 traffic | DNS filter (botnet C&C domains), IPS botnet detection | Malware using encrypted DNS directly may bypass the DNS filter |
| Risky or unsanctioned applications | Identify apps regardless of port | Application control | Some apps are identified fully only with deep inspection |
| Lateral movement | Only allow what each zone needs | Internal segmentation policies between VLANs or zones, with IPS | Only traffic that crosses the FortiGate is controlled |
| Credential attacks on VPN | Strong authentication | MFA on VPN (for example FortiToken or a SAML identity provider), lockout settings | MFA fatigue and token theft are still possible |
| DoS / DDoS | Thresholds for floods and anomalies | DoS policy on the WAN interface | A volumetric DDoS larger than the link must be stopped upstream |
| Exploitation of the firewall itself | Reduce exposed services; patch | Restricted administrative access, trusted hosts, local-in policies, firmware updates | Only as good as the patching discipline |
| Data exfiltration | Limit and watch outbound traffic | Outbound policies by destination and service, application control, DLP profile | Encrypted uploads to allowed cloud services are hard to judge |
| Anything that gets through | Detect and investigate | Traffic and security logs sent to FortiAnalyzer or a SIEM | Logs only help if someone or something reviews them |
Two features carry most of that table for encrypted traffic: SSL inspection decides how much of HTTPS the other profiles can see, and logging decides whether anyone notices.
Learn more: Security Profiles and Inspection ModesSSL/TLS Inspection
Walk-through: one incident, layer by layer
Here is the Kestrel Valley incident, mapped to the course lab. The VPN terminates on FGT1's port1 (203.0.113.2), PC1 (10.0.1.10) is a receptionist's PC, and in this version of the story the file server sits in the same flat LAN.
- 1. Phishing: A fake login page captures a user's VPN password.
- 2. Initial access: The attacker logs in to the VPN with only a password.
- 3. Lateral movement: From the VPN, the attacker scans and reaches every LAN host.
- 4. C2 and exfiltration: Malware calls home over HTTPS and uploads stolen files.
| Stage | What happened | Layer that could have stopped it |
|---|---|---|
| 1. Phishing | An email linked to a fake VPN login page on a domain registered two days earlier | Web or DNS filter blocking newly registered and phishing domains; user awareness training |
| 2. Initial access | The attacker logged in to the VPN with the stolen password from an unusual country | MFA on the VPN user group; geography-based address objects to restrict VPN sources |
| 3. Discovery | The VPN policy allowed all to the whole LAN, so a port scan found the file server | A VPN policy allowing only the services VPN users need; IPS detecting scans |
| 4. Exploitation | A file-sharing flaw, patched by the vendor months earlier, gave the attacker control of the server | Patching; IPS signatures for the known exploit (virtual patching) |
| 5. Lateral movement | From the server, stolen admin credentials reached every PC | Segmentation: servers and users in separate zones with policies between them |
| 6. C2 and exfiltration | Malware beaconed to a known C2 domain and uploaded 40 GB to a file-sharing service overnight | DNS filter blocking C2 domains; application control limiting file-sharing apps; alerts on unusual outbound volume |
| 7. Impact | Files encrypted on Monday morning | Offline or immutable backups, so recovery doesn't depend on paying |
Logs existed on the FortiGate but were kept only on its local disk, were overwritten within days, and nobody was alerted. With logs sent to FortiAnalyzer and an alert for VPN logins from new countries, stage 2 would have been noticed on the Friday. The lesson for design: no stage needed an advanced attacker, and every stage had a cheap control.
What this looks like on a FortiGate
On a FortiGate, most perimeter controls attach to a firewall policy. A policy that allows traffic without profiles only checks addresses, ports and users. The same policy with profiles also inspects what passes. In the GUI you set them in the policy dialog under Security Profiles; in the CLI they are fields of the policy:
config firewall policy
edit 3
set name "LAN-to-Internet"
set utm-status enable
set ssl-ssh-profile "certificate-inspection"
set av-profile "default"
set webfilter-profile "default"
set dnsfilter-profile "default"
set ips-sensor "default"
set application-list "default"
set logtraffic all
next
endAttaches the built-in default profiles to the LAN-to-Internet policy and logs all its sessions. Tune real profiles before relying on them.
utm-status enableturns security profiles on for the policy.ssl-ssh-profilesets how much of encrypted traffic is visible.certificate-inspectionreads only the server name and certificate, which is enough for web and DNS category decisions but not for scanning file contents.av-profile,ips-sensor,webfilter-profile,dnsfilter-profileandapplication-listattach the antivirus, IPS, web filter, DNS filter and application control profiles.logtraffic alllogs every session the policy allows, not only security events. It costs log storage, so decide per policy.
⚠ Adding profiles changes what users experience
Enabling profiles on a busy policy can block things users rely on and adds inspection load. Start with monitor actions where a profile supports them, review the logs for a week, and change production policies in a maintenance window with a configuration backup taken first.
Verification
Signatures and ratings are only useful if they are current. Check the FortiGuard databases and when they last updated:
diagnose autoupdate versionsLists each FortiGuard database (antivirus, IPS, application control and others) with its version, last update and contract expiry.
FGT1 # diagnose autoupdate versions AV Engine --------- Version: 7.00xxx Contract Expiry Date: Mon Mar 15 2027 Last Updated using scheduled update on ... Last Update Attempt: Mon Oct 12 05:41:00 2026 Result: No Updates ... IPS Attack Engine --------- ... Application Definitions --------- ...
Then confirm that logs leave the box. show log fortianalyzer setting shows whether FortiAnalyzer logging is enabled and to which server; in the GUI, Log & Report shows recent security events, and an empty IPS or antivirus log on a busy policy is a reason to check that the profiles are really attached.
The concepts in this lesson apply to both releases. One remote access change matters: FortiOS 7.6.3 removed SSL VPN tunnel mode on every model, and Fortinet's replacement is IPsec VPN with FortiClient; FortiOS 7.4 still offers tunnel mode. Plan the move before upgrading, and apply MFA whichever VPN type you use.
What can go wrong
IPS and antivirus are enabled, yet the logs show nothing
Weeks of traffic, and not one security event. It looks like a quiet network; usually it is a blind one.
Show the fix
Check three things in order: the profiles are attached to the policies that carry the traffic (not only to an unused test policy), the FortiGuard databases are current (diagnose autoupdate versions), and HTTPS is visible enough for the profile. Antivirus can't scan a file inside TLS with certificate inspection only; that needs deep inspection, with the CA trusted by clients.
Malware still calls home although the DNS filter is on
The DNS filter logs show nothing for the infected host, but IPS or the endpoint reports C2 traffic.
Show the fix
The host is probably resolving names through a resolver the FortiGate doesn't see, such as DNS over HTTPS to a public provider. Allow DNS only to your internal resolvers, block outbound DNS (UDP and TCP 53) to other servers, and use application control to block DNS-over-HTTPS applications where policy allows. Then confirm the DNS filter is applied to the policy that carries the resolvers' outbound queries.
An internal infection spreads although the perimeter is tight
Every PC and server sits in one VLAN, so traffic between them doesn't pass through the FortiGate.
Show the fix
Segment: put users, servers and management in separate VLANs or interfaces on the FortiGate, then write policies that allow only the services each zone needs, with IPS on the policies towards servers. Traffic that stays inside one VLAN is switched, not routed, and no firewall policy applies to it.
Enterprise use and design guidance
- Start from the assets. List what matters most (patient data, payment systems, backups) and design layers around it, rather than starting from a product list.
- Treat remote access as Internet-facing. VPN gateways and their login pages are a common first target. Require MFA, limit sources where you can, and patch the firewall promptly.
- Segment by role and risk. Users, servers, guests, IoT and management each get their own zone. Internal policies are where lateral movement is stopped.
- Plan for encrypted traffic. Decide where deep inspection is used and where privacy or pinned applications require exemptions.
- Centralise logs. Send logs off the device to FortiAnalyzer or a SIEM, keep them long enough for an investigation (often months), and alert on high-value events.
Best practices
- Allow only the services each policy needs; avoid
allas a service on anything but tightly scoped policies. - Require MFA for remote access and for administrator logins.
- Keep FortiGuard subscriptions active and check that databases update.
- Patch Internet-facing systems first, including the FortiGate itself, and follow Fortinet's PSIRT advisories.
- Keep backups offline or immutable, and test restores.
- Review logs regularly, and alert on VPN logins, admin logins and blocked C2 attempts.
🛠 Practical exercise: map your own network
On paper, list five assets in a network you know (home lab, workplace or the course lab). For each, write one realistic threat, the vulnerability it would use, and the CIA property it would damage. Then pick the layer and the FortiGate feature from this lesson that would reduce the risk, and note one thing the FortiGate could not do about it. If you have a FortiGate VM, run diagnose autoupdate versions and record which databases are current and which need a licence.
Key takeaways
- Security protects confidentiality, integrity and availability; risk combines likelihood and impact.
- Real attacks chain simple steps: phishing, stolen credentials, unpatched services, lateral movement, C2.
- Defence in depth layers perimeter, segmentation, endpoint, identity, data and logging controls.
- A FortiGate maps threats to features: IPS, antivirus, web and DNS filtering, application control, segmentation policies, DoS policies, VPN MFA and logging.
- Each feature has limits, most of all with encrypted traffic and traffic that doesn't cross the firewall.
Check yourself
Ransomware encrypts a file server after copying its data to the attacker. Which CIA properties are affected?
An attacker on a compromised laptop scans and reaches servers in the same VLAN. Which FortiGate control helps most?
Stolen VPN passwords keep being used to log in. Which control breaks this stage of the attack?
IPS and antivirus are attached to a policy, but diagnose autoupdate versions shows the contract expired a year ago. What follows?
A 200 Gbps DDoS hits a site with a 1 Gbps Internet link. Can the FortiGate's DoS policy stop the outage?
Next: how firewalls themselves evolved in Stateless, stateful and next-generation firewalls, then where to place them in Firewall placement, segmentation and zero trust.