def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\WMIC.exe"),
                    event.deep_get("OriginalFileName", default="") == "wmic.exe",
                ]
            ),
            any(
                [
                    any(
                        [
                            " volumename" in event.deep_get("CommandLine", default=""),
                            " logicaldisk" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            "path" in event.deep_get("CommandLine", default=""),
                            "win32_logicaldisk" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            " volume" in event.deep_get("CommandLine", default=""),
                            " list " in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
