Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@biscuit-auth/express-biscuit
Advanced tools
express authorization middleware for Biscuit tokens
Express authorization middleware using Biscuit tokens and policies
Example usage:
const express = require('express')
const express_biscuit = require('@biscuit-auth/express-biscuit')
const {fact} = require('@biscuit-auth/express-biscuit')
const app = express()
const pubKey = "dfd559075dcf56c8c6777fbd3c553827dd51645bb8ee87a975a172980f8f16e5"
app.get('/user/:user_id',
express_biscuit({
// the root public key used to verify the signature
publicKey: pubKey,
// a list of static authorizer policies
policies: "check if user(1); allow if true;",
// the extractor method is used to get data from the request and
// create authorizer facts from it
extractor: function(req, authorizer) {
authorizer.add_fact(
// you can use template strings to create the facts, this prevents
// injection issues when integrating user controlled data
fact`user(${parseInt(req.params.user_id)})`
)
}
}),
function (req, res) {
res.send('Hello '+req.params.user_id+"\n")
})
FAQs
express authorization middleware for Biscuit tokens
The npm package @biscuit-auth/express-biscuit receives a total of 0 weekly downloads. As such, @biscuit-auth/express-biscuit popularity was classified as not popular.
We found that @biscuit-auth/express-biscuit demonstrated a not healthy version release cadence and project activity because the last version was released 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
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.