Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Network Security Configuration
Architecture & Implementation

Network Security Configuration

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Architecture & Implementation

Network Security Configuration is an Android feature that lets an app declare its network security settings in an XML file, including trusted certificate authorities, whether cleartext traffic is allowed, and certificate pinning. Weak settings, such as permitting cleartext or trusting user-installed certificates in production, make traffic easier to intercept, so reviewers check it during mobile app assessments.

What Network Security Configuration Does on Android

Android’s Network Security Configuration gives app developers a declarative way to control how an app trusts servers and certificates at runtime. It is not a generic network firewall, but an app-level trust policy that influences whether traffic is treated as secure, whether cleartext is allowed, and which certificate authorities the app accepts.

This matters because the security outcome is determined by the app’s own trust rules, not just by the device or the network. If the configuration is too permissive, the app can be far easier to intercept, especially on hostile Wi-Fi, through malicious proxying, or in environments where certificate trust is broader than intended.

Why Trust Rules and Certificate Pinning Matter

The most important design choice in this feature is how narrowly the app defines trust. Allowing cleartext traffic weakens confidentiality immediately, while trusting user-installed certificate authorities in production can make interception much easier if a device is under adversary control or if a debugging-style certificate is present where it should not be.

Certificate pinning tightens the trust relationship by limiting which certificates or public keys the app will accept. That reduces exposure to interception through rogue certificate installation or some forms of enterprise proxying, but it also raises operational risk if the pin set is poorly managed or becomes stale.

Because this is an application-level control, it is often reviewed alongside mobile platform hardening and communication security rather than as a standalone setting. NHIMG’s Android App Security Guide covers the wider Android controls that normally surround this decision, including Network Security Config, certificate pinning and release hardening.

How Reviewers Check Exposure

Assessors usually inspect the app package and manifest-adjacent resources to see whether the XML policy exists and whether its defaults are strict enough for production use. They also look for signs that test-friendly settings were shipped unchanged, especially when the app should never permit cleartext or broad certificate trust outside controlled development builds.

The review is not only about the XML itself. A sound assessment also checks the surrounding communication path, the server endpoints the app actually uses, and whether the implemented trust policy matches the intended security model. For mobile teams, that usually means comparing the declared network rules with the app’s real traffic behaviour and release pipeline.

For a broader view of secure mobile communication, the OWASP Mobile Top 10 Guide and the OWASP Mobile Top 10 M5 Insecure Communication Guide explain how this control fits into mobile transport security, pinning and validation.

Common Failure Modes in Production

The most common failure modes are permissive trust settings, inconsistent behaviour across debug and release builds, and pinning strategies that are too brittle to survive normal certificate rotation. Another recurring issue is assuming that HTTPS alone is enough, when the app still trusts certificates or endpoints in ways that undermine the intended protection.

Weak configuration also becomes more dangerous when mobile apps run in hostile or semi-trusted environments. A misconfigured trust policy can turn a network path into a viable interception point for session theft, data capture or content manipulation, even when the underlying transport appears encrypted at a glance.

Those patterns are part of broader mobile misconfiguration risk, which is why many reviewers group this setting with other release-hardening checks. The OWASP Mobile Top 10 M8 Security Misconfiguration Guide is useful when you want the network trust policy viewed in the context of the rest of the app’s security posture.

Risk and Threat Considerations

Misconfigured network trust rules can expose mobile traffic to interception, downgrade attacks, and content tampering. The risk is highest when cleartext is allowed in production or when the app accepts certificates that make it too easy for an attacker to impersonate a server.

Failure mechanism: An attacker abuses a permissive trust path, such as cleartext traffic or overbroad certificate acceptance, to observe, alter or redirect application traffic.

Impact: Sensitive data, session material and server responses can be exposed or manipulated, and the app may lose any meaningful assurance that it is talking to the intended backend.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV12 — Secure CommunicationNetwork Security Config governs how the app validates TLS and transport trust.
Recommendation — Verify that mobile traffic uses strict transport security and certificate validation.
CIS Controls v8CIS-4 — Secure Configuration of Enterprise Assets and SoftwareThe term is about secure software configuration choices that reduce exposure.
Recommendation — Harden software defaults and validate secure configuration before release.
NIST SP 800-53 Rev 5SC-8 — Transmission Confidentiality and IntegrityCleartext allowance and certificate trust directly affect communication protection.
IA-5 — Authenticator ManagementCertificate pinning and trusted CA handling depend on lifecycle control of trust material.
CM-6 — Configuration SettingsThe feature is a configuration control whose security depends on approved settings.
Recommendation — Enforce protected communications for data in transit. Manage trust material lifecycle and rotate it safely when requirements change. Define and review approved secure configuration settings for mobile apps.

Practitioner Guidance

Why practitioners should care: Treat this as a release-quality control, not a checkbox for mobile developers alone. The trusted certificate set, the cleartext setting and any pinning policy should all be reviewed against the app’s threat model before production release.

What to watch for: Pay special attention to build variants, inherited defaults and proxy-related assumptions. A configuration that is safe in test can become a production exposure if it silently allows insecure transport or accepts certificates that were only meant for internal testing.

Practitioner takeaway: The safest production posture is usually the narrowest trust rule that still allows reliable backend communication, with pinning used only where the team can sustain its lifecycle properly.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org