
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
create-cert
Advanced tools
Super simple self signed certificates
create-cert is a convenient wrapper around the pem module. It generates a self signed certificate with sensible defaults along with an associated CA certificate to validate against. It has a Promise based API and returns the keys in a format that can be passed directly into https.createServer.
npm install --save create-cert
const createCert = require('create-cert');
createCert().then(keys => console.log(keys));
// {
// key: '-----BEGIN RSA PRIVATE KEY-----\n...',
// cert: '-----BEGIN CERTIFICATE-----\n...',
// caCert: '-----BEGIN CERTIFICATE-----\n...'
// }
You can create a fully functioning HTTPS server like so:
createCert().then(keys => {
https.createServer(keys, (req, res) => res.end('Hi!')).listen(443);
});
For strict SSL usage you can set the common name for the certificate and validate it against the CA certificate. An example using the Got request client:
createCert('foobar.com').then(keys => {
https.createServer(keys, (req, res) => res.end('Hi!')).listen(443, () => {
// This request will succeed without issues
// as the SSL certificate will successfully
// validate against the CA certificate.
got('https://foobar.com', { ca: keys.caCert });
});
});
Returns a Promise which resolves to a keys object.
Type: string, object
Default: { days: 365, commonName: 'example.com' }
If a string is passed in, it will be used as the commonName. You can pass in any valid option for pem.createCertificate() to override the defaults.
create-test-server - Creates a minimal Express server for testingMIT © Luke Childs
FAQs
Super simple self signed certificates
The npm package create-cert receives a total of 2,501 weekly downloads. As such, create-cert popularity was classified as popular.
We found that create-cert demonstrated a not healthy version release cadence and project activity because the last version was released 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
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.