def rule(event):
    if all(
        [
            any(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("\\net.exe"),
                            event.deep_get("Image", default="").endswith("\\net1.exe"),
                        ]
                    ),
                    event.deep_get("OriginalFileName", default="") in ["net.exe", "net1.exe"],
                ]
            ),
            any(
                [
                    " accounts" in event.deep_get("CommandLine", default=""),
                    " group" in event.deep_get("CommandLine", default=""),
                    " localgroup" in event.deep_get("CommandLine", default=""),
                    " share" in event.deep_get("CommandLine", default=""),
                    " start" in event.deep_get("CommandLine", default=""),
                    " stop " in event.deep_get("CommandLine", default=""),
                    " user" in event.deep_get("CommandLine", default=""),
                    " view" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
