file-scanner-windows-amsi-integration
Service icon

File Scanner (Windows AMSI Integration)

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 7 Nov (23 hours ago)
 by 
0.0
 (0 ratings)
file-scanner-windows-amsi-integration

File Scanner (Windows AMSI Integration)

Documentation
1.0.0

How to use


You can call this action in a server action immediately after file upload to block suspicious files before storage or processing.

InputTypeDescription
ssBinaryBinaryThe uploaded file content (e.g., from File Upload widget)
ssAppNameTextOptional. Your app name (used for AMSI logging).
OutputBooleanTrue if clean, False if detected.


Requirements


  • Server OS: Windows 10 or later, Windows Server 2016 or later
  • Antivirus: Microsoft Defender or any AMSI-compatible antivirus
  • Permissions: The OutSystems front-end server must have access to amsi.dll (default in Windows).


Security & Limitations


The AMSI API:

  • Does not return the specific virus name — only clean/infected status.
  • Relies on whatever antivirus engine is installed on the host machine.
  • Does not scan if Defender/AV is disabled.
  • The component does not include or redistribute Microsoft binaries — it only calls the built-in AMSI API through .NET interop.


Legal Notice


  • This extension uses Microsoft’s Antimalware Scan Interface (AMSI), which is included with Windows.
  • No Microsoft code or binary is redistributed.
  • Usage of AMSI follows Microsoft’s standard terms for Windows APIs.