def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="") == "C:\\Windows\\explorer.exe",
            event.deep_get("Image", default="") == "C:\\Windows\\System32\\cmd.exe",
            "powershell" in event.deep_get("CommandLine", default=""),
            ".lnk" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
