
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
github.com/stasel/WebRTC-iOS
A simple native WebRTC demo iOS app using swift.
This demo app's purpose is to demonstrate the bare minimum required to establish peer to peer connection with WebRTC. This is not a production ready code! In order to have a production VoIP app you will need to have a real signaling server (not a simple broadcast server like in this example), deploy your own Turn server(s) and probably integrate CallKit and push notifications.
Legacy xcode support:
WebRTC-Demo-app
folderWebRTC-Demo.xcworkspace
Config.swift
and set the defaultSignalingServerUrl
variable to your signaling server ip/host. Don't use localhost
or 127.0.0.1
if you plan to connect other devices in your network to your mac.1. Navigate to the `signaling/NodeJS` folder.
2. Run `npm install` to install all dependencies.
3. Run `node app.js` to start the server.
Note: This step requires MacOS 10.15
1. Navigate to the `signaling/Swift` folder.
2. Run `make`
3. Run `./server` to start the server
Alternative method: Open WebRTC-Demo.xcworkspace
and run the SignalingServer
scheme.
Disclaimer: I am not sure if this is the best way doing it but this has worked for me so far:
RTCAudioSession.sharedInstance().useManualAudio = true
RTCAudioSession.sharedInstance().isAudioEnabled = false
CXProvider
delegate's provider(CXProvider, didActivate: AVAudioSession)
method:
RTCAudioSession.sharedInstance().audioSessionDidActivate
with the AVAudioSession
from the CXProvider
RTCAudioSession.sharedInstance().isAudioEnabled = true
CXProvider
delegate's provider(CXProvider, didDeactivate: AVAudioSession)
call RTCAudioSession.sharedInstance().audioSessionDidDeactivate
with the AVAudioSession
from the CXProvider
WebRTC and CallKit talk from 2016: https://youtu.be/JB2MdcY1MKs?t=6m23s
FAQs
Unknown package
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
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.