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.
barcode-scanner
Advanced tools
Readme
A utility for Scanning barcodes supporting HID or serial drivers(and eventually wedge)
This was built and tested against this scanner, but it should work for many.
It was originally built and tested against this scanner, but it is no longer compatible with OS X.
require the library
var BarcodeScanner = require('barcode-scanner');
If you have a serial or HID scanner:
BarcodeScanner.listen({
path : '<path of your serial or HID scanner>'
}, function(barcode){
// do stuff
});
Additionally you can refer to your HID scanner with product and vendor ids:
BarcodeScanner.listen({
product : '<product id of your HID scanner>',
vendor : '<vendor id of your HID scanner>',
}, function(barcode){
// do stuff
});
As a note, some OSs require signing to access your drivers (like OS X + Electron), you'll need to have that done in order to connect to them.
You can use the barc
command to query individual scanners connected to your machine and to monitor them for input both to understand the state of your machine or to troubleshoot connectivity issues (Probe does not work on OS X, unless you are running in a context that already has rights to, but probe-all
continues to work).
barc probe-all
will list all connected devicesbarc probe -r <serial-scanner-id>
will directly monitor a device for inputbarc probe -i <HID-scanner-id>
will directly monitor a device for inputbarc demo -r <serial-scanner-id> -d <aws_id> -s <aws_secret> -t <aws_tag>
will run a demo that fetches UPC/EAN info from amazon interactively for scanned barcodesTests use mocha/should to execute the tests from root
mocha
If you find any rough edges, please submit a bug!
Enjoy,
-Abbey Hawk Sparrow
FAQs
A utility for Scanning barcodes supporting HID or serial drivers(and eventually wedge)
The npm package barcode-scanner receives a total of 34 weekly downloads. As such, barcode-scanner popularity was classified as not popular.
We found that barcode-scanner 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
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.