Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-android-safetynet-decodejws
Advanced tools
A wrapper plugin for safetynet API on Play Enabled devices. This plugin extends attestation and app verification methods.
A wrapper plugin for safetynet API on Play Enabled devices. This plugin extends attestation and app verification methods. Google Play Service are required on device. At the time of writing , I am targeting Play Service 15.0.1 in gradle.
Cordova:
cordova plugin add cordova-plugin-android-safetynet
Ionic:
ionic cordova plugin add cordova-plugin-android-safetynet
TBA
Android Device Verification
. Get the API_KEY from Credentials Section
.You will need API key from Google APIs Console for initiating attestation.
A nonce security token from server side, is also required.
window.safetynet.attest(nonce ,API_Key ,successCallback ,errorCallback);
A JWS string is sent back as success. This is the same data obtained from getJwsResult(). This data should be again cross verified with google.
Three methods are available for the SafetyNet Verify Apps API.
This method allows a check for Verify App(Play Protect). The result is a boolean in successcallback.
window.safetynet.checkAppVerification(successCallback, errorCallback)
This method allows you to enable App Verfication. A dialog is invoked to If the verification is already enabled , the successCallback returns true. successCallback is a boolean. It represnts the state of App verification.
window.safetynet.enableAppVerification(successCallback, errorCallback);
This method lists harmful apps installed in a device. App verification/Play Protect is required to be enabled to process the request. The result is an array of objects in successCallback.
window.safetynet.listHarmfulApps(successCallback, errorCallback);
Post the issues related to this library here . Do provide the device details as below.
FAQs
A wrapper plugin for safetynet API on Play Enabled devices. This plugin extends attestation and app verification methods.
We found that cordova-plugin-android-safetynet-decodejws demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.