def rule(event):
    if any(
        [
            all(
                [
                    "-Sta" in event.deep_get("CommandLine", default=""),
                    "-Nop" in event.deep_get("CommandLine", default=""),
                    "-Window" in event.deep_get("CommandLine", default=""),
                    "Hidden" in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            "-Command" in event.deep_get("CommandLine", default=""),
                            "-EncodedCommand" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            any(
                [
                    "sv o (New-Object IO.MemorySteam);sv d "
                    in event.deep_get("CommandLine", default=""),
                    "mshta file.hta" in event.deep_get("CommandLine", default=""),
                    "GruntHTTP" in event.deep_get("CommandLine", default=""),
                    "-EncodedCommand cwB2ACAAbwAgA" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
