
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
iframe-phone
Advanced tools
Convenient communication between the parent site and iframe based on window.postMessage()
Simplified communication between the parent site and iframe based on window.postMessage()
To install dependencies (browserify) run:
npm install
To build the library in dist directory run:
npm run build
iframe-phone is a UMD bundle (dist/iframe-phone.js). You can include it directly or use some module system (e.g. browserify or RequireJS). When you include it directly, it will be available under global iframePhone name.
var phone = new iframePhone.ParentEndpoint(iframeElement, function () {
console.log("connection with iframe established");
});
phone.post('testMessage', 'abc');
phone.addListener('response', function (content) {
console.log("parent received response: " + content);
});
// IFrameEndpoint instance is a singleton (iframe can't have multiple parents anyway).
var phone = iframePhone.getIFrameEndpoint();
phone.addListener('testMessage', function (content) {
console.log("iframe received message: " + content);
phone.post('response', 'got it');
});
// Initialize connection after all message listeners are added!
phone.initialize();
IframePhoneRpcEndpoint.callIFrameEndpoint.messageListener handles invalid JSON messagesParentEndpoint.receiveMessage handles invalid JSON messagesfile:// protocol (both ParentEndpoint and IframeEndpoint need to be upgraded to >= v1.2.0)iframe-phone is Copyright 2025 (c) by the Concord Consortium and is distributed under MIT license.
FAQs
Convenient communication between the parent site and iframe based on window.postMessage()
We found that iframe-phone demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.