import re


def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/wget"),
            any(
                [
                    re.match(r"\\s-O\\s", event.deep_get("CommandLine", default="")),
                    "--output-document" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "/tmp/" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
