Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Typescript definitions for npm registry endpoints
For example:
import * as npm from '@npm/types';
fetch('https://registry.npmjs.org/cookie')
.then((res) => res.json())
.then((obj: npm.Packument) => {
// `obj` has proper registry types!
})
Response type for the https://registry.npmjs.org/:packageName
endpoint
Response type for the https://registry.npmjs.org/:packageName/:packageVersion
endpoint. Also the type of Packument['versions']
entries.
Response type for the https://registry.npmjs.org/:packageName
endpoint, when made with the 'Accept: application/vnd.npm.install-v1+json' header.
Response type for the https://registry.npmjs.org/:packageName/:packageVersion
endpoint, when made with the 'Accept: application/vnd.npm.install-v1+json' header. Also the type of Manifest['versions']
entries.
A "loose" definition of package.json structures.
[!NOTE] This is not an authoritative definition of package.json structures. Rather, it is a best-effort attempt to describe the fields that are de-facto standards for Node.js, npm, and TypeScript development.
2.0.0 (2024-08-07)
123bb67
#29 update types (#29) (@broofa, @jablko, @lukekarrys)f09f754
#31 refactor to use @npmcli/template-oss (#31) (@lukekarrys)6ffee7f
#60 add missing fields, fix up array type, add comments (#60) (@broofa, @styfle)4548f2c
#39 linting cleanup (#39) (@lukekarrys)5511d4b
#40 fix README typo, improve PackageJSON description (#40) (@broofa, @styfle)1a08144
#37 fix typo in readme (#37) (@lukekarrys)d323311
#70 bump @types/node from 20.12.10 to 22.1.0 (#70) (@dependabot[bot])4761562
#71 bump @typescript-eslint/parser from 7.18.0 to 8.0.1 (#71) (@dependabot[bot])3687a18
#38 simplify template-oss config (#38) (@lukekarrys)1a1fd85
#36 remove build script and update snapshots and tsconfig (#36) (@lukekarrys)3172a32
update template-oss files for main branch (@lukekarrys)FAQs
Typescript definitions for npm registry content
The npm package @npm/types receives a total of 15,722 weekly downloads. As such, @npm/types popularity was classified as popular.
We found that @npm/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.