> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/privilege-escalation/windows/local-service-account.md).

# Local Service Account

Local Service 계정은 Windows 서비스 계정 중 최소한의 권한만을 갖는 특수 서비스 계정입니다.

기본적으로 권한이 최소한으로 부여되었다고 하더라도, 자동화된 작업 등을 위해 서비스나 시스템 계정은 다른 사용자를 가장할 수 있는 SeImpersonatePrivilege가 있습니다.

{% hint style="info" %}
Local Service 쉘에서 whoami /priv를 할 때 해당 권한이 나타나지 않더라도 이는 복구할 수 있습니다.
{% endhint %}

보안상의 이유로 제거되었거나, 기본 설정 상 Local Service에는 SeImpersonatePrivilege가 없더라도 토큰 상에 존재하는 비활성화 된 권한들을 복구할 수 있습니다.

## Abuse

{% embed url="<https://github.com/itm4n/FullPowers?tab=readme-ov-file>" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># FullPowers를 이용한 권한 복구
</strong>.\FullPowers.exe
</code></pre>

## Demo

<figure><img src="/files/LOtwrSQA91pXcGCEiQCf" alt=""><figcaption></figcaption></figure>

## References

{% embed url="<https://learn.microsoft.com/ko-kr/windows/win32/services/localservice-account>" %}

{% embed url="<https://itm4n.github.io/localservice-privileges/>" %}
