Services / 03 · Prófun forritaskila

API testing

An API is often the shortest way to the data. It is tested on its own, without the interface that hides it: who may call, what they get back, and what happens when the call is not the one that was intended.

Carried out by
Andri Pétur Hafþórsson
Scope
Agreed in writing for each engagement
Authorisation
In writing, before testing starts
Deliverable
A report with evidence and advice
Price
Fixed quote after scoping

01 / Scope

What is tested

01

Authentication

How the API knows who is calling: keys, tokens and sessions.

02

Authorisation

Whether one user can reach another’s data, or a role gets more than it should.

03

Input and order

What happens when calls arrive in a different order, with different values, or more often than expected.

02 / Rules

Rules of engagement

Rule 01

Written authorisation

No testing starts without it.

Rule 02

Named scope

What the scope names is tested. Nothing outside it is touched.

Rule 03

Evidence

Each finding comes with evidence that it can be exploited.

03 / The engagement

Scope, duration and what is needed

Example scopes

  • One REST API with documentation.
  • A GraphQL endpoint with two roles.
  • The API behind a mobile app.

What determines duration

Duration depends on the size of the attack surface in scope.

  • The size of the scope: number of systems, roles and addresses.
  • How complex the system is and how well it is documented.
  • Whether accounts and material are ready when work starts.

What you provide

  • Documentation for the API.
  • Test keys for each role.
  • A test environment, or agreement to test in production.

Retest

Fixed-scope packages include one retest. For other work a retest is offered with the quote or ordered separately. An included retest is available for three months from delivery of the report.

No price list. A fixed quote follows scoping.

A lower quote is available if you accept in writing that testing of your public-facing surface may use lower-cost AI models whose provider may keep what is sent to it. See questions and answers.

04 / Deliverables

What you get

  • A report on every weakness that was found
  • Evidence for each finding
  • Advice on remediation
  • A walkthrough of the findings with you
See a sample report
A finding in the reportStructure
# Each finding in the report
what:   a description of the weakness
where:  the system or place it was found
proof:  how it was demonstrated
fix:    advice on remediation

05 / Compliance

What the results support

Results from this service are typically used as evidence towards these requirements:

NIS2
Measures are to be tested and their effectiveness assessed, vulnerabilities handled and staff trained (Article 21).
DORA
A testing programme for ICT systems, including vulnerability assessments and penetration tests (Articles 24 and 25). Threat-led penetration testing (TLPT, Article 26) has its own requirements and is outside this overview.
ISO/IEC 27001
Annex A controls on technical vulnerabilities, security testing, independent review and training.
PCI DSS
Penetration testing and verification of fixes (Requirement 11.4). Quarterly external scans by an Approved Scanning Vendor are outside this overview.
GDPR
Regular testing and evaluation of the security of processing (Article 32).

Supports and provides evidence for. Not certification and not a guarantee of compliance. Which requirements apply to you depends on your business.

06 / Carried out by

Andri Pétur Hafþórsson does the work himself. ISO/IEC 27001 · ISO/IEC 27701 · ISO/IEC 42001. Lead Auditor Fellow at Mastermind Certifications.

About Andri

What does the API answer when asked the wrong way?