Agent skill · Audited from source
Analyzing Email Headers For Phishing Investigation
skill · mukul975/Anthropic-Cybersecurity-SkillsApache-2.0 licenceAudited 7 Oct 2026 · source 6c59587be632
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 6c59587be632 and found no filesystem, network or shell access and no hard-coded secrets. What it does: Parse and analyze email headers (Received chain, Return-Path, Message-ID)
Cite
Cite this page
ModelsAtlas. “Analyzing Email Headers For Phishing Investigation (mukul975/Anthropic-Cybersecurity-Skills)”. Retrieved 7 Oct 2026. https://modelsatlas.com/skills/mukul975/analyzing-email-headers-for-phishing-investigation
Trust audit
Audit 0.4.1 · source read 7 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 1 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (1)
LOWInsecure cryptocrypto.weak_hash · scripts/agent.py:129
md5 = hashlib.md5(content).hexdigest()
- Why
- No further detail recorded for this rule.
- Fix
- —
Audit 0.4.1 · source sha 6c59587be632 · 7 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publishermukul975 GitHub userOwner of the repository this skill is read from
- Source foldermukul975/Anthropic-Cybersecurity-Skills/skills/analyzing-email-headers-for-phishing-investigationThe exact folder we audited
- LicenceApache-2.0As the repository states it
- Commit pinned for this verdict6c59587be632A new audit runs when the source changes
- Repository statusNot archivedLast push 37 days ago
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Parse and analyze email headers (Received chain, Return-Path, Message-ID)
---
name: analyzing-email-headers-for-phishing-investigation
description: Parse and analyze email headers (Received chain, Return-Path, Message-ID)
to trace the true origin of a phishing email and validate SPF, DKIM, and DMARC
results to confirm or rule out sender spoofing. Use when triaging a suspicious or
reported email, investigating a phishing incident, or verifying whether a message's
sender domain was spoofed.
domain: cybersecurity
subdomain: digital-forensics
tags:
- forensics
- email-analysis
- phishing
- spf
- dkim
- dmarc
- header-analysis
version: '1.0'
author: mahipal
license: Apache-2.0
atlas_techniques:
- AML.T0052
nist_csf:
- RS.AN-03
- DE.AE-02
- RS.MA-01
mitre_attack:
- T1566.001
- T1566.002
- T1598.003
mitre_f3:
version: '1.1'
tactics:
- reconnaissance
- initial-access
- stealth
- resource-development
techniques:
- id: T1598
name: Phishing for Information
tactic: reconnaissance
source: attack
- id: T1660
name: Phishing
tactic: initial-access
source: attack
- id: T1672
name: Email Spoofing
tactic: stealth
source: attack
- id: F1032
name: Impersonate Official
tactic: initial-access
source: f3
- id: T1583.001
name: 'Acquire Infrastructure: Domains'
tactic: resource-development
source: attack
- id: F1020.002
name: 'Create Fake Materials: Fake Website'
tactic: resource-development
source: f3
---
# Analyzing Email Headers for Phishing Investigation
## When to Use
- When investigating a suspected phishing email to determine its true origin
- For verifying sender authenticity and detecting email spoofing
- During incident response when a user has clicked a phishing link
- When tracing the delivery path and relay servers of a suspicious email
- For validating SPF, DKIM, and DMARC alignment to identify forgery
## Prerequisites
- Raw email headers from the suspicious message (EML or MSG format)
- Understanding of SMTP protocol and email header fields
- Access to DNS lookup tools (dig, nslookup) for SPF/DKIM/DMARC verification
- Email header analysis tools (MHA, emailheaders.net concepts)
- Python with email parsing libraries for automated analysis
- Access to threat intelligence platforms for IP/domain reputation
## Workflow
### Step 1: Extract Raw Email Headers
```bash
# Export from Outlook: Open email > File > Properties > Internet Headers
# Export from Gmail: Open email > Three dots > Show original
# Export from Thunderbird: View > Message Source
# If working with EML file from forensic image
cp /mnt/evidence/Users/suspect/AppData/Local/Microsoft/Outlook/phishing_email.eml \
/cases/case-2024-001/email/
# If working with PST file, extract individual messages
pip install pypff
python3 << 'PYEOF'
import pypff
pst = pypff.file()
pst.open("/cases/case-2024-001/email/outlook.pst")
root = pst.get_root_folder()
def extract_messages(folder, path=""):
for i in range(folder.get_number_of_sub_messages()):
msg = folder.get_sub_message(i)
headers = msg.get_transport_headers()
subject = msg.get_subject()
if headers:
filename = f"/cases/case-2024-001/email/msg_{i}_{subject[:30]}.txt"
with open(filename, 'w') as f:
f.write(headers)
for i in range(folder.get_number_of_sub_folders()):
extract_messages(folder.get_sub_folder(i))
extract_messages(root)
PYEOF
```
### Step 2: Parse the Email Header Chain
```bash
# Parse headers using Python email library
python3 << 'PYEOF'
import email
from email import policy
with open('/cases/case-2024-001/email/phishing_email.eml', 'r') as f:
msg = email.message_from_file(f, policy=policy.default)
print("=== KEY HEADER FIELDS ===")
print(f"From: {msg['From']}")
print(f"To: {msg['To']}")
print(f"Subject: {msg['Subject']}")
print(f"Date: {msg['Date']}")
print(f"Message-ID: {msg['Message-ID']}")
print(f"Reply-To: {msg['Reply-To']}")
print(f"Return-Path: {msg['Return-Path']}")
print(f"X-Mailer: {msg['X-Mailer']}")
print(f"X-Originating-IP: {msg['X-Originating-IP']}")
print("\n=== RECEIVED HEADERS (bottom-up = chronological) ===")
received_headers = msg.get_all('Received')
if received_headers:
for i, header in enumerate(reversed(received_headers)):
print(f"\nHop {i+1}: {header.strip()}")
print("\n=== AUTHENTICATION RESULTS ===")
auth_results = msg.get_all('Authentication-Results')
if auth_results:
for result in auth_results:
print(result)
print(f"\nARC-Authentication-Results: {msg.get('ARC-Authentication-Results', 'Not present')}")
print(f"Received-SPF: {msg.get('Received-SPF', 'Not present')}")
print(f"DKIM-Signature: {msg.get('DKIM-Signature', 'Not present')}")
PYEOF
```
### Step 3: Validate SPF, DKIM, and DMARC Records
```bash
# Extract the envelope sender domain
SENDER_DOMAIN="example-corp.com"
# Check SPF record
dig TXT $SENDER_DOMAIN +short | grep "v=spf1"
# Example: "v=spf1 include:_spf.google.com include:sendgrid.net ~all"
# Check DKIM record (selector from DKIM-Signature header, e.g., "s=selector1")
DKIM_SELECTOR="selector1"
dig TXT ${DKIM_SELECTOR}._domainkey.${SENDER_DOMAIN} +short
# Check DMARC record
dig TXT _dmarc.${SENDER_DOMAIN} +short
# Example: "v=DMARC1; p=reject; rua=mailto:[email protected]; pct=100"
# Verify the sending IP against SPF
# Extract IP from first Received header
SENDING_IP="203.0.113.45"
# Manual SPF check using python
python3 << 'PYEOF'
import spf # pip install pyspf
result, explanation = spf.check2(
i='203.0.113.45',
s='[email protected]',
h='mail.example-corp.com'
)
print(f"SPF Result: {result}")
print(f"Explanation: {explanation}")
# Results: pass, fail, softfail, neutral, none, temperror, permerror
PYEOF
# Check if sending IP is in known malicious IP lists
# Query AbuseIPDB or VirusTotal
curl -s "https://api.abuseipdb.com/api/v2/check?ipAddress=${SENDING_IP}" \
-H "Key: YOUR_API_KEY" -H "Accept: application/jExcerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 6c59587
pip install pypff
git clone https://github.com/mukul975/Anthropic-Cybersecurity-Skills git -C Anthropic-Cybersecurity-Skills checkout 6c59587be632
Commands as the repository documents them: shown, never run by us. Our verdict covers commit 6c59587be632 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
6c59587be632
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/mukul975/analyzing-email-headers-for-phishing-investigation/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
mukul975/Anthropic-Cybersecurity-Skills
Analyze the NTFS Master File Table ($MFT) with MFTECmd, analyzeMFT,
mukul975/Anthropic-Cybersecurity-Skills
Detect and analyze covert communication channels used by malware, including
mukul975/Anthropic-Cybersecurity-Skills
Parse NetFlow v9 and IPFIX records to detect volumetric anomalies, port
mukul975/Anthropic-Cybersecurity-Skills
Use Scapy to craft, send, sniff, and dissect TCP/UDP/ICMP/DNS packets, analyze pcap files, implement SYN scans, and detect anomalous traffic such as fragmented or malformed packets. Use when performing authorized…
mukul975/Anthropic-Cybersecurity-Skills
Analyzes network traffic captures and flow data to identify adversary activity during security incidents, including
mukul975/Anthropic-Cybersecurity-Skills
Analyzes network traffic generated by malware during sandbox execution
Add this badge to your README
[](https://modelsatlas.com/skills/mukul975/analyzing-email-headers-for-phishing-investigation/)
<a href="https://modelsatlas.com/skills/mukul975/analyzing-email-headers-for-phishing-investigation/"><img src="https://modelsatlas.com/skills/mukul975/analyzing-email-headers-for-phishing-investigation/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Analyzing Email Headers For Phishing Investigation
What does the Analyzing Email Headers For Phishing Investigation skill do?
Is Analyzing Email Headers For Phishing Investigation safe to install?
What can Analyzing Email Headers For Phishing Investigation access on my machine?
How current is this page?
Sources
- github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/main/ski — the audited source at commit 6c59587be632 and every finding aboveObserved · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Analyzing Email Headers For Phishing Investigation skill do?
- Is Analyzing Email Headers For Phishing Investigation safe to install?
- What can Analyzing Email Headers For Phishing Investigation access on my machine?