def rule(event):
    if any(
        [
            any(
                [
                    "\\Control\\Print\\Environments\\Windows x64\\Drivers\\Version-3\\QMS 810\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\Control\\Print\\Environments\\Windows x64\\Drivers\\Version-3\\mimikatz"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
            all(
                [
                    "legitprinter" in event.deep_get("TargetObject", default=""),
                    "\\Control\\Print\\Environments\\Windows"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
            all(
                [
                    any(
                        [
                            "\\Control\\Print\\Environments"
                            in event.deep_get("TargetObject", default=""),
                            "\\CurrentVersion\\Print\\Printers"
                            in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                    any(
                        [
                            "Gentil Kiwi" in event.deep_get("TargetObject", default=""),
                            "mimikatz printer" in event.deep_get("TargetObject", default=""),
                            "Kiwi Legit Printer" in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
