# Domain Account

Adversaries may create a domain account to maintain access to victim systems. Domain accounts are those managed by Active Directory Domain Services where access and permissions are configured across systems and services that are part of that domain. Domain accounts can cover user, administrator, and service accounts. With a sufficient level of access, the net user /add /domain command can be used to create a domain account.

Such accounts may be used to establish secondary credentialed access that do not require persistent remote access tools to be deployed on the system.

Example:

A normal command to query domain users with user privileges:

![](https://315180959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRh03Vwd4nuiUi3Oje7%2F-MRhJ5Q3mm3jD_Hm0yRL%2F-MRhKZtT4Va7RdW9JEeO%2Fimage.png?alt=media\&token=fe3463b5-6875-49f9-9344-f0be015808f4)

But can we add a user?:

![](https://315180959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRh03Vwd4nuiUi3Oje7%2F-MRhJ5Q3mm3jD_Hm0yRL%2F-MRhK_gFdfrQMPfo59pt%2Fimage.png?alt=media\&token=d9e03cdf-e241-4bab-81e4-eb0d6d768f8c)

No we need to be Domain Administrators if we gain local Administrator we will only gain a local account user administrator privileges, here we need to make sure we are Domain Admins and we can perfectly create a Domain User

![](https://315180959-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRh03Vwd4nuiUi3Oje7%2F-MRhJ5Q3mm3jD_Hm0yRL%2F-MRhKaWg2tACkTuHJBo4%2Fimage.png?alt=media\&token=5683965c-16c4-4d7b-b92b-d1320263995b)

As we can see we are able to create a user but it needs a minimum of requirements to create a user successfully and once created we can add this user to the Domain Users Group so we can have complete control over the Domain


---

# 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://dmcxblue.gitbook.io/red-team-notes-2-0/red-team-techniques/persistence/t1136-create-account/domain-account.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.
