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 I use this in different projects, so I decided to put it on pypi
pip install django-logui
INSTALLED_APPS = [
#...
'adjango',
'logui',
]
settings.py
set the params# settings.py
from os.path import join
from logui.utils import check_loggers
# LOGS_DIR will be scanned for .log files
# Nearest folders are also scanned.
# LOGS_DIR *required
LOGS_DIR = join(BASE_DIR, 'logs')
LOGGING = ... # ur logging
# Console report about existing loggers
check_loggers(LOGGING)
Only is_staff
have access.
from django.urls import path, include
# Not use django.conf.settings
from logui.conf import LOGUI_URL_PREFIX
urlpatterns = [
...
path(LOGUI_URL_PREFIX, include('logui.routes.views')),
]
https:
//localhost:8000
/settings.LOGUI_URL_PREFIX
# only for request response middleware
LOGUI_REQUEST_RESPONSE_LOGGER_NAME = 'global'
MIDDLEWARE = [
...
'adjango.middleware.IPAddressMiddleware', # first IP middleware from adjango
'logui.middleware.RequestResponseLoggerMiddleware', # second logui middleware
...
]
# not required
LOGUI_URL_PREFIX = 'logui/'
LOGUI_CONTROLLERS_SETTINGS = {
'auth_required': True,
'log_name': False,
'not_auth_redirect': f'/admin/login/?next=/{LOGUI_URL_PREFIX}'
}
FAQs
Flexible, fast and productive UI for logging in Django
We found that django-logui 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.