what is a pentest
What Is a Pentest? How It Differs from VA, What Drives the Cost and How to Choose a Tester
What Is a Pentest? How It Differs from VA, What Drives the Cost and How to Choose a Tester
If your organisation runs a website, web application or API that holds customer data, there is one question you should be able to answer: "If someone deliberately attacked us, how well would our systems hold up?" Penetration testing, or a pentest, is the way to find that answer before someone with bad intentions does.
This article explains what a pentest is, how it differs from vulnerability scanning (VA), what types there are, who needs one, what drives the cost and how to choose a provider. It draws on standards and on notifications from Thai authorities that you can check for yourself.
Why this matters more every year
- The Verizon Data Breach Investigations Report 2026 found that almost one in three (31%) data breaches began with the exploitation of a vulnerability, and that for the first time in 19 years this route overtook the use of stolen credentials as the leading way in (Verizon, 19 May 2026).
- IBM's Cost of a Data Breach 2026 report puts the global average cost of a data breach at USD 4.99 million (IBM Newsroom, 29 Jul 2026).
- In Thailand, open data from the National Cyber Security Agency (NCSA), the government agency responsible for national cybersecurity, shows 2,135 recorded threat incidents in 2024 (BE 2567) and 4,325 in 2025 (BE 2568) (NCSA via GD Catalog).
These figures show that vulnerabilities in your systems are not a theoretical risk, and that finding out beforehand is far better than finding out after an incident.
What is a pentest?
NIST SP 800-115, a guide from the US National Institute of Standards and Technology, defines penetration testing as security testing in which assessors mimic real-world attacks to identify ways to circumvent the security features of an application, system or network (NIST SP 800-115).
Thailand's Website Security Standard BE 2568 (2025), issued by the National Cyber Security Committee, describes it in similar terms: penetration testing is a process for testing the accessibility and robustness of a system by simulating realistic attacks that might come from malicious actors, in order to find weaknesses in the system or application (Royal Gazette, Vol. 142, Special Part 305 Ngor, 16 Sep 2025). The Royal Gazette (Ratchakitchanubeksa) is Thailand's official government journal, in which laws and regulations are published.
Put simply, you hire authorised specialists to try to attack your systems using the same methods real attackers use, and then report how they got in, how much damage they could do and what needs to be fixed.
How does a pentest differ from a VA (vulnerability assessment)?
| Vulnerability Assessment (VA) | Penetration Testing (Pentest) | |
|---|---|---|
| Goal | Find and identify as many vulnerabilities as possible | Prove whether vulnerabilities can actually be exploited, and how serious the impact is |
| Method | Mainly automated scanning tools, followed by analysis of the results | Specialists test manually alongside tools, simulating a real attack |
| Frequency | Often, for example on a monthly or quarterly cycle | Periodically, for example before launch, after major changes or annually |
| Strengths | Broad coverage, repeatable, lower cost per round | Finds logic flaws, such as user A being able to see user B's data, which scanning tools usually miss |
| Limitations | Usually finds only known vulnerabilities, and can produce false positives | Coverage is limited to the agreed scope and time |
NIST SP 800-115 notes that vulnerability scanning generally identifies only surface-level vulnerabilities, cannot assess overall risk, and that scanning tools can have a high false-positive rate. The UK's National Cyber Security Centre (NCSC), meanwhile, recommends seeing a pentest as a way to gain assurance in an organisation's vulnerability assessment and management processes, not as the primary method for finding vulnerabilities (NCSC).
In short: organisations should have both. Run a VA regularly to catch known vulnerabilities, and a pentest periodically to find the vulnerabilities tools cannot, and to confirm that your security processes really work.
Black box, gray box and white box: what is the difference?
The Website Security Standard BE 2568 (2025) divides testing approaches according to how much information the tester is given: testing with no information (simulating an attack from outside), testing with full information (simulating an attack from inside), and testing with partial information. In the industry, these are usually called black box, white box and gray box respectively.
| Approach | What the tester gets | Best for | Limitations |
|---|---|---|---|
| Black box | Only a URL or IP address, just like an outsider | Seeing what the system exposes to the outside world | A lot of time goes on reconnaissance; may miss vulnerabilities behind the login page |
| Gray box | Test accounts for each user role, some documentation | Web apps with multiple user roles; testing access controls | Test accounts and test data have to be prepared |
| White box | Source code, architecture, configuration | The most thorough review, including database rules and server-side configuration | More information has to be disclosed, so a good confidentiality agreement is needed |
The NCSC warns that testing without giving any internal information may mean some vulnerabilities are not found within the allotted time. For web apps with a login system and multiple user roles, a gray box test therefore often gives better value for the same budget.
Who needs a pentest?
Organisations with explicit requirements
| Group | Requirement | Source |
|---|---|---|
| Financial institutions regulated by the Bank of Thailand (BOT) | Penetration testing by independent experts, covering at least the systems connected to public networks, at least once a year and whenever there is a significant change (Clause 6.7) | BOT Notification No. Sor.Kor.Chor. 5/2566 |
| Critical Information Infrastructure (CII) organisations | Must carry out a risk assessment and arrange a cybersecurity audit at least once a year (Section 54) | Cybersecurity Act BE 2562 (2019) |
| Government agencies and CII | The 2021 code of practice states that they "should consider" penetration testing of critical services, especially systems connected to the internet, at least once a year as necessary | Cybersecurity Regulating Committee notification on the code of practice, BE 2564 (2021) |
The Bank of Thailand is the country's central bank and financial regulator. Thailand's Cybersecurity Act is the main law governing national cybersecurity and the oversight of critical information infrastructure.
Note that the 2021 code of practice uses the words "should consider" for pentests, not "must". The exact requirement therefore depends on the type of organisation and the notifications that apply to it.
The Website Security Standard BE 2568 (2025)
The National Cyber Security Committee's notification on the Website Security Standard BE 2568 (2025) was published in the Royal Gazette on 16 Sep 2025 and comes into force once one year has passed from the date of publication. It requires government agencies, regulatory or supervisory bodies and CII organisations to comply with the standard; for private-sector organisations, the NCSA will encourage them to adopt it as guidance. In its section on vulnerability assessment, it states that vulnerability scanning should be carried out regularly, at intervals that should not exceed 90 days. On penetration testing, however, the wording is that organisations "may" consider carrying it out. (You can read more in our article on website security checks.)
For the full details of the requirements, the version published in the Royal Gazette is authoritative.
General businesses with no specific regulation
Although no law directly requires a pentest, Section 37(1) of Thailand's Personal Data Protection Act BE 2562 (2019), or PDPA, the country's main data-privacy law, requires data controllers to put in place appropriate security measures and to review them when necessary or when technology changes (unofficial translation by the PDPC). The law does not specify which methods must be used, but security testing is one way to help an organisation find out whether its existing measures actually work.
Times when general businesses typically commission a pentest:
- Before launching a new system that stores customer data
- After adding a major feature, such as payments, a membership system or changes to user permissions
- When a corporate customer or business partner asks for evidence of security
- After an incident, to find any remaining weaknesses
How a pentest should be carried out
- Agree the scope. Which systems, which URLs, which APIs, how many user roles, and whether testing is on the live system or on staging.
- Authorisation and proof of ownership. A legitimate provider will ask for written authorisation and verify that the client really owns the system, for example by asking you to add a DNS record.
- Rules of engagement. The testing window, what is off-limits (such as denial-of-service, or modifying or deleting data), and emergency contact channels.
- Testing within the agreed scope. A good provider will notify you immediately if a critical vulnerability is found.
- Reporting each vulnerability with its severity, evidence, impact and how to fix it.
- Remediation by the organisation's own development team.
- Retest to confirm the fixes really work.
What a good report should include
- An executive summary that can be understood without a technical background
- The scope, methodology and testing period
- For each vulnerability: description, severity, evidence, steps to reproduce, impact and remediation
- Severity ratings based on a recognised standard, such as FIRST's CVSS v4.0, published on 1 Nov 2023
- Mapping to reference standards, such as the OWASP Top 10:2025 or OWASP ASVS 5.0
- Retest results after remediation
What does the cost of a pentest depend on?
This article does not give price figures, because the price depends heavily on the scope of work, and the figures published in general are rarely comparable. The Website Security Standard BE 2568 (2025) itself lists factors in carrying out website penetration testing: the scope of testing, the testers (internal or external), the testing approach, the cost, and the reporting of results. In practice, the factors that make prices differ are as follows.
| Factor | Effect on price |
|---|---|
| Scope | The number of apps, screens, API endpoints and user roles; the more there are, the more time it takes |
| Approach | White box takes extra time for code review; gray box requires testing multiple roles |
| System complexity | Payment systems, integrations between multiple systems, complex business logic |
| Environment | Testing on the live system requires more care and may have to be done outside business hours |
| Report | Language, level of detail, presentation of results to executives |
| Retest | Included in the price or charged separately |
Tip: write a clear scope and send exactly the same one to every provider, so that you get quotes you can compare. The 2025 website standard also recommends considering quotes from several providers.
How to choose a pentest provider
The Website Security Standard BE 2568 (2025) offers guidance on choosing a provider under five headings, which works well as a checklist.
- Service model. Choose a provider that tests both with automated tools and with specialists, rather than simply running a scanner and sending you the output.
- Specialist capability. Look at penetration testing certifications such as OSCP, OSWE, GPEN, GWAPT or other relevant certifications.
- Credibility. Look at past work, reputation and client satisfaction.
- Data security. Working standards, background checks on staff, and insurance against damage.
- Cost. Compare quotes from several providers.
Further questions worth asking:
- Can we see a sample report (with client details redacted)?
- Which standard or methodology do you test against, for example the OWASP Web Security Testing Guide?
- How will data accessed during testing be handled, and how long will it be kept?
- If you find a critical vulnerability during testing, how will you tell us, and how quickly?
- Is a retest after remediation included?
- Will you ask for written authorisation and proof of system ownership before starting? (If not, treat it as a red flag.)
Preparing for a pentest
- Identify the systems, URLs, APIs and environments to be tested
- Prepare test accounts for each user role (for gray box testing)
- Back up your data and tell the relevant teams about the testing window
- Notify your hosting or cloud provider, if their terms of service require it
- Name emergency contacts on both sides
- Plan development team time for remediation once the report arrives
Summary
A pentest is a simulated attack carried out by authorised specialists to find vulnerabilities that scanning tools miss and to prove their real-world impact. It should be used alongside regular vulnerability scanning (VA). A gray box approach often gives good value for web apps with multiple user roles, the price depends mainly on scope, and when choosing a provider you should look at capability, credibility and data handling, not just price.
Want to know whether your systems are secure enough?
Prompt Lab Technology provides penetration testing and security assessments for web apps, APIs and cloud back-end systems, using black box, gray box and white box approaches, with written authorisation from the system owner, bilingual reports and a retest after remediation. See the details on our penetration testing and security assessment service page.
References
- National Cyber Security Committee. Notification on the Website Security Standard BE 2568 (2025) (in Thai). Royal Gazette, Vol. 142, Special Part 305 Ngor (16 Sep 2025), sections on vulnerability assessment and penetration testing, document pages 27–28. https://ratchakitcha.soc.go.th/documents/86192.pdf (accessed 2026-11-25)
- Cybersecurity Act BE 2562 (2019), Section 54 (in Thai). Royal Gazette, Vol. 136, Part 69 Kor (27 May 2019). https://ratchakitcha.soc.go.th/documents/17082306.pdf (accessed 2026-11-25)
- Cybersecurity Regulating Committee. Notification on the Code of Practice and Cybersecurity Standard Framework BE 2564 (2021) (in Thai), Clause 21.3. https://ratchakitcha.soc.go.th/documents/17176753.pdf (accessed 2026-11-25)
- Bank of Thailand. Notification No. Sor.Kor.Chor. 5/2566 on Regulations on Information Technology Risk Management (in Thai) (9 Nov 2023), Clause 6.7. https://www.bot.or.th/content/dam/bot/fipcs/documents/FOG/2566/ThaiPDF/25660202.pdf (accessed 2026-11-25)
- Personal Data Protection Act BE 2562 (2019), unofficial English translation (PDPC). https://www.pdpc.or.th/wp-content/uploads/2023/12/2_Personal-Data-Protection-Act-2019.pdf (accessed 2026-11-25)
- NCSA. Open data: Cyber threat reports (GD Catalog). https://gdcatalog.go.th/dataset/gdpublish-ro7irasuk (accessed 2026-11-25)
- NIST. SP 800-115: Technical Guide to Information Security Testing and Assessment (Sep 2008). https://csrc.nist.gov/pubs/sp/800/115/final (accessed 2026-11-25)
- NCSC (UK). Penetration testing. https://www.ncsc.gov.uk/guidance/penetration-testing (accessed 2026-11-25)
- Verizon. 2026 Data Breach Investigations Report (19 May 2026). https://www.verizon.com/about/news/breach-industry-wide-dbir-finds (accessed 2026-11-25)
- IBM Newsroom. Cost of a Data Breach 2026 (29 Jul 2026). https://newsroom.ibm.com/2026-07-29-ibm-study-one-in-four-malicious-breaches-are-ai-enabled,-costing-companies-6-million-on-average (accessed 2026-11-25)
- FIRST. CVSS v4.0 Specification Document. https://www.first.org/cvss/specification-document (accessed 2026-11-25)
- OWASP. Top 10:2025. https://top10.owasp.org/2025 · ASVS 5.0.0. https://asvs.owasp.org/ · Web Security Testing Guide. https://owasp.org/www-project-web-security-testing-guide/ (accessed 2026-11-25)
Frequently asked questions
What is the difference between a pentest and a VA?
A VA (vulnerability assessment) focuses on scanning for and identifying vulnerabilities as broadly and as regularly as possible. A pentest is a simulated real-world attack carried out by specialists to find out whether vulnerabilities can actually be exploited and how much damage they could cause. The two complement each other; one does not replace the other.
What does the cost of a pentest depend on?
It depends on the scope of the systems being tested, the number of screens, APIs and user roles, the testing approach (black, gray or white box), whether testing is done on the live system or on staging, the level of detail in the report, and whether a retest after fixes is included. It is best to request quotes from several providers using the same scope.
How often should we have a pentest?
It depends on your industry's requirements and the risk profile of the system. For example, financial institutions under Bank of Thailand Notification No. Sor.Kor.Chor. 5/2566 must test systems connected to the internet at least once a year and whenever there is a significant change. For general businesses, the common approach is to test before launching a new system, after major changes, and on a periodic review cycle.
Can a pentest bring a system down or damage data?
There is a risk, which is why the scope, the testing window and what is off-limits must be agreed in writing in advance: for example, no denial-of-service, no modifying or deleting data. If you have a staging environment, you should test on staging first.
Can we pentest someone else's system without permission?
No. Accessing another person's computer system without permission may be an offence under Thailand's computer crime law. A legitimate provider will always ask for written authorisation and verify ownership of the system before starting.
