Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Sometimes there is no need for complicated blazingly fast connections with incredible throughput and even more incredible configuration. You just want made your processes communicate with each other. And that's what this library for.
There is two main entities: Client
and Server
,
which uses Connectors
to create Connections
.
The only way client and server differs is who initiate a connection. After successful connect there is no difference between them, any side can make requests to other.
Pairs of Client and Server entities.
Entity | Description |
---|---|
Simple | These entities have only one handler and two operations: request (send message, wait response, return it) and throw (send message and notify responder, that response can be dropped). They use Serializers to serialize request data. |
Route | Similar to simple, but have multiple handlers, identified by exact string match. |
Things which making connections. Connector can be serialized and passed to other processes, e.g. parent process creates connector, run server with it and start childs, which run clients with same connector.
Connector | Description |
---|---|
LocalConnector | Uses Named Pipes on Windows and Unix domain sockets on other systems, if available. This is similar to multiprocessing's connection, but LocalConnector doesn't fallback to TCP. |
TcpConnector | Uses TCP/IP protocol. |
RmqConnector | Uses AMQP message broker, can be scaled. |
You can install additional dependencies for various features
pip install communica[extraname1, extraname2]
Extra name | Feature |
---|---|
orjson | Faster JSON library, recommended with CPython. |
rabbitmq | RmqConnector, which use AMQP server for communication. |
FAQs
Easy to use IPC library
We found that communica 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.