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.
What is a halfpenny, anyway? Beyond an old-timey coin (AKA a pence), halfpenny is the official javascript API client for the COINS platform.
halfpenny is still in active development! it is not ready for public usage!
A HTTP request agent is required to retrieve the Client source code and to make requests. Axios was chosen as that client in order to support both server and browser environments.
In order to persist data to disk, a localstorage interface is required. In the
browser, this means supplying window.localStorage
in the browser, and using
node-localstorage
or dom-storage
on the server.
See examples The above configuration parameters are required. Note that the 'requestFn' must be promisified
The source code for the client is auto-generated during the build process of the
API itself. The API then bundles and serves the source code from /client/client.js
.
This package retrieves the bundled source code and evaluates it. The result is an
object with properties corresponding to each method exposed by an API endpoint
(e.g. ScansApi.get()
).
const agent = require('axios');
const DomStorage = require('dom-storage');
const store = new DomStorage('/path/to/file', {strict: true});
const apiClientOptions = {
xhrAgent: agent,
baseUrl: 'http://localhost:8800', // hostname:port of nodeapi service
store: store
};
const clientReady = require('halfpenny')(apiClientOptions)
.catch((err) => {
//whoops
});
// login
clientReady.then((client) => {
return client.auth.login('username', 'password');
});
// get scans
clientReady.then((client) => {
return client.ScansApi.get(null, 'M87100000')
});
See nodeapi/test/integration
for more
FAQs
Official JavaScript client for steelpenny.
The npm package halfpenny receives a total of 4 weekly downloads. As such, halfpenny popularity was classified as not popular.
We found that halfpenny demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
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.