GET /api/techniques/215/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 215,
    "key": "windows-event-log-evasion-via-native-apis",
    "unprotect_id": "U0307",
    "name": "Windows Event Log Evasion via Native APIs",
    "description": "Attackers can leverage native Windows API calls to install malicious services without generating correlating entries in the event log. Using native APIs to install services instead of the standard API calls allow attackers to bypass security controls and event logging. This technique was utilised by Stuxnet.\r\n\r\nServices are typically created through a standard Windows API call `CreateServiceA` or `CreateService`. This API is also called by the service creating Windows native tool “sc.exe” to register a service on a machine. A call to this API subsequently generates entries in the event log which corresponds to the service creation event IDs. \r\n\r\nAttackers can create services without relying on the typical API call `CreateServiceA` by directly interacting with the Windows native API calls instead. For example, the `StartService` API will a make a call to the native API `NdrClientCall2` along with registering the service start events in the event logs. \r\n\r\nBy directly calling `NdrClientCall2` to start a service that’s had the registry keys manually created, the service is started and running, and no event logs are created allowing to evade forensic analysis. This will result in a malicious service running and without any event log entry. \r\n\r\nTo take this a step further, attackers can remove the evidence in the registry and any correlating evidence loaded in the memory of “services.exe”. This leaves with no registry artefacts and no event log information to analyse.",
    "resources": "https://www.inversecos.com/2022/03/windows-event-log-evasion-via-native.html",
    "creation_date": "2022-06-27T10:44:00.403000Z",
    "tags": "stuxnet,antiforensic",
    "modification_date": "2023-10-04T10:44:07.307000Z",
    "category": [
        8
    ],
    "rules": [
        83
    ],
    "attachments": [],
    "featured_api": [
        31,
        33,
        331,
        381,
        413
    ],
    "contributors": []
}