def rule(event):
    if all(
        [
            any(
                [
                    "\\PsExec" in event.deep_get("TargetObject", default=""),
                    "\\ProcDump" in event.deep_get("TargetObject", default=""),
                    "\\Handle" in event.deep_get("TargetObject", default=""),
                    "\\LiveKd" in event.deep_get("TargetObject", default=""),
                    "\\Process Explorer" in event.deep_get("TargetObject", default=""),
                    "\\PsLoglist" in event.deep_get("TargetObject", default=""),
                    "\\PsPasswd" in event.deep_get("TargetObject", default=""),
                    "\\Active Directory Explorer" in event.deep_get("TargetObject", default=""),
                ]
            ),
            event.deep_get("TargetObject", default="").endswith("\\EulaAccepted"),
            not any(
                [
                    event.deep_get("Image", default="").endswith("\\PsExec.exe"),
                    event.deep_get("Image", default="").endswith("\\PsExec64.exe"),
                    event.deep_get("Image", default="").endswith("\\procdump.exe"),
                    event.deep_get("Image", default="").endswith("\\procdump64.exe"),
                    event.deep_get("Image", default="").endswith("\\handle.exe"),
                    event.deep_get("Image", default="").endswith("\\handle64.exe"),
                    event.deep_get("Image", default="").endswith("\\livekd.exe"),
                    event.deep_get("Image", default="").endswith("\\livekd64.exe"),
                    event.deep_get("Image", default="").endswith("\\procexp.exe"),
                    event.deep_get("Image", default="").endswith("\\procexp64.exe"),
                    event.deep_get("Image", default="").endswith("\\psloglist.exe"),
                    event.deep_get("Image", default="").endswith("\\psloglist64.exe"),
                    event.deep_get("Image", default="").endswith("\\pspasswd.exe"),
                    event.deep_get("Image", default="").endswith("\\pspasswd64.exe"),
                    event.deep_get("Image", default="").endswith("\\ADExplorer.exe"),
                    event.deep_get("Image", default="").endswith("\\ADExplorer64.exe"),
                ]
            ),
            not event.deep_get("Image", default="") == "",
        ]
    ):
        return True
    return False
