NIST SP 800-204 is a NIST guidance publication on securing microservices-based applications. Despite how it is often described, it is not a certifiable standard and has no audit or attestation scheme of its own. This article explains what it is, where it fits next to mandatory federal requirements, and how to use it in practice.
What it is
NIST Special Publication 800-204, Security Strategies for Microservices-based Application Systems, was published by the National Institute of Standards and Technology in 2019. It was authored within NIST's Computer Security Division. Like other Special Publications in the 800 series, it is guidance. It is not a statute, a regulation or a control catalog that agencies are directly assessed against.
Its purpose is to describe the security challenges specific to microservices architectures and to recommend strategies for addressing them. Those challenges include a larger attack surface from many network-exposed services, service-to-service trust, and distributed authentication and authorization. The publication is aimed at architects, developers and security teams building cloud-native systems.
SP 800-204 has companion publications that go deeper on particular areas, including the following (SP 800-204D, published in 2024, adds software supply chain security for DevSecOps CI/CD pipelines):
- SP 800-204A covers building secure microservices-based applications using a service mesh architecture.
- SP 800-204B covers attribute-based access control for microservices applications using a service mesh.
- SP 800-204C covers DevSecOps for a microservices-based application with a service mesh and Kubernetes.
These were released after the original document. Check NIST's publication pages for current versions and any revisions, since the series has been extended over time.
Who it applies to
No one is legally required to "comply with SP 800-204" as such. Describing it as a compliance obligation for government contractors and agencies is therefore misleading. The actual position is as follows.
- Federal agencies are bound by FISMA and the NIST risk management framework, with security controls drawn mainly from SP 800-53. SP 800-204 is supporting guidance that helps agencies interpret and implement those controls for microservices. It does not add a separate obligation.
- Contractors and cloud providers working with federal customers may meet it indirectly, through 800-53 or 800-171 based requirements, FedRAMP, or contract language. If a contract or customer security questionnaire cites it by name, it becomes a contractual expectation. Confirm this in the contract text.
- Private-sector organizations use it voluntarily as a reference architecture for cloud-native security. It is useful because it is vendor-neutral and well regarded.
The trigger for relevance is technical, not jurisdictional: you run, or are building, applications decomposed into independently deployable services, typically on containers, Kubernetes, API gateways or service meshes.
Key control areas
The publication is organized around security concerns specific to microservices. The exact numbering and wording of its recommendations is best read in the document itself. The main areas are:
Authentication and authorization
- Authenticating end users and propagating identity across services, commonly with token-based approaches such as OAuth 2.0 and OpenID Connect.
- Authenticating services to one another rather than trusting network position.
- Enforcing authorization close to each service, with policy that can be managed centrally.
API gateway and service exposure
- Using an API gateway as a controlled entry point for external traffic, handling authentication, rate limiting and request validation.
- Limiting which services are reachable from outside and how.
Secure service-to-service communication
- Encrypting traffic between services, typically with mutual TLS.
- Managing certificates and keys for large numbers of short-lived workloads.
Service discovery and configuration
- Protecting the service registry and ensuring only legitimate services register and are discovered.
- Handling secrets and configuration data safely rather than embedding them in images or code.
Resilience and availability
- Patterns such as circuit breakers, load balancing and timeouts, treated as security-relevant because they limit cascading failure and denial-of-service impact.
Monitoring and logging
- Collecting logs and telemetry across many services and correlating them to trace a request end to end.
- Detecting anomalous service behavior.
Service mesh and DevSecOps (companion documents)
- Moving cross-cutting security functions into a mesh data plane and control plane (800-204A).
- Policy-based, attribute-driven access control (800-204B).
- Embedding security checks in CI/CD pipelines and Kubernetes deployment practices (800-204C).
Assessment, audit and enforcement
There is no certification, accreditation or official attestation for SP 800-204, and NIST does not assess anyone against it. No regulator issues penalties for failing to follow it directly.
Where it matters in an assessment:
- Under FISMA or FedRAMP, assessors test controls from 800-53. An organization can use 800-204 as the design rationale when explaining how it implements those controls in a microservices environment.
- In customer due diligence, you may be asked whether your architecture follows NIST guidance. Documenting alignment, with evidence, answers that question.
- In contracts, any named obligation is enforced under the contract, not under NIST.
A practical path to applying it
- Confirm the obligation. Check whether any contract, agency policy or customer requirement names SP 800-204 or its companions, or only the underlying 800-53 or 800-171 controls.
- Inventory your services. List services, APIs, data flows, trust boundaries, gateways, meshes and clusters. You cannot apply guidance to architecture you have not mapped.
- Model threats. Build threat models for the main service interactions and entry points, covering spoofed service identity, tampered traffic, over-broad access and lateral movement.
- Set identity and access design. Decide how user identity is propagated, how services authenticate to each other, and where policy decisions are enforced.
- Harden the entry and transport layers. Put external traffic through a gateway, enforce mutual TLS between services, and automate certificate rotation.
- Secure the pipeline and platform. Apply the DevSecOps and Kubernetes practices in the companion documents: image scanning, policy as code, secrets management, and admission controls.
- Centralize telemetry. Collect logs and traces from every service and define alerts for authentication failures, policy denials and unusual traffic.
- Map and document. Link each practice to the formal controls you are assessed against (for example 800-53 families) and keep the evidence current.
- Review on change. Re-check when you adopt a new mesh, gateway or cluster configuration, and when NIST updates the series.
How it maps to other frameworks
These are overlaps, not equivalences. SP 800-204 is architectural guidance, while the others are control sets or management systems.
- NIST SP 800-53: The strongest overlap. Practices on access control, identification and authentication, system and communications protection, audit and logging, and configuration management map to 800-53 control families. The guidance explains how to implement them for microservices.
- NIST CSF: Overlaps with Protect (access control, data security, platform protection) and Detect (monitoring) outcomes, at a high level.
- ISO/IEC 27001 and 27002: Overlaps with Annex A style controls on access control, cryptography, secure development, logging and network security. ISO 27001 additionally requires a management system, which 800-204 does not address.
- SOC 2: Overlaps with the security criteria around logical access, system operations and change management. It can serve as supporting design evidence, but SOC 2 does not reference it.
- NIST SSDF (SP 800-218): Overlaps on secure pipeline practices, especially with 800-204C.
FAQs
Is NIST SP 800-204 mandatory?
No. It is guidance. Federal agencies are required to implement controls under FISMA, mainly from SP 800-53, and 800-204 helps with applying them to microservices. It becomes binding only if a contract or policy explicitly requires it.
Can we be certified against SP 800-204?
No. There is no certification or accreditation scheme. You can document alignment and show evidence, and independent assessors may consider it as part of a wider assessment.
Do government contractors have to follow it?
Not by default. Contractors are usually bound by requirements such as FedRAMP, 800-171 or contract-specific clauses. Read the contract to see whether 800-204 is named.
What are 800-204A, B and C?
They are companion NIST publications. 204A covers service mesh architecture, 204B covers attribute-based access control with a service mesh, and 204C covers DevSecOps with a service mesh and Kubernetes. A further companion, 204D, covers software supply chain security in DevSecOps CI/CD pipelines. They extend the original guidance.
Does it apply if we do not use microservices?
Only partly. Its focus is distributed, service-based architectures. Monolithic applications are better served by other NIST guidance, although some principles on identity, transport security and logging still carry over.
How Aristiun helps
Aristiun is the AI-powered compliance automation and threat modeling platform, powered by Ayurak AI. Because SP 800-204 is guidance applied through other frameworks, the work is mostly about showing that your microservices architecture satisfies the controls you are actually assessed against. Aristiun supports this across compliance frameworks.
- Threat modeling: generate threat models from code, IaC and architecture diagrams, using methods such as STRIDE and PASTA, to examine service interactions and trust boundaries.
- Evidence collection: gather evidence automatically from connected systems such as AWS, Azure, GCP and GitHub, without manual screenshots or spreadsheets.
- Control mapping: map evidence to relevant controls across 340+ frameworks at once, so one evidence base serves 800-53, ISO 27001, SOC 2 and others.
- Monitoring and gap analysis: monitor control effectiveness, get alerts when controls drift, and identify gaps before auditors do.