
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
system-secured-storage
Advanced tools
A Node.js project that allows users to store encrypted key-value data locally on their system. This project serves as an alternate storage solution to SQLite but with enhanced security features, leveraging AES encryption to ensure the confidentiality and
A Node.js package that allows users to store encrypted key-value data locally on their system. This project serves as an alternate storage solution to SQLite but with enhanced security features, leveraging AES encryption to ensure the confidentiality and integrity of the stored data.
The project uses AES encryption to secure the data before storing it locally on the user's system. The key-value pairs are stored in a file, and the data is encrypted using a secret key. The secret key is not stored in the project, ensuring that only authorized users with the correct key can decrypt the data.
AES (Advanced Encryption Standard) is used to securely encrypt and decrypt the data before saving and retrieving it from the local storage. This ensures that the stored data cannot be easily read or tampered with.
| Property name | type | required | Description |
|---|---|---|---|
| directory | string | true | The directory to save/retrive the data from/to. |
| encryptionKey | string | true | The AES encryption key. The key can be 128, 192, or 256 bits long |
| ivKey | string | true | The AES iv key. |
You can generate these keys using online services or with the use of node package crypto.
They can be generated using cli.
// Using node
> node
// Genarate random string for the `encryption` key - 16 Characters
> require('crypto').randomBytes(32).toString('hex')
// Genarate random string for the `iv` key - 16 Characters
> require('crypto').randomBytes(16).toString('hex')
Make sure to store your keys somewhere safely.
Create an instance of the system-secure-storage with your desired options.
import SystemSecuredStorage from 'system-secured-storage';
const storage = new SystemSecuredStorage(options)
To store a key-value pair securely, use the storeData method:
// Encrypt and store the key-value pair
storage.storeData('myKey', 'mySensitiveData');
To retrieve the decrypted data:
// Retrieve and decrypt the data using the key
const decryptedData = storage.retrieveData('myKey');
To retrieve all the decrypted data:
// Retrieve and decrypt the data using the key
const decryptedData = storage.retrieveAll();
To delete data:
// Delete date by key
const decryptedData = storage.deleteData('mykey');
To reset storage meaning deleting all data:
// Delete date by key
const decryptedData = storage.reset();
FAQs
A Node.js project that allows users to store encrypted key-value data locally on their system. This project serves as an alternate storage solution to SQLite but with enhanced security features, leveraging AES encryption to ensure the confidentiality and
The npm package system-secured-storage receives a total of 0 weekly downloads. As such, system-secured-storage popularity was classified as not popular.
We found that system-secured-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.