Creating a repeatable REST security assessment checklist
Creating a repeatable REST security assessment checklist connects a security requirement to the behaviour of a real feature. The relevant controls need to remain effective across custom code, integrations and the production configuration. Understanding repeatable rest security assessment checklist helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Security architecture describes assets, identities, trust boundaries and the controls expected between components. Documentation is useful when it reflects real deployment and helps reviewers test important assumptions, rather than simply listing products or broad intentions.
Web Services are an implementation of web technology used for machine to machine communication. As such they are used for Inter application communication, Web 2.0 and Mashups and by desktop and mobile applications to call a server.
RESTful web services (often called simply REST) are a light weight variant of Web Services based on the RESTful design pattern. In practice RESTful web services utilizes HTTP requests that are similar to regular HTTP calls in contrast with other Web Services technologies such as SOAP which utilizes a complex protocol.
Why it matters
Consider a realistic failure: an API review checks happy-path responses but omits roles, ownership, alternate methods and expensive operations.
An undocumented trust assumption can leave a feature depending on a check that no component actually performs. Gaps may span applications, services and operational processes, making ownership and verification especially important.
Implementation guidance should be applied to a real feature and its deployment. Framework defaults, custom handlers and integrated services all influence whether the intended protection remains effective.
How penetration testers check for it
Trace the relevant feature from its entry point to the data or operation it protects, including custom code and alternate paths.
- Map sensitive data and consequential operations.
- Identify the component responsible for each security decision.
- Compare documented trust relationships with deployment and code.
- Record assumptions, exceptions and evidence of enforcement.
How to fix it
Use the appropriate maintained mechanisms and verify the result in the actual production configuration.
- Use of HTTP methods (GET, POST, PUT and DELETE) as the primary verb for the requested operation.
- Structured parameters and responses using JSON or XML in a parameter values, request body or response body. Those are required to communicate machine useful information.
- Custom authentication and session management, often utilizing custom security tokens: this is needed as machine to machine communication does not allow for login sequences.
- Inspecting the application does not reveal the attack surface, I.e. the URLs and parameter structure used by the RESTful web service. The reasons are.
- Reduce unnecessary trust and privilege between components.
- Verify important requirements through focused review and testing.
A diagram or checklist is planning evidence, not proof that a control works. Assurance comes from connecting the stated requirement to implementation and observed behaviour.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Implementing secure REST request and response handling
- Creating a consistent vocabulary for application security events
- Implementing Django REST Framework security controls
Read about our methodology or contact pentested.com to discuss secure development and code review.