Importing emails, PDFs and OCR text into MISP: what the module covers
Much of the indicator material an analyst needs never arrives as structured data. It sits inside phishing emails, PDF threat reports, office documents and screenshots that someone forwarded to a shared mailbox, where nobody can search it or pass it to detection. misp-modules closes that gap. It is the service that runs alongside the core MISP platform and extends it with expansion, import, export and action modules, and the document handling covered here comes from it: an Email Import module and an OCR Import module, plus PDF, DOCX, ODT and XLSX enrichment modules that pull content out of common document formats.
Teams usually implement this for a few recurring workflows. Phishing triage is the most common, where reported messages need their sender infrastructure, URLs and attachment hashes captured as attributes before the mailbox is cleared. Vendor and sector report intake is another, where a PDF from a partner or regulator should become an event that colleagues can search and correlate. Shared screenshots, such as a chat capture of a suspicious domain or a photographed slide, are the third, and OCR is the only route to their text. Before committing to the work, confirm with your team which of these workflows is the priority, which module versions your MISP release bundles, and whether your misp-modules deployment runs the optional system packages these modules depend on. The misp-modules README is the place to check module requirements against your installed version.
What the email, document and OCR modules extract
The misp-modules service documents a small set of content extraction modules for getting indicators out of messages and files. Each one takes a different input type, so the team should map its real intake (mailboxes, report folders, scanned screenshots) to a module before building any workflow.
Email import module
The Email Import module takes a raw email message and surfaces the content an analyst would otherwise copy by hand, such as sender details, headers and embedded links or addresses. This is the starting point for phishing analysis. Check which header fields and object types it produces in your version, and confirm whether attachments are passed on for separate processing. Decide early whether analysts upload full .eml files or forwarded copies, because forwarding often strips headers.
OCR import module
The OCR Import module reads text from images such as screenshots of phishing pages, chat messages or slides that carry indicators as pixels rather than characters. OCR output is noisy, so defanged URLs, look-alike characters and split lines can produce wrong or missing values. Review every extracted value against the source image before it is marked for detection, and confirm the OCR engine and language settings in your build.
PDF enrichment module
The PDF module extracts text from threat reports and advisories so that indicators listed in report appendices can be captured as attributes. Vendor reports often mix live indicators with examples, benign domains and refanged strings. Check each value against its context in the report, and confirm in the README which content types, such as embedded links or metadata, the module returns in your version.
DOCX and ODT modules
The DOCX and ODT modules handle Microsoft Word and OpenDocument text documents, which are common carriers for malicious macros and linked payloads in phishing campaigns. Treat any extracted URL or file reference as a candidate, not a verified indicator. Confirm whether each module reads only body text or also tables, comments and embedded objects in your version of the README.
XLSX enrichment module
The XLSX module reads spreadsheets that teams often use as indicator lists, including IOC exports from vendors and internal tracking sheets. Spreadsheets can hold many values in one cell, merged columns or hidden sheets, so confirm how the module handles each. Compare the row count in MISP against the source file after each import to catch silent drops.
How a document becomes MISP attributes
A phishing email, PDF report, office document or screenshot reaches MISP through a submission to the misp-modules service, which runs alongside the core platform. The Email Import and OCR Import modules, together with the PDF, DOCX, ODT and XLSX enrichment modules, read the file and extract its text and candidate values such as URLs, domains, IP addresses, hashes and mail headers. MISP then places those results into an event as attributes, so an analyst sees them in the same place as the rest of the intelligence. The exact input options and the output each module produces should be confirmed against the misp-modules documentation for the release you run, since module behavior changes between versions. The misp-modules README is the natural starting point for that check.
Treat everything the parser returns as candidate data, not confirmed intelligence. Parsers pull strings that look like indicators, which includes legitimate links in a signature block, a vendor's support domain quoted in a report, and text inside an image that OCR misreads. The parser does not decide whether a value is malicious, and it does not decide who may see it. The to_ids flag, which tells downstream sensors that an attribute is suitable for detection, and the distribution level, which controls who receives the event, are set by an analyst who has reviewed the event. Build that review into the workflow before any event is published or synchronized, and decide in advance which role is allowed to change those two settings. Confirm how your MISP roles and permissions map to that duty before go-live.
Which import path to use for each source
This table compares the route for each source type, from manual entry to the misp-modules import and OCR modules, and what each route fits. Read each row against the files you actually receive, then confirm the listed limits in the module documentation before relying on a route.
| Source type | Module route | What it fits | What it does not handle |
|---|---|---|---|
| Phishing email (.eml or pasted headers) | Email Import module in misp-modules | Sender, subject, headers and URLs from a single message reported by a user | Mailbox-wide hunting, attachments whose content needs a separate route, and confirmation of every header format |
| Few indicators in a short note | Manual copy into an event | Small, quickly reviewed sets where an analyst already knows each value and type | Large volumes, values embedded in long text, and any source where copy errors would reach detection |
| PDF threat report | PDF enrichment module in misp-modules | Text-based PDFs where indicators sit in readable body text | Scanned pages without a text layer, password-protected files, and content inside embedded images (confirm in module documentation) |
| DOCX, ODT or XLSX file | DOCX, ODT or XLSX enrichment modules in misp-modules | Office documents with indicator tables or lists in the body or sheets | Macros, embedded objects and password-protected files (confirm in module documentation) |
| Screenshot or scanned image | OCR Import module in misp-modules | Images of indicator lists or chat excerpts where text is clearly rendered | Low-resolution or skewed images, handwriting, and characters that OCR misreads, so every value needs review |
| Suspicious attachment with unknown behavior | Analyst sandbox, then import of the sandbox report | Files whose content or behavior is unclear and needs execution-based analysis | Quick text extraction, since the file is not parsed for indicators by the document modules |
| Mixed or unusual formats | Manual review plus the closest module, tested on a sample first | Sources outside the supported list, handled by a controlled one-off process | Automated repeatable ingestion without a tested sample and a documented review step |
Rolling out document import without polluting detection
This sequence moves document import from a tested misp-modules service to live workflows in controlled stages, so extracted values reach detection only after someone has checked them against known answers. Each step ends with a record that a reviewer can inspect before the next step starts.
Confirm misp-modules is reachable
The platform team checks that the misp-modules service is running and that the MISP web tier and background workers can both reach it on the network path your deployment uses. Confirm the service version matches the MISP release you run, since the modules are maintained alongside the core platform. Done means a documented connection test from each tier, with the service logs showing requests arriving from the web and worker hosts. Confirm the exact configuration keys and network settings against the misp-modules documentation for your installation method.
Enable only the required modules
The platform owner turns on the Email Import, OCR Import and document enrichment modules your analysts actually need, such as the PDF, DOCX, ODT and XLSX modules, and leaves the rest disabled. Record which modules are enabled, the reason for each, and who approved it. Every enabled module is another parser that reads untrusted files, so the list should be short and reviewed. Done means an approved module list stored with the change record.
Build a labeled test set
The detection engineering team assembles a sample set with known answers: phishing emails with known URLs, domains and sender addresses, PDF and DOCX reports with known indicators, ODT and XLSX files, and screenshots where the expected text is written down in advance. Include benign documents that contain security vocabulary but no indicators, so false positives show up early. Store the labels with each file. Done means a versioned test set with an expected-results file that someone other than the author has reviewed.
Run imports and compare extraction
An analyst imports each test file into a non-production MISP instance and records every attribute the module creates. Compare the output with the expected-results file, marking each item as found, missed, or wrongly extracted. Pay particular attention to OCR errors on screenshots, defanged URLs, and mailto or link text that differs from the real target. Done means a test report listing hits, misses and false extractions per file type, with the module version recorded.
Set defaults for to_ids and distribution
Using the test report, the MISP administrator sets the default values applied to imported attributes. Decide which attribute types should carry the to_ids flag by default, which should not, and what distribution level new events receive, so imported data cannot leave your organization by accident. Where a noisy category appears in the report, add it to an allow list or warning list rather than relying on analysts to remember it. Done means a written configuration record and a before and after comparison showing the effect on the test set.
Review the tuned output with sign-off
Analysts and a detection owner review a fresh run of the test set against the tuned settings. The reviewer confirms that no attribute with to_ids enabled comes from a benign sample and that each known indicator is present and correctly typed. Record the reviewer, the date, the test set version and the results. Repeat the run after any module update before the settings are trusted again. Done means a signed sign-off record that names the settings it covers.
Connect workflows after sign-off
Only after the sign-off record exists, the team connects imported events to workflows, such as automated publishing, notifications or export to detection tools. Start with a single workflow, watch the first real imports for unexpected values, and widen the scope once the results look as expected. Confirm the workflow trigger and export rules with your MISP version's documentation. Done means a workflow log showing that the first live events followed the approved settings and no unreviewed attributes were exported.
Checking extracted values before they reach detection
Treat every value that the email, PDF, DOCX, ODT, XLSX and OCR modules extract as a candidate until an analyst has reviewed it. The review gate is the point where a candidate becomes an attribute that can trigger detection, and it should be a deliberate step in the workflow rather than an assumption about what the parser found. Start with the values most likely to be wrong in ways that matter. Refang defanged URLs and domains (for example, hxxp schemes or [.] separators) before judging them, and check that the refanged form points where the report intended. In emails, separate links that appear in the mail headers, such as Received hops, reply-to addresses and authentication results, from links in the body. A header value is evidence about the delivery path, while a body link may be a lure, a tracking URL or a legitimate reference, and the two should not be marked the same way.
OCR output needs its own checks because glyph confusion creates indicators that do not exist in the source. Pay particular attention to 0 and O, and 1 and l or I, in domains, hashes and IP-like strings, since a single misread character can produce a valid-looking but wrong value. Compare suspicious OCR results against the original image before accepting them. Also expect false positives on legitimate domains, widely used cloud hosts, document template URLs and common file names such as invoice.pdf, and check these against your allow lists and existing taxonomies. Some extracted items should remain non-indicator context, such as sender display names, victim organization names, document authors and the text of a lure. Store them as contextual attributes or in the event description with to_ids disabled, so they stay searchable without reaching sensors.
Keep to_ids off on every imported attribute until review is complete, and enable it only for values an analyst has confirmed as malicious or suspicious. Publishing and exporting should follow the same rule: sensor feeds, firewall lists, DNS policies and SIEM exports should be generated only from reviewed events, and your team should confirm how its MISP export and sync filters enforce that. Record who reviewed each event and what was changed, so that later disputes about a blocked domain can be traced. Before rollout, run a sample of real phishing messages and reports through the import path and measure how many extracted values were corrected or rejected, using that result to set the review depth for later batches. Confirm the module versions and their supported input types against the misp-modules documentation for your release, since behavior can differ between versions.
How effort changes with the source material
Phishing intake is driven less by the parser and more by volume and by what sits in the headers. Each message can yield sender addresses, reply-to mismatches, return paths, embedded URLs and attachment hashes, and most of these are useful only after an analyst confirms they belong to the campaign rather than to legitimate mail infrastructure. Review time grows quickly when a single reported campaign contains many near-identical messages, and when legitimate newsletters or internal tooling generate domains that appear in the same batch.
- Message volume: Large user-reported batches multiply header and URL review, so triage rules matter more than extraction speed.
- Header quality: Forwarded or re-sent copies strip or rewrite original headers, which makes origin analysis harder to verify.
- Attachment mix: Nested archives and macro-enabled documents need separate handling and often separate analyst time.
- Allow list tuning: Shared mail providers, marketing platforms and internal domains need entries before indicators are flagged for detection.
- Language: Non-English lures can add reviewer time when the analyst must judge intent.
Before publishing, confirm which header fields your team treats as indicators and which it keeps only as context.
Vendor and threat research PDFs carry the richest indicator sets, but their value depends on layout. Clean text-based PDFs with clear tables yield most values directly, while reports built from scanned pages, multi-column layouts or images of tables need more checking. Indicator tables often split across page breaks, and defanged notation such as bracketed dots appears inconsistently, so an extracted value may look valid while being wrong or incomplete.
- Layout quality: Text-based PDFs extract more reliably than scans, and tables that span pages need row-by-row checks.
- Defanging and formatting: Obfuscated domains and IPs must be normalized before correlation, which adds reviewer work.
- Report length: Long annual reports contain many indicators that are context only, so analysts must decide which to keep.
- Language and encoding: Non-Latin text and special characters in filenames or hashes can break extraction.
- Allow list tuning: Vendor sites, reference links and sample domains cited in the report often need exclusion so they do not reach blocking.
Ask the source provider whether they publish machine-readable indicator sets alongside the PDF, since that changes how much parsing you need.
Office files from partners, such as DOCX, ODT and XLSX documents, usually arrive as structured content, which makes extraction more predictable than OCR. Effort rises with the number of sheets, the use of merged cells and hidden content, and whether the partner sends documents with embedded objects or revisions that contain older values. Spreadsheets in particular may hold indicators in columns that look like labels, and analysts must confirm which column is authoritative.
- Sheet and table structure: Many sheets, merged cells and inconsistent headers raise the time needed to map columns to attribute types.
- Hidden and tracked content: Revisions, comments and hidden rows can carry values that the partner did not intend to share.
- Template consistency: Repeated templates from one partner reduce review time after the first import, while ad hoc files from many partners do not.
- Sensitivity review: Partner files may contain internal hostnames or personal data that should be stripped before sharing beyond the team.
- Allow list tuning: Partner-internal domains and asset names need entries so they do not generate detections.
Confirm with each partner which document types and templates they send, and whether they can supply a clean export instead.
Screenshots and scanned images depend on OCR, so review effort is driven by image quality and by how much of the intake is pictures rather than text. Clear screen captures of console output may extract well, while blurred, compressed or angled images produce characters that look like indicators but are not, such as confusion between similar letters and digits in hashes or domains. Every OCR result that feeds an indicator needs a human check against the source image before it reaches detection.
- Image quality: Resolution, compression and skew strongly affect character accuracy, and poor captures can double review time.
- Language and fonts: Non-Latin scripts and unusual fonts raise error rates and may need different OCR language settings.
- Character confusion: Hashes, IPs and domains are easy to misread, so every extracted value needs verification against the image.
- Volume per item: One screenshot can hold several indicators, which multiplies checking per file.
- Allow list tuning: Screenshots of internal dashboards or customer data raise handling concerns and may need redaction first.
Test the OCR pipeline on a sample of your real intake before setting expectations for analysts.
What drives effort and cost for document import
This table lists the one-time and recurring drivers behind document import into MISP, and what each one does to effort. Read it as a checklist for scoping: each row names a driver and a way to keep it under control. The main takeaway is that most of the recurring cost comes from analyst review and new file types, so limiting modules and standardizing intake pays back over time.
| Driver | Why it changes effort or cost | How to keep it down |
|---|---|---|
| Module enablement and testing | Each enabled import or enrichment module must be installed, configured and tested alongside misp-modules before analysts rely on it. | Enable only the email, OCR and document modules your intake needs, and test each one against your own sample files. |
| Test corpus preparation | A representative set of phishing emails, PDF reports, office files and screenshots is needed to measure what is extracted and what is missed. | Build a fixed corpus from past incidents, with known good indicators recorded, and reuse it after every upgrade. |
| Allow list and noise tuning | URLs, domains and addresses in signatures, legal footers and vendor templates produce false indicators that must be filtered out. | Maintain a shared allow list with an owner and review it on a set schedule rather than per incident. |
| OCR accuracy review | Text extracted from screenshots and scanned pages can misread characters, so indicators need manual confirmation before use. | Limit OCR to documents that need it and require analyst confirmation of any value that feeds detection. |
| Analyst training and workflow design | Analysts must learn how imported attributes appear, how to review to_ids flags and when to publish, and the intake path must be defined. | Use a standard intake template and a written review procedure so each analyst follows the same steps. |
| Recurring review queue | Every imported document adds items to a review queue, so volume drives analyst time for the life of the service. | Set intake rules for which documents are imported and route low-risk items to a lighter review path. |
| Module upkeep through upgrades | Import and enrichment modules depend on libraries that change between MISP and misp-modules releases, so each upgrade needs retesting. | Pin a tested module set, record the versions in use, and rerun the test corpus before every upgrade. |
| New file types and formats | Attackers change lures and formats, and new file types may need new parsing or a custom module, which adds build and test work. | Accept only the file types on the approved list and ask for a scoped change request before adding a new type. |
How document import connects to the rest of MISP
Text pulled from emails, PDFs and screenshots becomes useful only once it lands as MISP events and attributes with correct flags and sharing settings. The cards below cover the decisions that connect the import path to the core platform, automation, sharing and detection tooling.
Events and attributes
Each extracted value should be attached to an event that describes the source document, such as a phishing report or vendor advisory, and typed as the right attribute category, for example a URL, domain, email address or file hash. Mistyped values are the most common cause of noisy events later. Confirm how the email and document modules map extracted content to attributes and objects in your misp-modules version, and review the mapping on a sample file before bulk imports.
misp-modules READMEThe to_ids flag
The to_ids flag tells downstream tools that an attribute is safe to use for detection. Extracted values often include legitimate sites, signature banners and sender addresses from a mail gateway, so imported attributes should default to not being flagged. Set to_ids only after an analyst confirms the value is malicious and relevant, and check it again before export to a firewall or SIEM.
Distribution and sharing groups
Distribution controls who can see an event once it is published or synchronized. A document extracted from a customer's phishing report may contain personal data or internal names, so the distribution level should be set at import time, not after sync has already run. Decide which events stay within your organization, which go to a community, and which use a custom sharing group, and confirm how the import modules set the default distribution on new events.
MISP featuresAutomation through the API and PyMISP
Teams processing many reports often script imports rather than uploading files by hand. The REST API and the PyMISP library can create events, add attributes and trigger module actions, which makes repeatable review steps possible. Keep the API key scoped to the importing account, record which automated job created each event, and confirm which module endpoints your API user can call before building the pipeline.
MISP featuresSync and publishing decisions
Publishing an event starts synchronization to connected instances and communities, and that step is hard to reverse once partners have copied the data. Make publication a separate step after analyst review, not a side effect of import. Confirm the sync filters on your instance and on each partner's side so that events with personal data, internal hostnames or unverified indicators do not leave your network.
MISP featuresExports that feed detection
Detection tools consume MISP through exports such as restSearch formats, STIX, CSV, Suricata, Snort, Zeek and RPZ, and some consumers read only attributes with to_ids set. An imported indicator that is unreviewed or mistyped can reach a blocklist within one export cycle. Before connecting an export to a sensor or firewall, test the output on a sample event, confirm which attribute types the target accepts, and check that the export filter excludes unpublished or low-confidence events.
MISP export formatsQuestions teams ask before importing documents into MISP
Can our own team import emails, PDFs and OCR text into MISP without a partner?
Yes, if you have a team member who can install and maintain misp-modules, handle API keys and review what the modules extract. The Email Import, OCR Import, and PDF, DOCX, ODT and XLSX modules are part of misp-modules, which runs alongside the core MISP platform. The harder part is rarely the installation. It is deciding which extracted values are safe to publish, testing parser behavior on your real document types, and keeping the setup working through MISP upgrades. Teams with a security engineer and an analyst who can own that review often manage it in-house. Teams without that capacity usually benefit from a scoped engagement that sets up the pipeline and hands over a documented review procedure.
What do we need to provide for a document import project?
Three things matter most: representative sample files, analyst time for review, and a named sign-off owner. Samples should cover the formats you actually receive, such as phishing emails with attachments, vendor PDF reports, Word or OpenDocument files, Excel sheets and screenshots. Include both clean and difficult examples, like scanned pages, multi-column layouts and non-Latin text. Analyst time is needed to label expected indicators so that extraction can be checked against a known answer. The sign-off owner decides which attribute types may carry the IDS flag and who approves publication. Confirm these roles before work starts, since they shape the acceptance criteria.
What drives the cost and effort of importing documents into MISP?
Effort rises with the number of document types, the share of scanned or image-based content, the volume of historical material to backfill, and the number of review rules you need. Each new format or layout family adds parser testing. OCR quality depends on scan resolution and language, so poor inputs add tuning and review time. Integration with your mail flow, sandbox or ticketing tools adds more work. Ask any quote to break out the components: environment setup, module configuration, parser testing per format, review workflow design, documentation and knowledge transfer. Ask which items are one-time and which recur, such as retesting after MISP or module upgrades. DeployOpen does not publish a price list, and a quote follows from the written scope.
How long does a document import setup take?
Duration depends on scope, so ask for a timeline tied to a written list of formats, sources and review steps rather than a generic estimate. A pilot covering one email source and two document types moves faster than a rollout across mail gateways, sandboxes and multiple languages. Time is also driven by how many sample files are available, how quickly analysts can review results, and whether the target MISP instance is already installed and maintained. Ask the partner to show which milestones depend on your team, such as access approvals, sample delivery and sign-off, because those often set the calendar more than the technical build.
Can we trust OCR text extracted from screenshots without review?
No. OCR output should be treated as candidate data until an analyst has checked it. Character recognition can confuse similar characters, such as zero and capital O or the digit one and a lowercase l, which can turn a valid domain or hash into a different, harmless-looking value or a false positive. Defanged indicators like hxxp or brackets around dots may be read literally. Set up the import so extracted attributes land as unpublished or flagged for review, and make sure the IDS flag is not set automatically. Measure accuracy on your own sample set before relaxing review, and repeat that check after module or OCR engine changes.
How should we handle sensitive attachments during import?
Decide the handling rules before any file reaches the parser. Sensitive attachments such as patient records, personnel documents or customer data should not be uploaded to a shared analysis path without approval. Process suspicious files in an isolated environment, limit which users and modules can access uploads, and remove or store originals under the same retention policy as the event. Keep the MISP instance and misp-modules inside infrastructure you control, and review logging and access roles. Confirm with your legal, privacy and security teams which document classes are excluded, and document the answer, since it will shape the design more than any parser setting.
What should a partner hand over at the end of a document import project?
A complete handover lets your team run the pipeline without the partner. Ask for the configured misp-modules deployment with version details, a record of each enabled import and enrichment module, and the configuration files kept under version control. Include the review procedure with decision criteria for to_ids and publication, test samples with expected results, and a regression test set for upgrades. Require documentation of API key storage, access roles, logging, and a runbook for failed parses. Also ask for a list of known limitations, such as formats or languages that were not tested, so your team can plan follow-up work.
Document intake path from mailbox to reviewed MISP event
The path starts with a phishing email in a mailbox or a file dropped by an analyst, outside the MISP network zone. Content moves into misp-modules, where the Email Import, OCR Import and document enrichment modules extract candidate attributes. Those values land in MISP as an unpublished event, so nothing is shared yet. Only after an analyst reviews each indicator and its to_ids flag should the event be published and synchronized to detection tools. Check the trust boundary crossing carefully, since the source files are untrusted.
Document intake from an untrusted source through review before detection.
How DeployOpen scopes and delivers MISP document import
DeployOpen plans, builds and hands over the document import path for MISP inside your own infrastructure. We start from the files your analysts actually receive, agree the extraction and review steps in writing, and deliver a tested pipeline that your team can run and maintain.
How we scope
- Inventory the phishing emails, PDF reports, office files and screenshots your teams receive and which ones feed MISP.
- Confirm which misp-modules import and enrichment modules fit each file type, and which need a custom build.
- Define who reviews extracted indicators and which to_ids flags may reach detection before publication.
- Agree the written scope, deliverables and timeline before any work starts, with ongoing support available as a retainer.
How we build
- Deploy misp-modules alongside your MISP instance in the environment you control, with the Email Import and OCR Import modules enabled.
- Configure PDF, DOCX, ODT and XLSX enrichment so document content reaches MISP attributes in a consistent structure.
- Test extraction against a controlled set of sample phishing emails, PDFs and screenshots, including known-bad and benign files.
- Set attribute types, distribution levels and tagging defaults so imported values stay within your sharing rules.
How we hand over
- Document the import workflow, module versions, configuration keys and file locations for your platform team.
- Record the validation checklist analysts use to confirm extracted indicators before they reach detection systems.
- Walk your analysts and administrators through a live import, review and rejection, so the steps are practiced.
- Provide the test files and expected results so your team can rerun the checks after changes or upgrades.
How we support
- Review module behavior and extraction quality after MISP and misp-modules upgrades, as agreed in the written scope.
- Retest the import path when new file types or OCR requirements appear, and report findings with fixes.
- Offer ongoing support, upgrades and continuous testing as retainers for teams that want a standing partner.
- Confirm with your own environment and the module documentation which capabilities apply before relying on them.

