[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M751YR9MZ6EXJ7D4XHHENK7B":3,"skill-same:01M751YR9MZ6EXJ7D4XHHENK7B":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":38,"commitSha":39,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M751YR9MZ6EXJ7D4XHHENK7B","investigating-phishing-email-incident",null,"Investigates phishing email incidents from initial user report through header analysis, URL\u002Fattachment detonation, impacted user identification, and containment actions using SOC tools like Splunk, Microsoft Defender, and sandbox analysis platforms. Use when a reported phishing email requires full incident investigation to determine scope and impact.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-phishing-email-incident\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-phishing-email-incident\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: investigating-phishing-email-incident\ndescription: >\n  Investigates phishing email incidents from initial user report through header analysis, URL\u002Fattachment\n  detonation, impacted user identification, and containment actions using SOC tools like Splunk,\n  Microsoft Defender, and sandbox analysis platforms. Use when a reported phishing email requires\n  full incident investigation to determine scope and impact.\ndomain: cybersecurity\nsubdomain: soc-operations\ntags: [soc, phishing, incident-response, email-security, splunk, defender, sandbox]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n# Investigating Phishing Email Incident\n\n## When to Use\n\nUse this skill when:\n- A user reports a suspicious email via the phishing report button or helpdesk ticket\n- Email security gateway flags a message that bypassed initial filters\n- Automated detection identifies credential harvesting URLs or malicious attachments\n- A phishing campaign targeting the organization requires scope assessment\n\n**Do not use** for spam or marketing emails without malicious intent — route those to email administration for filter tuning.\n\n## Prerequisites\n\n- Access to email gateway logs (Proofpoint, Mimecast, or Microsoft Defender for Office 365)\n- Splunk or SIEM with email log ingestion (O365 Message Trace, Exchange tracking logs)\n- Sandbox access (Any.Run, Joe Sandbox, or Hybrid Analysis) for URL\u002Fattachment detonation\n- Microsoft Graph API or Exchange Admin Center for email search and purge operations\n- URLScan.io and VirusTotal API keys\n\n## Workflow\n\n### Step 1: Extract and Analyze Email Headers\n\nObtain the full email headers (`.eml` file) from the reported message:\n\n```python\nimport email\nfrom email import policy\n\nwith open(\"phishing_sample.eml\", \"rb\") as f:\n    msg = email.message_from_binary_file(f, policy=policy.default)\n\n# Extract key headers\nprint(f\"From: {msg['From']}\")\nprint(f\"Return-Path: {msg['Return-Path']}\")\nprint(f\"Reply-To: {msg['Reply-To']}\")\nprint(f\"Subject: {msg['Subject']}\")\nprint(f\"Message-ID: {msg['Message-ID']}\")\nprint(f\"X-Originating-IP: {msg['X-Originating-IP']}\")\n\n# Parse Received headers (bottom-up for true origin)\nfor header in reversed(msg.get_all('Received', [])):\n    print(f\"Received: {header[:120]}\")\n\n# Check authentication results\nprint(f\"Authentication-Results: {msg['Authentication-Results']}\")\nprint(f\"DKIM-Signature: {msg.get('DKIM-Signature', 'NONE')[:80]}\")\n```\n\nKey checks:\n- **SPF**: Does `Return-Path` domain match sending IP? Look for `spf=pass` or `spf=fail`\n- **DKIM**: Is the signature valid? `dkim=pass` confirms the email was not modified in transit\n- **DMARC**: Does the `From` domain align with SPF\u002FDKIM domains? `dmarc=fail` indicates spoofing\n\n### Step 2: Analyze URLs and Attachments\n\n**URL Analysis:**\n\n```python\nimport requests\n\n# Submit URL to URLScan.io\nurl_to_scan = \"https:\u002F\u002Fevil-login.example.com\u002Foffice365\"\nresponse = requests.post(\n    \"https:\u002F\u002Furlscan.io\u002Fapi\u002Fv1\u002Fscan\u002F\",\n    headers={\"API-Key\": \"YOUR_KEY\", \"Content-Type\": \"application\u002Fjson\"},\n    json={\"url\": url_to_scan, \"visibility\": \"unlisted\"}\n)\nscan_id = response.json()[\"uuid\"]\nprint(f\"Scan URL: https:\u002F\u002Furlscan.io\u002Fresult\u002F{scan_id}\u002F\")\n\n# Check VirusTotal for URL reputation\nimport vt\nclient = vt.Client(\"YOUR_VT_API_KEY\")\nurl_id = vt.url_id(url_to_scan)\nurl_obj = client.get_object(f\"\u002Furls\u002F{url_id}\")\nprint(f\"VT Score: {url_obj.last_analysis_stats}\")\nclient.close()\n```\n\n**Attachment Analysis:**\n\n```python\nimport hashlib\n\n# Calculate file hashes\nwith open(\"attachment.docx\", \"rb\") as f:\n    content = f.read()\n    md5 = hashlib.md5(content).hexdigest()\n    sha256 = hashlib.sha256(content).hexdigest()\n\nprint(f\"MD5: {md5}\")\nprint(f\"SHA256: {sha256}\")\n\n# Submit to MalwareBazaar for lookup\nresponse = requests.post(\n    \"https:\u002F\u002Fmb-api.abuse.ch\u002Fapi\u002Fv1\u002F\",\n    data={\"query\": \"get_info\", \"hash\": sha256}\n)\nprint(response.json()[\"query_status\"])\n```\n\nSubmit to sandbox (Any.Run or Joe Sandbox) for dynamic analysis of macros, PowerShell execution, and C2 callbacks.\n\n### Step 3: Determine Campaign Scope\n\nSearch for all recipients of the same phishing email in Splunk:\n\n```spl\nindex=email sourcetype=\"o365:messageTrace\"\n(SenderAddress=\"attacker@evil-domain.com\" OR Subject=\"Urgent: Password Reset Required\"\n OR MessageId=\"\u003Cphishing-message-id@evil.com>\")\nearliest=-7d\n| stats count by RecipientAddress, DeliveryStatus, MessageTraceId\n| sort - count\n```\n\nAlternatively, use Microsoft Graph API:\n\n```python\nimport requests\n\nheaders = {\"Authorization\": f\"Bearer {access_token}\"}\nparams = {\n    \"$filter\": f\"subject eq 'Urgent: Password Reset Required' and \"\n               f\"receivedDateTime ge 2024-03-14T00:00:00Z\",\n    \"$select\": \"sender,toRecipients,subject,receivedDateTime\",\n    \"$top\": 100\n}\nresponse = requests.get(\n    \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Fusers\u002Fadmin@company.com\u002Fmessages\",\n    headers=headers, params=params\n)\nmessages = response.json()[\"value\"]\nprint(f\"Found {len(messages)} matching messages\")\n```\n\n### Step 4: Identify Impacted Users (Who Clicked)\n\nCheck proxy\u002Fweb logs for users who visited the phishing URL:\n\n```spl\nindex=proxy dest=\"evil-login.example.com\" earliest=-7d\n| stats count, values(action) AS actions, latest(_time) AS last_access\n  by src_ip, user\n| lookup asset_lookup_by_cidr ip AS src_ip OUTPUT owner, category\n| sort - count\n| table user, src_ip, owner, actions, count, last_access\n```\n\nCheck if credentials were submitted (POST requests to phishing domain):\n\n```spl\nindex=proxy dest=\"evil-login.example.com\" http_method=POST earliest=-7d\n| stats count by src_ip, user, url, status\n```\n\n### Step 5: Containment Actions\n\n**Purge emails from all mailboxes:**\n\n```powershell\n# Microsoft 365 Compliance Search and Purge\nNew-ComplianceSearch -Name \"Phishing_Purge_2024_0315\" `\n    -ExchangeLocation All `\n    -ContentMatchQuery '(From:attacker@evil-domain.com) AND (Subject:\"Urgent: Password Reset Required\")'\n\nStart-ComplianceSearch -Identity \"Phishing_Purge_2024_0315\"\n\n# After search completes, execute purge\nNew-ComplianceSearchAction -SearchName \"Phishing_Purge_2024_0315\" -Purge -PurgeType SoftDelete\n```\n\n**Block indicators:**\n- Add sender domain to email gateway block list\n- Add phishing URL domain to web proxy block list\n- Add attachment hash to endpoint detection block list\n- Create DNS sinkhole entry for phishing domain\n\n**Reset compromised credentials:**\n\n```powershell\n# Force password reset for impacted users\n$impactedUsers = @(\"user1@company.com\", \"user2@company.com\")\nforeach ($user in $impactedUsers) {\n    Set-MsolUserPassword -UserPrincipalName $user -ForceChangePassword $true\n    Revoke-AzureADUserAllRefreshToken -ObjectId (Get-AzureADUser -ObjectId $user).ObjectId\n}\n```\n\n### Step 6: Document and Report\n\nCreate incident report with full timeline, IOCs, impacted users, and remediation actions taken.\n\n```spl\n| makeresults\n| eval incident_id=\"PHI-2024-0315\",\n       reported_time=\"2024-03-15 09:12:00\",\n       sender=\"attacker@evil-domain[.]com\",\n       subject=\"Urgent: Password Reset Required\",\n       url=\"hxxps:\u002F\u002Fevil-login[.]example[.]com\u002Foffice365\",\n       recipients_count=47,\n       clicked_count=5,\n       credentials_submitted=2,\n       emails_purged=47,\n       passwords_reset=2,\n       domains_blocked=1,\n       disposition=\"True Positive - Credential Phishing Campaign\"\n| table incident_id, reported_time, sender, subject, url, recipients_count,\n        clicked_count, credentials_submitted, emails_purged, passwords_reset, disposition\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **SPF (Sender Policy Framework)** | DNS TXT record specifying which mail servers are authorized to send on behalf of a domain |\n| **DKIM** | DomainKeys Identified Mail — cryptographic signature proving email content was not altered in transit |\n| **DMARC** | Domain-based Message Authentication, Reporting and Conformance — policy combining SPF and DKIM alignment |\n| **Credential Harvesting** | Phishing technique using fake login pages to capture username\u002Fpassword combinations |\n| **Business Email Compromise (BEC)** | Social engineering attack using compromised or spoofed executive email for financial fraud |\n| **Message Trace** | O365\u002FExchange log showing email routing, delivery status, and filtering actions for forensic analysis |\n\n## Tools & Systems\n\n- **Microsoft Defender for Office 365**: Email security platform with Safe Links, Safe Attachments, and Threat Explorer for investigation\n- **URLScan.io**: Free URL analysis service capturing screenshots, DOM, cookies, and network requests\n- **Any.Run**: Interactive sandbox for detonating malicious files and URLs with real-time behavior analysis\n- **Proofpoint TAP**: Targeted Attack Protection dashboard showing clicked URLs and delivered threats per user\n- **PhishTool**: Dedicated phishing email analysis platform automating header parsing and IOC extraction\n\n## Common Scenarios\n\n- **Credential Phishing**: Fake O365 login page — check proxy for POST requests, force password resets for submitters\n- **Macro-Enabled Document**: Word doc with VBA macro — sandbox shows PowerShell download cradle, check endpoints for execution\n- **QR Code Phishing (Quishing)**: Email contains QR code linking to credential harvester — decode QR, submit URL to sandbox\n- **Thread Hijacking**: Attacker uses compromised mailbox to reply in existing threads — check for impossible travel or new inbox rules\n- **Voicemail Phishing**: Fake voicemail notification with HTML attachment — analyze attachment for redirect chains\n\n## Output Format\n\n```\nPHISHING INCIDENT REPORT — PHI-2024-0315\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nReported:     2024-03-15 09:12 UTC by jsmith (Finance)\nSender:       attacker@evil-domain[.]com (SPF: FAIL, DKIM: NONE, DMARC: FAIL)\nSubject:      Urgent: Password Reset Required\nPayload:      Credential harvesting URL\n\nIOCs:\n  URL:        hxxps:\u002F\u002Fevil-login[.]example[.]com\u002Foffice365\n  Domain:     evil-login[.]example[.]com (registered 2024-03-14, Namecheap)\n  IP:         185.234.xx.xx (VT: 12\u002F90 malicious)\n\nScope:\n  Recipients: 47 users across Finance and HR departments\n  Clicked:    5 users visited phishing URL\n  Submitted:  2 users entered credentials (confirmed via POST in proxy logs)\n\nContainment:\n  [DONE] 47 emails purged via Compliance Search\n  [DONE] Domain blocked on proxy and DNS sinkhole\n  [DONE] 2 user passwords reset, sessions revoked\n  [DONE] MFA enforced for both compromised accounts\n  [DONE] Inbox rules audited — no forwarding rules found\n\nStatus:       RESOLVED — No evidence of lateral movement post-compromise\n```\n","# Investigating Phishing Email Incident\n\n## When to Use\n\nUse this skill when:\n- A user reports a suspicious email via the phishing report button or helpdesk ticket\n- Email security gateway flags a message that bypassed initial filters\n- Automated detection identifies credential harvesting URLs or malicious attachments\n- A phishing campaign targeting the organization requires scope assessment\n\n**Do not use** for spam or marketing emails without malicious intent — route those to email administration for filter tuning.\n\n## Prerequisites\n\n- Access to email gateway logs (Proofpoint, Mimecast, or Microsoft Defender for Office 365)\n- Splunk or SIEM with email log ingestion (O365 Message Trace, Exchange tracking logs)\n- Sandbox access (Any.Run, Joe Sandbox, or Hybrid Analysis) for URL\u002Fattachment detonation\n- Microsoft Graph API or Exchange Admin Center for email search and purge operations\n- URLScan.io and VirusTotal API keys\n\n## Workflow\n\n### Step 1: Extract and Analyze Email Headers\n\nObtain the full email headers (`.eml` file) from the reported message:\n\n```python\nimport email\nfrom email import policy\n\nwith open(\"phishing_sample.eml\", \"rb\") as f:\n    msg = email.message_from_binary_file(f, policy=policy.default)\n\n# Extract key headers\nprint(f\"From: {msg['From']}\")\nprint(f\"Return-Path: {msg['Return-Path']}\")\nprint(f\"Reply-To: {msg['Reply-To']}\")\nprint(f\"Subject: {msg['Subject']}\")\nprint(f\"Message-ID: {msg['Message-ID']}\")\nprint(f\"X-Originating-IP: {msg['X-Originating-IP']}\")\n\n# Parse Received headers (bottom-up for true origin)\nfor header in reversed(msg.get_all('Received', [])):\n    print(f\"Received: {header[:120]}\")\n\n# Check authentication results\nprint(f\"Authentication-Results: {msg['Authentication-Results']}\")\nprint(f\"DKIM-Signature: {msg.get('DKIM-Signature', 'NONE')[:80]}\")\n```\n\nKey checks:\n- **SPF**: Does `Return-Path` domain match sending IP? Look for `spf=pass` or `spf=fail`\n- **DKIM**: Is the signature valid? `dkim=pass` confirms the email was not modified in transit\n- **DMARC**: Does the `From` domain align with SPF\u002FDKIM domains? `dmarc=fail` indicates spoofing\n\n### Step 2: Analyze URLs and Attachments\n\n**URL Analysis:**\n\n```python\nimport requests\n\n# Submit URL to URLScan.io\nurl_to_scan = \"https:\u002F\u002Fevil-login.example.com\u002Foffice365\"\nresponse = requests.post(\n    \"https:\u002F\u002Furlscan.io\u002Fapi\u002Fv1\u002Fscan\u002F\",\n    headers={\"API-Key\": \"YOUR_KEY\", \"Content-Type\": \"application\u002Fjson\"},\n    json={\"url\": url_to_scan, \"visibility\": \"unlisted\"}\n)\nscan_id = response.json()[\"uuid\"]\nprint(f\"Scan URL: https:\u002F\u002Furlscan.io\u002Fresult\u002F{scan_id}\u002F\")\n\n# Check VirusTotal for URL reputation\nimport vt\nclient = vt.Client(\"YOUR_VT_API_KEY\")\nurl_id = vt.url_id(url_to_scan)\nurl_obj = client.get_object(f\"\u002Furls\u002F{url_id}\")\nprint(f\"VT Score: {url_obj.last_analysis_stats}\")\nclient.close()\n```\n\n**Attachment Analysis:**\n\n```python\nimport hashlib\n\n# Calculate file hashes\nwith open(\"attachment.docx\", \"rb\") as f:\n    content = f.read()\n    md5 = hashlib.md5(content).hexdigest()\n    sha256 = hashlib.sha256(content).hexdigest()\n\nprint(f\"MD5: {md5}\")\nprint(f\"SHA256: {sha256}\")\n\n# Submit to MalwareBazaar for lookup\nresponse = requests.post(\n    \"https:\u002F\u002Fmb-api.abuse.ch\u002Fapi\u002Fv1\u002F\",\n    data={\"query\": \"get_info\", \"hash\": sha256}\n)\nprint(response.json()[\"query_status\"])\n```\n\nSubmit to sandbox (Any.Run or Joe Sandbox) for dynamic analysis of macros, PowerShell execution, and C2 callbacks.\n\n### Step 3: Determine Campaign Scope\n\nSearch for all recipients of the same phishing email in Splunk:\n\n```spl\nindex=email sourcetype=\"o365:messageTrace\"\n(SenderAddress=\"attacker@evil-domain.com\" OR Subject=\"Urgent: Password Reset Required\"\n OR MessageId=\"\u003Cphishing-message-id@evil.com>\")\nearliest=-7d\n| stats count by RecipientAddress, DeliveryStatus, MessageTraceId\n| sort - count\n```\n\nAlternatively, use Microsoft Graph API:\n\n```python\nimport requests\n\nheaders = {\"Authorization\": f\"Bearer {access_token}\"}\nparams = {\n    \"$filter\": f\"subject eq 'Urgent: Password Reset Required' and \"\n               f\"receivedDateTime ge 2024-03-14T00:00:00Z\",\n    \"$select\": \"sender,toRecipients,subject,receivedDateTime\",\n    \"$top\": 100\n}\nresponse = requests.get(\n    \"https:\u002F\u002Fgraph.microsoft.com\u002Fv1.0\u002Fusers\u002Fadmin@company.com\u002Fmessages\",\n    headers=headers, params=params\n)\nmessages = response.json()[\"value\"]\nprint(f\"Found {len(messages)} matching messages\")\n```\n\n### Step 4: Identify Impacted Users (Who Clicked)\n\nCheck proxy\u002Fweb logs for users who visited the phishing URL:\n\n```spl\nindex=proxy dest=\"evil-login.example.com\" earliest=-7d\n| stats count, values(action) AS actions, latest(_time) AS last_access\n  by src_ip, user\n| lookup asset_lookup_by_cidr ip AS src_ip OUTPUT owner, category\n| sort - count\n| table user, src_ip, owner, actions, count, last_access\n```\n\nCheck if credentials were submitted (POST requests to phishing domain):\n\n```spl\nindex=proxy dest=\"evil-login.example.com\" http_method=POST earliest=-7d\n| stats count by src_ip, user, url, status\n```\n\n### Step 5: Containment Actions\n\n**Purge emails from all mailboxes:**\n\n```powershell\n# Microsoft 365 Compliance Search and Purge\nNew-ComplianceSearch -Name \"Phishing_Purge_2024_0315\" `\n    -ExchangeLocation All `\n    -ContentMatchQuery '(From:attacker@evil-domain.com) AND (Subject:\"Urgent: Password Reset Required\")'\n\nStart-ComplianceSearch -Identity \"Phishing_Purge_2024_0315\"\n\n# After search completes, execute purge\nNew-ComplianceSearchAction -SearchName \"Phishing_Purge_2024_0315\" -Purge -PurgeType SoftDelete\n```\n\n**Block indicators:**\n- Add sender domain to email gateway block list\n- Add phishing URL domain to web proxy block list\n- Add attachment hash to endpoint detection block list\n- Create DNS sinkhole entry for phishing domain\n\n**Reset compromised credentials:**\n\n```powershell\n# Force password reset for impacted users\n$impactedUsers = @(\"user1@company.com\", \"user2@company.com\")\nforeach ($user in $impactedUsers) {\n    Set-MsolUserPassword -UserPrincipalName $user -ForceChangePassword $true\n    Revoke-AzureADUserAllRefreshToken -ObjectId (Get-AzureADUser -ObjectId $user).ObjectId\n}\n```\n\n### Step 6: Document and Report\n\nCreate incident report with full timeline, IOCs, impacted users, and remediation actions taken.\n\n```spl\n| makeresults\n| eval incident_id=\"PHI-2024-0315\",\n       reported_time=\"2024-03-15 09:12:00\",\n       sender=\"attacker@evil-domain[.]com\",\n       subject=\"Urgent: Password Reset Required\",\n       url=\"hxxps:\u002F\u002Fevil-login[.]example[.]com\u002Foffice365\",\n       recipients_count=47,\n       clicked_count=5,\n       credentials_submitted=2,\n       emails_purged=47,\n       passwords_reset=2,\n       domains_blocked=1,\n       disposition=\"True Positive - Credential Phishing Campaign\"\n| table incident_id, reported_time, sender, subject, url, recipients_count,\n        clicked_count, credentials_submitted, emails_purged, passwords_reset, disposition\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|-----------|\n| **SPF (Sender Policy Framework)** | DNS TXT record specifying which mail servers are authorized to send on behalf of a domain |\n| **DKIM** | DomainKeys Identified Mail — cryptographic signature proving email content was not altered in transit |\n| **DMARC** | Domain-based Message Authentication, Reporting and Conformance — policy combining SPF and DKIM alignment |\n| **Credential Harvesting** | Phishing technique using fake login pages to capture username\u002Fpassword combinations |\n| **Business Email Compromise (BEC)** | Social engineering attack using compromised or spoofed executive email for financial fraud |\n| **Message Trace** | O365\u002FExchange log showing email routing, delivery status, and filtering actions for forensic analysis |\n\n## Tools & Systems\n\n- **Microsoft Defender for Office 365**: Email security platform with Safe Links, Safe Attachments, and Threat Explorer for investigation\n- **URLScan.io**: Free URL analysis service capturing screenshots, DOM, cookies, and network requests\n- **Any.Run**: Interactive sandbox for detonating malicious files and URLs with real-time behavior analysis\n- **Proofpoint TAP**: Targeted Attack Protection dashboard showing clicked URLs and delivered threats per user\n- **PhishTool**: Dedicated phishing email analysis platform automating header parsing and IOC extraction\n\n## Common Scenarios\n\n- **Credential Phishing**: Fake O365 login page — check proxy for POST requests, force password resets for submitters\n- **Macro-Enabled Document**: Word doc with VBA macro — sandbox shows PowerShell download cradle, check endpoints for execution\n- **QR Code Phishing (Quishing)**: Email contains QR code linking to credential harvester — decode QR, submit URL to sandbox\n- **Thread Hijacking**: Attacker uses compromised mailbox to reply in existing threads — check for impossible travel or new inbox rules\n- **Voicemail Phishing**: Fake voicemail notification with HTML attachment — analyze attachment for redirect chains\n\n## Output Format\n\n```\nPHISHING INCIDENT REPORT — PHI-2024-0315\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nReported:     2024-03-15 09:12 UTC by jsmith (Finance)\nSender:       attacker@evil-domain[.]com (SPF: FAIL, DKIM: NONE, DMARC: FAIL)\nSubject:      Urgent: Password Reset Required\nPayload:      Credential harvesting URL\n\nIOCs:\n  URL:        hxxps:\u002F\u002Fevil-login[.]example[.]com\u002Foffice365\n  Domain:     evil-login[.]example[.]com (registered 2024-03-14, Namecheap)\n  IP:         185.234.xx.xx (VT: 12\u002F90 malicious)\n\nScope:\n  Recipients: 47 users across Finance and HR departments\n  Clicked:    5 users visited phishing URL\n  Submitted:  2 users entered credentials (confirmed via POST in proxy logs)\n\nContainment:\n  [DONE] 47 emails purged via Compliance Search\n  [DONE] Domain blocked on proxy and DNS sinkhole\n  [DONE] 2 user passwords reset, sessions revoked\n  [DONE] MFA enforced for both compromised accounts\n  [DONE] Inbox rules audited — no forwarding rules found\n\nStatus:       RESOLVED — No evidence of lateral movement post-compromise\n```\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"subdomain":36,"description":37},[26,27,28,29,30,31,32],"soc","phishing","incident-response","email-security","splunk","defender","sandbox","mahipal","cybersecurity","1.0","soc-operations","Investigates phishing email incidents from initial user report through header analysis, URL\u002Fattachment detonation, impacted user identification, and containment actions using SOC tools like Splunk, Microsoft Defender, and sandbox analysis platforms. Use when a reported phishing email requires full incident investigation to determine scope and impact.\n","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill investigating-phishing-email-incident",{"tool":50,"command":51},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill investigating-phishing-email-incident",{"tool":53,"command":54},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill investigating-phishing-email-incident","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-phishing-email-incident\u002FSKILL.md",true,[58,62,68],{"path":59,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fapi-reference.md","REFERENCE","参考文档",2514,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-phishing-email-incident\u002Freferences\u002Fapi-reference.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fagent.py","SCRIPT","脚本",7723,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Finvestigating-phishing-email-incident\u002Fscripts\u002Fagent.py",[75,83,90,97,104,111],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":79,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]