
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.
@curvenote/connect
Advanced tools
Communicate with webpages in iframes that want to receive content to render
Include an iframe
with the following attributes (examples here use React):
<iframe
id={uid}
name={uid}
title={title}
src={url}
height={height ?? 150}
sandbox="allow-scripts"
/>
The uid
should be unqiue for each iframe
, as there are potentially many on the host page.
It should also add the host.reducer
as a slcice within it's Redux store:
import { host } from '@curvenote/connect';
const store = createStore(
combineReducers({
// other application reducers
host: host.reducer,
}),
applyMiddleware(thunkMiddleware),
);
and register a message listener, connected to the store:
host.registerMessageListener(store);
Communication actions can then be dispatched to the iframe
using the host.commsDispatch
function.
import { host, actions } from '@curvenote/connect';
...
host.commsDispatch(
iframeRef.current,
actions.connectHostSendContent(uid, data)
);
iframe
pageSimilarly the iframe.reducer
should be added to the Redux store for the page
import { iframe } from '@curvenote/connect';
const store = createStore(iframe.reducer, applyMiddleware(thunkMiddleware));
And two listener/observer functions are registered:
iframe.registerMessageListener(
{
origin: 'http://localhost:3000',
},
store,
jsonRenderer,
);
iframe.registerResizeObserver(store, document);
FAQs
Communicate with iframes that want to render Jupyter outputs
The npm package @curvenote/connect receives a total of 0 weekly downloads. As such, @curvenote/connect popularity was classified as not popular.
We found that @curvenote/connect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.