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.
JavaScript client for Aptoma Smooth Storage.
This module is installed via NPM:
$ npm install ass-client
var assClient = require('ass-client')({
httpUrl: 'http://ass.com',
httpsUrl: 'https://ass.com',
accessToken: 'secret',
username: 'foobar'
});
assClient.uploadImage('my.jpg').then(function (res) {
var signedUrl = assClient.createImageUrl(res.id, {
resize: {
width: 100,
height: 100
}
});
// Create a signed URL for the uploaded image in a different size
console.log('Smaller image', signedUrl);
});
<script src="ass-client-js/dist/ass-client.js"></script>
<script>
var assClient = AssClient({
httpUrl: 'http://ass.com',
httpsUrl: 'https://ass.com',
accessToken: 'secret',
username: 'foobar'
});
assClient.uploadImage(file).then(function (res) {
var signedUrl = assClient.createImageUrl(res.id, {
resize: {
width: 100,
height: 100
}
});
// Create a signed URL for the uploaded image in a different size
console.log('Smaller image', signedUrl);
});
</script>
Create ASS API instance.
Parameters
opts: Object, Create ASS API instance
opts.httpUrl: String, URL to use for HTTP requests.
opts.httpsUrl: String, URL to use for HTTPS requests.
opts.accessToken: String, Token used for accessing the API and signing URLs.
opts.username: String, Username used in paths.
Get default headers.
Parameters
add: Object, Add headers
Returns: Object
Upload file to endpoint.
Parameters
endpoint: String, Upload file to endpoint
file: File | String | stream.Readable, File object, full path to the file or stream.Readable
headers: Object, Add additional headers
Returns: Promise, Resolves with response object
Upload a file to /files endpoint.
Parameters
file: File | String | stream.Readable, File object, full path to the file or stream.Readable
path: String, Additional path to append to /files
headers: Object, Add additional headers
Returns: Promise, Resolves with response object
Upload a image to /images endpoint.
Parameters
file: File | String | stream.Readable, File object, full path to the file or stream.Readable
headers: Object, Add additional headers
Returns: Promise, Resolves with response object
Make a request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
opts: Object, Options to the request
opts.http: Boolean, Set to true if request should use HTTP instead of HTTPS URL
opts.method: String, Request method (GET/HEAD/POST/PUT/PATCH/DELETE)
opts.headers: Object, Add additional headers
opts.timeout: Number, Number of ms to wait before timing out
opts.body: String | Object, Data to send
Returns: Promise, Resolves with response object
Make a GET request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
opts: Object, Options to request
Returns: Promise, Resolves with response object
Make a HEAD request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
opts: Object, Options to request
Returns: Promise, Resolves with response object
Make a POST request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
data: String | Object, Data to send as body
opts: Object, Options to request
Returns: Promise, Resolves with response object
Make a PATCH request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
data: String | Object, Data to send as body
opts: Object, Options to request
Returns: Promise, Resolves with response object
Make a PUT request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
data: String | Object, Data to send as body
opts: Object, Options to request
Returns: Promise, Resolves with response object
Make a DELETE request to an endpoint.
Parameters
endpoint: String, Make a request to an endpoint
opts: Object, Options to request
Returns: Promise, Resolves with response object
Get full URL to ASS endpoint, defaults to https URL.
Parameters
endpoint: String, Get full url to ASS endpoint, defaults to https url
http: Boolean, if we should return http url
Returns: String
Create a signed URL from image id and actions.
Parameters
id: Integer, image id
actions: Object, Create a signed url from image id and actions
Returns: String
Create signature for a image or file URL.
Parameters
url: String, Create transformation signature
Returns: String
FAQs
Aptoma Smooth Storage client
We found that ass-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.