Secure development

Building data minimisation and privacy controls into application features

Data choices: person, settings, document arranged to illustrate building data minimisation and privacy controls into application features.

Building data minimisation and privacy controls into 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 data minimisation and privacy controls into application features helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

Privacy controls need an accurate account of what information is collected, where it goes and how long it remains useful. Interface choices and declarations should match the behaviour of the actual release, including third-party components and background processing.

Any online platform that handles user identities, private information or communications must be secured with the use of strong cryptography. User communications must be encrypted in transit and storage. User secrets such as passwords must also be protected using strong, collision-resistant hashing algorithms with increasing work factors, in order to greatly mitigate the risks of exposed credentials as well as proper integrity control.

To protect data in transit, developers must use and adhere to TLS/SSL best practices such as verified certificates, adequately protected private keys, usage of strong ciphers only, informative and clear warnings to users, as well as sufficient key lengths. Private data must be encrypted in storage using keys with sufficient lengths and under strict access conditions, both technical and procedural. User credentials must be hashed regardless of whether or not they are encrypted in storage.

Why it matters

Consider a realistic failure: a service collects information for a convenient feature without a clear retention purpose or effective user controls.

Unexpected collection or ineffective user controls can expose personal information and undermine trust in the service. Technical testing should establish observable data handling and the effect of user choices without promising that a single check proves legal compliance.

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.

  • Observe collection and sharing during representative user journeys.
  • Compare actual behaviour with settings and declarations.
  • Test refusal, withdrawal, deletion and account transitions.
  • Review integrated components and retained copies.

How to fix it

Use the appropriate maintained mechanisms and verify the result in the actual production configuration.

  • In the event of a CA compromise, in which a compromised CA trusted by a user can issue certificates for any domain, allowing evil perpetrators to eavesdrop on users.
  • In environments where users are forced to accept a potentially-malicious root CA, such as corporate environments or national PKI schemes.
  • In applications where the target demographic may not understand certificate warnings, and is likely to just allow any invalid certificate.
  • Enforce current user choices across relevant data flows.
  • Keep the data inventory and public descriptions aligned with releases.

Privacy notices and technical controls work together. Accurate wording cannot fix unnecessary collection, and a configuration flag does not prove that every data recipient follows it.

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