
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.
This library standardizes logs and exceptions, ensuring consistent error handling and tracking.
This Python library is designed to monitor and log system resource usage (CPU and RAM) during the execution of a routine. It collects data periodically and stores it in a database, allowing users to track the resource consumption of their applications.
pip install dkrresource
To use ResourceManager, configure the following parameters:
from datetime import datetime as dt
from resourcemanager import ResourceManager
routine_name = "DataPipeline"
start_date = dt.now()
routine_path = "/path/to/routine"
db_str = "postgresql://user:password@localhost/dbname"
t_channel = "resource-alerts"
t_url = "https://teams.webhook.url"
# Initialize the ResourceManager
rm = ResourceManager(
routine_name,
start_date,
routine_path,
db_str,
t_channel,
t_url
)
# Start resource monitoring
rm.start_collection()
# Execute some processing...
# Stop collecting and log final data
rm.finish_collection()
The library logs the following resource metrics in a database:
If an issue occurs during execution, ResourceManager sends an error notification to a Microsoft Teams channel using the provided webhook.
This project is licensed under the MIT License.
FAQs
This library standardizes logs and exceptions, ensuring consistent error handling and tracking.
We found that dkrresource 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.