此版本基于 LightGBM
Xdows-Model-Native exposes a stable C ABI for Xdows Security driver protection. The main app loads Xdows-Model-Native.dll directly through P/Invoke; it does not start Xdows-Model-Caller.exe in the protection path.
Native modes:
- Standard:
Xdows-Model.onnx - Flash:
Xdows-Model-Flash.onnx - Pro:
Xdows-Model-Pro.onnx
Build:
& 'D:\Visual-Studio\MSBuild\Current\Bin\amd64\MSBuild.exe' `
'D:\Code\Xdows-Model\Xdows-Model.slnx' `
/p:Configuration=Debug `
/p:Platform=x64 `
/mExpected native output:
D:\Code\Xdows-Model\x64\Debug\Xdows-Model-Native.dll
D:\Code\Xdows-Model\x64\Debug\onnxruntime.dll
D:\Code\Xdows-Model\x64\Debug\onnxruntime_providers_shared.dll
Consistency test:
& 'D:\Code\Xdows-Model\tests\Invoke-NativeConsistency.ps1' -SkipBuildThe test scans the same safe PE sample through the managed caller and the native DLL for Standard, Flash, Pro, and Adaptive modes. Verdicts (Clean / Suspicious / Malware) and threat decisions must match, and probability delta must stay within the configured tolerance. Three-tier verdicts map probability >= fixed threshold to Malware, fixed threshold > probability >= recommended threshold to Suspicious (recommended thresholds come from <model>.threshold.json manifests), and lower probabilities to Clean.
Do not commit live malware samples. Safe sample guidance lives in tests\samples\README.md.