
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.
Facilitate connections processes.
Python programs communicate amongst themselves with pickle
or json
.
They must communicate with non-python programs with json
, because
of course non-python processes cannot use pickle
.
Here's the code, an overview of the important functions:
class picklesocks:
python_make_server = partial(make_server, pickle)
python_send = partial(send, pickle)
class jsoncks:
make_server = partial(make_server, json)
send = partial(send, json)
import sys
from pickledsocks import jsoncks
is_server = sys.argv[1].strip() == 'y'
def get(data):
print(f"I got data: {data}")
return "I got your dataif is_server:
if is_server:
asyncio.run(jsoncks.make_server(get, 3952))
else:
asyncio.run(jsoncks.send("Hi server from client!", 3952))
FAQs
Websockets lib
We found that pickledsocks demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.