npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rs-native-kit/security

v0.1.0

Published

Enterprise-grade React Native security SDK: root/jailbreak/emulator/hook detection, tamper & signature integrity, VPN/proxy/screen monitoring, SSL pinning helpers, and a configurable device risk engine.

Readme

@rs-native-kit/security

npm version npm downloads License: MIT PRs Welcome Platform: iOS | Android

Root detection, jailbreak detection, and mobile app security for React Native. Enterprise-grade security SDK for Android and iOS — root/jailbreak/emulator/hook detection, tamper & signature integrity, VPN/proxy/screen monitoring, SSL pinning helpers, and a configurable device risk engine. Built on Nitro Modules for the New Architecture: JSI-direct calls, no bridge serialization, thread-safe by design.

If you're evaluating a React Native root detection library, a jailbreak detection SDK, or an RASP (runtime application self-protection) solution for a banking, fintech, or otherwise security-sensitive app, this covers root/jailbreak, Frida/Xposed/Magisk hook detection, tamper/integrity checks, SSL pinning, and a scored device-risk engine in one package.

Status: functional on Android (root/emulator/hook/network/screen/integrity — verified via real device+emulator builds) and iOS (jailbreak/simulator/hook/network/screen/integrity — verified via simulator+device builds). Read Security Notes before shipping to production, especially for regulated (banking/healthcare) apps — no on-device SDK is a substitute for server-side verification.

Features

  • Root detection (Android): su binary scan, BusyBox, Magisk, RW /system, dangerous build props, SELinux state, suspicious mounts, known root-manager apps.
  • Jailbreak detection (iOS): suspicious file scan, Cydia URL scheme, sandbox-escape write test, loaded-dylib inspection, process-spawn probe, suspicious env vars.
  • Emulator / Simulator detection on both platforms.
  • Hook detection: Frida (both platforms), Xposed/LSPosed/EdXposed/Substrate/Riru (Android).
  • Developer/debug state: developer mode, USB debugging, attached debugger, mock location.
  • Network monitoring: VPN and proxy detection.
  • Screen monitoring: screen recording/mirroring, screenshot detection.
  • Overlay exposure (Android).
  • Integrity: app signature hash + verification, APK integrity (Android), tamper heuristics.
  • SSL pinning helpers: typed certificate-pin builder/validator utilities.
  • Device risk engine: configurable weighted scoring → LOW / MEDIUM / HIGH / CRITICAL.
  • Real-time event system: subscribe to root/jailbreak/VPN/proxy/screenshot/hook/debugger/tamper events as they happen.

Installation

npm install @rs-native-kit/security react-native-nitro-modules

react-native-nitro-modules is a required peer dependency — see Installation for platform setup (Podfile, permissions, ProGuard/R8).

Quick start

import Security from '@rs-native-kit/security';

const rooted = await Security.isRooted();
const jailbroken = await Security.isJailbroken();
const report = await Security.scan();

console.log(report.riskLevel, report.score, report.secure);
const unsubscribe = Security.addListener((event) => {
  console.log(event.type, event.message);
});

See the API reference for the full surface and Examples for common integration patterns (login gating, risk-based step-up auth, dashboards).

Documentation

Architecture

  • Nitro Modules, not hand-written TurboModules. Nitro is a JSI-based, New-Architecture-only module system: synchronous-capable, strongly-typed, no bridge serialization. It satisfies the intent behind "TurboModules/Fabric support" better than a manual TurboModule codegen would for a module with no native UI component (Fabric doesn't apply here — there's nothing to render).
  • One native Security HybridObject, composed internally from focused detector classes (RootDetector, EmulatorDetector, HookDetector, ... — see android/src/main/java/.../detectors and ios/Detectors), so the native code stays modular without multiplying JS↔native bridge objects.
  • The risk engine lives in TypeScript (src/risk/), not native — native scan() returns raw checks/reasons, and the JS-side RiskEngine computes score/riskLevel/secure from configurable weights/thresholds. This lets you tune scoring without a native rebuild.
  • Every category is independently importable: import { isRooted } from '@rs-native-kit/security/root'-style trees under src/{root,jailbreak,emulator,...}, so bundlers can tree-shake unused checks.

Example app

example/ is a working dashboard (security score, per-check grid, live event log, refresh button) — see Examples to run it.

Contributing

License

MIT