Running penetration testing without a plan is how beginners waste time, miss real weaknesses, and create avoidable noise on a network. This guide shows how to use Kali Linux for a basic, authorized assessment workflow that covers recon, scanning, validation, and reporting without crossing into unauthorized activity.
Certified Ethical Hacker (CEH) v13
Learn essential ethical hacking skills to identify vulnerabilities, strengthen security measures, and protect organizations from cyber threats effectively
Get this course on Udemy at the lowest price →Quick Answer
Basic penetration testing with Kali Linux is a legal, structured process for finding security weaknesses before attackers do. The beginner workflow is simple: define scope, set up Kali Linux, perform reconnaissance, scan for open ports and services, validate findings safely, and report results with evidence and remediation steps.
Quick Procedure
- Define scope and get written permission.
- Set up Kali Linux in a safe test environment.
- Run reconnaissance to map live hosts and services.
- Scan ports and enumerate exposed applications.
- Validate findings with low-risk manual checks.
- Document evidence, severity, and remediation.
- Review results and confirm fixes after changes.
| Primary Focus | Basic penetration testing workflow with Kali Linux |
|---|---|
| Core Activities | Reconnaissance, scanning, validation, reporting |
| Typical Tools | nmap, whois, dig, curl, browser dev tools |
| Environment | Authorized lab, home network, or approved target only |
| Skill Level | Beginner-friendly, with emphasis on safe checks |
| Best Practice | Start non-destructive and document every step |
| Training Context | Aligned with certified ethical hacking skills in the CEH v13 course |
Introduction
Penetration testing is an authorized security assessment that tries to identify weaknesses before a real attacker does. The goal is not to “hack for the sake of hacking”; it is to expose risk in a controlled way so an organization can fix it.
Kali Linux is a security-focused Operating System distribution built for assessment work, with tools for discovery, scanning, password auditing, web testing, and evidence collection. It is popular because it packages the tooling in one place, which saves beginners from assembling everything manually.
The legal line matters. Authorized testing requires written permission, a clear target, and a defined scope; anything outside that scope becomes unauthorized activity. If you want to build real ethical hacking skills, that discipline matters more than tool choice, because tools are easy to learn and judgment is not.
A basic pen test is not a stunt. It is a repeatable process for measuring exposure, validating what is actually reachable, and helping a business reduce risk without causing damage.
This guide follows the workflow used in beginner cybersecurity training and in structured programs such as the Certified Ethical Hacker (CEH) v13 course. The stages are simple: plan, set up Kali Linux, perform reconnaissance, scan, validate, and report. That sequence keeps the work organized and gives you evidence you can defend later.
For reference on responsible testing practices, see the NIST Cybersecurity Framework for risk management concepts and the CISA incident response resources for structured response thinking. If you are using Kali Linux, the official project documentation at Kali Linux Docs is the right place to verify package behavior and tool usage.
Planning and Scope Definition
Scope definition is the part that keeps a pen test legal, safe, and useful. If the scope is vague, you can accidentally test the wrong host, disrupt a business process, or collect data that nobody asked you to collect.
Start by identifying the target environment clearly. That can be a home lab, an isolated virtual lab, or an explicitly authorized system owned by your organization. The more precise the target, the easier it is to avoid overlap with production assets or third-party systems.
Define the rules before touching a tool
Write down what is allowed, when testing is allowed, and what is off-limits. For example, you may be allowed to scan ports but not perform password attacks; you may be allowed to test one subnet but not another; you may be allowed to inspect a web application but not load-test it.
- Allowed systems: specific IP addresses, hostnames, domains, or subnets.
- Testing window: exact dates and times, including time zone.
- Out of scope: production databases, backups, third-party services, or safety systems.
- Communication contacts: who to call if availability changes.
- Success criteria: open services, weak configurations, or reproducible exposure.
Document assumptions and risk tolerance. If a system is fragile, avoid noisy checks and use a conservative approach first. This is also where you define whether a finding must be proven by safe manual validation or whether scanner output is enough to report it as a risk.
Warning
Never assume that “internal” means “authorized.” If you do not have written permission and a defined scope, stop before scanning anything.
For governance alignment, review the ISACA COBIT framework for control objectives and the ISO/IEC 27001 standard for security management expectations. Those frameworks help explain why documentation and approval matter just as much as technical skill.
Prerequisites
Prerequisites are the basic requirements you should have in place before starting the workflow. Skipping them usually creates confusion later, especially when you need to reproduce a finding or explain it to a stakeholder.
- Authorized target: a lab, home network, or approved system with written permission.
- Kali Linux installation: a virtual machine, live USB, or dedicated laptop.
- Basic networking knowledge: IP addresses, subnets, DNS, and common ports.
- Note-taking system: text files, screenshots, and a clear folder structure.
- Command-line comfort: enough skill to run scans and read output.
- Browser and terminal access: for validating web applications and service behavior.
- Official references: vendor documentation and trusted security sources.
If you need to anchor your learning to recognized job skills, the U.S. Bureau of Labor Statistics describes information security analyst work as a growing field, and the NICE Workforce Framework shows the skill areas employers expect. That context helps beginners understand why discipline, evidence, and reporting are part of the job.
Setting Up Kali Linux for Testing
Kali Linux setup should be boring. A stable environment reduces the chance that your test results are polluted by broken networking, stale tools, or a bad interface choice.
Choose the installation method that best fits the assessment. A virtual machine is ideal for beginners because it is easy to reset and isolate. A live USB is useful when you want a clean bootable environment. A dedicated laptop is better when you need long-running, isolated work without host OS interference.
Update tools and confirm the network path
Before scanning anything, update the package index and installed tools. In Kali, that usually starts with sudo apt update followed by sudo apt full-upgrade -y. If the toolset is stale, you may miss current detection logic or run into version mismatches.
Then verify your interface and IP address. Use ip a or ip addr to confirm which adapter is active, and use ip route to confirm the default gateway. If you are on a lab network, make sure the VM is attached to the correct virtual switch or bridged adapter before launching scans.
- Install or launch Kali Linux. Use a VM, live USB, or dedicated machine depending on the test environment. A VM is usually the safest choice for a beginner because snapshots let you roll back mistakes fast.
-
Update the system. Run
sudo apt updateandsudo apt full-upgrade -yso you are using current packages and signatures. Reboot if the kernel or network stack changes. -
Check the active interface. Run
ip aand confirm the interface connected to the target network. If you see multiple adapters, choose one and ignore the others to avoid scanning the wrong segment. -
Create a workspace. Make folders such as
~/pentest/notes,~/pentest/scans, and~/pentest/screenshots. Consistent file naming makes the final report much easier to write. - Reduce exposure. Use a separate user profile, avoid personal accounts, and disable unnecessary services. Operational security matters even in a lab because clean habits become repeatable habits.
Keep the browser, terminal, and text editor ready, but do not install extra tools just because they look interesting. The best beginner workflow is small, controlled, and easy to explain later. That approach also maps well to the guided labs and structured practice in cybersecurity training programs like the CEH v13 course.
For official reference, review the Kali Linux “Should I Use Kali Linux?” guidance and the general use documentation. Those pages help prevent common beginner mistakes such as using Kali as a daily driver without thinking through exposure and scope.
Initial Reconnaissance
Reconnaissance is the process of gathering high-level information about a target before deeper testing begins. Done well, it tells you where to focus and where to stop.
Use passive reconnaissance when possible. Passive recon means you collect publicly available information without touching the target directly, such as DNS records, public websites, certificate details, or WHOIS data. Active reconnaissance means you send traffic to the target, such as ping sweeps or host discovery, which is only appropriate when your scope allows it.
Map what is visible first
Start with the target’s outward-facing identity. Check hostnames, subnets, DNS records, and the presence of public services. If the scope includes an internet-facing asset, you can inspect DNS with dig, nslookup, or a web browser, and you can check registration details with WHOIS tools.
Useful commands in a beginner workflow include dig example.com any, dig example.com mx, and whois example.com. If you are testing only an internal lab, look for private IP ranges, lab hostnames, and a known gateway so you can tie later scan results to the right machine.
- Passive targets: domain names, certificate transparency clues, public metadata, and company-owned websites.
- Active targets: live hosts, responding IPs, and reachable services on approved networks.
- Evidence to collect: timestamps, screenshots, and raw command output.
Reconnaissance findings become the baseline for every later check. If you cannot prove what you observed at this stage, it becomes harder to justify what you conclude later.
The Cybersecurity and Infrastructure Security Agency provides plain-language guidance on asset awareness and risk reduction, and the CIS Benchmarks help you understand what a hardened system should look like. Those references are useful when you start comparing what is exposed versus what should be exposed.
Port Scanning and Service Enumeration
Port scanning is the process of checking which network ports are open, closed, or filtered on a target. Service enumeration is the follow-up step where you identify what software or protocol is actually listening behind those ports.
In Kali Linux, nmap is the standard first choice for this work. A safe beginner scan might start with nmap -sS -Pn -sV --top-ports 100 192.168.1.10 in an authorized lab. The exact flags depend on the scope, but the point is the same: identify the visible attack surface without jumping straight to aggressive testing.
Read the result, not just the command
Open means something answered on that port. Closed means the host is reachable but no service is listening. Filtered means a firewall or packet filter is interfering, which can hide services or block probes.
Service versions matter because many vulnerabilities are tied to specific releases or build families. If nmap -sV identifies Apache, OpenSSH, Microsoft IIS, SMB, FTP, or a database service, note the exact version and any banner details. That gives you something concrete to compare with vendor advisories and CVE references later.
-
Run a discovery scan. Use
nmap -sn 192.168.1.0/24or your approved target range to identify live hosts. This is a quick way to map the segment before focusing on a single machine. -
Scan common ports. Use a targeted scan like
nmap -sS -Pn --top-ports 1000 -sV target-ip. Begin with common ports before moving to anything more exhaustive. - Interpret the state. Write down whether each result is open, closed, or filtered. That distinction affects whether later checks are even possible.
-
Record version information. Save the output to a file with
-oNor-oXso you can include it in your report. Evidence is easier to defend when it is captured at the moment you observed it. - Correlate the service to a likely role. Web server, remote access service, file share, or database service each suggests a different follow-up path. That correlation helps you prioritize review.
For deeper study, compare your scan output with the official Nmap Reference Guide. Nmap’s documentation is the right source when you need to verify how a flag behaves, especially if you are learning which options are safe for a first pass.
Web and Host Fingerprinting
Web application security starts with identifying what is actually exposed before you try to test it. Fingerprinting is the step where you look for clues about the platform, software stack, and device type without attempting exploitation.
Use a browser, curl, and basic header inspection to answer simple questions: Is there a login page? Is there an admin portal? Is the site redirecting from HTTP to HTTPS? Does the response reveal a framework or reverse proxy? Those details shape the rest of the assessment.
Look for the clues that matter
HTTP headers can reveal server type, security headers, cookie settings, and cache behavior. A command like curl -I https://target.example can show whether Strict-Transport-Security, Content-Security-Policy, or X-Frame-Options are present. Missing headers do not prove compromise, but they often point to weak hardening.
Page titles, default landing pages, and error messages are also useful. A default Apache page, a Jenkins login screen, or a router admin panel immediately changes your next steps. Directory structures can be probed gently with browser navigation or limited content discovery tools if your scope allows it.
- Check the response: headers, status codes, redirects, and cookies.
- Check the page: title, branding, version hints, and login forms.
- Check the path: admin panels, backup pages, and exposed directories.
- Check the device: appliance-like behavior, firmware clues, or embedded interfaces.
Stay in observation mode during this phase. A beginner’s job is to identify attack surface and document it, not to force access or trigger alarms without approval. That restraint is part of professional ethical hacking.
Useful references include the OWASP Top 10 for common web risks and the MDN Web Docs for understanding HTTP behavior and headers. If you need to explain why a missing security header matters, those are authoritative places to start.
Vulnerability Assessment Basics
Vulnerability assessment is the process of comparing what you found against known weaknesses so you can prioritize risk. It is not the same as compromise, and it is not proof that an exploit will work in production.
Begin with the services and versions you discovered. If a server is running an outdated web server, SSH daemon, file-sharing service, or database platform, compare that version with vendor advisories, CVE details, and trusted vulnerability sources. The goal is to find likely exposure, not to guess wildly.
Use scanners to prioritize, not to pretend you are done
Vulnerability scanners are useful because they can speed up triage across many services. They are not final proof. A scanner might report a high-risk issue when a patch is already backported, or it might miss a configuration problem that matters more than the package version itself.
That is why manual validation matters. For example, if a scanner says a web server might be vulnerable, verify the actual response headers, login behavior, accessible paths, and version strings before you write the issue up. If a configuration issue is involved, check whether the condition is reproducible from the test network and whether it is reachable in practice.
- Match service versions to advisories. Compare discovered software against vendor release notes and known vulnerability databases.
- Check exploitability. Ask whether the issue is reachable from your test position and whether authentication is required.
- Rank by impact. Put internet-facing services, credential exposure, and management interfaces near the top.
- Reduce false positives. Confirm details manually before labeling an issue as actionable.
- Consider business context. A low-severity issue on a critical asset may matter more than a medium issue on a lab system.
For trusted vulnerability reference, use the NIST National Vulnerability Database and, when applicable, the vendor’s own advisory pages. If you are mapping risk to common control expectations, the PCI Security Standards Council provides a good example of why weak exposure around payment environments gets treated seriously.
Basic Manual Verification
Manual verification is the step where you check whether a suspected weakness is real, reachable, and worth reporting. This is where beginners learn the difference between “interesting output” and “actionable evidence.”
Start with non-destructive checks. Look for weak default settings, exposed admin interfaces, unnecessary services, or obvious access control issues. If a web application exposes a directory listing, an admin page, or a backup file, verify the exposure by accessing it normally rather than trying to force anything open.
Validate the finding, not your assumptions
When credentials or authentication are involved, only test default or known credentials if the engagement explicitly permits it. The goal is to confirm whether a configuration is weak, not to perform unauthorized brute force. For file shares or network services, verify access from the approved test host and record whether permission is granted or denied.
Good evidence includes exact commands, timestamps, URL paths, screenshots, and raw output. If you used curl, keep the response headers. If you reviewed a web resource, capture the page and the path. If you checked a share, record the access method and the result.
- Default settings: unchanged banners, default pages, or example content.
- Management interfaces: exposed admin panels, device consoles, or dashboards.
- Access control: files or directories accessible without the intended restriction.
- Reproducibility: the issue appears the same on repeat checks.
For host and web validation techniques, the HTTP specifications and the MDN HTTP headers reference are practical sources. If your result depends on how a browser or service responds, understanding the protocol is part of good verification.
Reporting Findings and Recommendations
Security reporting is the deliverable that turns technical observations into decisions. A good report tells a reader what you tested, what you found, why it matters, and what to fix first.
Write the summary in plain language. State the objective, scope, methods used, and overall security posture. Avoid dramatic wording. Decision-makers need concise facts, not theater.
Make the report actionable
Each finding should include severity, impact, evidence, and reproduction notes. If the issue is a weak configuration, say what the configuration is, how you confirmed it, and what an attacker could gain. If the issue is an exposed service, say why that service matters and whether it is expected to be public.
Recommendations should be practical. Common remediations include patching, service removal, stronger authentication, network restriction, configuration hardening, and better logging. If the fix will affect availability, state that clearly and suggest maintenance-window timing if needed.
- Summarize scope and objective. Keep this short and factual so readers know what was tested.
- List findings by severity. Put the most urgent issues first and keep the ranking consistent.
- Attach evidence. Include screenshots, scan excerpts, timestamps, and command output.
- State remediation steps. Give the fix, not just the problem.
- Prioritize next actions. Tell stakeholders what to do immediately and what to schedule later.
For reporting discipline and risk framing, the CISA Secure Our World resources are a good reminder that action beats awareness alone. If you want to understand how employers value communication and analysis, the BLS information security analyst profile reinforces that analysis and reporting are core parts of the role.
Key Takeaway
- Penetration testing is a legal, authorized process designed to find weaknesses before attackers do.
- Kali Linux works best when it is updated, isolated, and used with a clear target and scope.
- Reconnaissance, scanning, and service enumeration are about building evidence, not just generating output.
- Manual verification reduces false positives and tells you whether a finding is actually reachable.
- Reporting is part of the test itself because risk only gets reduced when findings are communicated clearly.
How to Verify It Worked
Verification means checking that each stage produced usable, defensible results. If you cannot verify the result, you do not yet have a finding.
For reconnaissance, success looks like a documented list of target hosts, domains, or subnets with timestamps and supporting output. For scanning, success means you can identify open, closed, and filtered ports and explain why the results matter. For validation, success means a finding can be repeated from the approved test network without causing harm.
What good output looks like
If you ran nmap, you should have a readable map of live hosts and at least one service or version result tied to a specific IP address. If you checked headers with curl -I, you should be able to point to response headers or missing headers that matter. If you reviewed a web page, you should have screenshots or saved HTML showing the exact URL and page behavior.
- Recon success: you know which hosts exist and why you think they are in scope.
- Scan success: you can explain the port state and service version for each important service.
- Validation success: a manual check reproduces the condition without guesswork.
- Reporting success: someone else could follow your notes and confirm the same result.
Common failure symptoms include scanning the wrong interface, mixing up private and public IP ranges, reading banners too literally, or mistaking a scanner warning for a confirmed issue. Another common problem is failing to record the exact command used, which makes later review frustrating and weakens credibility.
Pro Tip
Save raw scan output immediately and annotate it while the results are still fresh. A clean evidence trail is more valuable than a pile of screenshots with no context.
For validation discipline, the FIRST CVSS standard is helpful when you need to explain severity in a consistent way, and the MITRE ATT&CK framework helps you describe adversary behavior without relying on vague language. Those references make your reporting easier to compare with other security work.
Why This Workflow Matters for Ethical Hacking Training
Ethical hacking is built on repeatable procedure, not improvisation. A beginner who learns scope, recon, scanning, validation, and reporting will progress much faster than someone who only chases tools.
This is also why structured cybersecurity training matters. Tools like Kali Linux are useful, but they are only part of the job. The real skill is deciding what to test, how to test it safely, and how to explain the result in a way that supports remediation. That is the same discipline emphasized in the Certified Ethical Hacker (CEH) v13 course and in practical lab-based learning.
Career data supports the value of this skill set. The Robert Half Salary Guide consistently shows strong compensation for security-focused roles, while the Glassdoor Salaries database and PayScale CEH salary data are commonly used to compare certifications and experience levels. For broader occupational context, the BLS Occupational Outlook Handbook remains the baseline reference for labor-market trends.
If you are wondering how hackers learn to hack in a legitimate way, the answer is usually the same: they study systems, practice in labs, document outcomes, and learn to think in stages. That is the professional path, not the reckless one.
Certified Ethical Hacker (CEH) v13
Learn essential ethical hacking skills to identify vulnerabilities, strengthen security measures, and protect organizations from cyber threats effectively
Get this course on Udemy at the lowest price →Conclusion
A basic penetration test is a structured, authorized process for finding and reducing risk. The beginner workflow is straightforward: define scope, set up Kali Linux, gather reconnaissance, scan for services, validate findings carefully, and report with evidence.
If you want to get better, keep your work legal, repeatable, and well documented. Build a checklist, save your outputs, and compare what you see against vendor advisories and trusted security references. That habit will do more for your growth than chasing flashy techniques ever will.
For the next step, practice this workflow in a safe lab and pair it with official documentation from Kali Linux Docs, OWASP, and the NIST resources cited above. Then apply the same checklist every time so your results become faster, safer, and easier to trust.
CompTIA®, Cisco®, Microsoft®, AWS®, EC-Council®, ISC2®, ISACA®, and PMI® are trademarks of their respective owners.
