Capafy
시작하기
Email Header Forensics — Spoof-Safe Analysis

Email Header Forensics — Spoof-Safe Analysis

Paste raw email headers and get the delivery path, SPF/DKIM/DMARC verdicts parsed safely, and spoofing red flags in one report. #엔지니어링

평점
더 많은 평가가 필요합니다
판매
0
사용 방법
다운로드
사용 가능한 보안 스캔 결과가 없습니다

붙여넣는 것과 받는 것

붙여넣는 것: 의심스러운 이메일의 원본 헤더입니다.

받는 것: 홉 단위로 정리한 전달 경로, SPF/DKIM/DMARC 결과, 코드가 붙은 발견 사항, 그리고 이 도구가 알려 줄 수 없는 것의 목록입니다.

작동 방식

Email Header Forensics는 의심스러운 이메일의 원본 헤더를 읽고 전달 경로와 SPF/DKIM/DMARC 판정을 보고합니다. 이때 공격자가 심어 둔 텍스트가 판정으로 집계되지 않도록 설계된 파싱 규칙을 사용합니다.

1. 헤더 분리. 첫 번째 빈 줄에서 멈추고, 이어진 줄은 펼치며, 중복된 헤더는 합치지 않고 그대로 유지합니다.

2. Received 체인 재구성. 홉을 가장 오래된 것부터 최신 순으로 나열하고 총 전송 시간을 함께 표시하며, 바로 앞 홉보다 타임스탬프가 이른 홉은 시계 오차로 표시합니다. 또한 신뢰할 수 있는 홉이 어느 것인지도 알려 줍니다. 사용자의 서버가 추가한 맨 위의 홉만 해당합니다.

3. Authentication-Results를 문자 단위로 파싱. 따옴표, 중첩된 주석, 이스케이프를 처리하므로 따옴표로 묶인 주소나 주석 안에 숨겨진 가짜 spf=pass는 판정으로 집계되지 않습니다(아래 샘플 참고).

4. 발견 사항 보고. 발견 사항 표(spf_fail, dkim_fail, dmarc_fail, auth_results_malformed, missing_from 등)와 맨 위 Received 홉에 대한 authserv-id 확인을 제공합니다.

샘플 출력

이 Skill을 샘플 헤더 세트에 실행한 실제 출력이며 수정하지 않았습니다. 샘플은 직접 만든 예시로, SPF와 DMARC가 실패하고 두 번째 Authentication-Results 헤더가 따옴표로 묶인 값 안에 spf=pass를 숨겨 둔 가짜 "청구서 연체" 이메일입니다. 출력은 다음과 같습니다.

Delivery path (oldest → newest)

  1. from localhost → by mail.example-billing.test — Tue, 6 Oct 2026 09:14:05 +0000 (UTC)
  2. from mail.example-billing.test → by mx.recipient-corp.test — Tue, 6 Oct 2026 09:14:07 +0000 (UTC)
    Hops: 2 · Transit: 2 seconds

Authentication

SPF: fail | DKIM: none | DMARC: fail

Notes on the two Authentication-Results headers (each parsed on its own, both well-formed):

  • Header 1 (authserv-id mx.recipient-corp.test): spf=fail, dkim=none, dmarc=fail (p=none).
  • Header 2 (authserv-id mx.recipient-corp.test): the only verdict at the start of an item is dkim=pass. The text spf=pass sits inside the quoted string header.d="acme-invoices.test; spf=pass", so it is free text and not an SPF verdict.
  • The two headers disagree on DKIM (none vs. pass). I used the first item in header order (dkim=none). Both authserv-ids match the by host of the top Received hop (mx.recipient-corp.test), but which header was really added by your trusted server is unverified. The second header looks suspicious because it carries a planted "spf=pass" inside a quoted value.

Findings

  • [warning] spf_fail — SPF result is "fail": the sending server is not authorized for smtp.mailfrom [email protected]; possible spoofing or a sender misconfiguration.
  • [warning] dmarc_fail — DMARC result is "fail" (policy p=none, so the message was not rejected by policy): possible spoofing or a sender misconfiguration.
  • [info] Domain comparison — From domain is acme-invoices.test and smtp.mailfrom is acme-invoices.test, but the message was relayed by mail.example-billing.test (a different domain). The DKIM header.d (acme-invoices.test) appears only in the second, unverified Authentication-Results header. There is no Return-Path header to compare. A mismatch is a lead for the human, not proof of fraud.
  • [info] Conflicting Authentication-Results — two headers give different DKIM results (none vs. pass); the choice between them is unverified.

What this cannot tell you

  • Received lines below your own server may be forged. Only the top hop (added by mx.recipient-corp.test, your receiving server) is reliable; the "localhost" hop and the origin side are not proven.
  • These verdicts are copied from headers; I did not re-run DNS or signature checks.
  • Which Authentication-Results header was added by a trusted server cannot be determined from text alone.
  • This is not a complete phishing assessment; confirm with your mail provider or security team.

활용 사례

  • "청구서"나 "비밀번호 재설정" 이메일이 주장하는 곳에서 오지 않았다는 징후를 찾아봅니다
  • 메시지가 SPF, DKIM 또는 DMARC에 실패한 이유를 동료에게 설명합니다
  • Authentication-Results가 조작되었을 수 있는 헤더를 한 번 더 검토받습니다

자주 묻는 질문

DNS를 조회하거나 서명을 검증합니까? 아니요. 수신 서버가 이미 헤더에 기록해 둔 판정을 읽을 뿐이며, DNS나 암호화 검증을 다시 실행하지 않습니다.

제 헤더를 어딘가로 전송합니까? Skill 자체는 외부 서비스로 아무것도 전송하지 않습니다. 다만 에이전트의 모델 제공자는 붙여넣은 내용을 받게 되며, 헤더에는 개인정보가 들어 있으므로 공유할 필요가 없는 부분은 가려 주십시오.

완전한 피싱 판정입니까? 아니요. 경로, 판정, 의심스러운 신호를 보고할 뿐입니다. 메일 제공업체나 보안팀에 확인하십시오.

파싱은 얼마나 신뢰할 수 있습니까? 프로그램이 아니라 모델이 텍스트를 읽어 수행하므로 실행할 때마다 결과가 달라질 수 있습니다. 판정을 원본 헤더와 대조해 일부를 직접 확인하십시오.

Claude Code용으로 만들어졌으며, SKILL.md 파일을 읽는 다른 에이전트(Codex CLI, OpenClaw 등)에서도 작동할 것으로 보입니다. 네트워크 접근이나 추가 도구는 필요하지 않습니다.

여기에 언급된 제품명과 회사명(Anthropic, OpenAI, OpenClaw 포함)은 각 소유자의 상표이며, 이 Skill은 독립 제품으로 이들과 제휴 관계가 없고 이들의 보증을 받지 않았습니다.