Detect compromised O365 and Google Workspace email accounts by analyzing inbox rule creation, suspicious sign-in locations, mail forwarding rules, and unusual API access patterns via Microsoft Graph and audit logs.
Automate repetitive workflows and reduce manual effort
Example: Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example: Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example: Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
Time estimate: 15-45 minutes depending on use case complexity
Prerequisites
Submit your Claude Code skill and start earning
epx add mukul975/Anthropic-Cybersecurity-Skills/detecting-email-account-compromiseCompatible with
Supported agents
| name | detecting-email-account-compromise |
| description | Detect compromised O365 and Google Workspace email accounts by analyzing inbox rule creation, suspicious sign-in locations, mail forwarding rules, and unusual API access patterns via Microsoft Graph and audit logs. |
| domain | cybersecurity |
| subdomain | incident-response |
| tags | - email-compromise - office365 - microsoft-graph - bec - inbox-rules - sign-in-analysis - account-takeover |
| mitre_attack | - T1114 - T1566 - T1078 - T1534 |
| version | '1.0' |
| author | mahipal |
| license | Apache-2.0 |
| nist_csf | - RS.MA-01 - RS.MA-02 - RS.AN-03 - RC.RP-01 |
Email account compromise (EAC) is a prevalent attack vector where adversaries gain unauthorized access to mailboxes to exfiltrate sensitive data, conduct business email compromise (BEC), or establish persistence through inbox rule manipulation. Attackers commonly create forwarding rules to siphon emails, delete rules to hide evidence, or use OAuth tokens for persistent access. Detection relies on analyzing Microsoft 365 Unified Audit Logs, Azure AD sign-in logs for impossible travel or suspicious locations, inbox rule creation events (Set-InboxRule, New-InboxRule), and Microsoft Graph API access patterns. Key indicators include forwarding rules to external addresses, rules that delete or move messages matching keywords like "invoice" or "payment", and sign-ins from unusual user agents such as python-requests.
requests, msal libraries/users/{id}/mailFolders/inbox/messageRules/auditLogs/signIns for unusual locations and impossible travelA JSON report listing compromised or suspicious accounts, malicious inbox rules detected, impossible travel events, suspicious OAuth grants, and recommended containment actions with severity ratings.
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiondetecting-email-account-compromiseExecute the skills CLI command in your project's root directory to begin installation:
epx add mukul975/Anthropic-Cybersecurity-Skills/detecting-email-account-compromiseFetches detecting-email-account-compromise from mukul975/Anthropic-Cybersecurity-Skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
.cursor/skills/detecting-email-account-compromise
Restart Cursor to activate detecting-email-account-compromise. Access via /detecting-email-account-compromisein your agent's command palette.
Learn more:View source on GitHubSkills CLI docsAbout CursorWhat are agent skills?
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
performing-steganography-detection
mukul975/Anthropic-Cybersecurity-Skills · performing-steganography-detection · same repo
deobfuscating-javascript-malware
mukul975/Anthropic-Cybersecurity-Skills · deobfuscating-javascript-malware · same repo
implementing-soar-automation-with-phantom
mukul975/Anthropic-Cybersecurity-Skills · implementing-soar-automation-with-phantom · same repo
hunting-credential-stuffing-attacks
mukul975/Anthropic-Cybersecurity-Skills · hunting-credential-stuffing-attacks · same repo
building-red-team-c2-infrastructure-with-havoc
mukul975/Anthropic-Cybersecurity-Skills · building-red-team-c2-infrastructure-with-havoc · same repo
correlating-security-events-in-qradar
mukul975/Anthropic-Cybersecurity-Skills · correlating-security-events-in-qradar · same repo
Useful defaults in detecting-email-account-compromise — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend detecting-email-account-compromise for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
detecting-email-account-compromise is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Keeps context tight: detecting-email-account-compromise is the kind of skill you can hand to a new teammate without a long onboarding doc.
Keeps context tight: detecting-email-account-compromise is the kind of skill you can hand to a new teammate without a long onboarding doc.
detecting-email-account-compromise is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
detecting-email-account-compromise has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: detecting-email-account-compromise is focused, and the summary matches what you get after install.
We added detecting-email-account-compromise from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Solid pick for teams standardizing on skills: detecting-email-account-compromise is focused, and the summary matches what you get after install.
showing 1-10 of 29