Skip to content

galyarderlabs/galyarder-framework / integrations/antigravity/investigating-phishing-email-incident

investigating-phishing-email-incident

Verified

Investigates phishing email incidents from initial user report through header analysis, URL/attachment 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.

FileKindSize
SKILL.mdskill md13.0 KB
references/api-reference.mdmarkdown2.5 KB
scripts/agent.pyscript7.5 KB

references/api-reference.md

View on GitHub
# API Reference: Investigating Phishing Email Incident

## URLScan.io API

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/v1/scan/` | POST | Submit URL for scanning (returns task UUID) |
| `/api/v1/result/{uuid}/` | GET | Retrieve scan results including screenshot and DOM |
| `/api/v1/search/?q=domain:example.com` | GET | Search for previous scans of a domain |

## VirusTotal API v3

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/v3/urls` | POST | Submit URL for analysis |
| `/api/v3/analyses/{id}` | GET | Get URL analysis results with engine verdicts |
| `/api/v3/files/{hash}` | GET | Look up file hash (MD5/SHA-256) for reputation |
| `/api/v3/files` | POST | Upload file for scanning |

## MalwareBazaar API

| Endpoint | Method | Description |
|----------|--------|-------------|
| `https://mb-api.abuse.ch/api/v1/` | POST | Query by hash, tag, or signature name |

## Microsoft Graph (Email Operations)

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/v1.0/users/{id}/messages` | GET | Search mailbox for phishing message copies |
| `/security/alerts_v2` | GET | Retrieve Defender for O365 phishing alerts |
| `/security/incidents/{id}` | GET | Get incident details with affected entities |

## Exchange Online (Compliance Search)

| Cmdlet | Description |
|--------|-------------|
| `New-ComplianceSearch` | Create search across all mailboxes by subject/sender |
| `Start-ComplianceSearch` | Execute the compliance search |
| `New-ComplianceSearchAction -Purge` | Purge matched emails (SoftDelete or HardDelete) |

## Key Libraries

- **requests**: HTTP client for URLScan.io, VirusTotal, and MalwareBazaar APIs
- **email** (stdlib): Parse .eml files and extract headers, body, and attachments
- **hashlib** (stdlib): Calculate MD5/SHA-256 hashes for attachment analysis
- **vt-py**: Official VirusTotal Python SDK for enrichment queries

## Configuration

| Variable | Description |
|----------|-------------|
| `VT_API_KEY` | VirusTotal API key for URL and file hash lookups |
| `URLSCAN_API_KEY` | URLScan.io API key for URL submission |
| `GRAPH_ACCESS_TOKEN` | Microsoft Graph bearer token for email search |

## References

- [URLScan.io API Docs](https://urlscan.io/docs/api/)
- [VirusTotal API v3](https://docs.virustotal.com/reference/overview)
- [MalwareBazaar API](https://bazaar.abuse.ch/api/)
- [Microsoft Compliance Search](https://learn.microsoft.com/en-us/purview/ediscovery-content-search)

---
 2026 Galyarder Labs. Galyarder Framework.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall