
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@keeper-security/secrets-manager-aws
Advanced tools
Keeper Secrets Manager AWS storage. This module enables secure storage of Keeper configuration using AWS Key Management Service (KMS).
Keeper Secrets Manager integrates with AWS KMS in order to provide protection for Keeper Secrets Manager configuration files. With this integration, you can protect connection details on your machine while taking advantage of Keeper's zero-knowledge encryption of all your secret credentials.
@aws-sdk/client-kms is bundled — no separate install required.Encrypt and Decrypt permissions.The Secrets Manager AWS KSM module can be installed using npm.
npm install @keeper-security/secrets-manager-aws
By default the @aws-sdk library will utilize the default connection session setup with the AWS CLI with the aws configure command. If you would like to specify the connection details, the two configuration files located at ~/.aws/config and ~/.aws/credentials can be manually edited.
See the AWS documentation for more information on setting up an AWS session here
Alternatively, configuration variables can be provided explicitly as an access key using the AwsSessionConfig data class and providing awsAccessKeyId , awsSecretAccessKey and region variables.
You will need an AWS Access Key to use the AWS KMS integration.
For more information on AWS Access Keys see the AWS documentation
Now that the AWS connection has been configured, you need to tell the Secrets Manager SDK to utilize the KMS as storage.
To do this, use AWSKeyValueStorage as your Secrets Manager storage in the SecretsManager constructor.
The storage will require an AWS Key ID, as well as the name of the Secrets Manager configuration file which will be encrypted by AWS KMS.
import { getSecrets, initializeStorage } from '@keeper-security/secrets-manager-core';
import {AWSKeyValueStorage,AWSSessionConfig,LoggerLogLevelOptions} from "@keeper-security/secrets-manager-aws";
const getKeeperRecordsAWS = async () => {
const accessKeyId ="<YOUR AWS ACCESS KEY>";
const secretAccessKey = "<YOUR AWS SECRET_ACCESS_KEY>";
const regionName = "<YOUR AWS REGION>";
const awsSessionConfig = new AWSSessionConfig(accessKeyId, secretAccessKey, regionName);
// oneTimeToken is used only once to initialize the storage
// after the first run, subsequent calls will use ksm-config.txt
const oneTimeToken = "<one time token>";
const logLevel = LoggerLogLevelOptions.debug;
let config_path = "<path to client-config-aws.json>";
const keyId = 'arn:aws:kms:ap-south-1:<accountName>:key/<keyId>';
const storage = await new AWSKeyValueStorage(keyId,config_path,awsSessionConfig,logLevel).init();
await initializeStorage(storage, oneTimeToken);
// Using token only to generate a config (for later usage)
// requires at least one access operation to bind the token
const {records} = await getSecrets({storage: storage});
console.log(records);
const firstRecord = records[0];
const firstRecordPassword = firstRecord.data.fields.find((x: { type: string; }) => x.type === 'bankAccount');
console.log(firstRecordPassword.value[0]);
}
console.log("start");
getKeeperRecordsAWS();
import { getSecrets, initializeStorage } from '@keeper-security/secrets-manager-core';
import {AWSKeyValueStorage,AWSSessionConfig} from "@keeper-security/secrets-manager-aws";
const getKeeperRecordsAWS = async () => {
const awsSessionConfig2 = new AWSSessionConfig();
let config_path = "<path to client-config-aws.json>";
const oneTimeToken = "<one time token>";
const keyId = 'arn:aws:kms:ap-south-1:<accountName>:key/<keyId>';
const keyId2 = "arn:aws:kms:<cloud-region>:<accountNumber>:key/<keyId2>"
const storage = await new AWSKeyValueStorage(keyId,config_path).init();
await storage.changeKey(keyId2);
await initializeStorage(storage, oneTimeToken);
const {records} = await getSecrets({storage: storage});
console.log(records);
const firstRecord = records[0];
const firstRecordPassword = firstRecord.data.fields.find((x: { type: string; }) => x.type === 'bankAccount');
console.log(firstRecordPassword.value[0]);
}
console.log("start");
getKeeperRecordsAWS();
we can decrypt config and save locally the decrypted file original config
const storage = await new AWSKeyValueStorage(keyId,config_path).init();
await storage.decryptConfig();
We support logging for the AWS KSM integration. Supported log levels are as follows
You're ready to use the KSM integration Using the AWS KMS Integration 👍
Once setup, the Secrets Manager AWS KMS integration supports all Secrets Manager JavaScript SDK functionality. Your code will need to be able to access the AWS KMS APIs in order to manage the decryption of the configuration file when run.
FAQs
Keeper Secrets Manager AWS storage. This module enables secure storage of Keeper configuration using AWS Key Management Service (KMS).
The npm package @keeper-security/secrets-manager-aws receives a total of 4 weekly downloads. As such, @keeper-security/secrets-manager-aws popularity was classified as not popular.
We found that @keeper-security/secrets-manager-aws demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.