def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith(
                        ":\\Windows\\system32\\taskmgr.exe"
                    ),
                    event.deep_get("Image", default="").endswith(
                        ":\\Windows\\SysWOW64\\taskmgr.exe"
                    ),
                ]
            ),
            "\\AppData\\Local\\Temp\\" in event.deep_get("TargetFilename", default=""),
            "\\lsass" in event.deep_get("TargetFilename", default=""),
            ".DMP" in event.deep_get("TargetFilename", default=""),
        ]
    ):
        return True
    return False
