
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
aws-accounts
Advanced tools
npm i aws-accounts
This module permits some methods to be chainable to use in the next way:
const { awsAccounts } = require('aws-accounts');
// Add profile and save on one line
awsAccounts.addProfile(options).saveFile();
insetad of
const { awsAccounts } = require('aws-accounts');
// Add profile
awsAccounts.addProfile(options)
// Save changes
awsAccounts.saveFile();
Method |
---|
addProfile |
editProfile |
deleteProfile |
switchProfile |
importCredentials |
const { awsAccounts } = require('aws-accounts');
awsAccounts.deserializeCredentials('./path/to/the/file');
Note: By the fault the package load the profiles from the default file see https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html
Note: By default the profiles are serialized as a JSON/OBJECT
const { awsAccouts } = require('aws-accounts');
awsAccouts.getCredentials('JSON');
const { awsAccouts } = require('aws-accounts');
awsAccouts.serializeCredentials('TEXT');
const { awsAccounts } = require('aws-accounts');
awsAccounts.addProfile(options);
see Accepted Options
const { awsAccounts } = require('aws-accounts');
awsAccounts.editProfile('PROFILE-NAME', options);
see Accepted Options
const { awsAccounts } = require('aws-accounts');
awsAccounts.switchProfile('NAME');
const { awsAccounts } = require('aws-accounts');
awsAccounts.deleteProfile('NAME');
const { awsAccounts } = require('aws-accounts');
awsAccounts.saveFile();
NOTE: Be careful with this action, the method overwrite the default AWS profiles file with the loaded profiles.
const { awsAccounts } = require('aws-accounts');
awsAccounts.importCredentials('./path/to/the/file.json');
NOTE: The JSON file to import needs to satisfy the package serialization
const { awsAccounts } = require('aws-accounts');
awsAccounts.exportCredentials('./path/to/the/location/');
Option | Config Entry | Type | Default |
---|---|---|---|
name | [name] | String | null |
aws_access_key_id | aws_access_key_id | String | null |
aws_secret_access_key | aws_secret_access_key | String | null |
region | region | String | null |
output | output | String | json |
cli_timestamp_format | cli_timestamp_format | String | wire |
cli_follow_urlparam | cli_follow_urlparam | Boolean | true |
ca_bundle | ca_bundle | String | null |
parameter_validation | parameter_validation | Boolean | true |
tcp_keepalive | tcp_keepalive | Boolean | true |
max_attempts | max_attempts | Number | null |
retry_mode | retry_mode | String | null |
FAQs
Manage your AWS credentials programatically
The npm package aws-accounts receives a total of 0 weekly downloads. As such, aws-accounts popularity was classified as not popular.
We found that aws-accounts 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
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.