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.
@np-dev/rn-deploy
Advanced tools
React Native Deploy helper ## Install - Install rn-deploy ``` npm install -g @np-dev/rn-deploy OR npm install --save-dev @np-dev/rn-deploy ``` ## Commands - rn-deploy codepush ${platform} ${environment} - platform: ios or android or all - environment: d
React Native Deploy helper
npm install -g @np-dev/rn-deploy
OR
npm install --save-dev @np-dev/rn-deploy
rn-deploy codepush ios dev
rn-deploy codepush android dev
rn-deploy codepush all dev
DEPLOY_CODEPUSH_TOKEN = 'User token from codepush'
IOS_DEPLOY_TOKEN = 'IOS token from codepush'
ANDROID_DEPLOY_TOKEN = 'Android token from codepush'
ANDROID_CODEPUSH_URL = 'Android project'
IOS_CODEPUSH_URL = 'IOS project'
AWS_REGION = ''
AWS_BUCKET_NAME = ''
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
AWS_ENDPOINT = 'For custom s3 server'
AWS_FORCE_PATH_STYLE = true
yarn add @np-dev/react-native-code-push
npm i @np-dev/react-native-code-push
import codePush, {RemotePackage} from '@np-dev/react-native-code-push';
const remoteVersion: RemotePackage | null = await codePush.checkForUpdate();
let downloadUrl: string | undefined;
if (remoteVersion.packageHash) {
// Send head request to check if the file is available
const S3Url = 'https://packages.s3.ap-southeast-1.amazonaws.com/' + remoteVersion.packageHash;
const checkS3 = await fetch(S3Url, {
method: 'HEAD',
});
if (checkS3.status === 200) {
downloadUrl = S3Url;
}
}
codePush.sync(
{
installMode: codePush.InstallMode.IMMEDIATE,
downloadUrl,
},
syncStatusChangedCallback,
codePushDownloadDidProgress,
codePushDownloadCompleted,
);
FAQs
React Native Deploy helper ## Install - Install rn-deploy ``` npm install -g @np-dev/rn-deploy OR npm install --save-dev @np-dev/rn-deploy ``` ## Commands - rn-deploy codepush ${platform} ${environment} - platform: ios or android or all - environment: d
We found that @np-dev/rn-deploy 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.