detecting-email-account-compromise
यह क्या करती है
यह टूल पता लगाने में मदद करता है कि कहीं आपका ईमेल अकाउंट हैक तो नहीं हुआ। यह संदिग्ध गतिविधियां देखता है, जैसे अजीब फ़ॉरवर्डिंग नियम, असामान्य जगहों से लॉगिन, या बिना अनुमति वाले ऐप्स का इस्तेमाल।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि किसी ने आपके ईमेल अकाउंट में घुसपैठ की है।
- ✓यह जांचने के लिए कि कोई ईमेल नियम आपके मैसेज बिना अनुमति कहीं और तो नहीं भेज रहा।
- ✓संभावित पहचान चोरी या धोखाधड़ी के हमले की जांच करते समय।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/detecting-email-account-compromise/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ईमेल अकाउंट में हैक के संकेत जांचो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टूल आपके ईमेल अकाउंट की गतिविधि लॉग और लॉगिन रिकॉर्ड का विश्लेषण करता है। यह ऐसे पैटर्न खोजता है जो बताएं कि हैकर की पहुंच हो सकती है, जैसे ईमेल नियमों से मैसेज बाहर जाना या बहुत दूर की जगहों से लॉगिन।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Detecting Email Account Compromise
Overview
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.
When to Use
- When investigating security incidents that require detecting email account compromise
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Microsoft 365 with Unified Audit Logging enabled
- Azure AD P1/P2 for risk detection APIs
- Python 3.9+ with
requests,msallibraries - Microsoft Graph API application registration with Mail.Read, AuditLog.Read.All permissions
- Understanding of OAuth2 client credential flows
Steps
- Export audit logs or connect to Microsoft Graph API using MSAL authentication
- Query inbox rules for all monitored mailboxes via
/users/{id}/mailFolders/inbox/messageRules - Analyze rules for external forwarding (ForwardTo, RedirectTo external addresses)
- Detect suspicious rule patterns: deletion rules, keyword-matching rules targeting financial terms
- Query sign-in logs via
/auditLogs/signInsfor unusual locations and impossible travel - Check for suspicious user agent strings (python-requests, PowerShell, curl)
- Identify OAuth application consent grants for suspicious third-party apps
- Correlate findings across users to detect campaign-level compromise
- Generate compromise indicators report with severity scores
Expected Output
A JSON report listing compromised or suspicious accounts, malicious inbox rules detected, impossible travel events, suspicious OAuth grants, and recommended containment actions with severity ratings.
अक्सर पूछे जाने वाले सवाल
'फ़ॉरवर्डिंग नियम' क्या हैं?
ये आपके ईमेल में बनाई गई सेटिंग्स हैं जिनसे कुछ मैसेज अपने आप किसी दूसरे पते पर चले जाते हैं। हैकर ऐसे नियम बनाकर आपकी जानकारी चुरा सकते हैं।
'impossible travel' का क्या मतलब है?
जब लॉग में दिखे कि आपने थोड़े समय में बहुत दूर की जगहों से लॉगिन किया है, जो संभव नहीं है। इससे संकेत मिलता है कि कोई और आपका अकाउंट इस्तेमाल कर रहा हो सकता है।
क्या इसे इस्तेमाल करने के लिए तकनीकी ज्ञान चाहिए?
नहीं, यह टूल हर किसी के इस्तेमाल के लिए बनाया गया है। यह आपके ईमेल अकाउंट की सुरक्षा समस्याएं पहचानना आसान बनाता है।
जानकारी
लेखक का मूल विवरण
Detect compromised O365 and Google Workspace email accounts by analyzing Unified Audit Logs and Azure AD sign-in logs for impossible travel, inbox rule creation/deletion (Set-InboxRule, New-InboxRule), external mail forwarding rules, and unusual Microsoft Graph API access or OAuth token use. Use when investigating suspected business email compromise (BEC), account takeover, or mailbox persistence
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #7825
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।