Skip to content
TestLine Menu
TestLine
QA process

When you need security testing and what a QA tester can't replace

The line between a basic access check in functional testing and penetration testing, situations where a pentest is necessary and what to prepare beforehand.

author
Artur Machowski, Senior QA Engineer
published
reading
5 min

Short answer

A regular QA tester checks the basics as part of functional testing: that data can’t be fetched without logging in or with someone else’s ID, that roles see only what they should, that the session ends on logout, that error messages don’t show technical details. They can’t replace a penetration test, where a security specialist tries to break into the app by chaining weaknesses. A pentest is needed before launching an app with personal, financial or medical data, when a client, tender or regulation requires it, after a major architecture change, and periodically, usually once a year.

What a QA tester checks and what a security specialist checks

areaQA tester in functional testingpenetration test
data accesssomeone else’s ID in the URL, a role without permissionsbypassing permissions with various techniques, chaining weaknesses
login and sessionlogout, session expiry, password resetsession hijacking, attacks on tokens, brute-forcing passwords
input datafield validation, long text, special characterscode injection (SQL, scripts), attacks on parsers
errorsno stack traces or server names in responseshunting for infrastructure details through every channel
configurationvisible symptoms, e.g. staging open to the publicheaders, encryption, services on the server, the cloud
dependenciesnoneknown library vulnerabilities and exploiting them

The left column is part of regular testing and worth checking in every release, for example through negative API test scenarios and data separation in SaaS. The right column is a separate specialism.

When a penetration test is needed

  • before launching an app that processes personal, financial or medical data;
  • when a client, tender or regulation requires it, e.g. the PCI DSS standard for processing payment cards or industry rules;
  • after a major change: a new architecture, a new login method, a new payment integration;
  • periodically, usually once a year;
  • after a security incident.

What else to check in a financial app besides security, I describe in the guide how to test a fintech app.

What to have between pentests

  • automated dependency scanning in CI (e.g. Dependabot, npm audit, OWASP Dependency-Check);
  • scanning of configuration and headers;
  • code review with a list of typical mistakes, e.g. based on the OWASP Top 10;
  • basic data access tests in the regression suite.

These don’t replace a pentest, but they mean the pentest finds the hard things rather than the obvious ones.

How to prepare for a pentest

  1. Scope: URLs, apps, APIs, and what’s out of scope.
  2. An environment similar to production, with test data.
  3. Accounts for each role.
  4. API documentation, e.g. OpenAPI.
  5. A time window and a contact person on your side.
  6. Permission from the infrastructure owner, including the cloud or hosting provider, if it requires it.
  7. A plan for the findings: who fixes them, by when, and when the retest happens.

How I can help

I don’t do security testing or penetration tests. As part of functional testing I check the basics from the left column of the table, and in a QA audit I can point out whether and when it’s worth commissioning a pentest from a security specialist, and help prepare the environment and test accounts. Describe your project in the contact form.

Frequently asked questions

Can a QA tester do security testing?

A QA tester checks the basics as part of functional testing: that data can't be fetched without logging in or with someone else's ID, that sessions expire, that errors don't show technical details. A penetration test needs separate skills and tools, and usually a security specialist.

When is a penetration test needed?

Before launching an app that processes personal, financial or medical data, when a client, tender, regulation or standard requires it (e.g. PCI DSS for payment cards), after a major architecture change, and periodically, usually once a year.

How does a vulnerability scan differ from a penetration test?

A scan is an automated tool that looks for known problems, e.g. outdated library versions and bad configuration. A penetration test is a person trying to break into the app by chaining the weaknesses they find. A scan belongs in CI, a pentest is done periodically.

What should I prepare before a penetration test?

The scope (URLs, apps, APIs), an environment similar to production, accounts for each role, API documentation, a time window, a contact person and permission for the testing from the infrastructure owner, including the cloud provider if it requires it.

Do you do security testing?

No. As part of functional testing I check the basics of data access and error handling, but I don't do security testing or penetration tests. That needs a security specialist.

Got a release in a few weeks?

Describe your project in the form. I'll reply with questions about scope or an initial test plan.