To become a penetration tester, build IT fundamentals in networking, Linux and scripting, practise legally in labs such as TryHackMe and Hack The Box, earn Security+ then a hands-on certification such as OSCP or PenTest+, build a portfolio of write-ups, and apply for junior pentest or SOC roles. Most testers take 2 to 4 years from starting out.
Key takeaways
- Start with networking, Linux and Python or Bash — then practise every day in legal labs.
- Security+ first, then a hands-on pentest certification: OSCP is the industry standard, PenTest+ is the structured alternative.
- A portfolio of lab write-ups and CTF results matters as much as certificates for your first job.
A penetration tester — a pentester — is paid to break into computer systems, legally. Companies hire them to find the weaknesses before criminals do, then explain how to fix them. It is one of the most sought-after jobs in cybersecurity, and it is reachable without a computer science degree if you build the skills in the right order.
What does a penetration tester do?
A penetration tester simulates real attacks against a system, network or web application — with written permission — to find security weaknesses before criminals exploit them. The work is only partly about hacking: the report you write afterwards, explaining each finding and how to fix it, is just as important as the exploit itself.
A typical engagement follows a clear pattern. First, planning and scoping: agreeing with the client which systems are in scope, when testing may happen, and what is off limits.
Then comes reconnaissance: learning about the target from public sources and scanning. Then testing: trying to exploit weaknesses safely and proving they are real. Finally, reporting: a written report with findings ranked by risk and clear fixes, followed by a debrief with the client.
Pentesters work in-house for large companies, for specialist security consultancies, or freelance. Many also compete in capture-the-flag competitions and practise in labs to keep their skills sharp.
How much do penetration testers earn?
There is no official occupation called "penetration tester" in US labor statistics, so the closest figure is for information security analysts. The US Bureau of Labor Statistics reports a median annual wage of $129,180 for information security analysts in May 2025, with employment projected to grow 21% from 2025 to 2035 — much faster than average — and about 14,100 openings a year.
Treat the median as a mid-career figure, not a starting salary. Junior pentesters and SOC analysts typically earn well below it; experienced testers, red teamers and specialists in cloud or web applications earn well above it. Pay also varies sharply by location, with the highest medians in Washington, Maryland and California, and by whether the role is in-house, consultancy or freelance.
What skills do you need to become a penetration tester?
Pentesting rests on four foundations. Without them, the hacking tools are just buttons you press without understanding what they do.
- Networking: TCP/IP, DNS, HTTP, ports, firewalls and how data moves across a network. CompTIA Network+ covers this well.
- Operating systems: Linux on the command line above all, plus Windows administration and Active Directory, since most corporate networks run on both.
- Scripting: Python first, Bash second, and enough PowerShell, JavaScript and SQL to read and adapt code you find.
- Web applications: how websites work, common flaws such as SQL injection and cross-site scripting, and the OWASP Top 10 list of the most critical web risks.
- Communication: writing clear reports and explaining risk to people who are not technical. This is what separates a good pentester from a good hobbyist.
You do not need to master all of this before you start practising. Learn enough to begin, then deepen each area as labs expose your gaps.
How to become a penetration tester: step by step
Follow these steps in order. Skipping the foundations is the most common reason beginners stall.
- Learn IT fundamentals (3–6 months). Networking, Linux and basic scripting. Use free resources and a home lab — a virtual machine you can break and rebuild.
- Practise daily in legal labs. Start with TryHackMe's Pre Security and Cyber Security 101 paths, then its Jr Penetration Tester path. Our guide to the best cybersecurity games compares the labs worth your time. Move to Hack The Box once guided rooms feel easy.
- Earn Security+. CompTIA Security+ is the foundation certification most employers expect, and it teaches the vocabulary hiring managers use. Exam voucher about $439 as of November 2026.
- Get an IT or security job. Helpdesk, network administration or a SOC analyst role gives you real systems experience and, often, an employer who pays for your next certification.
- Earn a hands-on pentest certification. OSCP, PenTest+ or a junior practical exam such as eJPT — see the comparison below.
- Build a portfolio. Write up lab machines and CTF challenges, publish them on a blog or GitHub, and keep notes on your method. Hiring managers read these.
- Apply for junior pentest roles. Look for junior penetration tester, associate pentester, security consultant and SOC analyst roles that mention pentesting. Tailor your CV to the job, not to your certificates.
- Specialize. Once employed, pick a direction: web applications, cloud, Active Directory, mobile or red teaming, and earn the advanced certification for it.
Which penetration testing certifications should you get?
There is no licence for penetration testers and no single required certification. The Bureau of Labor Statistics notes that many employers prefer candidates with information security certification, but the right choice depends on your stage and your target employers. Prices below are the issuers' published exam prices as of late 2026 — verify on the issuer's site before registering, as they change.
| Certification | Level | Exam format | Price (approx.) | Valid for |
|---|---|---|---|---|
| CompTIA Security+ | Foundation | Multiple choice, SY0-701 | About $439 | 3 years |
| INE eJPT | Junior hands-on | Practical exam | About $249 | Check INE |
| CompTIA PenTest+ | Professional | Up to 90 questions, 165 min, PT0-003 | About $439 | 3 years |
| EC-Council CEH | Professional | Multiple choice, 312-50 (v13) | About $950–$1,199 | Check EC-Council |
| OffSec OSCP / OSCP+ | Professional | 24-hour practical exam, PEN-200 | About $1,749 with course | OSCP: no expiry; OSCP+: 3 years |
| GIAC GPEN | Professional | 82 questions, 3 hours | About $999 | 4 years |
OSCP is the industry standard for proving practical skill — a 24-hour hands-on exam where you must compromise machines and write a report. OffSec lists no formal prerequisites but recommends solid TCP/IP networking, Windows and Linux administration, and Bash or Python scripting.
PenTest+ is the structured alternative: CompTIA recommends 3 to 4 years in a pentesting role plus Network+ and Security+ knowledge, though those are recommendations, not exam prerequisites. CEH is the most recognized by HR and government recruiters, but it is more theoretical than OSCP.
For a first hands-on exam, eJPT is cheaper and gentler than all three.
Where should you practise penetration testing?
Only ever practise on systems you own or that a platform explicitly provides. Testing a real website or network without permission is illegal, even if you mean well. The legal options are excellent:
- TryHackMe: guided paths from beginner to junior pentester, in the browser. Premium from $10.50/month billed annually on the official pricing page, with a large free tier.
- Hack The Box: unguided vulnerable machines and a guided Academy, for when TryHackMe feels easy.
- PortSwigger Web Security Academy: free web hacking labs from the makers of Burp Suite.
- OverTheWire: free Linux wargames, starting with Bandit.
- Your own home lab: virtual machines from VulnHub, run locally and isolated from your main network.
Practise like a professional from the start: take notes, screenshot your steps, and write a short report for each machine. That habit is what turns lab time into a portfolio.
How do you build a portfolio and get your first job?
Certificates get you past filters; a portfolio gets you the interview. Hiring managers for junior roles want evidence you can do the work, and the best evidence is written proof.
- Write up 5–10 lab machines with your method, what worked, what did not, and what you would do differently.
- Write one sample pentest report for a lab network, with findings ranked by risk and fixes a non-technical reader can follow.
- Enter CTF competitions and record your results and your role in the team.
- Publish a small tool or script — even a simple scanner — on GitHub.
- Consider bug bounties only through proper platforms and only within the published scope.
Apply widely and expect rejection. Junior pentest roles are competitive, and many testers enter through a SOC analyst or security analyst role first, then move sideways into pentesting once they are inside the company. That route is normal, not a failure.
Common mistakes to avoid
Do not collect certificates without practising — one hands-on exam and a portfolio beat five theory exams. Do not skip Linux and networking to get to the "fun" hacking faster; the fun parts depend on them. Do not practise on real systems, and do not pay for a bootcamp that promises a job in 90 days — no course can guarantee that.
And do not learn in secret. Join a community, ask questions, share write-ups and go to local meetups. Pentesting is a team skill, and the people who hire you are often the people you meet while learning. Our small business cybersecurity checklist is a useful reminder of the defensive side — the best pentesters understand what defenders actually do.
The bottom line
Becoming a penetration tester takes 2 to 4 years of steady work for most people: foundations, daily lab practice, Security+, a first security job, then a hands-on certification such as OSCP or PenTest+ and a portfolio that proves you can do the work. The demand is real — 21% job growth to 2035, according to the Bureau of Labor Statistics — and the barrier is persistence, not a degree.
Start today: open TryHackMe, finish one room, and write down what you learned. Then do it again tomorrow. You can test your defensive instincts in the meantime with our free phishing quiz — knowing how attacks look from the victim's side makes you a better tester.
Frequently asked questions
How long does it take to become a penetration tester?
Most people take 2 to 4 years from starting out, depending on their background. Someone already working in IT or networking can move faster, while a complete beginner needs time for fundamentals, labs and a first certification. There is no shortcut that skips hands-on practice.
Do you need a degree to become a penetration tester?
No, but it helps. The Bureau of Labor Statistics notes that information security analysts typically need a bachelor's degree, and many employers prefer one. In practice, employers in pentesting weigh demonstrable skills, labs, certifications and a portfolio heavily — many testers enter without a degree.
What is the best certification for a penetration tester?
OSCP from OffSec is the most recognized hands-on certification, with a 24-hour practical exam. CompTIA PenTest+ is a good structured alternative, and CEH is the one government job posts ask for most often. Start with Security+ before any of them.
How much do penetration testers earn?
There is no official BLS occupation called penetration tester. The closest, information security analysts, had a median wage of $129,180 in May 2025, with 21% job growth projected from 2025 to 2035 and about 14,100 openings a year. Junior pentesters typically earn less than the median; experienced testers earn more.
Is penetration testing legal?
Yes, when you have written permission. Penetration testers work under a signed agreement that defines exactly which systems they may test, when, and how. Testing any system without permission is illegal under computer misuse laws, even if your intentions are good.
Can I become a penetration tester with no IT experience?
Yes, but expect a longer path. Start with IT fundamentals — networking, operating systems and a first support or helpdesk role — while you practise in labs. The helpdesk-to-SOC-to-pentest route is one of the most common ways into the field.
What programming languages should a penetration tester learn?
Python first, for scripting and automation, and Bash for Linux work. Later, add enough JavaScript and SQL to understand web applications, and PowerShell for Windows environments. You do not need to be a software developer — you need to read code and write small tools.
What is the difference between a penetration tester and an ethical hacker?
The terms overlap heavily. Ethical hacker is the broad term for anyone who hacks with permission to improve security. Penetration tester is the job title for someone hired to test a specific system or network and report the findings. Most pentesters are ethical hackers; not all ethical hackers do formal pentests.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the U.S. Bureau of Labor Statistics Occupational Outlook Handbook and TryHackMe's official pricing and platform guidance.
How we write and fact-check →