![]() |
| Ethical Hacking |
🛡️ Ethical Hacking — Day 32
Vulnerability Assessment & Security Scanning Basics
⚠️ LEARNING PURPOSE ONLY: This tutorial is strictly for educational and defensive cybersecurity learning. Perform vulnerability scanning only on systems, applications, servers, and networks that you own or have explicit written authorization to test. For practice, use localhost, virtual machines, deliberately vulnerable labs, or dedicated training environments.
Welcome to Day 32 of the Ethical Hacking learning series.
Today, we will learn about:
🔍 Vulnerability Assessment & Security Scanning
Security professionals need to identify weaknesses before they can be exploited by attackers.
A basic defensive process looks like:
ASSETS
│
▼
IDENTIFY
│
▼
SCAN SAFELY
│
▼
ANALYZE FINDINGS
│
▼
VALIDATE
│
▼
PRIORITIZE
│
▼
FIX
│
▼
VERIFY
🎯 Day 32 Learning Objectives
By the end of today's tutorial, you will understand:
What a vulnerability is
What vulnerability assessment means
Vulnerability assessment vs penetration testing
What security scanning is
Asset identification
CVE basics
CVSS basics
Vulnerability severity
False positives
False negatives
Vulnerability prioritization
Remediation
Verification
Safe scanning practices
Linux practical session
Windows practical session
macOS practical session
Localhost security scanning
Nmap basics for authorized environments
Professional vulnerability reporting
1. What Is a Vulnerability?
A vulnerability is a weakness that could potentially affect the security of a system.
Examples may include:
Outdated software
Missing security updates
Weak configuration
Unnecessary services
Weak authentication settings
Known software vulnerabilities
Excessive permissions
Conceptually:
SYSTEM
│
▼
SECURITY WEAKNESS
│
▼
POTENTIAL RISK
A vulnerability does not automatically mean a system has been compromised.
2. What Is a Vulnerability Assessment?
A vulnerability assessment is a structured process used to identify and evaluate potential security weaknesses.
A simplified process is:
IDENTIFY ASSETS
│
▼
DISCOVER SERVICES
│
▼
CHECK CONFIGURATION
│
▼
IDENTIFY POTENTIAL WEAKNESSES
│
▼
PRIORITIZE
│
▼
REMEDIATE
│
▼
VERIFY
The purpose is to help organizations improve security.
3. Vulnerability Assessment vs Penetration Testing
These terms are related but different.
Vulnerability Assessment
Focuses on:
WHAT WEAKNESSES MAY EXIST?
It commonly involves:
Asset identification
Version checking
Configuration review
Automated scanning
Risk prioritization
Penetration Testing
Focuses more on:
CAN AN AUTHORIZED TESTER SAFELY VERIFY
THE REAL-WORLD IMPACT?
Penetration testing must always have clearly defined authorization and scope.
4. What Is Security Scanning?
Security scanning uses tools or techniques to identify information relevant to security.
For example:
SYSTEM
│
▼
AUTHORIZED SCAN
│
▼
SERVICES IDENTIFIED
│
▼
VERSIONS / CONFIGURATION REVIEW
│
▼
POTENTIAL FINDINGS
Important:
A scanner finding is not automatically a confirmed vulnerability.
Findings must be reviewed and validated.
5. Start With Asset Identification
Before scanning, understand what you are authorized to assess.
Examples:
Servers
Workstations
Web applications
Databases
Cloud services
Network devices
Virtual machines
Create an inventory:
ASSET NAME:
________________
OWNER:
________________
IP / HOSTNAME:
________________
OPERATING SYSTEM:
________________
AUTHORIZED FOR TESTING:
YES / NO
TESTING WINDOW:
________________
6. Define the Scope
Never begin a security assessment without understanding the authorized scope.
A scope may define:
AUTHORIZED SYSTEMS
AUTHORIZED IP ADDRESSES
AUTHORIZED APPLICATIONS
TESTING PERIOD
ALLOWED METHODS
RESTRICTIONS
EMERGENCY CONTACTS
Conceptually:
OUT OF SCOPE ❌
AUTHORIZED SCOPE ✅
OUT OF SCOPE ❌
7. What Is a CVE?
CVE stands for:
Common Vulnerabilities and Exposures
A CVE identifier provides a standardized way to refer to publicly disclosed vulnerabilities.
Conceptually:
SOFTWARE ISSUE
│
▼
STANDARDIZED IDENTIFIER
│
▼
CVE
A CVE identifier alone does not automatically tell you whether your specific system is vulnerable.
You must consider:
Software version
Configuration
Exposure
Existing patches
Compensating controls
8. What Is CVSS?
CVSS stands for:
Common Vulnerability Scoring System
It is used to help communicate vulnerability severity.
A simplified severity concept is:
LOW
│
▼
MEDIUM
│
▼
HIGH
│
▼
CRITICAL
However:
Severity alone should not determine remediation priority.
Business context matters.
9. Vulnerability Severity vs Business Risk
Consider two findings.
Finding A
HIGH TECHNICAL SEVERITY
BUT
NOT EXTERNALLY EXPOSED
Finding B
MEDIUM TECHNICAL SEVERITY
BUT
EXPOSED TO THE INTERNET
AND PROTECTS IMPORTANT BUSINESS DATA
The second issue may require more urgent attention.
A better process considers:
TECHNICAL SEVERITY
+
EXPOSURE
+
BUSINESS IMPACT
+
EXPLOITABILITY
+
AVAILABLE CONTROLS
10. What Is a False Positive?
A false positive occurs when a tool reports a potential issue that is not actually applicable.
Example concept:
SCANNER:
"Potential vulnerability found"
↓
VALIDATION:
Not applicable to this configuration
This is why human review is important.
11. What Is a False Negative?
A false negative occurs when a real issue is not detected.
Conceptually:
REAL VULNERABILITY EXISTS
│
▼
SCANNER DOES NOT REPORT IT
No single scanner should be treated as a complete security guarantee.
12. Vulnerability Assessment Workflow
A professional workflow may look like:
1. GET AUTHORIZATION
↓
2. DEFINE SCOPE
↓
3. IDENTIFY ASSETS
↓
4. COLLECT BASIC INFORMATION
↓
5. PERFORM SAFE SCANNING
↓
6. REVIEW FINDINGS
↓
7. VALIDATE
↓
8. PRIORITIZE
↓
9. REMEDIATE
↓
10. VERIFY
↓
11. DOCUMENT
13. Active vs Passive Assessment
Passive Observation
Passive methods focus on reviewing information without actively sending significant probing traffic.
Examples may include:
Asset inventory review
Configuration review
Log review
Software inventory
Active Scanning
Active scanning sends requests to the target.
Conceptually:
SCANNER
│
│ Request
▼
AUTHORIZED TARGET
│
│ Response
▼
SCANNER
Because active scanning can affect systems, it must be carefully controlled.
14. Safe Scanning Principles
Always follow these rules:
✔ Get authorization
✔ Define scope
✔ Start with low-impact methods
✔ Avoid unnecessary disruption
✔ Monitor system health
✔ Document actions
✔ Protect collected information
✔ Stop if unexpected impact occurs
15. Nmap Basics
Nmap is commonly used for network discovery and security assessment.
For this course, use it only against:
localhost
your own virtual machines
authorized lab systems
A safe first step is to inspect your own local machine.
Example:
nmap localhost
This checks the local system.
Do not replace localhost with an external IP address unless you have explicit authorization.
🐧 16. Linux Practical Session
Check Your Own IP Configuration
Run:
ip addr
Observe your network interfaces.
17. Linux — Check Listening Services
Use:
ss -tuln
This helps you understand which TCP and UDP sockets are listening on your own system.
Observe:
LOCAL ADDRESS
PORT
PROTOCOL
18. Linux — Check Running Services
On a system using systemd:
systemctl --type=service --state=running
This helps you understand what services are active.
Ask:
Do I recognize this service?
Is it required?
Is it updated?
Is it exposed unnecessarily?
Do not stop important production services during learning.
19. Linux — Scan Localhost
If Nmap is installed:
nmap localhost
This is a safe starting exercise because the target is your own local machine.
Compare the output with:
ss -tuln
Ask:
Which ports appear open?
Which services do I recognize?
Are they expected?
20. Linux Practical Exercise
Create an inventory:
SYSTEM:
________________
OPERATING SYSTEM:
________________
RUNNING SERVICES:
________________
LISTENING PORTS:
________________
EXPECTED SERVICES:
________________
UNEXPECTED SERVICES:
________________
ACTION REQUIRED:
________________
🪟 21. Windows Practical Session
Open PowerShell.
Check Listening Connections
Run:
Get-NetTCPConnection -State Listen
This displays TCP connections in a listening state.
22. Windows — Check Network Ports
You can also use:
netstat -ano
Observe:
Local Address
Port
State
PID
For your own system, investigate unfamiliar processes carefully.
23. Windows — Identify a Local Process
If you have a PID from your own computer:
Get-Process -Id <PID>
Replace <PID> with the actual process ID.
Example workflow:
LISTENING PORT
│
▼
PROCESS ID
│
▼
IDENTIFY PROCESS
│
▼
EXPECTED?
24. Windows — Localhost Scan
If Nmap is installed:
nmap localhost
Compare the results with:
Get-NetTCPConnection -State Listen
The goal is to understand your own system's exposed services.
25. Windows Practical Exercise
Record:
SYSTEM:
________________
PORT:
________________
PROCESS:
________________
EXPECTED:
YES / NO
REASON:
________________
Do not terminate processes simply because you do not immediately recognize them.
Research and verify first.
🍎 26. macOS Practical Session
Open Terminal.
Check Listening Services
Run:
lsof -nP -iTCP -sTCP:LISTEN
This can help show processes listening for TCP connections on your own Mac.
27. macOS — Review Network Connections
You can also use:
netstat -an
Observe:
Protocol
Local Address
Remote Address
Connection State
28. macOS — Scan Localhost
If Nmap is installed:
nmap localhost
Compare the scan results with the services you identified locally.
29. macOS Practical Exercise
Create a simple table:
PORT:
________________
PROCESS:
________________
EXPECTED:
YES / NO
SERVICE PURPOSE:
________________
ACTION:
________________
Only modify services after understanding their purpose.
30. Compare Linux, Windows & macOS
| Operating System | Check Services / Ports |
|---|---|
| Linux | ss -tuln |
| Windows | Get-NetTCPConnection -State Listen |
| macOS | lsof -nP -iTCP -sTCP:LISTEN |
All three platforms follow the same principle:
IDENTIFY
↓
UNDERSTAND
↓
VERIFY
↓
SECURE
31. Understanding Scan Results
A scan may show a result such as:
PORT
STATE
SERVICE
For example:
PORT: 8080
STATE: OPEN
SERVICE: Application
Your next questions should be:
Is this expected?
Which application owns the port?
Is the service required?
Is access restricted?
Is the software updated?
Do not immediately assume an open port is a vulnerability.
32. Open Ports Are Not Automatically Dangerous
An open port may belong to a legitimate service.
For example:
Web server
Database
Development application
Remote administration service
Monitoring tool
Security depends on context.
A better approach is:
OPEN PORT
│
▼
IDENTIFY SERVICE
│
▼
VERIFY BUSINESS NEED
│
▼
REVIEW ACCESS
│
▼
CHECK UPDATES
│
▼
APPLY SECURITY CONTROLS
33. Software Inventory
Vulnerability management requires knowing what software exists.
Keep an inventory of:
OPERATING SYSTEM
APPLICATION NAME
VERSION
INSTALLATION DATE
OWNER
UPDATE STATUS
Conceptually:
YOU CANNOT PATCH
WHAT YOU DO NOT KNOW EXISTS
34. Patch Management
Patching means applying updates that may fix bugs and security vulnerabilities.
A safe process is:
IDENTIFY UPDATE
│
▼
REVIEW IMPACT
│
▼
TEST WHEN POSSIBLE
│
▼
BACKUP / PREPARE
│
▼
DEPLOY
│
▼
VERIFY
Production updates should follow your organization's change-management process.
35. Remediation Options
Not every vulnerability is fixed in exactly the same way.
Possible actions include:
Apply a patch
Upgrade software
Remove unnecessary software
Change configuration
Restrict network access
Improve authentication
Reduce permissions
Add compensating controls
36. Verify the Fix
Never assume a fix worked.
Use:
FINDING
│
▼
REMEDIATION
│
▼
RE-SCAN
│
▼
VERIFY
│
▼
DOCUMENT
Verification is an important part of vulnerability management.
37. Vulnerability Prioritization
A simple prioritization model can consider:
SEVERITY
+
EXPOSURE
+
BUSINESS IMPORTANCE
+
EXPLOITABILITY
+
AVAILABLE MITIGATIONS
Example:
CRITICAL + INTERNET EXPOSED
↓
HIGH PRIORITY
LOW + ISOLATED + COMPENSATING CONTROLS
↓
LOWER PRIORITY
Every organization should define its own risk process.
38. Professional Vulnerability Report
A report should contain useful information.
Example:
FINDING TITLE:
____________________________
AFFECTED ASSET:
____________________________
DATE IDENTIFIED:
____________________________
SEVERITY:
____________________________
DESCRIPTION:
____________________________
EVIDENCE:
____________________________
POTENTIAL IMPACT:
____________________________
VALIDATION STATUS:
____________________________
RECOMMENDED REMEDIATION:
____________________________
OWNER:
____________________________
TARGET FIX DATE:
____________________________
VERIFICATION STATUS:
____________________________
Avoid including unnecessary secrets in reports.
39. Common Vulnerability Assessment Mistakes
❌ Mistake 1 — Scanning Without Permission
Never test systems outside your authorized scope.
❌ Mistake 2 — Trusting Every Scanner Finding
Always validate important findings.
❌ Mistake 3 — Ignoring False Negatives
A clean scan does not guarantee a perfectly secure system.
❌ Mistake 4 — Prioritizing Only by Score
Business context matters.
❌ Mistake 5 — Fixing Without Verification
Always verify remediation.
❌ Mistake 6 — Forgetting Asset Inventory
Unknown systems cannot be properly managed.
❌ Mistake 7 — Treating an Open Port as Proof of a Vulnerability
An open service may be legitimate and properly secured.
Investigate before making conclusions.
40. Day 32 Main Practical Challenge
Perform this exercise only on your own computer.
Step 1 — Identify Listening Services
Linux
ss -tuln
Windows
Get-NetTCPConnection -State Listen
macOS
lsof -nP -iTCP -sTCP:LISTEN
Step 2 — Compare With Localhost
If Nmap is installed:
nmap localhost
Use the equivalent command in PowerShell or Terminal.
Step 3 — Create an Asset Record
ASSET NAME:
________________
OPERATING SYSTEM:
________________
AUTHORIZED TARGET:
YES
LISTENING SERVICES:
________________
EXPECTED SERVICES:
________________
ITEMS REQUIRING REVIEW:
________________
Step 4 — Analyze Safely
For every unfamiliar service, ask:
What is this?
Which process owns it?
Is it required?
Is it updated?
Who should have access?
Is network access restricted?
41. Vulnerability Management Lifecycle
Security scanning is not a one-time activity.
A mature process looks like:
DISCOVER
│
▼
ASSESS
│
▼
PRIORITIZE
│
▼
REMEDIATE
│
▼
VERIFY
│
▼
MONITOR
│
└──────────────► REPEAT
Security requires continuous improvement.
📝 Day 32 Assignment
Answer the following questions:
What is a vulnerability?
What is a vulnerability assessment?
What is the difference between vulnerability assessment and penetration testing?
What is security scanning?
Why is authorization important?
What is asset identification?
What does CVE stand for?
What is CVSS used for?
What is a false positive?
What is a false negative?
Why should scan results be validated?
Why is business context important?
What is an active scan?
What is a passive assessment?
What does
ss -tulnshow?What does
Get-NetTCPConnection -State Listenshow?What can
lsofshow on macOS?Why is localhost useful for learning?
Is every open port a vulnerability?
What is patch management?
Why should remediation be verified?
What factors help prioritize vulnerabilities?
What information should a vulnerability report contain?
Why is asset inventory important?
What is the vulnerability management lifecycle?
🏆 Day 32 Golden Rules
Rule 1
Never scan systems without authorization.
Rule 2
Define the scope before testing.
Rule 3
A scanner finding is not automatically a confirmed vulnerability.
Rule 4
A clean scan does not guarantee complete security.
Rule 5
Prioritize findings using technical and business context.
Rule 6
Start with safe, low-impact assessment methods whenever possible.
Rule 7
Always verify remediation.
Rule 8
Practice using localhost, your own systems, and authorized labs.
📚 Day 32 Summary
Today you learned:
What vulnerabilities are
Vulnerability assessment basics
Vulnerability assessment vs penetration testing
Security scanning
Asset identification
Scope and authorization
CVE basics
CVSS basics
Severity vs business risk
False positives
False negatives
Active and passive assessment
Safe scanning principles
Nmap basics for localhost and authorized labs
Linux practical commands
Windows practical commands
macOS practical commands
Open-port analysis
Software inventory
Patch management
Vulnerability remediation
Verification
Vulnerability prioritization
Professional reporting
Vulnerability management lifecycle
🔑 Most Important Lesson
Vulnerability assessment is not simply:
RUN SCANNER
↓
GET RESULTS
↓
DONE
A responsible process is:
AUTHORIZE
↓
IDENTIFY
↓
SCAN SAFELY
↓
VALIDATE
↓
PRIORITIZE
↓
FIX
↓
VERIFY
↓
DOCUMENT
🛡️ LEARN → IDENTIFY → ASSESS → VALIDATE → REMEDIATE → VERIFY → DEFEND
🔜 Day 33 — Web Application Security Testing Basics
Next, we will learn about:
Web application attack surfaces
HTTP request and response review
Authentication security
Session security
Input validation
Security headers
OWASP concepts
Safe testing using your own application
Linux practical session
Windows practical session
macOS practical session
Burp Suite workflow in an authorized lab
⚠️ LEARNING PURPOSE ONLY: All web security testing must be performed only on applications you own, intentionally vulnerable training applications, or systems where you have explicit authorization.

No comments:
Post a Comment