Security Misconfiguration

Insecure defaults, unnecessary features, or misapplied permissions left in production.

A02:2025 · High severity · Updated November 6, 2026

What it is

Security Misconfiguration moves up from A05:2021 to A02 in 2025. The category covers any deployment state where a system is exposed because of how it is configured, not how it is coded. Examples include cloud storage buckets with public-read access, debug endpoints reachable in production, default credentials never changed, XML parsers with external entities enabled, unnecessary features running on production hosts, and missing security headers (Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options). XML External Entity (XXE) remains in this category, as it was in A05:2021.

Common patterns

  • S3, GCS, or Azure Blob storage with public-read or list-bucket permissions on private data.
  • XML parsers (lxml, DocumentBuilderFactory, XmlReader) instantiated without disabling external entities (XXE).
  • Verbose error pages or debug endpoints (DEBUG=True in Flask/Django) live in production.
  • Default credentials on databases, admin panels, or management interfaces.
  • Security headers missing or misconfigured: no HSTS, weak CSP, missing X-Frame-Options.
  • Cloud IAM policies with wildcard resources (Resource: *) on actions that should be scoped.

What Deva detects

Deva includes configuration rules for Dockerfile and Kubernetes manifests, covering containers running as root, privileged containers, and host namespaces, plus a small Terraform rule set (public S3 ACLs, open admin ports, and missing S3, RDS, and EBS encryption). CloudFormation has no dedicated rules. Unsafe XML parser configurations are reported for Python, Java, Kotlin, PHP, Ruby, and C#. Debug-flag detectors flag production configs that leave verbose error handling enabled.

CWE detection guides

  • CWE-611 · XML External Entity (XXE)

Real-world examples

YearIncidentWhat happened
2017Verizon (14M records via S3)A vendor-managed S3 bucket containing customer service call data was set to public read. The exposure was found by UpGuard researcher Chris Vickery. The same pattern has been the root cause of dozens of large disclosures since 2017.
2021Microsoft Power Apps (38M records)Default OData API permissions on Microsoft Power Apps portals made customer data publicly queryable. The defaults were technically documented but not surfaced clearly to administrators, illustrating how misconfiguration risk shifts when the secure-by-default expectation is unmet.

Compliance framework impact

These educational references describe control topics, including frameworks Deva does not currently offer for evaluation. CMMC evaluation and SPRS scoring are unavailable. See the FAQ for supported frameworks and preview status. Code-level findings support an assessment; they do not certify compliance.

  • NIST 800-53 CM-6 Configuration Settings, CM-7 Least Functionality
  • PCI-DSS v4.0.1 Req 2.2 Secure configurations
  • CMMC CM.L2-3.4.1 Baseline configuration, CM.L2-3.4.6 Least functionality
  • FedRAMP CM-6, CM-7

Related glossary terms