How to Get a List of Active Directory User Accounts Created in Last 24 hours

Configurare noua (How To)

Situatie

As an administrator, you need to be always on the lookout for any activity that bucks the usual trends, as they could be indicative of an attack. Users with sufficient administrative rights can create any number of user accounts in Active Directory. These accounts can then be used to manipulate or steal sensitive data. It is therefore crucial to monitor and track account creations regularly to prevent malicious users from stealing sensitive data and conducting fraudulent acts. Let’s take a look at two ways to generate a list of user accounts created in Active Directory.

Solutie

Pasi de urmat

Step1: Configuring the audit policy

 

  1. Type GPMC.MSC in the “Run” window to open “Group Policy Management” console. You can also access it from “Start Menu” or “Administrative Tools” in Control Panel.
  2. Go to “Forest” → “Domains” → “www.domain.com”→“Domain Controllers”.
  3. Edit any existingor newly create GPO at domain controller level to access “Group Policy Management Editor”. You can create a new GPO and link it to the domain.NOTE: Our experts recommend never to edit the “Default Domain Policy” and “Default Domain Controller Policy”.
  4. Navigate to “Computer Configuration” → “Policies” → “Windows Settings” → “Security Settings” → “Local Policies”.
  5. Select “Audit Policy” to view its policies in the right pane
  6. Right-click “Audit account management”to access its properties.
  7. Click to select “Define these policy settings” checkbox. Select both “Success” and “Failure” checkboxes.
  8. Click “Apply” and “OK” to close “Audit account management Properties” window.
  9. Close “Group Policy Management Editor” window.
  10. In “Group Policy Management Console”, perform the following steps to apply this modified GPO to all Active Directory objects.
    • Select the modified GPO.
    • In the right pane’s “Security Filtering” section, click “Add” and type “Everyone” in the window that opens the screen.
    • Click “Check Names” to validate the value.
    • Click “OK” to add it.
  11. Close “Group Policy Management Console”.
  12. To update the applied policies, run the following command in “Command Prompt”: gpupdate /force

Step 2: Tracking newly created accounts using Event Viewer

The event ID for user creation is 4720. Following is a screenshot of the same.

The steps to spot users created in the last 24-hours in the ‘Event Viewer” are:

  • Open “Windows Event Viewer”.
  • In the console tree, go to “Windows Logs” → “Security”.
  • Click “Filter Current Log”,on the “Action” menu in the right-pane. In case if a filter is already applied, click “Clear Filter”.
  • From “Logged” drop-down list, select the corresponding time period to filter the events based on when they occurred (here we select 24 hours from the list).
  • Type Event ID (4720 for user account creation) in “Event IDs” that you want the filter to display.
  • To apply the filter, click “OK”The screenshot given below displays a list of user accounts created in the last 24 hours:

Tip solutie

Permanent

Voteaza

(3 din 11 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?