在 Azure 中设置和使用 ClamAV(防病毒)
我想扫描上传到我的 Azure blob 的文件。看来 ClamAV (www.clamav.net) 可能是一条出路。我看到了有关如何在 Windows 服务器上安装的说明,但对于 Azure 上托管的网站,我的程序是什么?我正在使用 ASP.NET MVC。
I want to scan the files that are uploaded to my Azure blob. It looks like ClamAV (www.clamav.net) is probably the way to go. I see instructions on how to install on a Windows server, but what would my procedure be for a site hosted on Azure? I am using ASP.NET MVC.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
免责声明:我没有使用过 ClamAV。话虽如此......
您应该能够在启动任务期间安装它(具有提升的权限)。我查看了 ClamAV wiki,发现 msi 具有静默安装:
您需要将最后一个参数更改为 /qn 以强制“无用户界面”。
挑战将是扫描斑点。您需要将文件从其 blob 复制到 VM 实例中的本地目录,然后对该文件运行 clamdscan(基于 wiki)。
我还没有尝试过这个,但基本前提应该成立:安装任何需要 MSI 作为启动任务的东西(可能需要提升模式)。
Disclaimer: I haven't used ClamAV. Having said that...
You should be able to install it during a startup task (with elevated privileges). I looked at the ClamAV wiki, and it appears that the msi has a silent-install:
You'll need to change that last parameter to /qn to force "no user interface."
The challenge will be scanning blobs. You'll need to copy files from their blobs to a local directory in your VM instance, and then run clamdscan on that file (basing off the wiki).
I haven't tried this, but the basic premise should hold up: Install anything requiring an MSI as a startup task (probably needs elevated mode).