def rule(event):
    if all(
        [
            "cmd" in event.deep_get("CommandLine", default=""),
            "/c" in event.deep_get("CommandLine", default=""),
            any(
                [
                    " & " in event.deep_get("CommandLine", default=""),
                    " || " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " curl" in event.deep_get("CommandLine", default=""),
                    " wget" in event.deep_get("CommandLine", default=""),
                    " timeout " in event.deep_get("CommandLine", default=""),
                    " ping " in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    " rundll32" in event.deep_get("CommandLine", default=""),
                    " mkdir " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
