Secure development

Writing abuse cases for application features

Trust boundaries: network, document, gate arranged to illustrate writing abuse cases for application features.

Writing abuse cases for application features 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 abuse cases for application features 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.

You can think of Abuse cases in two ways. The first is to discover attacks (answer the question "what can go wrong"), and the second is to help record those attacks (informally, this includes threats, issues, risks) in a form that may be less intimidating to developers.

The project OWASP Open SAMM proposes the following approach in the Stream B of the Security Practice Requirements Driven Testing for the Maturity level 2:

Why it matters

Consider a realistic failure: a normal product feature can be used repeatedly in a way that harms customers or the business.

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.

  • The application must defend against all attacks targeting this category of application.
  • The application must defend against attacks from the OWASP TOP 10.
  • Estimate the overhead of provision in the initial project/sprint charge that will be necessary to implement the countermeasures.
  • About countermeasures: Allow the project team to define them, and to determine in which location (network, infrastructure, code...) they should be located.
  • 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.

Read about our methodology or contact pentested.com to discuss secure development and code review.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo