target / strelka

Real-time, container-based file scanning at enterprise scale
Other
857 stars 111 forks source link

Enhancements to Strelka Email Scanner / Adding Broken Email Test #450

Closed phutelmyer closed 5 months ago

phutelmyer commented 5 months ago

Describe the change

This update includes several enhancements to the scan_email.py scanner. Changes include:

Describe testing procedures

The following tests were conducted:

Sample output

{
        "elapsed": mock.ANY,
        "flags": [
            "ScanEmail: image_thumbnail_error: Could not generate thumbnail. No HTML found."
        ],
        "total": {"attachments": 0, "extracted": 0},
        "body": "Hi Placeholder,\n\nCan I have access?\n\nThanks,\nJohn\n\n\nFrom: Placeholder Smith  "
        "<placeholder@acme.com<m...m> shared a file or folder located in Acme Share with you. Delete visitor "
        "session<https://acme.com>\n",
        "domains": ["acme.com", "share.acme.com"],
        "subject": "",
        "to": [],
        "from": "",
        "date_utc": "1970-01-01T00:00:00.000Z",
        "message_id": "",
        "received_domain": [],
        "received_ip": [],
    }

Checklist