def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("/wget"),
            any(
                [
                    event.deep_get("TargetFilename", default="").startswith("/tmp/"),
                    event.deep_get("TargetFilename", default="").startswith("/var/tmp/"),
                ]
            ),
        ]
    ):
        return True
    return False
