1.0.2 • Published 7 months ago

phishfinder-analysis v1.0.2

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

PhishFinder Analysis

Email security and content analysis toolkit for Node.js applications.

Installation

npm install phishfinder-analysis

Usage

import { EmailAnalyzer } from 'phishfinder-analysis';

const analyzer = new EmailAnalyzer({
    safeBrowsingApiKey: 'your-api-key'
});

const analysis = await analyzer.analyze({
    body: emailBody,
    subject: emailSubject,
    headers: emailHeaders
});

Features

  • URL analysis and threat detection
  • Content security analysis
  • Suspicious pattern detection
  • Email authentication verification
  • Text cleaning and preprocessing
  • Comprehensive metrics

Configuration

The analyzer accepts the following configuration options:

  • safeBrowsingApiKey: Google Safe Browsing API key
  • enableUrlCheck: Enable/disable URL checking (default: true)
  • enableContentAnalysis: Enable/disable content analysis (default: true)

API Reference

EmailAnalyzer

Main class for analyzing emails.

Methods

  • analyze(emailData): Analyzes an email and returns security/content metrics