Penetration is the moment an attacker gets past your defences and into your systems, and this guide sets out how to protect against penetration and how penetration testing checks that protection. It covers how attackers get in, hardening, patching, vulnerability scanning, penetration testing and how often to test.
Most attacks rely on ordinary weaknesses such as an unpatched system, a service left open to the internet, a default password or a stolen login. The measures businesses can take to protect against penetration include knowing every system they run, applying updates quickly, closing anything that does not need to be reachable, controlling access, scanning regularly for known weaknesses and commissioning a penetration test to check the defences hold.
Stolen logins have their own guide, What Is Multi-Factor Authentication and Why It Matters.
How Attackers Get Into a Business’s Systems
A vulnerability is a weakness an attacker can use to get into a system. The NCSC’s explanation of vulnerabilities traces them to flaws in software, features that can be misused and simple mistakes.
The same few routes in come up again and again:
- Unpatched software. Once a fix is published, attackers race to use the weakness before businesses update.
- Services open to the internet. Remote access, web servers and management pages anyone can reach.
- Default settings. Equipment and software left as they came out of the box, passwords included.
- Forgotten systems. Old servers, trial software and cloud services that nobody is watching.
- Stolen logins. Passwords taken by phishing and used to sign in as a real member of staff.
Once inside, an attacker tries to move from that first foothold towards the systems and data that matter most, so protection works in layers.
Hardening Your Systems
Hardening means reducing the ways into your systems. Cyber Essentials sets five technical controls as the starting point: firewalls, secure configuration, security update management, user access control and malware protection. Hardening covers:
- A record of everything. Devices, software, cloud services and anything reachable from the internet, because a system nobody knows about never gets protected.
- Firewalls set up properly. Correctly configured firewalls let through only the traffic and services the business needs.
- Secure configuration. Unused accounts and software removed, and default passwords and settings changed.
- Access kept to what each role needs. Administrator rights limited, and access removed when people leave or change role.
- A network split into zones. A foothold in one area should not reach everything else.
Penetration testers told the NCSC that splitting networks up, with good logging and monitoring, makes their job harder.
Patching and Security Updates
Patching means installing the security updates that software makers release to fix weaknesses. It deals with the software flaws most common attacks exploit, and it cannot wait, because a published fix shows attackers where to look.
The NCSC’s vulnerability management guidance advises applying updates as soon as possible and ideally automatically, with best-practice timescales of 5 days for internet-facing services and 7 days for operating systems and applications. For Cyber Essentials, IASME’s update on Cyber Essentials changes for April 2026 confirms that high-risk and critical updates must be installed within 14 days of release.
The GOV.UK Cyber Security Breaches Survey 2025/2026 found that 34% of businesses had a policy to apply software security updates within 14 days.
Automatic updates make this easier to sustain. Hardware and software that no longer receives security updates needs replacing, because no patch will ever arrive for it.
Vulnerability Scanning
Vulnerability scanning uses an automated tool to check systems for known weaknesses, such as missing updates, risky settings and services that should not be exposed. A scan is quick, cheap and repeatable, so it becomes the everyday check that patching and hardening are working.
If everything cannot be scanned, start with internet-facing systems, systems that run the business and systems holding sensitive data, and note anything left out.
The NCSC recommends scanning infrastructure at least once a month, and again straight after fixing a critical issue, in its guidance on vulnerability scanning tools and services.
A clean scan is not proof of safety. A scanner only finds weaknesses its rules know about, so anything new, complex or unusual can slip past, which is where penetration testing comes in.
What Is Penetration Testing?
Penetration testing is an authorised attempt to break into your own systems, carried out by skilled testers using the same tools and techniques an attacker would. This is close to the NCSC’s own definition of penetration testing.
Where a scan lists possible weaknesses, a penetration test shows whether they can be used and how far an attacker could get. Tests vary in approach:
- External testing. Testers start with little or no inside knowledge, as an outside attacker would.
- Open testing. Testers are given full details, so they can check systems thoroughly.
- Scenario testing. Testers explore a specific situation, such as a lost laptop or an unknown device plugged into the office network.
The NCSC’s guidance on getting the most from penetration testing makes the point that, ideally, you should know what testers will find before they find it. Many surprises point to a gap in how weaknesses are found and fixed day to day.
Scans, Penetration Tests and Audits Compared
A vulnerability scan finds known weaknesses automatically, a penetration test checks whether weaknesses can be exploited, and a Cyber Security Audit reviews the wider set of controls, policies and processes.
- Vulnerability scan. Automated, frequent and broad, but limited to known issues.
- Penetration test. Hands-on and in depth, within an agreed and authorised scope, at a point in time.
- Cyber Security Audit. A structured review of how security is set up and managed, with prioritised recommendations.
- Remediation. The updates, configuration changes and process fixes that close the gaps.
Each answers a different question, so one does not replace another. The same GOV.UK survey found that 18% of businesses had carried out a cyber security vulnerability audit in the past year and 13% had carried out penetration testing. Cyber Security Audit in Kent explains how an audit is scoped.
How Often Should You Test?
Scan at least monthly, and commission a penetration test at regular intervals and after any significant change. A practical rhythm looks like this:
- Every month. Vulnerability scans of your infrastructure, and again after fixing anything critical.
- On a regular cycle. A penetration test of the systems that matter most, more often for anything reachable from the internet or changing quickly.
- After a big change. A new system, a new way of working remotely or a move to a new cloud service.
- Before a key moment. A tender, an insurance review or a Cyber Essentials application.
A penetration test only shows the position on the day it runs. Up to a year or more often passes between tests, so scanning and patching must cover the time in between.
Getting Value From a Penetration Test
A penetration test is only worth what happens after it.
- Agree the scope together. The people who own the risks and those who run the systems agree what is tested and why.
- Plan for critical systems. Decide when testing runs and how sensitive systems are handled, because no test can rule out unexpected effects.
- Keep someone available. A named technical contact who can hear about anything serious straight away.
- Expect a clear report. Each issue found, the level of risk it poses and a way to fix it, ideally with a debrief.
- Fix by priority, then retest. Judge each risk yourself, fix the most serious first and confirm the fixes work.
Testers should be qualified and experienced, because the quality of a test depends on the people doing it. The NCSC’s penetration testing guidance goes further into scoping and reporting.
What to Expect From a Cyber Security Provider
Protecting against penetration is ongoing work. Look for:
- Clear scope in plain English. What will be scanned, tested or reviewed, and what will not.
- Honest distinctions. Scans, penetration tests, audits and remediation explained as the different things they are.
- The right specialists. Experienced testers for each job, with specialist testers brought in for deep or unusual systems.
- Findings you can act on. Risks ranked by their impact on your business, with practical next steps and help to fix them.
- Cultural fit. A provider that makes time to understand how you work, what matters to your business and what your goals are. Plain English, the same familiar people and regular updates.
For ongoing protection, including regular scanning and patching, see Cyber Security Services in Kent. More guidance is in How to Protect Your Business.
FAQs about How to Protect Against Penetration
Penetration testing is an authorised attempt to break into a business’s systems by skilled testers using the same tools and techniques as a real attacker. It shows whether weaknesses can be exploited and how far an attacker could get.
Keep a record of every system, apply security updates quickly, close services that do not need to be reachable, change default settings, limit access and protect logins with Multi-Factor Authentication. Regular vulnerability scanning and periodic penetration testing then check that those defences hold.
At regular intervals for the systems that matter most, and after any significant change, such as a new system or a new internet-facing service. Vulnerability scans should run far more often, at least monthly, to cover the time between tests.
No. A vulnerability scan is an automated check for known weaknesses, while a penetration test uses skilled people to find out whether weaknesses can actually be exploited.
Not as a first step. Updates, secure settings and regular scanning deal with the most common weaknesses at lower cost. A penetration test is most useful once those are in place, to check they hold.
It can. Testers should take care to avoid any impact, but no penetration test can guarantee there will be no unexpected effects. Agree beforehand when testing runs and how critical systems are handled, and keep a technical contact available throughout.
Qualified, experienced testers, because the quality of a penetration test depends on the people doing it. Public sector bodies and critical national infrastructure organisations can use the NCSC’s CHECK scheme of assured providers, and systems with unusual equipment need testers with experience of it.

