Skip to main content
Engineering·7 min·

We Scope Application Security at Discovery. Here is Why.

A security review scheduled for the week before launch almost never catches the thing that actually gets exploited. The threats worth defending against are decided before engineering writes line one. Here is the discovery-phase security brief every Reivex engagement runs.

Tamoor Tahir
Tamoor Tahir

Senior BDE & Cybersecurity Specialist

We Scope Application Security at Discovery. Here is Why.

The default industry pattern for application security is to run a review in the final week of a build. By then the architecture is fixed, the data model is fixed, the authentication boundary is fixed, and almost every finding reduces to either a cosmetic fix or an uncomfortable rebuild. Neither helps the shipped product.

At Reivex, every engagement scopes application security during the discovery sprint, before the first line of code. The threat model, the sensitive-data map, and the compliance envelope are decided when they are still cheap to decide.

What goes wrong when security is bolted on at the end

  • Authentication is scaffolded with the first off-the-shelf library and never revisited, so session invalidation, device binding, and role boundaries all inherit whatever defaults that library shipped with.
  • Personal data lands in logs, cache keys, and third-party analytics tools because nobody flagged which fields were sensitive before engineering reached for them.
  • The audit trail is an afterthought, so the team cannot answer 'who did what, when' for the first regulator who asks.
  • A third-party API is wired in with a long-lived shared secret because rotation was not scoped.
  • The pen test lands in the final week, finds eleven issues, and the launch slips three weeks while engineering unpicks the ones that touched the data model.

The Reivex discovery security brief

  1. 01

    Threat actors

    Who realistically wants to break this product? A disgruntled operator inside the platform? A competitor scraping listings? A credential-stuffing botnet? Each one implies a different control. We write them down.

  2. 02

    Sensitive data map

    Every field the product will store is classified as public, internal, personal, financial, or regulated. Encryption, logging, and third-party sharing policies follow from the classification, not from engineering intuition.

  3. 03

    Trust boundaries

    Where does data cross from one trust zone to another? Browser to API, API to database, API to third party. Each boundary gets a planned authentication and a planned audit event.

  4. 04

    Compliance envelope

    Which regulatory frameworks does this product fall under? PCI if it touches cards. HIPAA-adjacent if health. GDPR / local DPA if it reaches EU or UK users. The envelope decides data residency and retention before the schema is written.

Case: ClaimOS insurance claims platform

ClaimOS processes first-notice-of-loss documents, fraud scoring, and draft adjuster replies on behalf of insurance operators. Every single field in the pipeline is either personal data or financially sensitive. Classifying that data upfront determined four architectural decisions before engineering wrote any code: adjuster actions get an audit event, LLM calls strip PII before sending, fraud scores never leave the trust boundary of the operator's tenant, and the draft-reply pipeline logs provenance so the adjuster can see what the model saw.

If any of those four had been decided after the build, two would have required rebuilding the data model and the other two would have required rebuilding the LLM pipeline. Scoping them at discovery turned four weeks of expensive rework into one page of written brief.

Where security findings land in the project

Security as pre-launch review

11 findings, 3 week slip

typical industry pattern

Security scoped at discovery

2 findings, 2 day fix

Reivex sprint pattern

The honest cost

Scoping security at discovery adds about one working day to the discovery sprint. That is a real cost. It also commits the team to a slightly less convenient architecture in some engagements — the one that respects the trust boundaries we drew — rather than the fastest-to-prototype one. We think that is a trade worth making every single time, because the alternative is a product that ships with a security debt the client is going to pay back under worse conditions after launch.

If the engagement really cannot afford that one day, we will say so and recommend a lighter review. We will not pretend security scales down to zero.

#Application Security#Secure SDLC#Threat Modeling#OWASP#Discovery#Engineering Process
Tamoor Tahir

Written by

Tamoor Tahir

Senior BDE & Cybersecurity Specialist

Read profile

Have a product to build?

The team that wrote this ships the work

Web, mobile, and AI products shipped in weekly demos. Tell us what you are building.

Start a project