def rule(event):
    if any(
        [
            all(
                [
                    "/python3" in event.deep_get("Image", default=""),
                    "exec(base64.b64decode('aW1wb3J0" in event.deep_get("CommandLine", default=""),
                    "kI2NF9TQ1JJUFQgPSAiYV" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/tar"),
                    "tpcp.tar.gz" in event.deep_get("CommandLine", default=""),
                    "payload.enc" in event.deep_get("CommandLine", default=""),
                    "session.key.enc" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("Image", default="").endswith("/curl"),
                    "models.litellm.cloud" in event.deep_get("CommandLine", default=""),
                    "X-Filename: tpcp.tar.gz" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    "/python3" in event.deep_get("ParentImage", default=""),
                    "systemctl" in event.deep_get("CommandLine", default=""),
                    "--user" in event.deep_get("CommandLine", default=""),
                    "sysmon" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
