Secure development

Documenting security architecture for distributed applications

Trust boundaries: network, document, gate arranged to illustrate documenting security architecture for distributed applications.

Documenting security architecture for distributed applications 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 security architecture for distributed applications 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.

The microservice architecture is being increasingly used for designing and implementing application systems in both cloud-based and on-premise infrastructures. There are many security challenges need to be addressed in the application design and implementation phases. In order to address some security challenges it is necessity to collect security-specific information on application architecture. The goal of this article is to provide a concrete proposal of approach to collect microservice-based architecture information to securing application.

During securing applications based on microservices architecture, security architects/engineers usually face with the following questions (mostly referenced in the OWASP Application Security Verification Standard Project under the section V1 "Architecture, Design and Threat Modeling Requirements"):

Why it matters

Consider a realistic failure: a distributed application's diagram omits the component responsible for a sensitive authorisation decision.

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.

  • What microservices are invoked by dedicated microservice? What data is passed between microservices?.
  • What microservices endpoints need to be tested during security testing?.
  • Identify and describe application-functionality services (parameter "API definition").
  • Identify and describe infrastructure services (parameter "Link to the service documentation").
  • 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