Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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 1 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 uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.