← 返回列表

Threat models that keep up with the code

单站 ProjectDiscovery Blog 入库 2026-11-17T04:35:30

Neo maps trust boundaries from your design docs, API specs and architecture, updates the model as pull requests merge, and proves which threats are exploitable. Every version is kept for audit.

Threat modelsacme/checkout

Search components…

Internet

Public edge

Private VPC

Data

Customer

Partner API client

Collaborator

checkout.acme.com

api.acme.com

auth-service

orders-service

invoice-service

billing-worker

sessions (redis)

orders (postgres)

invoices (s3)

ledger (postgres)

T-03Cross-tenant invoice read

Validated

Abuse cases

Threat modelsacme/checkoutv13 → v14

acme/checkout #482

Add document sharing via email invite

MLMarco Leemerged 2h ago

DiffBoundariesAbuse cases

threat-model.yaml
12components:

13 - name: invoice-service

14 boundary: private-vpc

15 - name: share-service

16 boundary: private-vpc

17 exposes: [POST /share, GET /share/{token}]

18flows:

19 - customer → checkout.acme.com → orders-service

20 - external-collaborator → share.acme.com → share-service

21 crosses: internet → private-vpc

22 auth: bearer token, 7d expiry, no login

23data:

24 - store: s3://acme-invoices

25 readers: [invoice-service]

25 readers: [invoice-service, share-service]

26 external_read: true

27threats:

28 - T-05 refund workflow skips approval

29 - T-06 share token guessable or brute-forceable

30 - T-07 revoked share readable until token expiry

31 - T-08 invite allow-list bypass by token reuse

32accepted_risks:

33 - T-02 order total tampering, mitigated by server-side pricing

New abuse cases

Threat modelsacme/checkoutT-06

Subscribed···

T-06 in threat-model v14

Share token guessable

SeverityHighStatusValidatedBoundaryinternet → private-vpcSource#482 Document sharingTargetshare.acme.com

RunEvidenceMitigation

  1. Test generated from the abuse case Enumerate /share/{token} without a session.
  2. Sandbox run on staging 2,310 requests in 38s, no rate limiting observed. 4 valid tokens found; the first returns another tenant’s file. share.acme.comOpen1GET /share/7f3a21 HTTP/22host: share.acme.com // no cookie, no bearer34HTTP/2 200 OK5{ "document": "Q3-board-deck.pdf", "owner": "tenant_8821" }
  3. Validated exploitable Opened ISSUE-2052 with the exchange attached.
  4. Mitigation proposed on #482 128-bit random tokens and a per-IP limit on the lookup route.

Threat modelsacme/checkoutthreat-model.md

Artifacts

threat-model.mdExportShare

VersionChangeTriggerReviewed byWhen

Neo watches every merge through the GitHub integration and updates the model itself. No scavenger hunt across docs, tickets and code; the security team gets continuous signal without scaling with engineering.

The same analysis on every feature and every team, whoever is available and however busy the sprint. Accepted risks and past decisions persist in memory, so each review builds on the last.

Each abuse case becomes a test that runs in a sandbox. Theoretical risk is separated from confirmed threat, with reproduction steps and evidence attached.

Threat models are saved as versioned files that evolve with the system, every change tied to the pull request that caused it, ready for audit and leadership review.

Trusted by security teams

We use tools on this site to collect and record your data (e.g., your searches), which we and our vendors may use to provide, improve, and personalize our offerings, make recommendations, and for analytics and marketing. Some of these tools identify visitors and link website activity to business contact and company information so we can better understand interest in our services and tailor our outreach. We may share your data with third parties, such as advertising vendors, social media companies, and research partners, which may be "targeted advertising," "selling," or "sharing" under applicable privacy laws. Continuing to browse our site means you accept these terms and our Privacy Policy. To opt out, click the Your Privacy Choices link in the footer.

原文链接:https://projectdiscovery.io/solutions/threat-modeling