Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AmsiProvider example doesn't log any scan events #40

Closed
Tracked by #324
mvbrock opened this issue Apr 26, 2018 · 2 comments
Closed
Tracked by #324

AmsiProvider example doesn't log any scan events #40

mvbrock opened this issue Apr 26, 2018 · 2 comments

Comments

@mvbrock
Copy link

mvbrock commented Apr 26, 2018

I was able to build the Samples/AmsiProvider in VS 2017 after adding runtimeobject.lib as a linker dependency. It registered fine and added the AMSI reference registry key successfully. I followed the steps for logging and can get ETL file, and then dump the XML using tracerpt. However, I'm only seeing the Close session logs, and nothing from the Scan function, like Scan Start or Attributes. I've run a variety of PowerShell commands, including Mimikatz, and other things that Windows Defender alerts on, as well as some benign Write-Host commands and calc.exe. Any idea why Scan wouldn't get invoked or trace log? Thanks!

@oldnewthing
Copy link
Member

I suspect that your system has other providers that are taking priority. Look in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AMSI\Providers / HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\AMSI\Providers and see if there are any providers other than the sample one. If you see others, then temporarily rename them out of the way in order to let the sample provider be the one to do the scanning.

@ch1990421
Copy link

I suspect that your system has other providers that are taking priority. Look in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AMSI\Providers / HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\AMSI\Providers and see if there are any providers other than the sample one. If you see others, then temporarily rename them out of the way in order to let the sample provider be the one to do the scanning.

@oldnewthing
hello
About AMSI PROVIDERS priority
I found that on the high version of Win10, Win11, multiple AMSI Providers can coexist (all AMSI Providingrs Dll's iantimalwareProvider :: scan can be called))

I want to consult, which Windows version has the ability to coexist multiple AMSI Providers from the earliest Windows version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants