Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@sigstore/core
Advanced tools
@sigstore/core is an npm package that provides tools for signing, verifying, and managing software artifacts using Sigstore's transparency log and other related services. It is designed to enhance the security and integrity of software supply chains.
Signing Artifacts
This feature allows you to sign software artifacts, ensuring their integrity and authenticity. The code sample demonstrates how to sign an artifact using the @sigstore/core package.
const sigstore = require('@sigstore/core');
async function signArtifact() {
const artifact = 'path/to/artifact';
const signature = await sigstore.sign(artifact);
console.log('Signature:', signature);
}
signArtifact();
Verifying Signatures
This feature allows you to verify the signatures of software artifacts. The code sample shows how to verify an artifact's signature using the @sigstore/core package.
const sigstore = require('@sigstore/core');
async function verifySignature() {
const artifact = 'path/to/artifact';
const signature = 'signature-string';
const isValid = await sigstore.verify(artifact, signature);
console.log('Is valid:', isValid);
}
verifySignature();
Managing Transparency Logs
This feature enables interaction with Sigstore's transparency log, which records the signing events. The code sample demonstrates how to retrieve a log entry for a given artifact hash.
const sigstore = require('@sigstore/core');
async function manageTransparencyLog() {
const logEntry = await sigstore.logEntry('artifact-hash');
console.log('Log Entry:', logEntry);
}
manageTransparencyLog();
The openpgp package provides tools for OpenPGP encryption and signing. It is a well-established library for cryptographic operations, but it does not integrate with Sigstore's transparency log or provide the same level of supply chain security features as @sigstore/core.
node-forge is a comprehensive library for cryptographic operations in Node.js. It includes tools for signing, encryption, and certificate management. However, it lacks the specific integration with Sigstore's services and transparency log that @sigstore/core offers.
pkijs is a library for Public Key Infrastructure (PKI) related tasks, including certificate handling and digital signatures. While it provides robust PKI functionalities, it does not offer the same supply chain security features and transparency log integration as @sigstore/core.
Base library for Sigstore JavaScript packages.
FAQs
Base library for Sigstore
The npm package @sigstore/core receives a total of 2,623,857 weekly downloads. As such, @sigstore/core popularity was classified as popular.
We found that @sigstore/core 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.