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