def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\tasklist.exe"),
                    event.deep_get("OriginalFileName", default="") == "tasklist.exe",
                ]
            ),
            any(
                [
                    "-m" in event.deep_get("CommandLine", default=""),
                    "/m" in event.deep_get("CommandLine", default=""),
                    "–m" in event.deep_get("CommandLine", default=""),
                    "—m" in event.deep_get("CommandLine", default=""),
                    "―m" in event.deep_get("CommandLine", default=""),
                ]
            ),
            "rdpcorets.dll" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
