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.
The official COINS API Javascript client
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 works in the browser and in nodejs.
const hp = require('halfpenny')
const client = hp.factory({}, (err, client) => {
client.auth.login('username', 'pw')
.then(resp => console.log(resp.data.data[0].user))
.catch(err => console.error(err));
});
/**
{ username: 'drblah',
label: 'blah-blah-blah',
activeFlag: 'Y',
acctExpDate: '2220-01-01T07:00:00.000Z',
passwordExpDate: '2220-01-01T07:00:00.000Z',
siteId: '99',
isSiteAdmin: 'N',
email: 'blahblah@mrn.org',
emailUnsubscribed: false }
*/
halfpenny is written in nodejs-style commonjs. Therefore, if you are using it in the browser, make sure you are bundling it with browserify/webpack/etc! We do provide a bundled version on your behalf. See dist/
.
In order to persist data to disk, a localStorage
interface is required. In the
browser, this will default to window.localStorage
. If you use nodejs, you must pass in a localStorage
-like interface, such as node-localstorage
or dom-storage
.
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()
).
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.