def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(
                        ":\\Program Files\\SysAidServer\\tomcat\\webapps\\usersfiles\\user.exe"
                    ),
                    event.deep_get("TargetFilename", default="").endswith(
                        ":\\Program Files\\SysAidServer\\tomcat\\webapps\\usersfiles.war"
                    ),
                    event.deep_get("TargetFilename", default="").endswith(
                        ":\\Program Files\\SysAidServer\\tomcat\\webapps\\leave"
                    ),
                ]
            ),
            ":\\Program Files\\SysAidServer\\tomcat\\webapps\\user."
            in event.deep_get("TargetFilename", default=""),
        ]
    ):
        return True
    return False
