Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
arlocal-utils
Advanced tools
arlocal-utils
is a small utility package that helps creating tests for SmartWeave contracts with ArLocal. The library enables developers to easily copy transactions and contracts from any Arweave gateway to an ArLocal testing gateway.
yarn add arlocal-utils
or
npm i arlocal-utils
import ArLocalUtils from "arlocal-utils";
// create an Arweave client for the ArLocal gateway
const arlocalClient = new Arweave({
host: "localhost",
port: 123,
protocol: "http"
});
// generate a wallet on the ArLocal gateway
// it will be used later to copy txs & contracts
const wallet = await arlocalClient.wallets.generate();
// initialize the library with the ArLocal Arweave client
const arlocalUtils = new ArLocalUtils(arlocalClient, wallet);
To copy a transaction with it's data / tags from an Arweave gateway, use this code:
// returns the new ID for the copied transaction
const id = await arlocalUtils.copyTransaction(
"FGz4VCxU8_jsLeRth4aaJ586tcwgy96ot-3qD5wAFqw"
);
To copy a contract from an Arweave gateway, use this code:
// returns the new contract ID for the copied contract
const id = await arlocalUtils.copyContract(
"usjm4PCxUd5mtaon7zc97-dt-3qf67yPyqgzLnLqk5A"
);
If your tests need some example PSTs to operate with, the following code will return 4 IDs for PST contracts that you can use:
// returns an array of 4 PST contract IDs
const psts = await arlocalUtils.examplePSTs();
FAQs
Helper functions for ArLocal
The npm package arlocal-utils receives a total of 0 weekly downloads. As such, arlocal-utils popularity was classified as not popular.
We found that arlocal-utils 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.