Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@bracken/noodles
Advanced tools
> #### For Gitlab viewers : > Before your following steps to add this package as a npm depedency,you should set local npm registry first. > > ```bash > npm set registry http://npm.decobim.com > npm adduser --registry http://npm.decobim.com > ```
For Gitlab viewers :
Before your following steps to add this package as a npm depedency,you should set local npm registry first.
npm set registry http://npm.decobim.com npm adduser --registry http://npm.decobim.com
A node middle layer for proxy, websocket, api polymerization and request side effects.
Demo usage in ./exec
$ yarn add @decobim/noodles
const noodles = require("@decobim/noodles")
// noodles-sockets & noodles-redis are depedencies of noodles,
// you can require them directly
const sockets = require("@decobim/noodles-sockets");
const redises = require("@decobim/noodles-redis");
noodles(
port: 9020,
static: path.resolve(__dirname, "./public"),
redis: {
localhost: "redis://:@localhost/0"
},
proxy: {
ops: {
from: "/operation/v1",
to: "http://dev.api.ops.decobim.com/v1/",
hooks: {
before: {
"/identity/auth": function(req, res) {}
},
after: {
"/identity/auth": function(req, res) {}
}
}
},
license: {
from: "/license/v1",
to: "http://dev.api.license.decobim.com/v1/"
}
},
sockets: {
channels: ["first", "second", "third"]
},
jwt: {
authlessApi: [
"/identity/auth",
"/identity/project-quest-auth",
"/identity/wechat-auth",
"/admin/auth"
]
}
})
redis config, each record will create a redis connection instance
format:
redis:{
[name]:[redis address]
}
All instances can be accessed with redises[name]
const redises = require("noodles-redis")
redises[name].set("key","value")
redis instance properties:
Property | Description | Demo |
---|---|---|
set | set redis value | instance.set(key:string,value:any) |
get | get value | instance.get(key:string) |
del | delele redis record | instance.del(key:string) |
on | attach redis sub listener | instance.on(channel:string,callback:func) |
server proxy config, each record will create a a to b
proxy mapping,and attach origin request method to noodles.clients
.
format
proxy:{
[name]:{
from:[from path],
to:[target url],
hooks:{
before:{
[path]:callback
},
after:{
[path]:callback
}
}
}
}
proxy client properties
FAQs
> #### For Gitlab viewers : > Before your following steps to add this package as a npm depedency,you should set local npm registry first. > > ```bash > npm set registry http://npm.decobim.com > npm adduser --registry http://npm.decobim.com > ```
We found that @bracken/noodles 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.