
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
defender-kvstore-client
Advanced tools
The [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis or via webhooks that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Def
The Defender Autotasks service allows you to run small code snippets on a regular basis or via webhooks that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Defender Relayers, you can use Autotasks to automate regular actions on your contracts.
This client allows you to access a simple key-value data store from your Autotasks code, so you can persist data throughout executions and across different Autotasks.
Note that this package will not work outisde the Autotasks environment.
This package is included in the Autotask runtime environment, so you do not need to bundle it in your code. To install it for local development and typescript type completion, run:
npm install defender-kvstore-client
yarn add defender-kvstore-client
You can interact with your key-value store through an instance of the KeyValueStoreClient
, which is initialized with the payload injected in the your Autotask handler
function. Once initialized, you can get
, put
, or del
key-value pairs from the store.
const { KeyValueStoreClient } = require('defender-kvstore-client');
exports.handler = async function(event) {
// Creates an instance of the key-value store client
const store = new KeyValueStoreClient(event);
// Associates myValue to myKey
await store.put('myKey', 'myValue');
// Returns myValue associated to myKey
const value = await store.get('myKey');
// Deletes the entry for myKey
await store.del('myKey');
}
The Defender key-value store is only accessible from within an Autotask. To simplify local development, you can create an instance of a KeyValueStoreClient
providing an object with a path
property. The client will use a local json file at that path for all operations.
const { KeyValueStoreClient } = require('defender-kvstore-client');
async function local() {
// Creates an instance of the client that will write to a local file
const store = new KeyValueStoreClient({ path: '/tmp/foo/store.json' });
// The store.json file will contain { myKey: myValue }
await store.put('myKey', 'myValue');
}
put
into the store.FAQs
The [Defender Autotasks](https://docs.openzeppelin.com/defender/autotasks) service allows you to run small code snippets on a regular basis or via webhooks that can make calls to the Ethereum network or to external APIs. Thanks to tight integration to Def
The npm package defender-kvstore-client receives a total of 12 weekly downloads. As such, defender-kvstore-client popularity was classified as not popular.
We found that defender-kvstore-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.