How does a Windows antivirus hook into the file access process?

后端 未结 6 819
渐次进展
渐次进展 2020-11-27 03:38

The subject says it all. A normal antivirus has to intercept all file accesses, scan the files and then optionally deny access to the file (possibly even displaying a prompt

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 04:27

    File access is monitored using filesystem filter driver, which works in kernel mode. Filter drivers can be not just notified about filesystem operations, but alter the data passed via filters or deny filesystem requests.

    You can create a minifilter yourself, yet maintenance and support of your kernel-mode code can be non-trivial, especially without kernel-mode development experience. One of problems is conflicts between various filters.

    Our company offers CallbackFilter product, which provides a ready-to-use driver and lets you write business logic, related to filtering, in user mode.

提交回复
热议问题