Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-check-debugger

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-check-debugger

cordova plugin for checking if a debugger is attached to the app

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cordova-plugin-check-debugger npm version

A cordova plugin to check if a debugger is attached to the app or not. Attackers attach a debugger to the app to gain access to the internal workings of the app, even when the app is in release mode. This plugin can be used to check if an unauthorised debugging of the app is in progress.

Install

cordova plugin add cordova-plugin-check-debugger

Usage

checkDebugger.isAttached(function(isDebug) {
    if (isDebug) {
        // isDebug is of string format in Android.
        // Do something aggressive here, like deleting your local storage or closing the app
        console.log('Oh Oh!! Looks like your app is being debugged! Is it you or an intruder?');
    } else {
        // Continue normal logic
        console.log('Phew! Everything seems to be fine');
    }
}, function(err) {
    console.error(err);
});

Supported platforms

  • iOS
  • Android

Credits

License

MIT

Keywords

FAQs

Package last updated on 23 Sep 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc