HEX
Server: LiteSpeed
System: Linux cpir1.prohostdns.com 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: pelakir (2976)
PHP: 8.2.31
Disabled: exec, shell_exec, system, passthru, proc_open, proc_close, proc_terminate, proc_get_status, popen, pclose, pcntl_exec
Upload Files
File: //opt/imunify360/venv/share/imunify360/config_schema/__pycache__/antivirus.cpython-311.pyc
�

B)1j�Q��f�dZddlZd\ZZZd\ZZZZdZ	dZ
dZdZdZ
dZdZd�Zd	�Zd
�Zd�Zd�ZdS)
u

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
�N)�notify�cleanup�cleanup_on_schedule)�none�day�week�month�i��c����fd�}|S)Nc�"��|�|S�|��S�N�)�value�coerces ��@/opt/imunify360/venv/share/imunify360/config_schema/antivirus.py�fznullable.<locals>.f+s����=��L��v�e�}�}��r)rrs` r�nullabler*s#��������

�Hrc��ddlm}|jsB|�dd��|�dd��|�dd��|S)z?Reject waf_enabled changes when security_plugin_enabled is off.r)�	Wordpress�waf_enabledN�ai_bot_protection�ai_bot_protection_preset)� defence360agent.contracts.configr�SECURITY_PLUGIN_ENABLED�pop)�	wordpressrs  r�wordpress_waf_rulesr3sc��:�:�:�:�:�:��,�8��
�
�m�T�*�*�*��
�
�)�4�0�0�0��
�
�0�$�7�7�7��rc�j�tj�d��s|Sd|vr
|dsd|d<|S)zA
    To prevent turning off MyImunify if feature flag exists
    z'/var/imunify360/myimunify-freemium.flag�enableT)�os�path�exists)�	myimunifys r�myimunify_rulesr&>sF���7�>�>�C�D�D�����9���Y�x�%8��"�	�(���rc�*�idddtddd�ddd	�dd
d	�d�id��d
dddd	�dtddd�d�id��ddiddd
d	��ddttttgd��ddd
d	��dddd	��dddd	��dddd	��dddd	��dddd	��ddddd��dddd	��ddd
dd��d dt	t��ddd!��d"dtd#d$��d%dtd&d$��d'dtd&d$��d(dtdd)d��d*dtdd+d��dd
dd�dd
d
d�dd
dd�dd
dd�dd
dd�d,��id��d-ddt
tttgtd.�dtd/d0d1d2�dtd/d3d/d2�dtdd4dd2�d5�id��d6ddtdd3td2�dtdd3td2�dtd7td�dtdd3d8d2�dtdd3d8d2�dtd7d7d�dtd7td�d9�id��d:ddd
d	�dtdd;d�d<�id��d=ddtdd3td2�dtdd3td2�dtd>td�d?�id��d@ddAddd	�iid��dBddAddd	�iid��dCddDdEdid
gdF�dd
dd�dG�id��dHddAdd
d	�iid��dIddddd�dddd�ddd
d�dd
dd�ddd
d�dd
d
d�dd
d
dJdK�dd
dd�dd
d
d�dL�	id��dMdddNd	�ddOd	�dd
d	�dP�id��dQddddR��dSdt t"fdd
d	�ddTd	�dU�idV��dWddXddd	�iid��dYddd
d	�ddd	�dd
d	�dd
d	�ddZgd[�d�d\�id��d]dd^dddd	�ddd	�ddd	�ddd	�ddd	�ddd	�ddd	�d_�id�iid�i�S)`N�BACKUP_RESTORE�dict�integer��Z)�typer�min�default�booleanT�r-r/F)�max_days_in_backup�cl_backup_allowed�cl_on_premise_backup_allowed�r-�schemar/�MALWARE_CLEANUP�)�trim_file_instead_of_removal�keep_original_files_days�MALWARE_SCANNING�try_restore_from_backup_first�default_action�string)r-r/�allowed�notify_on_detect�enable_scan_inotify�optimize_realtime_scan�enable_scan_modsec�sends_file_for_analysis�enable_scan_pure_ftpd�scan_modified_files)r-r/r�cloud_assisted_scan�
rapid_scan�r-rr/�,rapid_scan_rescan_unchanging_files_frequency)r-rrr/�max_signature_size_to_scani)r-rr/�max_cloudscan_size_to_scani@�max_mrs_upload_file�max_targets_per_scan_typei���max_path_leni)�
detect_elf�	hyperscan�enable_scan_cpanel�crontabs�detect_admin_tools�MALWARE_SCAN_SCHEDULE)r-r?r/r��)r-rr.�maxr/����interval�hour�day_of_week�day_of_month�MALWARE_SCAN_INTENSITYir
)�cpu�io�ram�
user_scan_cpu�user_scan_io�
user_scan_ram�resident_ram�MALWARE_DATABASE_SCAN�)r!�
db_timeout�RESOURCE_MANAGEMENTr)�	cpu_limit�io_limit�	ram_limit�ERROR_REPORTINGr!�SEND_ADDITIONAL_DATA�ADMIN_CONTACTS�listr-)r-r6rr/)�emails�enable_icontact_notifications�PATCHMAN�PERMISSIONS�user_override_pd_rules)r-rr/r)	�support_form�advisor�user_ignore_list�upgrade_button�allow_malware_scan�user_override_malware_actions�user_override_proactive_defense�*allow_local_malware_ignore_list_management�use_plesk_service_plan�LOGGERi��)�max_log_file_size�backup_count�syscall_monitor�SECURE_SITE�r�readonlyr-�
MY_IMUNIFY�3https://{{ your billing system host }}:?{{ port }}/�r!�purchase_page_url�r-rr6r/�
CONTROL_PANEL�generic_user_notifications�	WORDPRESS�balanced)r��strict�monitor)�security_plugin_enabledr�waf_defaultrr�	DASHBOARD�
notifications)�insecure_wp_core�outdated_wp_core�scan_not_scheduled�
malware_found�malicious_redirect_detected�malware_detected�aibolit_vulnerable)�int�CLEANUP�NOTIFY�CLEANUP_ON_SCHEDULEr�NONE�DAY�WEEK�MONTH�DEFAULT_INTENSITY_CPU�DEFAULT_INTENSITY_IO�DEFAULT_INTENSITY_RAM�DEFAULT_INTENSITY_RESIDENT_RAM�%DEFAULT_RESOURCE_MANAGEMENT_CPU_LIMIT�$DEFAULT_RESOURCE_MANAGEMENT_IO_LIMIT�%DEFAULT_RESOURCE_MANAGEMENT_RAM_LIMITr)r&rrr�get_root_configr�Is�	��d���&�!��!�	'�'�&�#�&�&�
&�$�1�1��� �%
�
�d�*	��&�#�1�1�
&�!��!�	-�-����
�
�+d�J	��j�/�%�$�2�2�j�
!�$�&� &��1D�E�#�#�j�#�%�$�%�%�j�&�%�#�(�(�j�$)�%�#�+�+�%j�,%�%�#�'�'�-j�4*�%�#�,�,�5j�<(�%�#�*�*�=j�D&�%�#� $�(�(�Ej�N&�%�#�(�(�Oj�V�%� %�#���Wj�`?�%�&�s�m�m� $�#�	A�A�aj�l-�%�!�&�/�/�mj�v-�%�!�(�/�/�wj�@&�%�!�(�(�(�Aj�J,�%�!��&�	.�.�Kj�V�%�!��#�	!�!�Wj�d&� %�#���&� %�$���&� %�#�'�'�&� %�#���&� %�#�'�'�Kj�j�j�V�[n
�n
�Kd�h	 ��%� $�c�4��7�#���&�!��� ���&�!��� � � �&�!��� �!�!�)��8�="
�"
�id�h	!��&�!���4���&�!���3���&�!��4�	��&�!��� �"�"�&�!��� �!�!�&�!��#�	"�"�&�!��=�	!�!�S/�/�`�e3#
�3#
�id�P	 ��&�$���
&�!��!�	�����"
�"
�Qd�p	��&�!���D���&�!���C���&�!��D�	����,�1 
� 
�qd�d	���)��!E�!E�F��
�
�ed�n	���%�#�����	!
�	!
�od�B		��#�%�x�0� %�!�	��&� %�#�2�2����
�
�C	d�d		���%�$�����	
�	
�e	d�x		��&� $�#�!�!�&� $�#���&� $�$�%�%�&� %�#�#�#�&� $�$�'�'�&� %�$�2�2�&� %�$�6�	4�4�&� %�#�?�?�&� %�$�+�+�U/�/�`�e3
�3
�y	d�`	��&�'�&�&�&� �!�!�
-6�%�#H�#H����
�
�ad�@	����	
�
�Ad�L	���_�-�&�$���
%�M�&�&����
�
�Md�n	��,�%�#�/�/���	
�	
�od�B
	��&�$�,�,�
&�#� � �
&�$� � �
&�$�&�&�
%�)�@�@�@�-�-�#��.�3
�
�C
d�x
	���"�%.�'+�-�-�
%.�'+�-�-�
%.�'+�/�/�
%.�'+�*�*�
%.�'+�8�8�
%.�'+�-�-�
%.�'+�/�/�3��< "�A!"�!"�#�H�M'
�'
�y
d�d�drc�v�ddddd�ddd�iid�dd	dtttgdd
�dddd�d
�id�dddd�dttfddd�d	dd�d�id�dddddd�iid�dd	t
tttgd�dtddd�dtddd�dtddd�d�id�dttfddddd�iid�d�S)Nr)r2r*Tc�$�|ot|��Sr)r�)�xs r�<lambda>z%get_non_root_config.<locals>.<lambda>9s����c�!�f�f�rr+)r-rrr.r/r5r>)r-r/r?rr0rI)r=r<r�Fr1r�r�r�r�)r-r?rrV)r-rr.rXrYrZr[r)r(r;r�r�r�rUr�)r�r�r�r)r&r�r�r�r�r�rrrr�get_non_root_configr�1s����$�%� $�4�4��#�'�'���
�
��%�#� &��1D�E� $�	#�#�&� $�#�2�2����
�
�"%)�d�F�K�K���_�-�&�$���
%�M�&�&����
�
�$�,�%� $�#�/�/���

�

��%� $�c�4��7���
&�!���	��&�!���	 � �&�!���	!�!�#��0�5"
�"
�:��0�1��%� $�#� � ���
�
�qd�d�dr)�__doc__r"r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr&r�r�rrr�<module>r�s�����*
�	�	�	�(�$���$�8���c�4��������!%��()�%�'(�$�(+�%�
�
�
�������e�e�e�Pe�e�e�e�er