Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating email scanner #214

Merged
merged 1 commit into from
Jul 5, 2022
Merged

Updating email scanner #214

merged 1 commit into from
Jul 5, 2022

Conversation

phutelmyer
Copy link
Contributor

@phutelmyer phutelmyer commented Jul 5, 2022

Describe the change
Email scanner was using dynamic population of output using unspecified key:value pairs. While this allowed for more data to be extracted from email headers, it was providing inconsistent results making it more difficult to build confident detection. By specifying fields to be collected, users can now search for specific fields.

Describe testing procedures
Tested against 12+ .EML and other email files.

Sample output
ScanEmail

{
  "attachments": {
    "filenames": [
      "test.pdf"
    ],
    "hashes": [
      "ee6a929959c631f2b6bcad4bf105d822"
    ],
    "totalsize": 28890
  },
  "body": "Hello, Buenos Dias, Bonjour! J\r\n\r\n\r\nPlThis is a test email.\r\n\r\n\r\nBest Regards\r\nYour account manager\r\nTester\r\n",
  "date_utc": "2022-05-16T18:15:35.000Z",
  "elapsed": 0.088485,
  "from": "[email protected]",
  "message_id": "CAEE7zbM=tPmafFhJTHeZKLMEGw8+knLD=SJdr8kNe2JT18+U9g@mail.gmail.com",
  "received_domain": [
    "mx0a-0020ab02.test.com",
    "mail-vk1-f195.google.com"
  ],
  "received_ip": [
    "8.8.8.8"
  ],
  "subject": "Test Subject",
  "to": [
    "[email protected]"
  ],
  "total": {
    "attachments": 1,
    "extracted": 1
  }
}

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of and tested my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

@phutelmyer phutelmyer merged commit 6c0f70c into master Jul 5, 2022
@phutelmyer phutelmyer deleted the update-scanner-scanemail branch July 26, 2022 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant