def rule(event):
    if all(
        [
            any(
                [
                    "/curl" in event.deep_get("CommandLine", default=""),
                    "/wget" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    "/tmp/" in event.deep_get("CommandLine", default=""),
                    "/dev/shm/" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "sh -c" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
