def rule(event):
    if all(
        [
            "/python" in event.deep_get("Image", default=""),
            "import" in event.deep_get("CommandLine", default=""),
            "base64" in event.deep_get("CommandLine", default=""),
            " -c" in event.deep_get("CommandLine", default=""),
            any(
                [
                    ".decode" in event.deep_get("CommandLine", default=""),
                    "b16decode" in event.deep_get("CommandLine", default=""),
                    "b32decode" in event.deep_get("CommandLine", default=""),
                    "b32hexdecode" in event.deep_get("CommandLine", default=""),
                    "b64decode" in event.deep_get("CommandLine", default=""),
                    "b85decode" in event.deep_get("CommandLine", default=""),
                    "z85decode" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
