
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
@socketsecurity/config
Advanced tools
Reader/parser/validator tool for Socket.dev's socket.yml configuration files
npm install @socketsecurity/config
import { readSocketConfig } from '@socketsecurity/config'
const config = await readSocketConfig('socket.yml')
readSocketConfig(<path-to-config-file>)Returns a Promise that resolves to the parsed config file or, if no such file was found, it fails silently and returns undefined.
If the config file can't be read, then the Promise will be rejected with an error.
The read file is parsed using parseSocketConfigand the Promise from there is what is ultimately returned when no rejection or resolve has been made already.
parseSocketConfig(<content-of-config-file>)Returns a Promise that resolves to the parsed config.
If the config content can't be parsed or it is invalid, then the Promise will be rejected with an error.
Any additional parameters that does not conform to the schema will be silently dropped. Also: Input data will be coerced into its intended shape when possible.
socketYmlSchemaA JSON Schema object typed with JSONSchemaType<SocketYml> from Ajv
SocketValidationErrorError thrown when the parsed data doesn't conform to the JSON Schema definition.
Extends Error and adds these additional properties:
data – the data that's found to be invalidschema – the schema used to validate the contentvalidationErrors – an array of Ajv's ErrorObjectThis module has full type coverage through a types in js where TypeScript validates JSDoc annotated javascript and exports it as standard type definition files.
SocketYmlA TypeScript type representing the shape of the parsed socket.yml config
@socketsecurity/cli - our CLI uses this to parse the Socket configFAQs
Config parser for Socket.dev
The npm package @socketsecurity/config receives a total of 2,777 weekly downloads. As such, @socketsecurity/config popularity was classified as popular.
We found that @socketsecurity/config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.