
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@capacitor-community/device-security-detect
Advanced tools
The Device Security Detect plugin is designed to provide comprehensive device security detection capabilities for Capacitor-based applications. It aims to detect the device has been rooted (Android) or jailbroken (iOS). By using this plugin, developers ca

@capacitor-community/device-security-detect
The Device Security Detect plugin is designed to provide comprehensive device security detection capabilities for Capacitor-based applications. It aims to detect the device has been rooted (Android) or jailbroken (iOS). By using this plugin, developers can enhance the security of their applications and take appropriate actions based on the detected security status.
| Maintainer | GitHub | Active |
|---|---|---|
| 4ooper | 4ooper | yes |
| ryaa | ryaa | yes |
| Capacitor version | Plugin version |
|---|---|
| 7.x | 7.x |
| 6.x | 6.x |
npm install @capacitor-community/device-security-detect
npx cap sync
Using yarn:
yarn add @capacitor-community/device-security-detect
Sync native files:
npx cap sync
isJailBreakOrRooted() => Promise<{ value: boolean; }>
Detect if the device has been rooted (Android) or jailbroken (iOS).
This method provides a boolean value indicating whether the device has been tampered with (e.g., by rooting or jailbreaking).
Returns: Promise<{ value: boolean; }>
Since: 6.0.0
pinCheck() => Promise<{ value: boolean; }>
Check if a PIN, password, or biometric authentication is enabled on the device.
This method checks whether the user has set up any kind of secure lock mechanism (e.g., PIN, password, or biometric authentication) on their mobile device.
Returns: Promise<{ value: boolean; }>
Since: 6.0.2
import { DeviceSecurityDetect } from '@capacitor-community/device-security-detect';
async function checkRootStatus() {
const { value } = await DeviceSecurityDetect.isJailBreakOrRooted();
if (value) {
console.warn('The device is rooted or jailbroken!');
} else {
console.log('The device is secure.');
}
}
import { DeviceSecurityDetect } from '@capacitor-community/device-security-detect';
async function checkPinStatus() {
const { value } = await DeviceSecurityDetect.pinCheck();
if (value) {
console.log('A secure lock mechanism is enabled on the device.');
} else {
console.warn('No secure lock mechanism is detected.');
}
}
import { DeviceSecurityDetect } from '@capacitor-community/device-security-detect';
const { value } = await DeviceSecurityDetect.isJailBreakOrRooted();
async function checkDeviceSecurity() {
try {
const rootStatus = await DeviceSecurityDetect.isJailBreakOrRooted();
console.log(`Root/Jailbreak status: ${rootStatus.value ? 'Yes' : 'No'}`);
const pinStatus = await DeviceSecurityDetect.pinCheck();
console.log(`Secure lock enabled: ${pinStatus.value ? 'Yes' : 'No'}`);
} catch (error) {
console.error('Error checking device security:', error);
}
}
checkDeviceSecurity();
or please see example-app for a complete example.
Use this plugin to enhance your application's security and respond appropriately to potential risks.
FAQs
The Device Security Detect plugin is designed to provide comprehensive device security detection capabilities for Capacitor-based applications. It aims to detect the device has been rooted (Android) or jailbroken (iOS). By using this plugin, developers ca
We found that @capacitor-community/device-security-detect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 45 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.