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.
Using empythy to score likability based on sentiment analysis of recent tweets about a given person
Using empythy to score likability based on sentiment analysis of recent tweets about a given person
To piggyback off of the empythy natural languare classifier package to analyze average sentiment of tweets related to a particular person to calculate a ‘likability score’ for that person. Useful in tracking sentiment changes across a certain period of time, i.e. the likability score of a celebrity before and after a concert.
Open terminal. Make sure you have python3
and pip
downloaded.
pip install likability
Create a csv file with the names of the people you’d like to analyze for likability. Name this file name.csv in the current directory.
Determine how many recent tweets you’d like to query for each person. This will be used in the script below as num_tweets
.
Make sure you have Twitter API keys and access tokens. If you do not, go to Twitter Apps, create an app, and find the required keys and tokens under Applications Settings -> Consumer Key (API Key) -> manage keys and access tokens.
Run Python 3 by typing python
into the terminal.
Enter script below to run the LikabilityAnalyzer module.
from likability import LikabilityAnalyzer
filepath = 'name.csv'
num_tweets = 100
sentimentScore = LikabilityAnalyzer.analyzer(filepath,num_tweets)
When prompted, enter in your Twitter API keys. This will allow likability to access the Twitter API to query the tweets needed to complete the sentiment analysis.
Wait for script to run to completion. Please note, due to Twitter API Rate Limiting, querying more than 15 names will lead to longer wait times. Please allow 1 minute per name for lists greater than 15 names.
Upon completion, open the newly created Sentiment.csv in the current directory to access the likability scores for each person.
FAQs
Using empythy to score likability based on sentiment analysis of recent tweets about a given person
We found that lykability 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.