Screen new HubSpot contacts for data breach exposure

The moment a new contact lands in HubSpot, we check their email against known data breaches and flag the high-risk ones so your team can act fast.

Agentic Task
Have I Been PwnedHubSpotSlack BotOperationsCustomer SupportLead EnrichmentNotifications & Alerts
PromptCreate

Run this automatically whenever a new contact is created in HubSpot. HubSpot sends an outgoing webhook for new contacts, so use that as the trigger. From the webhook payload, read the new contact's email address and their HubSpot contact record ID.

Check the contact's email against Have I Been Pwned. Call Get Breaches for Account and Get Pastes for Account with that email. Have I Been Pwned returns an empty 'not found' result when an address is clean, so if both calls come back with no breaches and no pastes, treat the contact as clean and stop right there: do not write a note, do not change any field, and do not send any alert.

If there are breaches or pastes, write a short plain-language risk summary an account owner can read at a glance. Name each breach, say when it happened, and list which classes of data were exposed (for example email addresses, passwords, phone numbers, physical addresses, or credit card and bank details). Lead with the most sensitive exposures so the risk is obvious in the first line.

Attach that summary to the contact with HubSpot's Create Note, associated with the contact record so it shows up on their timeline. Then record the risk on the contact with Update Contact: set a breach-risk property to high when passwords or financial data were exposed, and to medium or low for other breaches based on how sensitive the exposed data is.

Only alert a human when the exposed data includes passwords or financial data such as credit card numbers or bank account details. In that case, identify the contact's owner in HubSpot, look up their Slack account by their email address, and send them a direct message with Slack Bot's Send a Message. Summarize the breach risk and recommend the customer reset their passwords and turn on multi-factor authentication. If the owner cannot be matched to a Slack user, post the same alert to a designated security or customer-success channel instead. For breaches that do not involve passwords or financial data, skip the Slack alert to keep the noise down: the note and the risk field are enough.

Additional information

What does this prompt do?
  • Automatically checks every new HubSpot contact's email against a database of known data breaches and leaks.
  • Writes a plain-language risk summary onto the contact record listing which breaches they appeared in, when, and what kind of data was exposed.
  • Marks each contact with a breach-risk level so your team can spot the highest-risk customers at a glance.
  • Sends a Slack alert to the contact's owner only when passwords or financial details were exposed, so no one gets spammed with low-risk noise.
What do I need to use this?
  • A HubSpot account where new contacts are created.
  • A Have I Been Pwned subscription (their breach-checking service requires a paid key).
  • A Slack workspace for the alerts.
  • A field on your HubSpot contact record to store a breach-risk level (a simple custom property).
How can I customize it?
  • Change what counts as high risk, for example treat any exposed password as urgent or add more data types to the sensitive list.
  • Choose who gets the Slack alert: the contact owner, a shared security channel, or your customer-success team.
  • Adjust the wording of the risk summary and the labels used for the risk levels on the contact.

Frequently asked questions

What happens if a new contact's email is clean?
Nothing is added to the record. If the email has not appeared in any known breach or paste, the workflow stops quietly without writing a note, changing a field, or sending any alert.
Will my team get flooded with Slack alerts?
No. A Slack message only goes out when passwords or financial data were exposed. Lower-risk breaches are still logged on the contact record, but they do not trigger an alert.
Does this cost anything to run?
The breach lookups use Have I Been Pwned, which requires a paid subscription for its email-checking service. HubSpot and Slack use your existing accounts.
Does this work with HubSpot Free?
Yes, as long as new contacts are created in your account and you can add a custom property to store the risk level. The main paid requirement is the Have I Been Pwned subscription.
Is my customers' data sent anywhere risky?
Only the contact's email address is checked against the breach service. The results are written straight back onto your own HubSpot record and, when relevant, into your own Slack workspace.

Catch breached customers before they become a problem.

Turn every new HubSpot contact into an early warning so your team can nudge high-risk customers to reset passwords and turn on multi-factor authentication.