def rule(event):
    if all(
        [
            event.deep_get("SourceImage", default="")
            in [
                "C:\\Program Files\\internet explorer\\iediagcmd.exe",
                "C:\\Windows\\System32\\CustomShellHost.exe",
            ],
            any(
                [
                    event.deep_get("TargetImage", default="").startswith("\\\\"),
                    "\\DavWWWRoot\\" in event.deep_get("TargetImage", default=""),
                ]
            ),
            any(
                [
                    event.deep_get("TargetImage", default="").endswith("\\route.exe"),
                    event.deep_get("TargetImage", default="").endswith("\\netsh.exe"),
                    event.deep_get("TargetImage", default="").endswith("\\makecab.exe"),
                    event.deep_get("TargetImage", default="").endswith("\\dxdiag.exe"),
                    event.deep_get("TargetImage", default="").endswith("\\ipconfig.exe"),
                    event.deep_get("TargetImage", default="").endswith("\\explorer.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
