
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
file-inspector
Advanced tools
Проверяет файлы по регулярным выражениям.
установка: npm install -g file-inspector
обновление: npm update -g file-inspector
вызов справки: file-inspector -h
запуск: file-inspector --config ./config.toml
[logger] # настройка логгера
mode = "prod" # режим (prod или dev или debug)
enable = true # активация логгера
timestamp = true # выводить время лога (true или false)
type = true # выводить тип лога (true или false)
[logger.file] # настройка файлового логгера
mode = "prod" # режим (prod или dev или debug)
enable = false # активация логгера
timestamp = false # выводить время лога (true или false)
type = true # выводить тип лога (true или false)
file_prefix = "_http_" # префикс для файлов логов
file_postfix = ".logs" # постфикс для файлов логов
folder_path = "logs" # папка для файлов логов
logs_buffer = 5 # буффер сообщений
flush_interval = 3 # интервал записи в секундах
size = "1mb" # размер одного файла (mb, kb или b)
codec = "text" # тип записи (text или json)
[logger.file.keys] # дополнительные ключи для логов
key1 = "key1-val"
key2 = "key2-val"
[cron] # настройки крона
interval = "1 1 * * * *" # интервал очистки
time_zone = "Europe/Moscow" # часовой пояс
[inspector] # настройка инспектора
folders = [ # папка для сканирования
"logs"
]
regexp = [ # список регулярных выражений
"bad_text\\.(js|json)$"
]
[[notifications]]
enable = false # активация выхода
name = "email" # имя выхода
output_type = "email" # тип выхода
host = "smtp.localhost" # адрес сервера
port = 465 # порт сервера
from = "file_inspector@localhost.com" # почта отправителя
to = "" # адресаты
#cc = "" # адресаты для копии (НЕ ОБЯЗАТЕЛЬНО)
#bcc = "" # адресаты для скрытой копии (НЕ ОБЯЗАТЕЛЬНО)
subject = "file inspector" # тема письма
secure = false # использовать TLS
ignore_tls = false # игнорировать TLS сервера
attempts = 2 # количество попыток
attempt_interval = 10 # интервал повтора попытки при неудачи
[notifications.auth] # авторизация для прокси сервера (НЕ ОБЯЗАТЕЛЬНО)
type = "login" # тип авторизации (login или oauth2)
username = "mikeymike" # пользователь прокси
password = "rapunz3l" # пароль к прокси
client_id = "000000000000-xxx0.apps.googleusercontent.com" # идентификатор клиента, только oauth2 (НЕ ОБЯЗАТЕЛЬНО)
client_secret = "XxxxxXXxX0xxxxxxxx0XXxX0" # секрет, только oauth2 (НЕ ОБЯЗАТЕЛЬНО)
refresh_token = "1/XXxXxsss-xxxXXXXXxXxx0XXXxxXXx0x00xxx" # токен обновление, только oauth2 (НЕ ОБЯЗАТЕЛЬНО)
access_token = "ya29.Xx_XX0xxxxx-xX0X0XxXXxXxXXXxX0x" # токен доступа, только oauth2 (НЕ ОБЯЗАТЕЛЬНО)
expires = 1484314697598 # время устаревания токена, только oauth2 (НЕ ОБЯЗАТЕЛЬНО)
access_url = "xxxxxx" # путь доступа
service_client = "113600000000000000000" # идентификатор клиента сервиса
private_key = "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg..." # сертификат
[inspector] # настройка инспектора
folders = [ # папка для сканирования
"logs"
]
regexp = [ # список регулярных выражений
"bad_text\\.(js|json)$"
]
[[notifications]]
enable = true # активация выхода
name = "email" # имя выхода
output_type = "email" # тип выхода
host = "smtp.localhost" # адрес сервера
to = "" # адресаты
FAQs
Inspecting files in the source
We found that file-inspector demonstrated a not healthy version release cadence and project activity because the last version was released 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.