IncidentResponsev2

4.17 Respond to Alerts About Unauthorized Users

Task

Respond to alerts about unauthorized users or unsuccessful logins. Investigate, triage, and escalate as necessary using established incident response processes.


Conditions


Standards


End State

Unauthorized user alerts are identified, investigated, and resolved utilizing the proper incident response procedure and documentation.


Notes


Manual Steps

Security Onion / SIEM

Advanced Filtering (Kibana Example):

event.code:4625 AND user.name:* AND NOT user.name:knownadmin

Active Directory / PowerShell

Search for recently created accounts:

Get-ADUser -Filter * -Properties whenCreated | Where-Object {$_.whenCreated -gt (Get-Date).AddDays(-1)}

Search for last login time for new/suspicious users:

Get-ADUser -Filter * -Properties LastLogonTimestamp | Select-Object Name,LastLogonTimestamp

Review Group Membership (Privileged Group Check)

Get-ADGroupMember -Identity "Domain Admins"

Linux / macOS Validation

Check for new local accounts:

cat /etc/passwd | grep -v "/nologin" | grep -v "false"

Check failed logins:

cat /var/log/auth.log | grep "Failed password"

or

lastb

Cloud IAM Monitoring

AWS → CloudTrail + GuardDuty

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateUser

GuardDuty Findings:


Azure → Azure AD Audit Logs

Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-1) -Operations "Add user","Update user","Add member to group"

or via Portal → Azure AD → Audit Logs → Filter for user creation and role changes


GCP → Cloud Audit Logs

gcloud logging read "protoPayload.methodName=google.admin.directory.user.insert"

Dependencies


Other Available Tools

Tool Platform Installation Usage
Security Onion / Wazuh Network Native SIEM/Log aggregation
PowerShell Windows Native AD investigation
OSSEC / Wazuh Cross-platform Native Local log detection
AWS CloudTrail + GuardDuty AWS Native IAM unauthorized detection
Azure AD Audit Logs + Sentinel Azure Native User and login anomalies
GCP Cloud Audit Logs GCP Native User creation and login anomalies

Operator Recommendations and Additional Tools

Operator Checklist

Best Practices


References


Revision History

Date Version Description Author
2025-05-02 1.0 Original retained + expanded for IR workflow, multi-platform unauthorized user detection Leo