форум vBSupport.ru > vBSupport.ru > Безопасность
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
WELLMOR
Продвинутый
 
WELLMOR's Avatar
Lightbulb Антивирус для веб-сервера
3

Не нашел упоминания на vbsupport.ru и решил создать топик о полюбившемся в использовании инструменте по борьбе с шелами, троянами и прочими вирусами, которые могут оказаться на незащищенном сервере или VPS. Речь идет об антивирусном сканере Linux Malware Detect

Скачиваем дистрибутив:
Code:
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
Распаковываем:
Code:
tar -zxvf maldetect-current.tar.gz
Устанавливаем:
Code:
sh ./install.sh
После завершения установки нужно обновить базу
Code:
maldet -u
Запускаем сканирование:
maldet -a /путь до папки

Файл конфигурации:
nano /usr/local/maldetect/conf.maldet

В файле конфигурации можно настроить доставку отчетов на e-mail, карантин и т.п.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Smalesh
В Черном списке
Default
0

Quote:
Originally Posted by WELLMOR View Post
В файле конфигурации можно настроить доставку отчетов на e-mail, карантин и т.п.
Тема сисек не раскрыта. Настройки конфига в студию, в том числе связку с clamav, запуск по крону, приоритет дисковых операций.

К слову, антивирус частично не актуален для vbulletin, у которого шаблоны хранятся в базе, а не в файлах. И поиск исключительно по сигнатурам делает его неэффективным. Вот эвристика как на AI-Bolit будет поинтересней.
Вывод - фтопку.
 
 
WELLMOR
Продвинутый
 
WELLMOR's Avatar
Default
0

Не подумал насчет стилей в БД, у меня то хозяйство большое там кроме булочной еще и другие цеха.
Конфиг простой по сути, Clamav используется как сканнер, бяки идут в карантин, отчеты идут на почту, запуск по крону.

P.S.: Потенциальные клиенты скорее Joomla и DLE.

WELLMOR добавил 29.09.2014 в 15:53
AI-Bolit конечно более гибкий в чем то но мне более импонирует maldet

Last edited by WELLMOR : 09-29-2014 at 03:53 PM. Reason: Добавлено сообщение
 
 
Smalesh
В Черном списке
Default
0

Quote:
Originally Posted by WELLMOR View Post
бяки идут в карантин
Когда я с ним баловался, он из пару сотен бяк, вытянутых с живых ресурсов, увидел не больше трети. Может что изменилось сейчас, но на тот момент я его забраковал.
Quote:
Originally Posted by WELLMOR View Post
Конфиг простой по сути, Clamav используется как сканнер, бяки идут в карантин, отчеты идут на почту, запуск по крону.
Я знаю, что конфиг прост. Но без него пост неполноценный)
 
 
WELLMOR
Продвинутый
 
WELLMOR's Avatar
Default
0

Согласен срабатывает не 100% сам в этом убеждался, но то что он рабочий это точно, у клиентов пачками находил шелов и троянов.

WELLMOR добавил 29.09.2014 в 16:11
Code:
#!/bin/bash
#
##
# Linux Malware Detect v1.4.1
#             (C) 1999-2010, R-fx Networks <proj@r-fx.org>
#             (C) 2010, Ryan MacDonald <ryan@r-fx.org>
# inotifywait (C) 2007, Rohan McGovern  <rohan@mcgovern.id.au>
# This program may be freely redistributed under the terms of the GNU GPL v2
##
#

##
# [ EMAIL ALERTS ]
##
# The default email alert toggle
# [0 = disabled, 1 = enabled]
email_alert=1

# The subject line for email alerts
email_subj="maldet alert from **** (***.*.***.**)"

# The destination addresses for email alerts
# [ values are comma (,) spaced ]
email_addr="****@**.ru"

# Ignore e-mail alerts for reports in which all hits have been cleaned.
# This is ideal on very busy servers where cleaned hits can drown out
# other more actionable reports.
email_ignore_clean="0"

##
# [ QUARANTINE OPTIONS ]
##
# The default quarantine action for malware hits
# [0 = alert only, 1 = move to quarantine & alert]
quar_hits=1

# Try to clean string based malware injections
# [NOTE: quar_hits=1 required]
# [0 = disabled, 1 = clean]
quar_clean=1

# The default suspend action for users wih hits
# Cpanel suspend or set shell /bin/false on non-Cpanel
# [NOTE: quar_hits=1 required]
# [0 = disabled, 1 = suspend account]
quar_susp=0
# minimum userid that can be suspended
quar_susp_minuid=500

##
# [ SCAN OPTIONS ]
##
# The maximum directory depth that the scanner will search
# [ changing this may have an impact on scan performance ]
maxdepth=15

# The minimum in bytes for a file to be included in a scan
# [ changing this may have an impact on scan performance ]
minfilesize=32

# The maximum file size for a file to be included in scan
# search results; use man find for accepted values
# [ changing this may have an impact on scan performance ]
maxfilesize="1024k"

# The maximum byte depth that the scanner will search into
# a files contents; default rules expect a 1024*60 depth
# [ changing this may have an impact on scan performance ]
hexdepth=61440

# Use named pipe (FIFO) for passing file contents hex data
# instead of stdin default; improved performance and greater
# scanning depth
# [ 0 = disabled, 1 = enabled; enabled by default ]
hex_fifo_scan=1

# The maximum byte depth that the scanner will search into
# a files contents; default rules expect a 1024*60 depth
# [ changing this may have an impact on scan performance ]
hex_fifo_depth=524288

# Attempt to detect the presence of ClamAV clamscan binary
# and use as default scanner engine; up to four times faster
# scan performance and superior hex analysis. This option
# only uses ClamAV as the scanner engine, LMD signatures
# are still the basis for detecting threats.
# [ 0 = disabled, 1 = enabled; enabled by default ]
clamav_scan=1

# Allow non-root users to perform malware scans. This must be
# enabled when using mod_security2 upload scanning or if you
# want to allow users to perform scans. When enabled, this will
# populate the /usr/local/maldetect/pub/ path with user owned
# quarantine, session and temporary paths to faciliate scans.
# These paths are populated through cron every 10min with the
# /etc/cron.d/maldet_pub cronjob.
# [ 0 = disabled, 1 = enabled; disabled by default ]
public_scan=0

##
# [ STATISTICAL ANALYSIS ]
##
# The string length test is used to identify threats based on the
# length of the longest uninterrupted string within a file. This is
# useful as obfuscated code is often stored using encoding methods
# that produce very long strings without spaces (e.g: base64)
# [ string length in characters, default = 150000 ]
string_length_scan="0"          # [ 0 = disabled, 1 = enabled ]
string_length="150000"          # [ max string length ]

##
# [ MONITORING OPTIONS ]
##
# The base number of files that can be watched under a path
# [ maximum file watches = inotify_base_watches*users ]
inotify_base_watches=15360

# The sleep time in seconds between monitor runs to scan files
# that have been created/modified/moved
inotify_stime=30

# The minimum userid that will be added to path monitoring when
# the USERS option is specified
inotify_minuid=500

# The priority that monitoring process will run as
# [ -19 = high prio , 19 = low prio, default = 10 ]
inotify_nice=10

# This is the html/web root for users relative to homedir, when
# this option is set, users will only have the webdir monitored
# [ clear option to default monitor entire user homedir ]
inotify_webdir=public_html

Last edited by WELLMOR : 09-29-2014 at 04:11 PM. Reason: Добавлено сообщение
 
 
Smalesh
В Черном списке
Default
0

Quote:
Originally Posted by WELLMOR View Post
quar_hits=1
Quote:
Originally Posted by WELLMOR View Post
quar_clean=1
C чужими проектами я бы поосторожней, особенно второе, попытка лечить. Лучше голый алерт, но хозяин барин.

Quote:
Originally Posted by WELLMOR View Post
maxfilesize="1024k"
Маловато будет (с)

Quote:
Originally Posted by WELLMOR View Post
clamav_scan=1
Если clamav установлен, разумеется.

Quote:
Originally Posted by WELLMOR View Post
inotify_nice=10
Можно спокойно пониже ставить, 3-4 достаточно.
 
 
WELLMOR
Продвинутый
 
WELLMOR's Avatar
Default
0

Quote:
Originally Posted by Smalesh View Post
C чужими проектами я бы поосторожней, особенно второе, попытка лечить. Лучше голый алерт, но хозяин барин.
Это для себя

WELLMOR добавил 29.09.2014 в 17:04
P.S.: Smalesh спасибо, учту.

Last edited by WELLMOR : 09-29-2014 at 05:04 PM. Reason: Добавлено сообщение
 
 
netwind
Гуру
 
netwind's Avatar
Default
0

Quote:
Originally Posted by WELLMOR View Post
AI-Bolit конечно более гибкий в чем то но мне более импонирует maldet
maldet в связке с clamav во много раз быстрее aibolit работает. Вариантов для некоторых случаев c очень большим объемом информации как бы и нет.
 
 
Smalesh
В Черном списке
Default
0

Quote:
Originally Posted by netwind View Post
maldet в связке с clamav во много раз быстрее aibolit работает.
А без clamav примерно так же. Но нас же интересует не скорость, а качество, не так ли?
 
 
netwind
Гуру
 
netwind's Avatar
Default
0

Quote:
Originally Posted by Smalesh View Post
А без clamav примерно так же. Но нас же интересует не скорость, а качество, не так ли?
судя по всему, не всех из вас : http://vbsupport.ru/forum/showpost.p...3&postcount=76
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 07:13 PM.


Powered by vBulletin® Version 3.5.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.