Skip to content
RED SAGSkills

Network Security interview questions and answers

Network security questions cover how traffic is protected, filtered and monitored.

Below are 60 Network Security questions with the correct answer and a short explanation, grouped from fresher to experienced level. Try each one before you open the answer.

What Network Security interviews usually check

  • ✓Firewalls and segmentation
  • ✓TLS and VPNs
  • ✓Common attacks and how to stop them
  • ✓IDS and IPS
  • ✓Reading network logs

Network Security interview questions for freshers easy

1. SSH open to 0.0.0.0/0

A security group allows inbound TCP 22 from 0.0.0.0/0 on a production VM. Why is this flagged as high risk?

  1. A.It blocks the VM from reaching the internet for updates
  2. B.It makes the VM's disk readable without a password
  3. C.Anyone on the internet can attempt to log in over SSH
  4. D.It disables encryption for traffic sent to the VM
Show answer

Answer: C. Anyone on the internet can attempt to log in over SSH

0.0.0.0/0 means every IPv4 address, so bots will constantly try passwords and exploits against the SSH port. Restrict it to known ranges, or better, close it and use Session Manager, Azure Bastion or IAP TCP forwarding. Security groups control network reachability, not disk or encryption settings.

2. Where to place a database

Where should a production database usually live in a VPC?

  1. A.In a private subnet with no route from the internet
  2. B.In a public subnet with a public IP for easy access
  3. C.In the default VPC so every team can reach it
  4. D.In a subnet whose route table points to the internet gateway
Show answer

Answer: A. In a private subnet with no route from the internet

A private subnet has no route to an internet gateway, so nothing on the internet can connect directly. Applications reach the database from inside the VPC, and security groups narrow it further to only the app tier. Admins connect through a bastion, VPN or managed access tool.

3. The hidden last rule of a firewall

A firewall policy has five allow rules. A packet matches none of them. On most enterprise firewalls, what happens?

  1. A.It is allowed, since nothing blocked it
  2. B.It is sent to the IDS for a decision
  3. C.It is dropped by the implicit deny rule
  4. D.It is queued until an admin approves it
Show answer

Answer: C. It is dropped by the implicit deny rule

Firewalls end their rule list with an implicit "deny all", so anything not explicitly allowed is blocked. This default-deny approach is safer than trying to list everything bad. Many teams add an explicit deny-and-log rule at the end so drops are visible.

4. RDP open to the internet

An external scan finds TCP 3389 open on a Windows server in your Dubai office. Why is this a high-risk finding?

  1. A.RDP traffic is always unencrypted
  2. B.It slows down the server's web pages
  3. C.It lets attackers read emails directly
  4. D.Exposed RDP is a top ransomware entry route
Show answer

Answer: D. Exposed RDP is a top ransomware entry route

Internet-exposed RDP is attacked all day with password guessing and exploits, and it is one of the most common initial access routes for ransomware. Put RDP behind a VPN or zero-trust gateway with MFA, or use a bastion service, and close the port.

5. Why use a DMZ

Why do companies place public web servers in a DMZ rather than on the internal network?

  1. A.A hacked web server cannot easily reach the LAN
  2. B.Servers placed in a DMZ never need patching
  3. C.A DMZ makes the public websites load faster
  4. D.A DMZ hides the server from the internet fully
Show answer

Answer: A. A hacked web server cannot easily reach the LAN

A DMZ is a separate network zone between the internet and the internal LAN, with firewall rules on both sides. Public-facing servers are the most likely to be compromised, so the DMZ limits what an attacker can reach next. The servers still need patching and monitoring.

6. Order of the TCP handshake

What is the correct order of packets when a TCP connection is set up?

  1. A.ACK, SYN, SYN-ACK
  2. B.SYN, ACK, FIN
  3. C.SYN, SYN-ACK, ACK
  4. D.SYN-ACK, SYN, ACK
Show answer

Answer: C. SYN, SYN-ACK, ACK

The client sends SYN, the server answers SYN-ACK, and the client confirms with ACK. Knowing this helps read scans and floods: many SYNs without a final ACK can mean a SYN scan or SYN flood.

7. What runs on port 445

Your firewall team proposes blocking TCP 445 at the internet edge. Which protocol uses this port?

  1. A.HTTPS
  2. B.DNS
  3. C.LDAP
  4. D.SMB
Show answer

Answer: D. SMB

TCP 445 is SMB, used for Windows file sharing. SMB should never be open to the internet; worms such as WannaCry spread through it. Blocking 445 inbound and outbound at the edge is a standard control.

8. What a site-to-site VPN does

Your Mumbai and Dubai offices are joined by a site-to-site IPsec VPN. What does it provide?

  1. A.An encrypted tunnel joining the two networks
  2. B.Faster internet browsing for staff at both sites
  3. C.Antivirus scanning of all files sent between sites
  4. D.A backup copy of each office's servers and data
Show answer

Answer: A. An encrypted tunnel joining the two networks

A site-to-site VPN connects two networks through an encrypted tunnel over the public internet, so traffic between offices cannot be read or changed in transit. It does not scan for malware, so you still need firewall rules on what crosses the tunnel.

9. The protocol behind ping

Which protocol does the ping command use?

  1. A.UDP
  2. B.ICMP
  3. C.IGMP
  4. D.TCP
Show answer

Answer: B. ICMP

ping sends ICMP Echo Request messages and waits for Echo Reply. ICMP has no ports. Many networks limit ICMP from the internet, but blocking all ICMP breaks useful functions, such as path MTU discovery.

10. What a honeypot is for

You place a fake file server, with no real users, on the internal network. What is this honeypot meant to do?

  1. A.Store real backups out of attackers' sight
  2. B.Speed up file access for users
  3. C.Replace the main firewall
  4. D.Draw in attackers so any contact raises an alert
Show answer

Answer: D. Draw in attackers so any contact raises an alert

No legitimate user should touch a honeypot, so any connection to it is suspicious and makes a high-fidelity alert. It can also reveal attacker tools and methods. It must be isolated so it cannot be used as a stepping stone.

11. Filtering one host in Wireshark

Which Wireshark display filter shows all packets to or from 10.0.0.5?

  1. A.ip.src == 10.0.0.5
  2. B.host 10.0.0.5
  3. C.ip.dst == 10.0.0.5
  4. D.ip.addr == 10.0.0.5
Show answer

Answer: D. ip.addr == 10.0.0.5

ip.addr matches either the source or destination address. ip.src and ip.dst match only one direction. host 10.0.0.5 is capture filter (BPF) syntax, used by tcpdump and Wireshark capture filters, not by display filters.

12. What NetFlow records

What does a NetFlow or IPFIX record contain?

  1. A.The full content of every packet
  2. B.Who talked to whom, ports, protocol, bytes and time
  3. C.The usernames of everyone on the network
  4. D.Only the alerts raised by the IDS
Show answer

Answer: B. Who talked to whom, ports, protocol, bytes and time

Flow records summarise conversations: source and destination IP, ports, protocol, packet and byte counts, and start and end times. They hold no payload, so they are cheap to keep for months and great for spotting scans, beacons and big transfers.

13. The first TLS message

Which TLS message does the client send first to start a handshake?

  1. A.Server Hello
  2. B.Finished
  3. C.Client Hello
  4. D.Certificate
Show answer

Answer: C. Client Hello

The Client Hello lists supported TLS versions and cipher suites, and includes extensions such as SNI with the server name. Fingerprints such as JA3 and JA4 are built from it. The server replies with Server Hello.

14. One source, many ports

Firewall logs show one external IP sending single SYN packets to ports 1 to 1,024 on one server within a minute. What is this?

  1. A.A normal web browsing session
  2. B.A port scan of that server
  3. C.A DNS zone transfer
  4. D.A software update download
Show answer

Answer: B. A port scan of that server

Probing many ports on one host in a short time is a vertical port scan, used to find running services. Probing one port across many hosts is a horizontal scan. Internet scans are constant, so focus on internal scans, which suggest a compromised host.

15. Finding the top talkers

In a large pcap, you want to see which pairs of hosts exchanged the most bytes. Which Wireshark view gives this quickly?

  1. A.Analyze, then Expert Information
  2. B.Edit, then Find Packet
  3. C.Statistics, then Conversations
  4. D.Go, then Go to Packet
Show answer

Answer: C. Statistics, then Conversations

Statistics → Conversations lists host pairs with packets, bytes and duration, sortable by size. Big uploads to one outside IP stand out at once. Statistics → Endpoints gives the same per host.

16. Return traffic in a security group

An AWS security group allows inbound TCP 443 from anywhere and has no outbound rules for replies. Do HTTPS replies to clients get out?

  1. A.No, an outbound rule for 443 is needed
  2. B.Yes, security groups are stateful
  3. C.Only if a NACL also allows them
  4. D.Only for clients inside the same VPC
Show answer

Answer: B. Yes, security groups are stateful

Security groups track connections, so replies to allowed inbound traffic are allowed automatically. They only have allow rules, and anything not allowed is denied. Network ACLs are stateless and need explicit rules both ways.

17. Blocking one IP range in AWS

You need to block one hostile IP range from reaching every instance in a subnet. Which AWS control can express an explicit deny?

  1. A.A security group deny rule
  2. B.An IAM policy on the instances
  3. C.A network ACL on the subnet
  4. D.A Route 53 health check
Show answer

Answer: C. A network ACL on the subnet

Network ACLs work at the subnet level and support both allow and deny rules, checked in number order. Security groups only allow, so they cannot block one range while allowing the rest. For web traffic, AWS WAF IP sets are another option.

18. Which Azure NSG rule wins

An Azure NSG has rule A with priority 100 denying TCP 3389 and rule B with priority 300 allowing TCP 3389 from the office. Which applies to RDP from the office?

  1. A.Rule B, because higher numbers win
  2. B.Both, so the traffic is only logged
  3. C.Neither, because NSGs ignore RDP traffic
  4. D.Rule A, as lower numbers go first
Show answer

Answer: D. Rule A, as lower numbers go first

NSG rules are processed from the lowest priority number to the highest, and processing stops at the first match. Rule A at 100 denies RDP before rule B is reached. Put specific allows at a lower number than broader denies.

19. Why use a bastion host

Why do teams reach private servers through a bastion (jump) host instead of opening SSH on each server?

  1. A.A bastion host makes SSH sessions much faster
  2. B.Servers behind it no longer need any patching
  3. C.All admin access passes one hardened, logged host
  4. D.A bastion host encrypts the servers' disks for you
Show answer

Answer: C. All admin access passes one hardened, logged host

A bastion host is the single place admins connect to, with MFA, tight source IP rules and session logging. The private servers only accept SSH or RDP from the bastion. Managed options such as Azure Bastion or AWS Session Manager remove inbound ports altogether.

20. Reaching a database privately

Your app in Azure connects to a managed SQL database over its public endpoint. What does adding a private endpoint change?

  1. A.The database gets a faster CPU
  2. B.Traffic uses a private IP in your VNet
  3. C.The database no longer needs a password
  4. D.The database is copied into your VNet
Show answer

Answer: B. Traffic uses a private IP in your VNet

A private endpoint gives the service a private IP inside your virtual network, so traffic stays on Microsoft's backbone and never needs the public endpoint. You can then disable public network access. AWS PrivateLink interface endpoints work the same way.

Network Security intermediate interview questions medium

21. Reaching a partner service privately

A UAE bank must call a SaaS provider's API hosted on AWS without traffic going over the public internet. What does the provider usually offer?

  1. A.A public IP address you add to your allow list
  2. B.VPC peering of your whole network with all their customers
  3. C.An endpoint service you connect to with AWS PrivateLink
  4. D.A NAT gateway shared between the two accounts
Show answer

Answer: C. An endpoint service you connect to with AWS PrivateLink

PrivateLink exposes a provider's service as an interface endpoint inside your VPC, with private IPs and no internet path. It is one-way and service-specific, unlike VPC peering, which connects whole networks and has CIDR overlap issues. You can also attach a security group and an endpoint policy.

22. Controlling outbound traffic

Private servers reach the internet through a NAT gateway with no restrictions. Malware on one server sends data to an unknown domain. Which control limits this?

  1. A.An inbound security group rule that blocks the unknown domain
  2. B.Egress filtering with a firewall that allows only approved domains
  3. C.A larger NAT gateway with more bandwidth to absorb the traffic
  4. D.Encrypting the server's EBS volume with a customer key
Show answer

Answer: B. Egress filtering with a firewall that allows only approved domains

Default-allow outbound is a common gap. AWS Network Firewall, Azure Firewall or a proxy can allow traffic only to listed domains such as OS update mirrors and partner APIs. Security groups have no domain rules, and disk encryption does nothing for network exfiltration.

23. Unusual DNS traffic

One workstation makes thousands of DNS TXT queries per hour to subdomains like a9f3k2...x7.data-sync-cdn.top, each with long random-looking labels. What does this most likely indicate?

  1. A.A misconfigured DHCP server
  2. B.Normal CDN behaviour for streaming video
  3. C.A DNS cache poisoning attack against the internal resolver
  4. D.DNS tunnelling used for command and control or data exfiltration
Show answer

Answer: D. DNS tunnelling used for command and control or data exfiltration

High volumes of queries with long, high-entropy subdomain labels to one domain, often using TXT records, are a strong sign of DNS tunnelling. Malware encodes data in the queries and receives commands in the responses. Normal CDNs do not generate thousands of unique random TXT lookups from one host.

24. Read a Suricata rule

What does this Suricata rule alert on?

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"Suspicious PowerShell UA"; http.user_agent; content:"WindowsPowerShell"; nocase; sid:1000001; rev:1;)
  1. A.Any inbound HTTP request from the internet to a web server
  2. B.PowerShell scripts saved to disk on internal hosts
  3. C.Outbound HTTP requests from internal hosts whose User-Agent contains "WindowsPowerShell"
  4. D.DNS lookups for domains containing the word PowerShell
Show answer

Answer: C. Outbound HTTP requests from internal hosts whose User-Agent contains "WindowsPowerShell"

The rule matches HTTP traffic from $HOME_NET to $EXTERNAL_NET, so it is outbound. The http.user_agent sticky buffer with content "WindowsPowerShell" and nocase looks for PowerShell's default user agent, often seen when scripts download payloads. It inspects network traffic, not files on disk or DNS.

25. Odd queries in Zeek dns.log

One host makes thousands of queries like these. Which conclusion and next step is best?

query: a9f3k2l0qz8x7v.dyn-updates.example.net  qtype: TXT
query: p0z81mnbv6c4ty.dyn-updates.example.net  qtype: TXT
query: x7c2v9b1n0m3qa.dyn-updates.example.net  qtype: TXT
  1. A.Normal CDN traffic; close the alert
  2. B.A broken printer driver; reinstall it
  3. C.Possible DNS tunnelling or a DGA; check the process making the queries and the domain's age and reputation
  4. D.A DNSSEC validation error; disable DNSSEC
Show answer

Answer: C. Possible DNS tunnelling or a DGA; check the process making the queries and the domain's age and reputation

Long random-looking subdomains under one parent domain, especially with TXT queries in high volume, fit DNS tunnelling or C2 over DNS. Using EDR to find the process making the queries, and checking when the domain was registered, confirms or rules it out. Blocking the parent domain at the resolver is a quick containment step.

26. A rule that never matches

Rule 3 below never gets any hits. Why?

1  allow  any -> 10.1.0.0/16  tcp/443
2  deny   any -> 10.1.5.0/24  any
3  allow  any -> 10.1.5.20    tcp/22
  1. A.Rule 3 uses an invalid host IP address
  2. B.Rule 2 matches first, so rule 3 is shadowed
  3. C.Rule 1 already allows SSH to the whole range
  4. D.Firewalls check their rules from the bottom up
Show answer

Answer: B. Rule 2 matches first, so rule 3 is shadowed

Firewalls check rules top-down and stop at the first match. SSH to 10.1.5.20 matches rule 2 (deny anything to 10.1.5.0/24) before reaching rule 3. Rule audit tools flag shadowed rules; move specific rules above broad ones.

27. What app identification adds

Your old firewall allows "TCP 443 to any". A next-generation firewall (NGFW) can add application identification. What does that let you do?

  1. A.Allow Microsoft 365 but block tunnel tools on 443
  2. B.Remove the need for any port-based rules at all
  3. C.Encrypt all of the traffic leaving the office
  4. D.Assign each device an IP address based on its app
Show answer

Answer: A. Allow Microsoft 365 but block tunnel tools on 443

Many apps share port 443. App-ID style inspection recognises the actual application from traffic patterns and TLS details, so policy can allow business apps and block others, such as proxies or remote-access tools, on the same port.

28. Stopping a rogue DHCP server

Someone plugs a home router into a meeting room port, and laptops start getting wrong gateways. Which switch feature prevents this?

  1. A.DHCP snooping, with only uplink ports trusted
  2. B.Spanning Tree Protocol on all ports
  3. C.Jumbo frames on access ports
  4. D.Port mirroring to the IDS
Show answer

Answer: A. DHCP snooping, with only uplink ports trusted

DHCP snooping lets DHCP server replies in only on trusted ports, usually the uplinks to real DHCP servers. Offers from any other port are dropped. Its binding table also feeds Dynamic ARP Inspection and IP Source Guard.

29. VLAN hopping by double tagging

An attacker on an access port sends frames with two 802.1Q tags to reach another VLAN. What condition makes this work?

  1. A.The target VLAN uses DHCP
  2. B.The switch has spanning tree enabled
  3. C.The target uses IPv6 only
  4. D.The attacker's VLAN is the trunk's native VLAN
Show answer

Answer: D. The attacker's VLAN is the trunk's native VLAN

The first switch strips the outer tag matching the native VLAN and sends the frame over the trunk with only the inner tag left, so the next switch delivers it to the inner VLAN. It is one-way. Use an unused native VLAN, tag it explicitly, and keep users off it.

30. Why Telnet and FTP are risky

A legacy switch is managed over Telnet, and files move over plain FTP. What is the main risk?

  1. A.They use far too many ports on the firewall
  2. B.They cannot work through NAT or a VPN
  3. C.They are too slow for modern network links
  4. D.Credentials cross the network in clear text
Show answer

Answer: D. Credentials cross the network in clear text

Telnet and FTP send everything, including credentials, unencrypted, so anyone sniffing the path can read them. Replace them with SSH and SFTP or FTPS. If a device cannot, isolate its management interface on a separate network.

31. conn_state REJ in Zeek

What does conn_state REJ mean in Zeek conn.log?

  1. A.The connection completed and closed normally
  2. B.The connection attempt was rejected with a RST
  3. C.No packets were seen in either direction
  4. D.The connection is still open
Show answer

Answer: B. The connection attempt was rejected with a RST

REJ means the responder answered the SYN with a reset, so the port was closed. Mixing REJ and S0 across many ports from one source shows a scan meeting both closed and filtered ports.

32. Self-signed certificates in ssl.log

Zeek ssl.log shows a laptop connecting every 5 minutes to an IP with validation_status "self signed certificate" and no SNI. Why is this worth a look?

  1. A.Self-signed certificates are faster to validate
  2. B.All Microsoft services use self-signed certificates
  3. C.It proves the connection is encrypted with TLS 1.3
  4. D.C2 servers often use self-signed certs on bare IPs
Show answer

Answer: D. C2 servers often use self-signed certs on bare IPs

Public websites use CA-signed certificates and host names. A regular connection to a bare IP with a self-signed certificate fits many C2 frameworks' defaults. Check the process on the laptop and other hosts talking to that IP.

33. sid and rev in a Suricata rule

A Suricata rule ends with sid:1000123; rev:4;. What do these mean?

  1. A.The rule fires 1,000,123 times, then 4 more
  2. B.Source ID of the sensor and revision of Suricata
  3. C.A unique rule ID and the rule's version number
  4. D.The severity and priority of the alert
Show answer

Answer: C. A unique rule ID and the rule's version number

sid uniquely identifies the rule, and rev increases each time the rule is changed. Local rules usually use sids from 1,000,000 upwards to avoid clashing with public rulesets. Alerts report the sid, which links them back to the rule.

34. flow:established,to_server

Why do many Suricata rules include flow:established,to_server?

  1. A.It matches only traffic from the server to clients
  2. B.It turns the rule into a firewall block
  3. C.It limits the rule to UDP traffic
  4. D.It checks only client-to-server data after the handshake
Show answer

Answer: D. It checks only client-to-server data after the handshake

established requires a completed TCP handshake, which ignores spoofed one-off packets, and to_server limits matching to the client-to-server direction. This cuts false positives and speeds inspection.

35. content with nocase

What does this part of a Suricata rule match?

content:"cmd.exe"; nocase;
  1. A.The bytes "cmd.exe" in any letter case
  2. B.Only "CMD.EXE" in upper case
  3. C.Any file ending in .exe
  4. D.A process called cmd.exe on the sensor
Show answer

Answer: A. The bytes "cmd.exe" in any letter case

content matches a byte pattern in the payload, and nocase makes it case-insensitive. Without nocase, "CMD.exe" would not match. Suricata sees network bytes only, not processes on a host.

36. A drop rule that drops nothing

You changed a Suricata rule action from alert to drop, but traffic still gets through. Suricata reads from a SPAN port. Why?

  1. A.drop only works on UDP traffic, not on TCP
  2. B.drop needs the rule set to be reloaded twice
  3. C.A SPAN copy cannot be blocked; it must run inline
  4. D.drop requires a nocase keyword in the same rule
Show answer

Answer: C. A SPAN copy cannot be blocked; it must run inline

On a SPAN or TAP, Suricata sees copies of packets, so it can only alert. To block, it must sit inline, for example with NFQUEUE or AF_PACKET IPS mode, where packets pass through it. In IDS mode, a drop rule behaves like an alert.

37. Pings carrying too much data

A host sends ICMP echo requests to an outside IP every second, each with 1,000 bytes of varied, random-looking payload. Normal pings carry small fixed patterns. What is likely?

  1. A.A network monitor checking uptime
  2. B.ICMP tunnelling to move data or commands
  3. C.A broken network card
  4. D.Path MTU discovery working normally
Show answer

Answer: B. ICMP tunnelling to move data or commands

Normal ping payloads are small and repeat a fixed pattern. Large, changing payloads and a steady rate suggest a tool such as an ICMP tunnel carrying data. Limit ICMP to the internet and alert on unusual payload sizes.

38. SSH open to 0.0.0.0/0

A cloud security review flags a security group allowing TCP 22 from 0.0.0.0/0 on a production instance. What is the best fix?

  1. A.Change the SSH port to 2222 and keep 0.0.0.0/0
  2. B.Add a second rule allowing 22 from the office
  3. C.Leave it, since SSH is encrypted anyway
  4. D.Remove it; use Session Manager or allow only admin IPs
Show answer

Answer: D. Remove it; use Session Manager or allow only admin IPs

0.0.0.0/0 means the whole internet can try to log in, and bots will. Use a keyless, portless method like SSM Session Manager, or allow SSH only from known admin ranges or a bastion. Changing the port just hides it from casual scans.

39. Slowing a login brute force with WAF

Bots hit your /login page thousands of times a minute from a few IPs. Which AWS WAF feature fits best?

  1. A.A geo-match rule blocking every country
  2. B.A size constraint rule on request bodies
  3. C.A rule allowing only HTTP/2 traffic
  4. D.A rate-based rule limiting requests per IP
Show answer

Answer: D. A rate-based rule limiting requests per IP

A rate-based rule counts requests per IP (or other key) over a time window and blocks or challenges those over the limit. Scoping it to the /login path stops brute force without hurting normal browsing. Spread-out botnets also need bot control and MFA.

40. Allowing the app tier to reach the database

App servers in an auto-scaling group need to reach a database on port 5432. Their IPs change often. What is the cleanest rule?

  1. A.Allow 5432 from 0.0.0.0/0
  2. B.Allow 5432 from each app IP, updated by hand
  3. C.Allow 5432 from the app tier's security group
  4. D.Allow all ports from the VPC CIDR
Show answer

Answer: C. Allow 5432 from the app tier's security group

Security groups can use another security group as the source. Any instance in the app group is allowed, whatever its IP, and nothing else is. It is tighter than a whole-VPC range and needs no updates when instances scale.

Network Security interview questions for experienced candidates hard

41. What zero trust really means

Which design best reflects zero trust architecture (as described in NIST SP 800-207)?

  1. A.A strong perimeter firewall, with full trust given to anything inside the corporate network
  2. B.A VPN that gives remote users the same flat network access as office users
  3. C.Each access request is authenticated and authorised using identity, device health and context, with least privilege and no implicit trust from network location
  4. D.Blocking all internet access for employees
Show answer

Answer: C. Each access request is authenticated and authorised using identity, device health and context, with least privilege and no implicit trust from network location

Zero trust removes implicit trust based on network location. Every request to a resource is checked using identity (with strong MFA), device posture and context, and access is granted with least privilege and re-evaluated continuously. A flat VPN or trusted internal network is exactly the model zero trust replaces, because one compromised device can then move laterally.

42. DNS logs went quiet

After a browser update, DNS query volume in your resolver logs dropped sharply for many laptops, but web traffic stayed the same. What is the most likely cause and response?

  1. A.The laptops are offline; open a network outage ticket
  2. B.Attackers deleted the resolver logs
  3. C.Browsers started caching DNS forever; flush the caches
  4. D.Browsers began using DNS over HTTPS to public resolvers, bypassing corporate DNS; enforce the enterprise resolver through policy and block known DoH endpoints
Show answer

Answer: D. Browsers began using DNS over HTTPS to public resolvers, bypassing corporate DNS; enforce the enterprise resolver through policy and block known DoH endpoints

DoH sends DNS inside HTTPS, so it looks like normal web traffic and skips the corporate resolver and its logging and filtering. Enterprises can disable or point DoH to their own resolver through browser and OS policies, and block public DoH providers at the proxy. Malware can also use DoH, so endpoint telemetry of DNS queries helps.

43. Why JA4 replaced JA3

Your team fingerprints TLS clients without decryption. JA3 hashes for Chrome started changing on almost every connection. Why do many teams now prefer JA4?

  1. A.Chrome randomises the order of TLS extensions, which changes JA3; JA4 sorts extensions so the fingerprint stays stable
  2. B.JA4 decrypts the TLS session to read the payload
  3. C.JA3 only works with TLS 1.0
  4. D.JA4 uses the server certificate instead of the ClientHello
Show answer

Answer: A. Chrome randomises the order of TLS extensions, which changes JA3; JA4 sorts extensions so the fingerprint stays stable

JA3 hashes ClientHello fields in the order they appear, and Chrome began randomising extension order to stop fingerprint ossification. JA4 sorts extensions and adds readable parts like TLS version and ALPN, so fingerprints are stable and easier to use in hunts. Neither method decrypts traffic.

44. Hardening against NTLM relay

A penetration test showed that NTLM authentication captured on the network could be relayed to file servers and LDAP. Which set of controls best mitigates this?

  1. A.Make all passwords 8 characters long
  2. B.Turn off Windows Firewall to reduce noise
  3. C.Use NTLMv1 instead of NTLMv2
  4. D.Require SMB signing, enforce LDAP signing and channel binding, enable EPA on web services, and reduce NTLM use
Show answer

Answer: D. Require SMB signing, enforce LDAP signing and channel binding, enable EPA on web services, and reduce NTLM use

NTLM relay works when the target accepts authentication that is not tied to the session. SMB signing, LDAP signing with channel binding and Extended Protection for Authentication bind the authentication to the connection, so relayed attempts fail. Phasing out NTLM in favour of Kerberos removes the root problem.

45. Surviving a SYN flood

A web server gets a flood of SYN packets from spoofed IPs, and its half-open connection queue fills up. Which server-side defence lets it keep accepting real clients?

  1. A.SYN cookies, keeping no state until the ACK
  2. B.Raising the TCP receive window size a lot
  3. C.Turning off TCP keepalives on the server
  4. D.Blocking all ICMP traffic on the server
Show answer

Answer: A. SYN cookies, keeping no state until the ACK

With SYN cookies, the server encodes connection details in its SYN-ACK sequence number and keeps nothing in the queue. Only clients that return a valid ACK get a connection. Large floods still need upstream DDoS scrubbing.

46. Size of a DNS amplification attack

An attacker sends 60-byte DNS queries with a spoofed source to open resolvers, which reply with 3,000-byte answers. If the attacker sends 100 Mbps of queries, about how much hits the victim?

  1. A.300 Mbps
  2. B.50 Mbps
  3. C.5 Gbps
  4. D.30 Gbps
Show answer

Answer: C. 5 Gbps

The amplification factor is 3,000 ÷ 60 = 50. So 100 Mbps × 50 = 5,000 Mbps, or 5 Gbps aimed at the victim. That is why open resolvers are dangerous and why ISPs should drop spoofed source addresses (BCP 38).

47. Blocking all ICMP broke large transfers

After an admin blocked all ICMP on the firewall, small web pages load but large downloads over a VPN hang. Why?

  1. A.TCP needs ping replies to stay connected
  2. B.DNS runs over ICMP for large answers
  3. C.VPNs only work when ping is allowed
  4. D.Path MTU discovery needs ICMP "too big" messages
Show answer

Answer: D. Path MTU discovery needs ICMP "too big" messages

Hosts learn the largest packet size a path allows from ICMP "fragmentation needed" (IPv4) or "packet too big" (IPv6) messages. If those are blocked, large packets with the don't-fragment bit vanish and transfers stall. Allow those ICMP types even when blocking echo.

48. Fragments that slip past an IDS

An attacker splits an exploit into small, overlapping IP fragments. The IDS sees nothing, but the target server is exploited. What went wrong?

  1. A.The IDS does not log any fragmented packets
  2. B.The IDS and target reassembled them differently
  3. C.IP fragments are always encrypted in transit
  4. D.The target server blocked all of the fragments
Show answer

Answer: B. The IDS and target reassembled them differently

Operating systems differ in how they handle overlapping fragments. If the IDS reassembles differently from the target, it inspects a different payload. Tools such as Suricata use target-based reassembly policies, and normalising or dropping odd fragments at the edge helps.

49. Split tunnelling on the VPN

Remote staff use a VPN with split tunnelling: company apps go through the tunnel and everything else goes straight to the internet. What is the main security trade-off?

  1. A.Company apps are no longer encrypted at all
  2. B.The VPN uses more bandwidth at head office
  3. C.Web traffic skips company filtering and logs
  4. D.Users cannot reach any company apps at all
Show answer

Answer: C. Web traffic skips company filtering and logs

Split tunnelling saves bandwidth and improves speed, but internet traffic bypasses the corporate proxy, DNS filtering and logging. A laptop can be infected from the web while connected to internal apps. Endpoint web protection or a cloud SWG closes the gap.

50. Where did the certificate details go?

After servers moved to TLS 1.3, your Zeek x509 logs for those sessions became empty, while ssl.log still has the server name. Why?

  1. A.Zeek does not support TLS 1.3 at all
  2. B.TLS 1.3 removed certificates from the protocol
  3. C.The SNI field is now encrypted too
  4. D.TLS 1.3 encrypts the server certificate in the handshake
Show answer

Answer: D. TLS 1.3 encrypts the server certificate in the handshake

In TLS 1.2, the server certificate is sent in clear text, so sensors log it. TLS 1.3 encrypts everything after Server Hello, including the certificate. SNI is still visible unless Encrypted Client Hello is used, so plan detections around SNI, JA4 and endpoint data.

51. A connection open for 30 hours

Zeek conn.log shows a workstation with a TCP connection to an unknown cloud IP lasting 30 hours, with small, steady byte counts both ways. Why hunt this?

  1. A.Long sessions are always software updates
  2. B.Long, quiet sessions fit C2 or a reverse tunnel
  3. C.Zeek only logs connections that are malicious
  4. D.Workstations cannot keep connections that long
Show answer

Answer: B. Long, quiet sessions fit C2 or a reverse tunnel

Some C2 tools and tunnels hold one long connection open and send small amounts of data. Sorting conn.log by duration and removing known services like VPNs and chat apps leaves a short list worth checking. Pair it with the process from endpoint logs.

52. A Suricata rule that hurts performance

A new Suricata rule uses only a pcre, with no content keyword, and sensor CPU jumps. Why?

alert http any any -> any any (msg:"Odd token"; pcre:"/[A-Za-z0-9]{40}\.php/U"; sid:1000301; rev:1;)
  1. A.pcre cannot be used on HTTP traffic at all
  2. B.The sid is outside the range allowed for rules
  3. C.Rules need a threshold keyword to compile well
  4. D.With no content pre-filter, the regex runs on all
Show answer

Answer: D. With no content pre-filter, the regex runs on all

Suricata uses content patterns as a fast pattern to pick which rules to evaluate. With no content, the costly regex runs on every HTTP request. Add a distinctive content match, such as ".php" in http.uri, so pcre only runs on candidates.

53. Reading sampled NetFlow

A router exports NetFlow with 1-in-1,000 packet sampling. A flow record shows 3 packets to a suspicious IP. What can you conclude?

  1. A.Exactly 3 packets were sent to that IP
  2. B.No more than 1,000 packets were sent in all
  3. C.About 3,000 were sent; small flows can be missed
  4. D.The flow was blocked by the router itself
Show answer

Answer: C. About 3,000 were sent; small flows can be missed

With 1:1,000 sampling, each recorded packet stands for about 1,000, so 3 sampled packets suggests about 3,000. Short conversations of a few packets are often not sampled at all, so sampled flows can miss low-and-slow C2. Use unsampled flows where you need that.

54. The capture shows only the firewall IP

You capture on the internet side of the firewall to find which laptop talks to a C2 IP. Every packet shows the firewall's public IP as the source. What should you do?

  1. A.Conclude that the firewall itself is infected
  2. B.Capture inside, or match NAT logs by time and port
  3. C.Use a display filter of ip.src == laptop
  4. D.Ask the C2 server's hosting company for its logs
Show answer

Answer: B. Capture inside, or match NAT logs by time and port

Outside the firewall, NAT has already replaced the internal source address. Either capture on the inside interface or use the firewall's NAT session logs, matching the translated source port and time, to find the real host.

55. Traffic on UDP 443

Your web gateway inspects HTTPS on TCP 443, yet users still reach some blocked sites in Chrome. Firewall logs show heavy UDP 443 traffic. What is going on?

  1. A.UDP 443 is DNS traffic for those blocked sites
  2. B.Chrome uses QUIC over UDP, which is not inspected
  3. C.UDP 443 is only used by remote VPN clients
  4. D.The gateway is blocking TCP 443 by mistake
Show answer

Answer: B. Chrome uses QUIC over UDP, which is not inspected

QUIC carries HTTP/3 over UDP 443 with its own encryption, so a gateway that only inspects TCP misses it. Blocking UDP 443, or disabling QUIC by browser policy, makes browsers fall back to TCP TLS, which the gateway can inspect.

56. Pivoting on a C2 certificate

One confirmed C2 server uses a self-signed certificate with an unusual subject. How can network logs find more of the attacker's servers?

  1. A.Search for the same certificate hash or subject on other IPs
  2. B.Block every self-signed certificate on the internet
  3. C.Search for the same TCP window size
  4. D.Look for other servers on port 443
Show answer

Answer: A. Search for the same certificate hash or subject on other IPs

Attackers often reuse the same certificate or template across servers. Searching Zeek x509 logs or internet scan data for the same fingerprint or odd subject can reveal more C2 IPs and infected hosts. This works for TLS 1.2 or via active scanning.

57. Why IMDSv2 blunts SSRF

An SSRF bug lets attackers make the web app send GET requests to any URL. How does requiring IMDSv2 on the EC2 instance protect its role credentials?

  1. A.IMDSv2 moves the service to a public IP
  2. B.IMDSv2 needs a token from a PUT with a special header first
  3. C.IMDSv2 encrypts the credentials with the user's password
  4. D.IMDSv2 only answers requests from AWS staff
Show answer

Answer: B. IMDSv2 needs a token from a PUT with a special header first

With IMDSv2, a client must first send a PUT request with a TTL header to get a session token, then send it in a header. Most SSRF bugs only allow simple GETs, so they cannot get the token. A hop limit of 1 also stops containers from reaching it through extra hops.

58. Limiting server egress to known domains

Private servers reach the internet through a NAT gateway and need only package repositories and one payment API. How can you allow just those domains?

  1. A.Add the domains to the NAT gateway's own rules
  2. B.Block all ports except 443 in the security groups
  3. C.Allow the current IPs of those domains for good
  4. D.Send egress via a firewall that filters by domain
Show answer

Answer: D. Send egress via a firewall that filters by domain

NAT gateways and security groups only understand IPs and ports, and service IPs change. A cloud firewall (such as AWS Network Firewall) or an egress proxy can allow traffic by domain using SNI or HTTP Host. That blocks C2 and exfiltration to other sites.

59. Exfiltration through the S3 endpoint

Private instances reach S3 through a gateway VPC endpoint and have no internet route. An attacker with access uploads data to their own S3 bucket. How do you stop this?

  1. A.Remove encryption from all company buckets
  2. B.Add an endpoint policy allowing only company buckets
  3. C.Give the instances a public IP to monitor uploads
  4. D.Turn off CloudTrail for S3 to save costs
Show answer

Answer: B. Add an endpoint policy allowing only company buckets

A VPC endpoint reaches any S3 bucket in the region, including an attacker's, unless its endpoint policy restricts it. Allowing only your own buckets, or your organisation via aws:ResourceOrgID, closes that route. Bucket policies can also require access via your endpoint.

60. A NACL deny that does nothing

A subnet NACL has these inbound rules, but traffic from 203.0.113.0/24 still reaches the instances. Why?

Rule 100  ALLOW  0.0.0.0/0        all
Rule 200  DENY   203.0.113.0/24   all
Rule *    DENY   0.0.0.0/0        all
  1. A.Rule 100 matches first, so rule 200 is never reached
  2. B.NACLs only apply to outbound traffic
  3. C.Deny rules need a security group to work
  4. D.The /24 range is too small for a NACL
Show answer

Answer: A. Rule 100 matches first, so rule 200 is never reached

NACL rules are evaluated in ascending number order and the first match wins. Rule 100 allows everything, so rule 200 is never checked. Give the deny a lower number than the broad allow, such as 90.

Ready to test yourself?

Take a 15-question Network Security MCQ test with a score at the end, or practise the full Network Security question bank and earn points on the leaderboard.