Skip to content
respond-compromised-account logo

Compromised User Account Response Skill

respond-compromised-account

Respond to a potentially compromised user account. Use when impossible travel, credential stuffing, successful phishing, or suspicious activity indicates account compromise. Investigates activity, contains the account, removes persistence, and restores access.

dandye/ai-runbooks0installs127stars

SKILL.md

Full skill instructions

Compromised User Account Response Skill

Structured workflow for responding to potentially compromised user accounts using the PICERL model.

Inputs

  • USER_ID - Username or email of the potentially compromised user
  • CASE_ID - SOAR case ID for documentation
  • ALERT_GROUP_IDENTIFIERS - Alert group identifiers from SOAR
  • (Optional) INITIAL_ALERT_DETAILS - Summary of triggering alert

Required Outputs

After completing each phase, you MUST report these outputs:

Identification Phase

OutputDescription
AFFECTED_ACCOUNTSUser accounts confirmed or suspected compromised
SUSPICIOUS_ACTIVITYSummary of anomalous activity detected
ACCESS_SCOPESystems/​data the account had access to
COMPROMISE_LIKELIHOODAssessment level: Low, Medium, High, Confirmed

Containment Phase

OutputDescription
DISABLED_ACCOUNTSAccounts that were disabled
RESET_PASSWORDSAccounts with passwords reset
REVOKED_SESSIONSSessions terminated

Eradication Phase

OutputDescription
REMOVED_PERSISTENCEPersistence mechanisms removed (forwarding rules, OAuth apps, etc.)
CLEANED_ENDPOINTSAssociated endpoints verified clean

Recovery Phase

OutputDescription
RESTORED_ACCOUNTSAccounts re-enabled with new security controls
USER_NOTIFICATIONSUsers notified of incident and required actions

PICERL Phases

Phase 2: Identification

Step 2.1: Get Context

secops-soar.get_case_full_details(case_id=CASE_ID)

Use /​check-duplicates.

Step 2.2: Gather Initial Context

SIEM entity lookup:

secops-mcp.lookup_entity(entity_value=USER_ID)

(If IDP tools available):

  • Account status
  • Recent logins
  • MFA configuration
  • Password last changed

Step 2.3: Analyze User Activity

Search SIEM for last 96 hours:

secops-mcp.search_security_events(
    text="All activity for USER_ID",
    hours_back=96
)

Look for:

  • Anomalous logins: Unusual locations, times, IPs, user agents
  • Suspicious commands: On associated endpoints
  • Sensitive access: Files, applications, databases
  • Lateral movement: Logins to other systems
  • Data exfiltration: Large transfers, unusual destinations
  • Account changes: MFA, recovery email, forwarding rules
  • OAuth grants: New application authorizations

Step 2.4: Check Related Cases

Use /​find-relevant-case with [USER_ID].

Step 2.5: Assess Compromise Likelihood

LevelIndicators
LowSingle anomalous event, user confirms legitimate
MediumMultiple anomalies, unverified
HighClear malicious activity patterns
ConfirmedKnown credential theft, attacker actions visible

Document: COMPROMISE_LIKELIHOOD

Step 2.6: Document Identification

Use /​document-in-case with findings and assessment.


Phase 3: Containment

Step 3.1: Confirm Containment Actions

Based on COMPROMISE_LIKELIHOOD, use /​confirm-action:

High/​Confirmed:

"Disable account [USER_ID] immediately?"

Medium:

"Reset password and terminate sessions for [USER_ID]?"

Low:

"Force MFA re-enrollment for [USER_ID]?"

Step 3.2: Execute Containment

(Requires Identity Provider tools)

Actions by severity:

  • Disable account: Immediate lockout
  • Reset password: Force change on next login
  • Terminate sessions: Invalidate all active sessions
  • Revoke tokens: OAuth and API tokens

Step 3.3: Verify Containment

Monitor for continued activity:

secops-mcp.search_security_events(
    text="Activity from USER_ID after containment",
    hours_back=1
)

Use /​document-in-case with containment status.


Phase 4: Eradication

Step 4.1: Investigate Attacker Actions

Thoroughly review what the attacker did while in the account:

secops-mcp.search_security_events(
    text="All actions by USER_ID during compromise window",
    hours_back=96
)

Focus on:

  • Emails: Sent, received, forwarding rules created
  • Data access: Files downloaded, shared externally
  • Configuration: Account settings changed
  • OAuth apps: New authorizations
  • Lateral movement: Other systems accessed

Step 4.2: Check for Persistence

(Requires email/​cloud platform tools)

Look for:

  • Email forwarding rules to external addresses
  • Delegate access grants
  • Malicious OAuth applications
  • Inbox rules that hide attacker activity
  • Recovery email/​phone changes

Step 4.3: Remove Persistence

Delete/​revoke all identified persistence:

  • Remove forwarding rules
  • Revoke OAuth apps
  • Remove delegate access
  • Reset recovery options

Step 4.4: Endpoint Investigation

If account accessed specific endpoints:

Trigger endpoint triage to check for:

  • Malware dropped
  • Persistence mechanisms
  • Credential caching

Use /​document-in-case with eradication findings.


Phase 5: Recovery

Step 5.1: Ensure Threat Removed

Verify:

  • All persistence removed
  • Associated endpoints clean
  • No ongoing attacker access

Step 5.2: Secure Account

  • Strong password set
  • MFA properly configured (hardware key preferred)
  • Recovery options secured
  • Review account permissions

Step 5.3: Re-enable Account

(If disabled during containment)

Re-enable with:

  • Password change required on first login
  • MFA verification required

Step 5.4: Communicate with User

Inform the user:

  • What happened (appropriate level of detail)
  • Actions taken on their account
  • Steps they need to take
  • Warning signs to watch for
  • How to report suspicious activity

Step 5.5: Monitor Account

Enhanced monitoring for 30 days:

  • Watch for anomalous activity
  • Alert on unusual logins
  • Track sensitive data access

Use /​document-in-case with recovery status.


Phase 6: Lessons Learned

Use /​generate-report with:

  • Initial access vector (if determined)
  • Attacker actions during compromise
  • Data potentially exposed
  • Response timeline
  • Recommendations

Review:

  • How was compromise detected?
  • Was MFA bypassed? How?
  • What data was at risk?
  • What detections should be added/​tuned?

Critical Warnings

  • DO NOT execute containment without analyst confirmation
  • DO NOT re-enable without checking for persistence
  • MUST document all findings in SOAR
  • ALWAYS check for forwarding rules and OAuth apps

Containment Decision Matrix

LikelihoodDisable AccountReset PasswordTerminate Sessions
Confirmed✅ Immediate✅✅
High✅ Recommended✅✅
MediumConsider✅✅
LowNoConsiderConsider

Common Persistence Mechanisms

MechanismWhere to Check
Email forwardingMail rules
Delegate accessMailbox permissions
OAuth appsConnected applications
Inbox rulesMail filters
Recovery optionsAccount settings
API tokensDeveloper settings

More skills from dandye

enrich-ioc logo
dandye/ai-runbooks

enrich-ioc

Enrich an IOC (IP, domain, hash, URL) with threat intelligence. Use when you need to look up reputation and context for an indicator using GTI and SIEM. Returns threat intel findings, SIEM entity summary, and IOC match status.

127 0
View
hunt-lateral-movement logo
dandye/ai-runbooks

hunt-lateral-movement

Hunt for lateral movement using PsExec, WMI, or similar techniques. Use when proactively searching for attackers moving through your network using admin tools. Searches for service installations, remote process execution, and suspicious network correlations.

127 0
View
hunt-threat logo
dandye/ai-runbooks

hunt-threat

Conduct proactive, hypothesis-driven threat hunting. Use when performing advanced hunting based on threat intelligence, TTPs, or anomalies. For Tier 3 analysts or dedicated threat hunters. Supports iterative search, pivoting, and comprehensive documentation.

127 0
View
generate-sitemap logo
dandye/ai-runbooks

generate-sitemap

Generate hierarchical site structure and navigation maps. Creates visual representations of information architecture and content relationships.

127 0
View
hunt-ioc logo
dandye/ai-runbooks

hunt-ioc

Hunt for specific IOCs across your environment. Use when you have a list of IPs, domains, hashes, or URLs from threat intel and want to check if they appear in your SIEM. Systematic searching with enrichment and documentation.

127 0
View
generate-report logo
dandye/ai-runbooks

generate-report

Save investigation findings to a markdown report file. Use after completing triage, enrichment, or investigation to create a permanent record. Generates timestamped files in ./reports/ directory.

127 0
View
full-triage-alert logo
dandye/ai-runbooks

full-triage-alert

Complete Tier 1 triage workflow. Orchestrates the full alert triage process: check-duplicates, triage-alert, enrich-ioc for each entity, and either close (FP/BTP) or escalate (TP/Suspicious). Use for end-to-end alert processing.

127 0
View
deep-dive-ioc logo
dandye/ai-runbooks

deep-dive-ioc

Perform exhaustive analysis of a critical IOC. Use when an IOC needs Tier 2+ investigation beyond basic enrichment - includes GTI pivoting, deep SIEM searches, correlation with related entities, and threat attribution. For escalated IOCs requiring comprehensive investigation.

127 0
View
respond-ransomware logo
dandye/ai-runbooks

respond-ransomware

Respond to a ransomware incident following PICERL methodology. Use when ransomware is detected or suspected. Orchestrates identification, containment, eradication, and recovery phases. Requires CASE_ID and initial indicators.

127 0
View
close-case-artifact logo
dandye/ai-runbooks

close-case-artifact

Close a case or alert with proper reason and documentation. Use when triage determines an alert is FP/BTP or investigation is complete. Requires artifact ID, type, closure reason, and root cause.

127 0
View
respond-malware logo
dandye/ai-runbooks

respond-malware

Respond to a malware incident following PICERL methodology. Use when malware is detected on endpoints. Orchestrates triage, containment, eradication, and recovery. Works with triage-malware skill for analysis.

127 0
View
find-relevant-case logo
dandye/ai-runbooks

find-relevant-case

Search for existing cases related to specific indicators or entities. Use to find correlation with other investigations before starting new analysis. Takes search terms and returns matching case IDs.

127 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View