How to Detect Vulnerabilities on a Network

Before an attacker finds the weak spot in your network, you should. A practical, tool-by-tool guide to detecting vulnerabilities with Nmap, Nessus, Wireshark, Suricata and more — plus the threat intelligence sources every analyst should bookmark.

How to Detect Vulnerabilities on a Network: Tools & Techniques | IlmBytesTech
Cybersecurity · Blue Team Fundamentals

How to Detect Vulnerabilities on a Network

Before an attacker finds the weak spot in your network, you should. This is a practical, tool-by-tool guide to how vulnerabilities are actually detected — the scanners, the commands, and the intelligence sources that turn raw findings into real defense.

12 min read Beginner → Intermediate Lab-ready commands

Every network is a collection of doors — open ports, running services, web apps, user accounts. Vulnerability detection is the discipline of finding the doors that are unlocked, propped open, or fitted with a broken latch, and doing it before someone with bad intentions walks through. In this guide we’ll work through the main categories of detection, the specific tools that do the job, and exactly how you’d run each one in a home lab.

01 / SCANNINGAutomated vulnerability scanning


Vulnerability scanners are the workhorses of detection. They connect to hosts, enumerate the services running on them, and compare what they find against a database of known flaws — the CVEs (Common Vulnerabilities and Exposures). The output is a prioritized report: missing patches, weak configurations, exposed services, each usually scored with a CVSS severity rating.

Nessus

Freemium
The industry-standard commercial scanner. Nessus Essentials is free for up to 16 IPs.

Nessus is what most analysts meet first. You point it at a target or subnet, pick a scan policy (a basic network scan is a great start), and it returns findings grouped by severity with remediation guidance for each one. It’s the tool you’d use to answer “what’s wrong with this host, and what do I fix first?”

In your lab Run a Basic Network Scan against a deliberately vulnerable target like Metasploitable. You’ll get a wall of criticals — outdated Samba, vsftpd, an ancient Apache — each one a CVE you can look up and understand. That’s the fastest way to connect a scanner finding to a real weakness.

OpenVAS / Greenbone

Free / Open Source
The leading open-source alternative to Nessus.

OpenVAS (now part of the Greenbone Community Edition) does the same job as Nessus without the licensing. It maintains its own feed of vulnerability tests and produces detailed reports. Slightly more setup, but a superb learning tool precisely because you have to configure it yourself.

Rule zero Only ever scan systems you own or have explicit written permission to test. Unauthorized scanning of networks you don’t control is illegal in most jurisdictions. Everything in this guide assumes an isolated home lab or an authorized engagement.

02 / DISCOVERYPort scanning & service enumeration


Before you can assess a service, you have to know it’s there. Port scanning maps which ports are open, which services are listening, and often which operating system a host is running. An unexpected open port — Telnet on 23, SMB on 445, an admin panel on 8080 — is frequently the very first thread you pull.

Nmap

Free / Open Source
The Network Mapper. The single most important reconnaissance tool to learn.

Nmap does host discovery, port scanning, service/version detection, OS fingerprinting, and — through the Nmap Scripting Engine (NSE) — actual vulnerability checks. If you learn one tool deeply, make it this one.

kali@lab — nmap
# Ping sweep — which hosts are alive on the subnet?
nmap -sn 192.168.222.0/24

# Service + version detection on a single target
nmap -sV 192.168.222.134

# Aggressive: OS detect, versions, scripts, traceroute
nmap -A 192.168.222.134

# Run the vuln script category via NSE
nmap --script vuln 192.168.222.134

The -sV flag alone turns a bare port number into something meaningful: not “port 21 open” but “vsftpd 2.3.4” — a version you can immediately search against a CVE database.

In your lab Pair Nmap with Wireshark: start a capture, run a ping sweep, and watch the ARP and ICMP traffic Nmap generates. Seeing the packets behind the scan is what turns “I ran a command” into “I understand what the command does.”

03 / TRAFFICPacket analysis & network monitoring


Some vulnerabilities never show up in a scanner report — they live in the traffic. Cleartext credentials, unencrypted protocols, odd outbound connections, misconfigured services chattering on the wire. Packet analysis is how you see them.

Wireshark

Free / Open Source
The definitive graphical packet analyzer.

Wireshark captures live traffic and lets you inspect it packet by packet, protocol by protocol. Its power is in the display filters — you can isolate exactly the conversation you care about and read it in plain terms.

Wireshark — display filters
# Only HTTP traffic
http

# Traffic to/from one host
ip.addr == 192.168.222.137

# Catch cleartext FTP/Telnet logins
ftp || telnet

# Follow a full TCP conversation: right-click → Follow → TCP Stream
What to look for If you can read a username and password directly in the packet bytes, that protocol is a vulnerability. FTP, Telnet, and plain HTTP all transmit credentials in cleartext — finding them on your network is a finding worth reporting.

tcpdump

Free / Open Source
The command-line packet capturer — perfect for headless servers.

When there’s no GUI (a remote server over SSH, for example), tcpdump captures traffic straight from the terminal. It’s also the fastest way to grab a capture file you can later open in Wireshark.

kali@lab — tcpdump
# Capture on eth0, write to a file for later analysis
tcpdump -i eth0 -w capture.pcap

# Only port 80 traffic, printed live
tcpdump -i eth0 port 80

04 / MONITORINGIntrusion detection systems (IDS)


Scanners find weaknesses at a point in time. An IDS watches continuously, comparing live traffic against rule sets and raising alerts when it sees exploit attempts, malware signatures, or policy violations. This is detection as an ongoing sensor, not a one-off audit.

Suricata

Free / Open Source
A modern, high-performance, multi-threaded IDS/IPS.

Suricata inspects traffic against signature rules and generates structured alerts (it even outputs JSON you can feed into a SIEM). It can run purely as a detector (IDS) or inline to actively block traffic (IPS).

ubuntu@sensor — suricata
# Test the config and rules
suricata -T -c /etc/suricata/suricata.yaml

# Run against a live interface
suricata -c /etc/suricata/suricata.yaml -i eth0

# Watch the alerts roll in
tail -f /var/log/suricata/fast.log

Snort

Free / Open Source
The original, widely-taught IDS — the reference many others learn from.

Snort pioneered signature-based detection and its rule syntax is a de-facto standard. Learning to read a Snort/Suricata rule — understanding what triggers an alert — is a core blue-team skill.

05 / WEBWeb application scanning


Web apps are their own attack surface, and general network scanners only scratch it. Dedicated web scanners probe for the classic weaknesses — the kind catalogued in the OWASP Top 10: injection, cross-site scripting (XSS), security misconfiguration, and more.

Nikto

Free / Open Source
A fast web server scanner for known issues and misconfigurations.

Nikto checks a web server for thousands of potentially dangerous files, outdated versions, and revealing misconfigurations. It’s noisy and not stealthy — but for pure detection in a lab, it’s quick and informative.

kali@lab — nikto
# Scan a target web server
nikto -h http://192.168.222.134

OWASP ZAP & Burp Suite

Free / Freemium
Intercepting proxies for deeper web application testing.

ZAP (fully free) and Burp Suite (free community edition, paid pro) sit between your browser and the target as a proxy, letting you inspect and manipulate every request. Both include automated scanners plus manual tooling to hunt for injection, broken authentication, and logic flaws — a step deeper than Nikto’s surface scan.

06 / HARDENINGConfiguration & patch auditing


Not every vulnerability is a missing patch — many are insecure defaults: weak permissions, unnecessary services, exposed management interfaces. Configuration auditing checks systems against a known-good hardening standard. (For a worked example on a real environment, see our guide on securing a Windows Active Directory environment.)

MethodWhat it checksExample
CIS BenchmarksSystem config against consensus hardening guidesOS, cloud, and app baselines
LynisLinux/Unix host hardening auditlynis audit system
Patch managementInstalled versions vs. vendor advisoriesFlagging end-of-life software
Compliance scansConfig against a regulatory baselineNessus/OpenVAS policy scans
In your lab Run Lynis on your Kali or Ubuntu box: sudo lynis audit system. It produces a hardening index and a list of concrete suggestions — a great way to see configuration weaknesses on a system you actually control.

07 / VALIDATIONConfirming findings with exploitation


Detection tells you a vulnerability might exist. Penetration testing confirms whether it’s genuinely exploitable — separating the theoretical from the dangerous. This is where a scanner finding becomes a proven risk.

Metasploit Framework

Free / Open Source
The standard framework for developing and executing exploits.

Metasploit lets you take a detected weakness — say, that outdated vsftpd Nmap flagged — and safely test whether it can actually be exploited in your lab. Confirming exploitability is what lets you prioritize honestly: a “critical” that can’t be reached matters less than a “medium” sitting wide open.

Boundary Exploitation crosses from passive detection into active attack. It belongs only in an isolated lab or a formally authorized engagement — never on production systems or networks you don’t own.

08 / AFTER THE BREACHDetecting post-exploitation activity on web servers


Detection doesn’t stop at the front door. If an attacker has already gotten in — through an unpatched web server, a stolen credential, a vulnerable upload form — everything they do next leaves traces. Post-exploitation is the phase after initial access: escalating privileges, planting a way back in, harvesting credentials, moving deeper into the network, and quietly removing the evidence. Knowing what those activities look like is what lets you catch a breach that your perimeter scanners already missed.

Attacker activityWhat it looks like on the hostHow you detect it
Privilege escalationLow-priv account (www-data) suddenly running root commandsauditd rules, sudo logs, unexpected SUID binaries
PersistenceNew web shell, cron job, systemd timer, or SSH keyFile integrity monitoring, cron/timer review
Credential harvestingReads of config files holding DB creds or tokensFile access auditing on .env, wp-config.php
Lateral movementWeb server initiating connections to internal hostsEgress monitoring, IDS east-west rules
Data exfiltrationLarge or unusual outbound transfersNetFlow, Suricata, bandwidth baselining
Covering tracksTruncated or missing log entries, altered timestampsRemote/append-only logging, log gap analysis

AIDE / Tripwire

Free / Open Source
File integrity monitoring — the single best detector for web shells and persistence.

An attacker who wants to keep access has to write something to disk. FIM tools take a cryptographic baseline of your filesystem and tell you when anything drifts from it — which turns a hidden backdoor into a line in a report.

ubuntu@web — integrity
# Build the baseline database of known-good files
sudo aideinit

# Compare the live filesystem against that baseline
sudo aide --check

# Quick manual check: anything written to the web root in the last day?
find /var/www/html -type f -mtime -1 -ls

# Classic web shell tells — code execution functions in a PHP file
grep -rniE --include=*.php "eval\(|base64_decode\(|shell_exec\(" /var/www/html
In your lab Build an AIDE baseline on your vulnerable target, then drop a harmless file into the web root and re-run aide –check. Seeing your own test file flagged is the moment file integrity monitoring stops being an abstraction.

auditd & log review

Free / Open Source
Linux auditing — who did what, to which file, and when.

Persistence and privilege escalation both leave audit trails, but only if you’re recording them. auditd watches specific paths and syscalls; the standard system logs cover the rest.

ubuntu@web — auditd
# Alert on any write or attribute change inside the web root
sudo auditctl -w /var/www/html -p wa -k webroot_change

# Review what that rule caught
sudo ausearch -k webroot_change -i

# Authentication history — successes and failures
grep -E "Accepted|Failed password" /var/log/auth.log

# Persistence sweep: cron, timers, and stray SSH keys
sudo ls -la /etc/cron.* /var/spool/cron/crontabs/
sudo systemctl list-timers --all
sudo find /home /root -name authorized_keys -ls

# Unexpected SUID binaries — a common escalation path
sudo find / -perm -4000 -type f 2>/dev/null

Egress monitoring

Free / Open Source
Suricata, Zeek, tcpdump — catching the traffic a compromised server shouldn’t be sending.

A web server has a very predictable traffic profile: it receives connections on 80 and 443 and talks to its database. The moment it starts initiating outbound connections to the internet or scanning its own subnet, something is wrong. This is the same tooling from sections 03 and 04, pointed in the opposite direction.

ubuntu@web — egress
# What connections is this host holding open, and which process owns them?
sudo ss -tunp | grep ESTAB

# Live view of anything leaving the box that isn't normal web traffic
sudo tcpdump -i eth0 -n 'not port 80 and not port 443'

# Reverse-shell and C2 signatures firing in the IDS
grep -iE "shell|trojan|exfil" /var/log/suricata/fast.log
Why logs must leave the host Covering tracks is a post-exploitation step in its own right — clearing access.log, wiping auth.log, resetting timestamps. If your only copy of the evidence lives on the machine the attacker controls, you have no evidence. Ship logs to a central, append-only destination (a SIEM, a remote syslog server) so a gap in the timeline becomes a detection signal rather than a dead end.

The broader lesson is defense in depth. Initial compromise of an internet-facing web server is a bad day; it shouldn’t be a catastrophic one. Segmentation, least privilege, egress filtering, and monitoring are what stop a single foothold from becoming full network compromise — and every one of them also produces the signal that tells you the foothold exists.

09 / INTELLIGENCEPopular threat intelligence websites


Finding a vulnerability is half the job — understanding it is the other half. Threat intelligence sources let you look up a CVE, check an indicator, score a severity, and learn how real adversaries are using a given weakness. These are the references analysts keep bookmarked.

NVD — National Vulnerability Database
nvd.nist.gov
NIST’s authoritative CVE database with CVSS severity scores. Your go-to for looking up any vulnerability by ID.
MITRE CVE
cve.mitre.org
The master catalog that assigns and defines CVE identifiers — the naming system the whole industry uses.
MITRE ATT&CK
attack.mitre.org
A structured framework of real-world adversary tactics and techniques. Essential for understanding how attacks unfold.
CISA
cisa.gov
U.S. cyber agency. Advisories plus the Known Exploited Vulnerabilities (KEV) catalog — CVEs proven to be exploited in the wild.
VirusTotal
virustotal.com
Scans files and URLs against dozens of AV engines at once. Ideal for checking a suspicious indicator.
Shodan
shodan.io
A search engine for internet-connected devices. Reveals exposed services, open ports, and vulnerable systems worldwide.
AlienVault OTX
otx.alienvault.com
Open Threat Exchange — a community feed of shared indicators of compromise (IOCs) and threat “pulses.”
Cisco Talos
talosintelligence.com
Cisco’s threat research team. Reputation lookups, vulnerability reports, and emerging-threat analysis.
abuse.ch
abuse.ch
Free projects (URLhaus, MalwareBazaar, Feodo Tracker) tracking malware, botnets, and malicious URLs.
Have I Been Pwned
haveibeenpwned.com
Checks whether an email or password has appeared in a known data breach. Simple, invaluable.
SANS Internet Storm Center
isc.sans.edu
Daily threat diaries and analysis of emerging attacks from the SANS community.
Exploit-DB
exploit-db.com
An archive of public exploits mapped to CVEs — useful for understanding how a vulnerability is weaponized.

10 / WORKFLOWPutting it together


The tools above aren’t rivals — they’re a pipeline. A realistic detection flow chains them together, each stage feeding the next:

StageToolQuestion answered
1. DiscoverNmap ping sweepWhat hosts are alive?
2. EnumerateNmap -sVWhat services & versions run?
3. ScanNessus / OpenVASWhich have known vulnerabilities?
4. ResearchNVD / CISA KEVHow severe & are they exploited?
5. ValidateMetasploitIs it actually exploitable?
6. MonitorSuricata / WiresharkIs anyone attacking it now?
7. HuntAIDE / auditd / SuricataHas someone already gotten in?

Run that loop against a lab target like Metasploitable and you’ll have touched every category of network vulnerability detection — from first packet to confirmed finding. To go further and bake this kind of security testing into a development pipeline, see our beginner’s guide to DevSecOps.

// Hands-on companion

Build the lab yourself

Everything in this guide is documented in a hands-on GitHub repo — a complete home lab with per-tool command references, a detection workflow, a findings-log template, and a discovery script. Clone it, run the tools, and log your own findings.

View the lab on GitHub

FAQCommon questions


What’s the difference between a vulnerability scan and a penetration test?
A vulnerability scan detects potential weaknesses automatically and reports them. A penetration test goes further — a human actively attempts to exploit those weaknesses to prove real-world impact. Scanning is broad and fast; pen testing is deep and targeted.
Is it legal to scan a network with these tools?
Only on systems you own or have explicit written authorization to test. Scanning networks you don’t control can violate computer-misuse laws. Build an isolated home lab (like Kali + Metasploitable in VMware or VirtualBox) to practice safely.
How do I know if a server has already been compromised?
Look for the traces post-exploitation leaves behind: files in the web root that nobody deployed, cron jobs or systemd timers you don’t recognise, SSH keys in authorized_keys that aren’t yours, outbound connections from a server that should only be receiving them, and gaps or truncation in your logs. File integrity monitoring plus centralised logging is what turns those traces into an alert instead of a discovery you make months later.
Which tool should a beginner learn first?
Nmap. It teaches you how hosts, ports, and services actually work, and nearly every other tool assumes that foundation. Pair it with Wireshark so you can see the traffic your scans generate.
Do I need paid tools to get started?
No. Nmap, OpenVAS, Wireshark, tcpdump, Suricata, Snort, Nikto, OWASP ZAP, and Metasploit are all free and open source. Nessus and Burp Suite offer capable free tiers. You can build a complete detection lab at zero cost.
IB
Atif Memon
Cybersecurity Analyst & Tech Writer

Writing about Linux, networking, and security — sharing tutorials and lab walkthroughs that explain why each step matters, not just what to type. More at gravatar.com/atifmem.

IlmBytesTech · Knowledge in every byte

Leave a Reply

Your email address will not be published. Required fields are marked *