Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
@useoptic/optic-node-sdk
Advanced tools
Readme
The code library standardizing data capture for Optic in Node applications. We have a list of middleware available for some frameworks, if we are missing the framework join our community and suggest the next framework or develop it with us.
The library requires @useoptic/cli
to be installed, instructions on installing it are available https://www.useoptic.com/docs/.
npm install @useoptic/optic-node-sdk
The library takes a configuration object and captures traffic in the background as long as @useoptic/cli
is installed.
All options are optional for easier configuration in your application
enabled
: boolean
(defaults to false
) Programmatically control if capturing data and sending it to OpticuploadUrl
: string
(defaults to process.env.OPTIC_LOGGING_URL
) The URL to Optics capture URL, if left blank it will expect OPTIC_LOGGING_URL
environment variable set by the Optic CLIconsole
: boolean
(defaults to false
) Send to stdout/console for debuggingframework
: string
(defaults to '') Additional information to inform Optic of where it is capturing informationUsing the default http
server within Node
const Optic = require('@useoptic/optic-node-sdk');
const http = require('http');
const optic = new Optic({
enabled: true
});
const server = http.createServer((req, res) => {
optic.captureHttpRequest(req, res);
res.writeHead(200);
res.end();
});
const port = 3000;
const host = 'localhost';
server.listen(port, host, () => {
console.log(`Listen http://${host}:${port}`);
});
To start capturing data from the SDK, run your application with
api exec "node <your example file>"
This software is licensed under the MIT license.
FAQs
Send data to Optic from JS
The npm package @useoptic/optic-node-sdk receives a total of 123 weekly downloads. As such, @useoptic/optic-node-sdk popularity was classified as not popular.
We found that @useoptic/optic-node-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.