
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
cueball-resolver
Advanced tools
Custom Resolver for https://joyent.github.io/node-cueball
Static IP resolver with add and remove interface.
npm install cueball-resolver
See for the complete API: https://joyent.github.io/node-cueball/#resolver
options
-- Object, with keys:
defaultPort
-- optional Number (defaults to 80), fallback port to use for backends
that only have an address
propertybackends
-- Array of objects, each having properties (optional, defaults to []):
address
-- String, an IP address to emit as a backendport
-- Number (optional, defaults to 80), a port number
for this backendAdds a new backend.
backend
-- object:
address
-- String, an IP address to emit as a backendport
-- Number (optional, defaults to 80), a port number
for this backendReturns with the backend.
Removes a backend.
backend
-- object:
address
-- String, an IP address to emit as a backendport
-- Number (optional, defaults to 80), a port number
for this backendReturns with the backend.
Clears all backends and add news if provided.
backends
-- Array of objects, each having properties (optional, defaults to []):
address
-- String, an IP address to emit as a backendport
-- Number (optional, defaults to 80), a port number
for this backendconst bunyan = require('bunyan')
const cueball = require('cueball')
const restifyClients = require('restify-clients')
const Resolver = require('cueball-resolver')
const agent = new cueball.HttpAgent({
log: bunyan.createLogger({
name: 'agent-test',
level: process.env.LOG_LEVEL || 'error'
}),
spares: 2,
maximum: 4,
recovery: {
default: {
timeout: 50,
retries: 2,
delay: 5,
maxDelay: 50
}
}
})
const client = restifyClients.createStringClient({
url: 'http://test.host.com',
agent
})
const resolver = new Resolver({
backends: [
{
address: '127.0.0.1',
port: 1234
}
]
})
resolver.start()
agent.createPool('test.host.com', {
resolver
})
client.get('/test', (err, req, res, data) => {}
1.0.2 (2017-10-13)
<a name="1.0.1"></a>
FAQs
Cueball resolver for Euroeka service discovery
We found that cueball-resolver 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.