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.
A python logger implementation for the Made Tech R&D department
This implementation adds flexibility for in and out of office hours alerts and inherits from the root logger provided by the python logging module. There are two log handlers available, the standard root logger and a json logger
make test
from rnd_logger import rnd_logger
logger = rnd_logger.get_logger()
def your_test_code():
logger.debug("Debug message")
logger.info("Info message")
logger.warning("Warning message")
logger.error_office_hours_alert("Office hours alert message")
logger.error_out_of_hours_alert("Out of office hours alert message")
from rnd_logger import rnd_logger
logger = rnd_logger.get_logger("json")
def your_test_code():
logger.debug("Debug message", extra={"json_key": "json_value"})
logger.info("Info message", extra={"json_key": "json_value"})
logger.warning("Warning message", extra={"json_key": "json_value"})
logger.error_office_hours_alert("Office hours alert message", extra={"json_key": "json_value"})
logger.error_out_of_hours_alert("Out of office hours alert message", extra={"json_key": "json_value"})
import logging
def test_use_case_logs_info(caplog, use_case_under_test):
with caplog.at_level(logging.INFO):
your_test_code()
records = iter(caplog.records)
record = next(records)
assert record.message == "your test log"
FAQs
Made Tech R&D Logger
We found that rnd-logger 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.