
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@0to10/secure-profiles
Advanced tools
Typescript library for working with encrypted profiles
This repository provides structures to work with encrypted profiles.
Get started quickly by following the instructions below.
Use NPM to install this library into your project:
npm install --save @0to10/secure-profiles
All configuration must be done before using any other structures provided by this package, or risk ending with an unstable state and/or corrupted data.
Configure the available cryptography parameters. Example below:
import {CryptoVersions} from '@0to10/secure-profiles';
CryptoVersions.configure([
{
number: 1,
algorithm: {
name: 'AES-CTR',
iv_length: 64,
},
},
]);
Below is an example of how to create a new profile, using the ProfileFactory
class
and adding some data to it.
The Profile
instance created by the ProfileFactory
is a roaming profile, meaning
that it is unencrypted and mutable. A roaming profile may only be used locally on an
authorised device, and must never leave that device in its unencrypted form.
'use strict';
import {ProfileFactory, RoamingProfile} from '@0to10/secure-profiles';
const factory: ProfileFactory = new ProfileFactory();
const profile: RoamingProfile = factory.create();
profile.data.set('sensitive_information', 'I am using a Qwerty keyboard.');
Any required authentication information should be stored outside the profile, as this information is not accessible until the profile is decrypted.
Before transporting the profile, it must be encrypted. Classes that transport or store a profile instance must refuse storing any unsealed profiles.
'use strict';
import {EncryptedProfile, Profile, ProfileFactory} from '@0to10/secure-profiles';
const factory: ProfileFactory = new ProfileFactory();
const profile = factory.create();
// Modify the profile
const encryptedProfile: EncryptedProfile = profile.encrypt(
profile.deriveMasterKey('MyS3cretPassw0rd!')
);
// Store the profile
FAQs
Typescript library for working with encrypted profiles
The npm package @0to10/secure-profiles receives a total of 0 weekly downloads. As such, @0to10/secure-profiles popularity was classified as not popular.
We found that @0to10/secure-profiles 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.