def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\node.exe"),
                    event.deep_get("Image", default="").endswith("\\powershell.exe"),
                ]
            ),
            any(
                [
                    event.deep_get("TargetFilename", default="")
                    in ["C:\\ProgramData\\wt.exe", "C:\\ProgramData\\system.bat"],
                    all(
                        [
                            "C:\\Users\\" in event.deep_get("TargetFilename", default=""),
                            "\\AppData\\Local\\Temp\\6202033.vbs"
                            in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                    all(
                        [
                            "C:\\Users\\" in event.deep_get("TargetFilename", default=""),
                            "\\AppData\\Local\\Temp\\6202033.ps1"
                            in event.deep_get("TargetFilename", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
