Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@infinex/wallet
Advanced tools
iframe-hosted web wallet for ethereum
npx @infinex/wallet [serve|build] \
--output-directory=dist-wallet \
--identifier-strategy=jwt \
--identifier-strategy-jwt-claim=id \
--identifier-strategy-jwt-jwks={} \
--redirect-url=http://localhost
build
and upload the resulting HTML/JS output to a static web host.@infinex/wallet-sdk
to communicate with the wallet.// Send 'unlock' method to iframe
{ "id": 1234, "method": "unlock", "args": { "identifier": "jwt_or_other_identifier..." } }
// Return message - Unlock was successful
{ "id": 1234, "result": { "address": "0xabc123bef987" } }
// Return message - Error while unlocking
{ "id": 1234, "error": { "message": "No wallet with the provided identifier" } }
// Send 'signmessage' method to iframe
{ "id": 5678, "method": "signMessage", "args": { "message": "my message" } }<
// Return message - Message signing was successful
{ "id": 5678, "result": { "signature": "abc123bef987" } }
// Return message - Error while signing message
{ "id": 5678, "error": { "message": "Wallet is locked" } }
// Send 'signTransaction' method to iframe - `transaction` should be a raw transaction string.
// for ethers, use `transaction.unsignedSerialized`
{
"id": 9012,
"method": "signTransaction",
"args": { "transaction": "raw-transaction" }
}
// Send 'lock' method to iframe
{ "id": 3456, "method": "lock" }
// Return message - Wallet lock was successful
{ "id": 3456, "result": {} }
// Return message - Error while locking wallet
{ "id": 3456, "error": { "message": "Wallet is already locked" } }
// Send 'clearStorage' method to iframe
{ "id": 7890, "method": "clearStorage" }
// Return mesage - wallet lock was successful
{ "id": 7890, "result": {} }
// Return message - Error while clearing storage
{ "id": 7890, "error": { "message": "Wallet app is not initialised" } }
FAQs
iframe hosted web wallet for ethereum
We found that @infinex/wallet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.