
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@teamfabric/authorizer
Advanced tools
Authorizer for protected routes on applications that use commerce identity
Global Authorizer function to authorize protected routes
const { authorize } = require('@teamfabric/authorizer')
exports.handler = async event => {
return authorize(event)
}
In your serverless.yml add the handeer to the route above
functions:
authorizerFunc:
handler: app/routes/auth/authorize.handler
For routes you want to protect add
authorizer:
name: authorizerFunc # execute this before function call!
resultTtlInSeconds: 0
For example
user-get:
name: ${self:provider.apiName}-user-get
memorySize: 512
handler: app/routes/user/core/get.handler
events:
- http:
method: get
path: /user/{userId}
private: true
authorizer:
name: authorizerFunc # execute this before function call!
resultTtlInSeconds: 0
FAQs
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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.