Query Details
**User Information collected externally when a URL is clicked** Email campaigns using postmarkapp.com allows to collect information about the users that click on a URL formatted by this system. They can contains valid domains in the URL but at the begging , it will contains a text such as track.pstmrk.it which will back private information to the sender: 'When Link Tracking has been enabled, links in your messages will be replaced with new links that route through Postmark servers. When an email recipient clicks on a tracked link, the URL is opened in their default browser. 𝐓𝐡𝐞 𝐛𝐫𝐨𝐰𝐬𝐞𝐫 𝐰𝐢𝐥𝐥 𝐫𝐞𝐪𝐮𝐞𝐬𝐭 𝐭𝐡𝐞 𝐔𝐑𝐋 𝐟𝐫𝐨𝐦 𝐨𝐧𝐞 𝐨𝐟 𝐨𝐮𝐫 𝐏𝐨𝐬𝐭𝐦𝐚𝐫𝐤 𝐬𝐞𝐫𝐯𝐞𝐫𝐬, 𝐚𝐭 𝐰𝐡𝐢𝐜𝐡 𝐩𝐨𝐢𝐧𝐭 𝐰𝐞 𝐫𝐞𝐜𝐨𝐫𝐝 𝐢𝐧𝐟𝐨𝐫𝐦𝐚𝐭𝐢𝐨𝐧 𝐚𝐛𝐨𝐮𝐭 𝐭𝐡𝐞 𝐮𝐬𝐞𝐫'𝐬 𝐥𝐨𝐜𝐚𝐭𝐢𝐨𝐧, 𝐰𝐡𝐚𝐭 𝐛𝐫𝐨𝐰𝐬𝐞𝐫 𝐭𝐡𝐞𝐲 𝐚𝐫𝐞 𝐮𝐬𝐢𝐧𝐠, 𝐚𝐧𝐝 𝐢𝐧 𝐰𝐡𝐢𝐜𝐡 𝐩𝐚𝐫𝐭 𝐨𝐟 𝐭𝐡𝐞 𝐞𝐦𝐚𝐢𝐥 𝐭𝐡𝐞 𝐥𝐢𝐧𝐤 𝐰𝐚𝐬 𝐜𝐥𝐢𝐜𝐤𝐞𝐝 (𝐇𝐓𝐌𝐋 𝐨𝐫 𝐓𝐞𝐱𝐭).' Malicious senders collecting geolocation data and browser details could be laying the groundwork for further malicious activity. ``` UrlClickEvents | where Url contains ".pstmrk.it" | join kind=inner (EmailEvents) on $left.NetworkMessageId == $right.NetworkMessageId | where DeliveryLocation has "Inbox" ```
This query is designed to track and analyze user interactions with URLs in email campaigns that use Postmark's link tracking feature. Here's a simplified explanation:
Data Source: The query looks at two sets of data: UrlClickEvents and EmailEvents.
Filter URLs: It specifically filters for URLs that contain ".pstmrk.it", which indicates they are being tracked by Postmark.
Join Data: It combines (join) the URL click events with email events based on a common identifier (NetworkMessageId). This helps to correlate the URL click with the specific email it was associated with.
Filter for Inbox: It further filters the results to only include emails that were delivered to the "Inbox", ensuring the analysis focuses on emails that were successfully delivered and likely seen by the user.
Purpose: The goal is to collect and analyze information about users who click on these tracked links, such as their location, browser details, and the part of the email where the link was clicked. This data can be used for legitimate purposes like improving email campaigns, but it also has the potential for misuse, such as gathering information for malicious activities.

Sergio Albea
Released: May 14, 2025
Tables
Keywords
Operators