保护 Windows 服务应用程序的安全

发布于 2024-07-09 10:02:25 字数 145 浏览 7 评论 0原文

有没有办法限制具有管理权限的用户管理基于特定 Windows 服务的应用程序? 我想限制管理员停止或重新启动我的服务,这与 Windows 事件日志服务非常相似。 产品供应商采用哪些更流行的方法或推荐的方法来保护服务(例如防病毒应用程序、防火墙等,其中服务必须持续运行)?

Is there any way to restrict users with administrative privileges from managing specific Windows service based applications? I would like to restrict administrators from stopping or re-starting my service very similar to the Windows event log service. What are some of the more popular approaches or recommended approaches to securing services followed by product vendors (like antivirus applications, firewalls etc where the service has to be running continuously)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

素衣风尘叹 2024-07-16 10:02:26

这是使用访问控制的一种方法 - http://support.microsoft.com/?kbid=288129< /a>

Here is one approach using access control - http://support.microsoft.com/?kbid=288129

无力看清 2024-07-16 10:02:25

从服务管理 mmc 中删除停止选项。 使用 .net 服务,您:

ServicesToRun = new ServiceBase[] { new Service1() };
ServicesToRun[0].CanStop = false;

使用 win32 查看SERVICE_STATUS 结构和 SetServiceStatus 函数文档。 没有测试这个选项。

也就是说,我不认为(并且希望我是对的)在用户空间中有可能阻止管理员停止服务。 管理员仍然可以通过从taskmanager或taskkill终止进程来停止服务。

To remove the stop option from the service management mmc. With .net service you:

ServicesToRun = new ServiceBase[] { new Service1() };
ServicesToRun[0].CanStop = false;

With win32 see the SERVICE_STATUS structure and SetServiceStatus function documentation. Did not test this option.

That said, I don't think ( and hope I am right ) that there is possibility, in user space, to prevent the administrator from stopping a service. The admin can still stop the service by killing the process from taskmanager or taskkill.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文