daem0nc0re/PrivFu

SeAuditPrivilegePoC - The parameter is incorrect

Closed this issue · 4 comments

I think the PInvoke signature for AuthzRegisterSecurityEventSource is not correct. I get an error "Code 0x00000057 : The parameter is incorrect."
I have SeAuditPrivilege enabled for my user.

Thanks for reporting.
I will check next week as I am busy this week.

Did you execute the PoC with administrative privilege?
On the first execution, the PoC requires administrative privilege to install a new event source.
The reason for that error may be that the event source is not installed.

Yeah i am executing with admin, i also tried SYSTEM. The event source is successfully installed.
Running on Win10 21H2

I tried it on Win11 and Win10 1903 but failed to reproduce your issue.
It seems that my P/Invoke signature does not wrong with Microsoft document.
Please let me know if you know how to reproduce the issue.

OK i did some more investigating, turns out the event log source must be on an NTFS partition, instead of the HGFS vmware shared folder i was trying to execute from. Works fine copied to C:\