def rule(event):
    if any(
        [
            all(
                [
                    " -Inject " in event.deep_get("CommandLine", default=""),
                    any(
                        [
                            " -PayloadArgs " in event.deep_get("CommandLine", default=""),
                            " -PayloadFile " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
            all(
                [
                    any(
                        [
                            " approve " in event.deep_get("CommandLine", default=""),
                            " create " in event.deep_get("CommandLine", default=""),
                            " check " in event.deep_get("CommandLine", default=""),
                            " delete " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    any(
                        [
                            " /payload:" in event.deep_get("CommandLine", default=""),
                            " /payload=" in event.deep_get("CommandLine", default=""),
                            " /updateid:" in event.deep_get("CommandLine", default=""),
                            " /updateid=" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
