We're working to make Socket the best open source security tool. If you have a question, ask it on our Discord.
Socket is a new security company that can protect your most critical apps from supply chain attacks. We are taking an entirely new approach to one of the hardest problems in security in a stagnant part of the industry that has historically been obsessed with just reporting on known vulnerabilities.
Socket is built by a team of open source maintainers with over 1 billion monthly downloads. Everyone on the Socket team is an open source maintainer. We are all driven to defend the open source ecosystem from supply chain attacks and make it safe for everyone.
Socket is unique because, unlike other tools, it detects and blocks supply chain attacks before they strike, mitigating the worst consequences:
Supply Chain Attack Prevention: Prevent compromised or hijacked packages from infiltrating your supply chain by monitoring all dependency changes in real-time.
Package Behavior Analysis: Detect when dependency updates introduce new risky API usage such as network, shell, filesystem, etc.
Comprehensive Protection: Block malware, typo-squatting, hidden code, misleading packages, permission creep, and 60+ red flags in open source code.
The market is flooded with vulnerability scanners (which find CVEs in your dependencies) and static analysis tools (which analyze your app code).
Both of these approaches are less than helpful at detecting supply chain attacks of the sort we've seen exploding in the open source ecosystem.
Vulnerability scanning tools merely look up the packages you're using and compare them to data in the public CVE databases such as NVD. When they find a match, they send you an alert to upgrade to a new version. This is too slow to stop an active supply chain attack.
Traditional static analysis tools are way too noisy when run on third-party code, and don't provide actionable results. Most developers aren't running static analysis tools on their own code, let alone third-party code.
Socket is different. Socket was specifically designed to detect supply chain
attacks in your dependencies. We built Socket specifically to help catch supply
chain attacks such as these that you may have seen in the news:
eslint-scope, and hundreds
Unlike a traditional vulnerability scanner, Socket can actually detect an active supply chain attack. Unlike a traditional static analysis tool, Socket provides actionable feedback about dependency risk, instead of hundreds of meaningless alerts.
Socket uses static analysis (and soon, dynamic analysis) to characterize the
behavior of a package and determine what capabilities it uses, which we call
“capability detection”. For instance, to determine if an
npm package uses the network,
Socket looks at whether
fetch(), or Node's
https modules are used within the package or – and this part is key – any
of its dependencies.
Socket also uses static analysis to detect usage of privileged APIs such as shell, filesystem, eval(), and environment variables.
Beyond capability detection, we also detect telltale signs of malicious code: introduction of install scripts, hidden code, obfuscated code, Unicode homoglyph attacks, high entropy strings, and more.
In total, Socket detects 60+ security red flags in open source code.
Some of the most valuable security signals come from side channels such as maintainer behavior. Socket detects “unstable ownership” which is when a new maintainer is given publish permission on a package. We also detect when packages are published out of chronological order because attackers often publish new patches on old major versions which still have a lot of usage.
Another example of an attack which goes beyond the code in a package is typosquatting, which is one of the most common supply chain attack vectors. We define a typosquat as:
For example, look at how we handle the bowserify package which is a typo.
Yes. Socket has caught multiple instances of npm malware that we reported and had removed from npm. We will have more to share on this front soon.
We also want to open up Socket's powerful search tools to interested security researchers who want to hunt for malware on npm. Interested researchers should contact us.
When you install Socket as a GitHub App, it will automatically evaluate all changes to package.json and other “package manifest” files. Whenever a new dependency is added in a Pull Request, Socket will evaluate it and leave a comment indicating if it is a security risk.
We're working on a Socket CLI and API that will be released in the coming weeks.
See what features we're working on by visiting the Roadmap.
Yes. We will support all open source ecosystems later this year. We plan to roll out support for Python, Rust, Java, and Go initially. If you want to use Socket at your company and you use a different language, please get in touch.
In the coming weeks, we're shipping a new detection for packages with maintainers who use email addresses with expired domains which is a huge risk factor for package hijacking. We're also working on scores for maintainer reputation, maintainer burnout, and maintainer security practices (2FA enabled, security policy posted, etc.).
Our goal is for Socket to provide the most comprehensive open source risk analysis on the market, and that means analyzing the full picture – from maintainers and how they behave, to open-source codebases and how they evolve.
Open source package search with Socket Package Health Scores are free to everyone on our website, https://socket.dev.
Socket integrations, such as the GitHub App, are free for open source repositories, forever. For private repositories, Socket is free while we're in beta. We're still working out pricing; we're aiming to keep it affordable so every team can get protected.
Socket is designed to work without the need to analyze, upload, or share your source code.
The only data we collect from your repository is the
package.json file and associated lockfiles such as
yarn.lock, which we call the dependency snapshot.
We use the dependency snapshot to determine the list of packages used by your repository, perform our open source risk analysis, and produce a report.
One note: Some users have multiple
package.json files located in nested folders, e.g.
bar/package.json. We would love to request read access to a glob pattern like
**/package.json but the GitHub permissions model is too limited. For that reason, the GitHub App requests read access to all code in the repository. We're currently working with GitHub to improve their permissions model so we can reduce the required permissions.
If you believe you've found a security vulnerability in Socket, please report it. We offer rewards of up to $1,000 for reporting a valid security issue. We will work with you to resolve the issue promptly. Thanks in advance!
Join our Discord server to ask questions and get answers!