Messages

From wyre-technology/msp-claude-plugins · View interactive version

Messages is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Abnormal Security message analysis: message retrieval, email header inspection, attachments, sender reputation, delivery context, and SPF/DKIM/DMARC authentication results.

How to use this skill

Skill file

Abnormal Security Message Analysis

Overview

Abnormal Security provides deep message analysis capabilities beyond basic threat detection. This skill covers message retrieval, header inspection, attachment analysis, sender authentication results, and delivery context. Use it when performing forensic analysis of specific emails or investigating delivery patterns.

Anti-triggers

messages only as evidence attached to a detected threat. It has no

delivery pipeline, no queue, and no bounce record, so "trace this

email" questions belong to the gateway: use

Mimecast Message Tracking.

the remediation surface; use Abnormal Security Threats.

can show was already delivered. Pre-delivery holds are

SpamTitan Quarantine or Proofpoint Quarantine.

Message Field Reference

These are response fields describing what Abnormal reports about a

message. They are not tool parameters — the only parameters the message

tools accept are threatId and messageId. Availability varies by

message and by tenant configuration; treat any single field as

best-effort.

Core Message Fields

| Field | Type | Description |

|-------|------|-------------|

| abxMessageId | string | Abnormal's identifier for the message, as returned in the abnormal_messages_list response |

| subject | string | Email subject line |

| fromAddress | string | From header email address |

| fromName | string | From header display name |

| toAddresses | string[] | All To: recipients |

| ccAddresses | string[] | All CC: recipients |

| bccAddresses | string[] | All BCC: recipients (if available) |

| sentTime | datetime | When the email was sent |

| receivedTime | datetime | When the email was received by Abnormal |

| internetMessageId | string | RFC 5322 Message-ID header |

Sender Analysis Fields

| Field | Type | Description |

|-------|------|-------------|

| senderAddress | string | Envelope sender address |

| senderName | string | Sender display name |

| senderDomain | string | Sender domain |

| senderIpAddress | string | Originating IP address |

| returnPath | string | Return-Path header (envelope sender) |

| replyToEmails | string[] | Reply-To header addresses |

Authentication Fields

| Field | Type | Description |

|-------|------|-------------|

| spfResult | string | SPF check result: pass, fail, softfail, neutral, none |

| dkimResult | string | DKIM signature result: pass, fail, none |

| dmarcResult | string | DMARC policy result: pass, fail, none |

| authenticationResults | string | Full Authentication-Results header |

Attachment Fields

| Field | Type | Description |

|-------|------|-------------|

| attachmentCount | int | Number of attachments |

| attachmentNames | string[] | Filenames of attachments |

| attachmentTypes | string[] | MIME types of attachments |

| attachmentSizes | int[] | Sizes of attachments in bytes |

URL Fields

| Field | Type | Description |

|-------|------|-------------|

| urls | string[] | All URLs found in message body |

| urlCount | int | Total number of URLs |

Delivery Context

| Field | Type | Description |

|-------|------|-------------|

| isRead | boolean | Whether the recipient has read the email |

| isInternal | boolean | Whether the email is internal (within org) |

| isExternal | boolean | Whether the email is from outside the org |

| remediationStatus | string | Current remediation status |

MCP Tools

Two tools, and both are scoped to a single threat. There is no separate

headers tool and no tenant-wide message search — you cannot ask "show me

every message from this sender". Every message lookup starts from a

threatId.

| Tool | Description | Parameters |

|------|-------------|------------|

| abnormal_messages_list | List the messages inside one threat case. Returns message IDs and summary data. | threatId (required) |

| abnormal_messages_get | Full analysis of one message: metadata, headers, URLs, attachments, and AI threat analysis — all in a single payload. | threatId (required), messageId (required) |

Headers arrive inline, not from a separate call

abnormal_messages_get returns the header set as part of its one

response, alongside URLs, attachments and the AI analysis. Everything the

Header Analysis Workflow below asks for comes out of that single call —

there is no second, header-only fetch to make, and nothing to page

through. The practical consequence is on the other side: one

abnormal_messages_get pulls the entire substance of a customer's email

into context, including recipient addresses and Authentication-Results,

whether or not you needed the headers. Call it when you intend to do

forensics on that message, not to browse.

ID vocabulary

threatId is a UUID string. messageId is the message identifier

from the abnormal_messages_list response (URL-encoded when sent). Do

not confuse either with caseId, which abnormal_cases_get takes as a

number.

Tool Usage Examples

List messages associated with a threat:

{
  "tool": "abnormal_messages_list",
  "parameters": {
    "threatId": "184def76-3c28-4e1b-9ef0-a5abc123def4"
  }
}

Get one message in full (metadata, headers, URLs, attachments):

{
  "tool": "abnormal_messages_get",
  "parameters": {
    "threatId": "184def76-3c28-4e1b-9ef0-a5abc123def4",
    "messageId": "<CA+8mv1x@mail.example.com>"
  }
}

Message Analysis Workflows

Header Analysis Workflow

  1. Retrieve the message - abnormal_messages_get returns the headers

inline; there is no separate header call

  1. Check authentication:
  1. Trace routing:
  1. Inspect key headers:

Attachment Analysis Workflow

  1. List attachments - Review filenames, types, and sizes
  2. Check for suspicious patterns:
  1. Cross-reference with threat data:
  1. Assess risk:

Sender Reputation Workflow

  1. Check sender identity:
  1. Verify authentication:
  1. Check sender IP:
  1. Review communication history:

Authentication Results Reference

SPF Results

| Result | Meaning | Risk |

|--------|---------|------|

| pass | Sending IP authorized by domain | Low |

| softfail | IP not authorized but not explicitly denied | Medium |

| fail | IP explicitly not authorized | High |

| neutral | No SPF assertion | Medium |

| none | No SPF record exists | Medium |

DKIM Results

| Result | Meaning | Risk |

|--------|---------|------|

| pass | Valid DKIM signature, aligned | Low |

| fail | DKIM signature invalid | High |

| none | No DKIM signature present | Medium |

DMARC Results

| Result | Meaning | Risk |

|--------|---------|------|

| pass | Passes DMARC policy (SPF or DKIM aligned) | Low |

| fail | Fails DMARC policy | High |

| none | No DMARC record exists | Medium |

Error Handling

Common API Errors

| Code | Message | Resolution |

|------|---------|------------|

| 400 | Invalid message ID | Use a messageId taken from abnormal_messages_list, not a hand-built one |

| 401 | Unauthorized | Check API token |

| 404 | Message not found | Message may have been purged or threat ID is wrong |

| 429 | Rate limited | Wait and retry |

Best Practices

  1. Always check authentication - SPF/DKIM/DMARC failures are strong spoofing indicators
  2. Compare From and Return-Path - Mismatches often indicate spoofing or forwarding
  3. Review Reply-To - Reply-To different from From is a common BEC indicator
  4. Check attachment types carefully - Not all dangerous files have obvious extensions
  5. Trace Received headers - Follow the email routing path for anomalies
  6. Check if email was read - Read emails with credential phishing need password resets
  7. Cross-reference with threats - Message context enriches threat investigations

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.