Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Hermes Bytecode
Cyber Security

Hermes Bytecode

← Back to Glossary
By NHI Mgmt Group Updated October 30, 2026 Domain: Cyber Security

Hermes bytecode is the compiled binary form of JavaScript used by React Native applications. It improves runtime performance, but it also makes application logic harder to inspect directly because reviewers are no longer looking at human-readable source.

What Hermes bytecode changes in a React Native app

Hermes bytecode is the compiled form of JavaScript that React Native can execute more efficiently at runtime. The trade-off is that application logic is no longer presented only as readable source, so review, reverse engineering, and static inspection become harder when teams rely on the packaged binary rather than the original code.

Why Hermes bytecode matters for security review

For defenders, the important shift is not just performance, but visibility. A compiled bytecode bundle can hide control flow, string usage, feature flags, endpoint references, and other implementation details that are easier to spot in source form. That does not make the app secure by itself, but it can slow casual inspection and force analysts to use more specialized review methods.

In practice, this means teams should treat bytecode as an obfuscation aid, not a substitute for secure coding or proper secret handling. Sensitive values, hard-coded API material, and trust decisions should never depend on the assumption that bytecode is difficult to read.

Common exposure patterns in mobile builds

Hermes bytecode becomes most relevant when it is shipped as part of an installed mobile application. Attackers and reviewers may still extract logic from the app package, inspect native bridges, or trace runtime behavior, even if the JavaScript source is not directly visible. That makes the surrounding build and release process just as important as the bytecode itself.

Teams should assume that any client-side logic can eventually be studied. If security depends on keeping rules, secrets, or authorization decisions hidden inside the app, Hermes only raises the effort required to inspect them, it does not eliminate exposure.

For broader mobile hardening context, the Flutter and React Native Security Guide covers related risks around secrets in app code, bridges, and runtime protections.

How reviewers and defenders should think about it

Hermes bytecode should be viewed as one layer in application analysis, not a guarantee of confidentiality. Security review still needs to examine the app package, runtime behavior, network calls, storage usage, and the native interfaces that expose data or actions to JavaScript.

When a product team adopts Hermes, the right question is whether the build pipeline, packaging, and runtime controls remain sound, not whether bytecode makes the app “safe.” If the app relies on obscurity to protect logic or credentials, the design is already weak.

Risk and Threat Considerations

Hermes bytecode can reduce casual visibility, but it also creates a false sense of concealment. If sensitive logic, embedded secrets, or trust checks are present in the client, an attacker can still recover them through package extraction, runtime inspection, or instrumentation.

Failure mechanism: The compiled format delays understanding, but it does not remove the attack surface. Reverse engineering, bridge inspection, and client-side tampering can still expose logic that should never have been trusted to the app in the first place.

Impact: Exposure of hard-coded secrets, API paths, business rules, or integrity checks can lead to abuse of backend services, feature bypass, fraud, or easier follow-on reverse engineering.

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 CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV15 — Secure Coding and ArchitectureHermes affects how much client-side logic is exposed for review.
V11 — CryptographyBytecode does not protect embedded sensitive values or cryptographic material.
Recommendation — Minimise security decisions and secrets in client-side code that remains recoverable from the shipped app. Keep cryptographic keys and secret material out of recoverable client artifacts.
CIS Controls v8CIS-16 — Application Software SecurityReact Native bytecode is part of application delivery and review.
Recommendation — Validate that shipped app artifacts do not expose sensitive logic or unsafe assumptions.
NIST CSF 2.0PR.DS-10 — Confidentiality and Integrity of InformationHermes changes the confidentiality profile of code and bundled logic in the app.
Recommendation — Protect bundled application logic so disclosure does not enable misuse or tampering.

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 October 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org