liveBook · Manning

Threat prioritization

As explained in Secure APIs

Threat prioritization is the process of identifying potential threats and ranking them according to factors such as likelihood and business effect.

Threat prioritization identifies ways an API could be broken into or abused, then ranks those threats so the team can decide what requires attention. It answers “What can go wrong?” within a broader threat-modeling process. section 2.2 section 2.2.2

Use STRIDE to examine threats from several angles:

  • Spoofing: stealing credentials or taking over accounts. section 2.2.2
  • Tampering: corrupting data or performing unintended updates. section 2.2.2
  • Repudiation: losing the ability to prove who performed an action. section 2.2.2
  • Information disclosure, denial of service, and elevation of privileges: exposing sensitive data, making the system unavailable, or gaining unauthorized permissions. section 2.2.2

Listing endpoint

For a GET /products endpoint, ask whether a malicious user can exploit SQL injection to bypass access controls. Similar questions can test whether attackers can steal access tokens, access another user’s data, or obtain system configuration details. Team brainstorming sessions or the Elevation of Privilege game can help generate threats when starting out. section 2.2 section 2.2.2

Figure 2.5 Each threat category in STRIDE represents a strategy for breaking into our system or stealing data from our APIs.
figure

Use the STRIDE figure to scan for strategies attackers might use to break into the system or steal API data. section 2.2.2

How Secure APIs covers it

How deep it goes
Explains the four-step process and STRIDE categories, but does not detail a scoring formula or ranking criteria.
Examples
Uses SQL injection, token-signature weakness, access-token theft, authorization bypass, and cross-user data access as threat examples.
What it assumes
Assumes a system to analyze and team participation, while starting with threat modeling’s basic guiding questions.
What you can do after
Apply it via STRIDE to brainstorm and categorize ways attackers can break into or abuse an API.
How it connects
Connects threat prioritization to application decomposition, response and mitigations, review and validation, and STRIDE.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.