Key Takeaways
- Risk to your company: a weakness you do not know about is one an attacker can use first. HKCERT logged 469 vulnerable-system incidents in Hong Kong in Q3 2026 alone.
- Penetration testing is a simulated attack by ethical hackers, under written permission, that proves which weaknesses can really be exploited.
- It goes deeper than vulnerability scanning: scans list known flaws, while testers chain flaws together and check business logic.
- Prepare by agreeing scope in writing and warning staff, then fix and retest what is found.
Your website passed every automated scan last quarter. A tester logs in as an ordinary customer, changes one number in the address bar, and is reading another customer's invoices. The gap between "no known flaws" and "cannot be broken" is exactly what penetration testing exists to close.
What is penetration testing?
Penetration testing, often shortened to pen testing, is an authorised, simulated cyberattack on your website, network, apps or staff. Certified ethical hackers use the same techniques as criminals, with written permission and agreed limits, to find which weaknesses can really be exploited, then rank each one by risk with clear steps to fix it.
Think of it as hiring a professional to try every door and window of your office after hours, with the landlord's signed permission, and then hand you a list of which locks failed and why.
The key word is authorised. Without written permission, the same activity can be an offence under Hong Kong law, for example section 161 of the Crimes Ordinance or section 27A of the Telecommunications Ordinance. That signed agreement, usually called the Rules of Engagement (RoE), is what separates a tester from an intruder.
How does a penetration test work?
A penetration test runs in five stages: agree the scope and rules in writing, gather information about the target, scan for weaknesses, try to exploit them safely, then report and retest. Hands-on testing of one system often takes days, while larger multi-system projects can run several weeks end to end.
A Hong Kong example. A 40-person logistics firm is about to launch a customer tracking portal. Before go-live it commissions a test of the portal and the API (application programming interface) behind it.
- Scoping and Rules of Engagement: the firm lists the portal address, test accounts, testing hours and what is off-limits, for example no denial-of-service tests during office hours.
- Reconnaissance: testers map subdomains, login pages and exposed services, just as an attacker would.
- Scanning: automated tools flag known vulnerabilities (CVEs, Common Vulnerabilities and Exposures) and misconfigurations.
- Exploitation: testers manually try to break in, for example by changing a shipment number to view another client's parcels, and record proof without damaging data.
- Report and retest: each finding is rated by severity, often with a CVSS (Common Vulnerability Scoring System) score, and checked again after the fix.
What types of penetration testing are there?
Penetration tests are grouped by target and by how much the tester knows in advance. Common targets are web applications, mobile apps, external networks, internal networks, cloud accounts and staff. By knowledge level, tests are black box with no inside information, grey box with a normal user account, or white box with full documentation.
| Type | What it tests |
|---|---|
| Web application | Websites, customer portals, web APIs, payment pages |
| Mobile app | iOS and Android apps and the APIs behind them |
| External network | Internet-facing IP addresses, firewalls, VPNs, mail servers |
| Internal network | Office network, Active Directory, file and ERP servers |
| Cloud | Cloud accounts, storage, access permissions |
| Social engineering | Staff responses to phishing emails, calls or visitors |
When does a business need a penetration test?
You need a penetration test when you hold personal data or take payments online, before launching or significantly changing a system, before a compliance audit, after a suspected incident, or when a client or regulator asks for proof. Most organisations in these situations test at least once a year, plus before major changes.
Warning signs you are overdue
- Your website or app has a login, a customer area or online payment, and nobody outside your IT team has ever tried to break it.
- You launched a new system, moved to the cloud or replaced core software in the last 12 months.
- A client, insurer or auditor has asked for a recent penetration test report.
Regulated sectors have firmer rules. The PCI DSS v4.0 card-payment standard (Requirement 11.4) expects internal and external penetration testing at least every 12 months and after significant changes. Banks follow the HKMA's technology risk guidance, and operators designated under the Protection of Critical Infrastructures (Computer Systems) Ordinance, in force since 1 January 2026, must carry out regular security risk assessments and audits.
The volume is rising: HKCERT recorded 4,404 security incidents in Q3 2026, about 15% more than a year earlier, including 469 vulnerable-system cases (HKCERT, 5 November 2026).
How do you prepare for a penetration test?
Preparation has two sides. Managers decide what to test, why and when, and approve the scope in writing. IT teams prepare test accounts, back up systems and name a contact for urgent findings. Telling staff in advance prevents false alarms and stops fraudsters from using the test as cover.
For managers and business owners
- Name the business risk you care about most: customer data, payments, downtime or a contract requirement.
- Approve a written scope and Rules of Engagement listing targets, dates, hours and exclusions.
- Ask for testers' certifications (for example OSCP or CREST) and a sample report before you sign.
For IT teams
- Prepare a test account for each user role, and a staging copy if production is too fragile.
- Take backups and agree a stop procedure if a system slows down.
- Tell your hosting or cloud provider if their terms require notice.
A company scenario: the fake tester
News of a security test travels. A finance clerk receives a call from someone who says he is "from the penetration testing company" and needs a small test transfer and the online banking OTP to "check the payment controls". It sounds plausible, because the clerk heard a test was coming.
Company rule: no penetration test ever requires a real transfer, a real password or an OTP from staff. Any request that mentions the security test goes to the named project contact, verified by calling a number from the staff directory, never the number the caller gives.
Send a short notice like this to your staff group before testing starts:
Security notice: From [date] to [date], an authorised company will test our website and systems.
You do not need to do anything.
No tester will ever ask you for a password, an OTP or a money transfer.
If anyone calls or emails about "the security test", do not act. Call [IT contact] on the number in the staff directory.
What should you do if a penetration test finds a critical flaw?
Treat a critical finding as an incident waiting to happen. Restrict or isolate the affected system first, apply the tester's recommended fix, then ask for a retest to confirm it is closed. If the tester sees signs that someone already got in, switch to incident response, preserve logs and report it.
- Within 24 hours: confirm the finding with the tester, restrict access to the affected system or feature, and brief the system owner.
- Within days: patch, change the configuration or rewrite the faulty logic, and rotate any passwords or keys the tester could reach.
- After fixing: request a retest and keep the clean report as evidence for auditors, clients and insurers.
- If there are signs of a real breach: preserve logs, call the HKCERT hotline on 8105 6060 and report crime to the police. If personal data may have leaked, consider notifying the Office of the Privacy Commissioner for Personal Data and affected customers.
- If money was lost to a related scam: call the police Anti-Scam Helpline 18222 straight away.
Penetration testing vs vulnerability scanning: what's the difference?
Vulnerability scanning is an automated, broad check for known flaws that you can run monthly or quarterly. Penetration testing is a deeper, mostly manual exercise in which people chain flaws together and test business logic. Scanning tells you what might be wrong; a penetration test shows what an attacker can actually do.
| Vulnerability scanning | Penetration testing | |
|---|---|---|
| Method | Automated tools | Certified testers plus tools |
| Depth | Known flaws, broad coverage | Chains flaws into real attack paths |
| Business-logic flaws | Usually missed | Can be found and proven |
| Typical frequency | Monthly or quarterly | Yearly and before major changes |
| Best for | Catching new known issues fast | Proving real-world risk |
The two work together rather than replace each other. For the scanning side, read our guide to what vulnerability scanning is.
The bottom line on penetration testing
A penetration test answers one practical question: if a determined attacker targeted your business today, what could they reach? Scans and policies help, but only an authorised attempt to break in proves where the real gaps are. Test at least yearly, test before big changes, fix what is found and keep the retest report.
60-second self-check
- Do we know every website, app and system we expose to the internet?
- Has anyone outside our IT team tried to break in within the last 12 months?
- Does every critical security finding have an owner and a fix deadline?
- Do staff know no tester will ever ask for passwords, OTPs or transfers?
- Can we show a clean retest report to a client or auditor?
Find your weak spots before attackers do
UD Security's CREST- and OSCP-certified team tests web applications, mobile apps, networks and intranets to OWASP, PTES and NIST methods, with a retest and Clearance Letter included. Our 100% local team, never outsourced, has served Hong Kong businesses since 1998.
Frequently Asked Questions
How much does a penetration test cost in Hong Kong?
Cost depends on scope: the number of systems, user roles and API endpoints, and whether a retest is included. A single small website costs far less than a test across apps, networks and cloud, so ask for a quote after a scoping call rather than a flat price.
Is penetration testing legal in Hong Kong?
Yes, when the system owner gives written authorisation that defines targets and limits. Testing a system without permission can be an offence, for example under section 161 of the Crimes Ordinance, so never test a system you do not own or control.
Can a penetration test guarantee we will not be hacked?
No. A test is a snapshot of agreed systems on given dates. New code, new staff and newly discovered vulnerabilities change your risk, so combine yearly tests with regular scanning, patching, monitoring and staff awareness training.