DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • The Role of Penetration Testing in Strengthening Cyber Defenses
  • Keep Your Application Secrets Secret
  • What Is API-First?
  • Update User Details in API Test Client Using REST Assured [Video]

Trending

  • Data Contracts as the "Circuit Breaker" for Model Reliability
  • Contract-First Integration: Building Scalable Systems With Flyway, OpenAPI, and Kafka
  • Your AI Agent Tests Are Passing, But Your Agent Is Still Broken
  • Building a DevOps-Ready Internal Developer Platform: A Hands-On Guide to Golden Paths, Self-Service, and Automated Delivery Pipelines
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Testing, Tools, and Frameworks
  4. Penetration Test Types for (REST) API Security Tests

Penetration Test Types for (REST) API Security Tests

Penetration testing for REST API security provides a comprehensive testing method and is supported by a number of open source and proprietary tools.

By 
Hari Subramanian user avatar
Hari Subramanian
·
Feb. 05, 20 · Analysis
Likes (4)
Comment
Save
Tweet
Share
20.5K Views

Join the DZone community and get the full member experience.

Join For Free

Black Box, Grey Box, and White Box Pen Tests

In my last article, we discussed Penetration tests, or pen tests, the importance of pen tests, and how it helps to find the REST API vulnerabilities. 

This article gives a brief overview of one of the pen tests type called white box pen tests. There are two more types called black box and grey box testing. However, black box and grey box penetration tests assume the tester has only limited knowledge about the target system, and this article focus is on API pen tests also discussed a few details on why it is a preferred test type of API penetration tests and summarized with a few tools that enable the pen tests for our APIs.

White Box Penetration Testing

White box testing is also known as structure, open box, clear box, and glass box testing. The white box pen test is a comprehensive testing methodology, as one gets a whole range of information about schema, source code, models and so on before starting the testing. White box tests intended to scrutinize the code and catch any design and development errors. It is a simulation of an internal security attack.

You may also enjoy: Software Testing Tutorial: How to Perform Testing


The API pen tests rely on white box testing because

  • The tests run on all independent paths of a module.

  • The tests confirm and verify that all logical decisions (true/false) inside the code.

  • The tests execute syntax checking, and so fihe typographical errors which are critical to finding code injections and SQL injections attack.

  • The tests find the design errors caused by a mismatch of the logical flow of the program and the actual execution. (Design for intent)

There are plenty of tools available as open source and commercial versions that can scan code, check for malicious codes, finds security loopholes by data encryption techniques, even find hardcoded username and passwords.

Few of the tools are listed down in the following table (both commercial and open source versions) with the intention of readers to aware of various tools that give out-of-box pen tests capabilities.  

Nmap

OpenSSL

Pure Hacking

Nessus

Cain & Abel

Torrid Networks

Metasploit

THC Hydra

SecPoint

Wireshark

w3af

Veracode

It's important that one aware of REST API vulnerabilities and common causes of those vulnerabilities then aware of how we can find those vulnerabilities as part of the testing cycle. 

API Testing REST Web Protocols White box (software engineering) security Penetration test White-box testing Open source Black box

Opinions expressed by DZone contributors are their own.

Related

  • The Role of Penetration Testing in Strengthening Cyber Defenses
  • Keep Your Application Secrets Secret
  • What Is API-First?
  • Update User Details in API Test Client Using REST Assured [Video]

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook