"""Malware protection composite action"""

from .base import Composite
from .chkrootkit_setup import ChkrootkitSetup
from .clamav_setup import ClamAVSetup
from .rkhunter_setup import RkhunterSetup


class MalwareProtection(Composite):
    slug = "malware-protection"
    name = {"en": "Malware Protection", "fr": "Protection contre les malwares"}
    tags = ["security", "malware", "antivirus", "rootkit", "composite"]
    category = "security"
    color = "#C0392B"
    logo = "fa-shield-virus"
    description = {
        "en": "Comprehensive malware protection with chkrootkit, rkhunter, and ClamAV"
    }
    os_available = [
        "ubuntu",
        "debian",
        "alpine",
        "freebsd",
        "rhel",
        "centos",
        "fedora",
        "arch",
    ]

    actions = [
        ChkrootkitSetup,
        RkhunterSetup,
        ClamAVSetup,
    ]
    stop_on_failure = False
