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.
rsistocktrigger
Advanced tools
This Node.js application is designed to monitor the Relative Strength Index (RSI) of stocks, alerting users via email when RSI values indicate significant trading opportunities. It automatically checks stocks listed in a tickers.txt
file against RSI thresholds and sends notifications using Gmail with OAuth2 authentication.
Before running this application, you will need:
To get started with this application, follow these steps:
git clone https://github.com/rsabh/RSIStockTrigger.git
cd RSIStockTrigger
npm install
EMAIL_USER=your-email@gmail.com
CLIENT_ID=your-client-id
CLIENT_SECRET=your-client-secret
REFRESH_TOKEN=your-refresh-token
RECIPIENT_EMAIL_USER=recipient-email@gmail.com
node app.js
Modify the cron job setup in app.js to adjust the frequency of checks:
cron.schedule('* * * * *', async () => {
// This sets the job to run every minute. Adjust as necessary.
});
Follow these steps to configure OAuth2 credentials to enable your application to send emails using the Gmail API.
Access the Google Cloud Console
Create or Select a Project
Enable the Gmail API
Configure Consent Screen
Create Credentials
https://developers.google.com/oauthplayground
as a redirect URI if you plan to use the OAuth 2.0 Playground to obtain the refresh token.Visit OAuth 2.0 Playground
Configure the Playground
Select & Authorize APIs
https://mail.google.com/
.Exchange Authorization Code for Tokens
Remember to secure your credentials and never commit them directly into your version control system.
FAQs
Google Cloud Project Setup:
We found that rsistocktrigger demonstrated a healthy version release cadence and project activity because the last version was released less than 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.